id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
60,124,976
How to release big memory for working with bitmaps after use if it didn't?
<p>I'm a beginner android programmer and want to implement a list with <code>RecyclerView</code> that can hold any media. If size of image that is loading in my app is large I want to make it smaller. For that I found some code:</p> <pre><code>Bitmap bitmap = BitmapFactory.decodeFile(path); Bitmap smallerBitmap = Thum...
I'm a beginner android programmer and want to implement a list with RecyclerView that can hold any media. If size of image that is loading in my app is large I want to make it smaller. For that I found some code: [CODE] In first line I'm reading an image in my phone and in second line making it smaller. For writing it ...
android|memory|memory-leaks|out-of-memory
0
2020-02-08T07:58:25.383Z
2,020
2
7
5
72
2
757
74
4
2
true
false
false
false
false
false
zero
60,125,016
Flutter Sound (Looping)
<p>i already made voice recorder using <a href="https://github.com/dooboolab/flutter_sound" rel="nofollow noreferrer"><code>flutter_sound</code></a>, </p> <p>the sound only play once, maybe someone have try to auto loop when it's play ?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" ...
i already made voice recorder using flutter_sound , the sound only play once, maybe someone have try to auto loop when it's play ? [CODE]
android|flutter|mobile|dart
3
2020-02-08T08:06:06.110Z
2,020
2
8
5
3,733
1
137
23
4
1
true
false
true
false
false
false
low
60,125,018
Transform list of one items type to list of another items type
<p>Android Studio 3.6</p> <p>Snippet:</p> <pre><code>private fun createHistoryList(participantsEffectResourceList: List&lt;ParticipantsEffectResource&gt;) { val historyList = mutableListOf&lt;MyHistoryItem&gt;() participantsEffectResourceList.forEach({ val date = it.operation.appliedAt ...
Android Studio 3.6 Snippet: [CODE] As you can see I extract property from one item type ( ParticipantsEffectResource ) and transform it to another list of items ( MyHistoryItem ). Nice. It's work fine. But can any another simpler method? E.g. by participantsEffectResourceList.map {} or smt else?
android|kotlin
0
2020-02-08T08:06:12.853Z
2,020
2
8
5
24
1
296
62
2
1
true
false
false
false
false
false
zero
60,125,051
How to keep “SliverPersistentHeader” pinned to the top until item one of “SliverList” is reached after scrolling down?
<p>I am using SliverPersistentHeader with SliverList in CustomScrollView . I don't want my SliverPersistentHeader to come down until item one (index:0) of SliverList is reached. Even if I am at index 50 of sliverlist still header comes down as I scroll down. Is there any shortcut way to achieve this?</p> <p>Here is wh...
I am using SliverPersistentHeader with SliverList in CustomScrollView . I don't want my SliverPersistentHeader to come down until item one (index:0) of SliverList is reached. Even if I am at index 50 of sliverlist still header comes down as I scroll down. Is there any shortcut way to achieve this? Here is what I am get...
android|flutter|flutter-layout|flutter-animation|flutter-sliver
3
2020-02-08T08:11:28.433Z
2,020
2
8
5
6,099
2
368
118
5
1
true
false
true
false
false
false
low
60,125,096
How to hide Title and leave a sandwich (three stripes) in Navigation Draw?
<p>I have a standard Navigation Drawer application designed by android studio.</p> <p>I would like to remove the top panel and leave only three strips, please tell me options for how to do this?</p> <p><a href="https://i.stack.imgur.com/XBRFc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XBRFc.pn...
I have a standard Navigation Drawer application designed by android studio. I would like to remove the top panel and leave only three strips, please tell me options for how to do this? Project structure:
android
0
2020-02-08T08:19:33.540Z
2,020
2
8
5
99
1
203
74
1
0
false
false
false
false
false
false
zero
60,125,102
Can we add only BaseActivity in ActivityBuilder module as '@ContributesAndroidInjector' instead of mentioning every 'Activity'?
<p>In my application, I am using dagger-2 for Android, I am extending my every activity with <code>BaseActivity</code> which extends <code>DaggerAppCompatActivity</code>. I have created a 'module' (<code>ActivityBuilder</code>) where we are suppose to specify every new activity as <code>@ContributesAndroidInjector</cod...
In my application, I am using dagger-2 for Android, I am extending my every activity with BaseActivity which extends DaggerAppCompatActivity . I have created a 'module' ( ActivityBuilder ) where we are suppose to specify every new activity as @ContributesAndroidInjector . Can we specify only BaseActivity instead of men...
android|dagger-2
1
2020-02-08T08:20:11.050Z
2,020
2
8
5
39
0
389
127
2
0
false
true
false
false
false
false
low
60,125,121
Need to open Notification.java activity when application close or minimize
<p>Note: below code mention in MyFirebaseMessageingService.java </p> <pre><code>public class MyFirebaseMessagingService extends FirebaseMessagingService { ....... @Override public void onMessageReceived(RemoteMessage remoteMessage) { .............. ValidateCall(validateRingerRequestModel, new ApiCallback() { ...
Note: below code mention in MyFirebaseMessageingService.java [CODE] "Notification" is a simple activity which shows some buttons with a click event actions. When application is running on foreground and notification comes in, then only activity starts but when application is closed or minimized or device is in sleep mo...
android|firebase|firebase-cloud-messaging|android-notifications
1
2020-02-08T08:23:21.683Z
2,020
2
8
5
149
1
695
74
4
1
true
false
false
false
false
false
low
60,125,165
How can I showcase the navigation drawer?
<p>I'm using this library: <a href="https://github.com/deano2390/MaterialShowcaseView" rel="nofollow noreferrer">https://github.com/deano2390/MaterialShowcaseView</a></p> <p>How can I showcase the 3 bar button, clicking which the navigation drawer opens, in the top left corner of the screen?</p>
I'm using this library: https://github.com/deano2390/MaterialShowcaseView How can I showcase the 3 bar button, clicking which the navigation drawer opens, in the top left corner of the screen?
android
1
2020-02-08T08:29:37.397Z
2,020
2
8
5
155
1
192
41
1
0
false
false
false
false
false
false
low
60,125,192
App crashes while using ImageDecoder#createSource(contentResolver, uri)
<p>Trying to replace the deprecated code for retrieving images from Uri </p> <blockquote> <p>MediaStore#Images#Media#getBitmap(contentResolver, uri)</p> </blockquote> <p>with the new </p> <blockquote> <p>ImageDecoder#createSource(contentResolver, uri)</p> </blockquote> <p>Here is my new Code:</p> <pre><code>Bi...
Trying to replace the deprecated code for retrieving images from Uri MediaStore#Images#Media#getBitmap(contentResolver, uri) with the new ImageDecoder#createSource(contentResolver, uri) Here is my new Code: [CODE] But I noticed that anytime I tried using it to process an image of a relatively large size of about 2MB to...
java|android|kotlin|mobile
1
2020-02-08T08:33:53.023Z
2,020
2
8
5
181
1
620
71
4
1
true
false
false
false
false
false
low
60,125,230
System.Net.WebException: 'Failed to connect to /192.168.8.100:5001'
<p>i want to connect my xamarin app with asp.net mvc core 3.1 localhost server <a href="https://192.168.8.100:5001/api/products/" rel="nofollow noreferrer">https://192.168.8.100:5001/api/products/</a></p> <p>Here <strong>192.168.8.100</strong> is ip address of my computer and <strong>5001</strong> is the asp.net local...
i want to connect my xamarin app with asp.net mvc core 3.1 localhost server https://192.168.8.100:5001/api/products/ Here 192.168.8.100 is ip address of my computer and 5001 is the asp.net localhost port number MainPage.xaml.cs [CODE] After excuting the var context = await _client.GetStringAsync(Url) , line it show me ...
c#|android|xamarin.forms
0
2020-02-08T08:39:39.593Z
2,020
2
8
5
1,699
1
347
67
3
2
true
false
false
false
false
false
zero
60,125,291
While Accessing SD card Error (No such file or directory)" File is available as shown in screenshot of Device File Explorer
<p>In Android Studio 3.5.3 while Accessing SD card I receive message Error message "/storage/sdcard0/Download/ExpenseManager.db (No such file or directory)" But File is available as shown in screenshot of Device File Explorer</p> <pre><code>try { if(ExternalStorageUtil.isExternalStorageMounted()) { // Ch...
In Android Studio 3.5.3 while Accessing SD card I receive message Error message "/storage/sdcard0/Download/ExpenseManager.db (No such file or directory)" But File is available as shown in screenshot of Device File Explorer [CODE] I receive error in Line FileChannel src = new FileInputStream(backupDB).getChannel();
android
0
2020-02-08T08:52:41.290Z
2,020
2
8
5
282
0
315
123
1
1
true
true
false
false
false
false
zero
60,125,318
How to Re-Show and Restore Previously Added Fragment with its View to Container
<p>Here I am having code (function) for loading the fragment into container...</p> <pre><code>public void loadFragment(Fragment targetFragment, int containerId) { if (!targetFragment.isAdded()) { Toast.makeText(this, "Adding First Time", Toast.LENGTH_SHORT).show(); supportFragmentManager.beginTran...
Here I am having code (function) for loading the fragment into container... [CODE] The issue with code is if part is working correctly , if there is no instance added of fragment it simply adds that fragment instance , but when I try to reload that fragment nothing happens, seems like I have made mistake with else part...
java|android|android-fragments|fragment
0
2020-02-08T08:57:52.893Z
2,020
2
8
5
92
2
360
79
4
1
true
false
false
false
false
false
zero
60,125,374
java.lang.NoClassDefFoundError: org/yaml/snakeyaml/constructor/BaseConstructor
<p>When I am trying to run flutter app in simulator i get error:</p> <pre><code>java.lang.NoClassDefFoundError: org/yaml/snakeyaml/constructor/BaseConstructor at org.testng.internal.YamlParser.parse(YamlParser.java:16) at org.testng.internal.YamlParser.parse(YamlParser.java:10) at org.testng.xml.Parser.par...
When I am trying to run flutter app in simulator i get error: [CODE]
java|android|flutter|yaml
-1
2020-02-08T09:07:17.553Z
2,020
2
9
5
1,806
1
68
78
4
1
true
false
false
false
false
true
negative
60,125,385
Room delete inverted selection
<p>I have a pretty large database and users have an ability to select entities via GUI. There is a button to select all entities. After it has been pressed it selects all entities, and clicking at the entity adds it into a list which excludes it from all. I need a DAO method that will delete all entities excluding enti...
I have a pretty large database and users have an ability to select entities via GUI. There is a button to select all entities. After it has been pressed it selects all entities, and clicking at the entity adds it into a list which excludes it from all. I need a DAO method that will delete all entities excluding entitie...
android|android-room
0
2020-02-08T09:08:30.963Z
2,020
2
9
5
31
1
367
30
2
1
true
false
false
false
false
false
zero
60,125,406
OnClick in for-loop
<p>OnClick in a loop does not function properly...</p> <p>The error refers to an excess of array values, I don't know why.</p> <p>Is there a way to make OnClick function normally with a loop?</p> <hr> <p>Logcat</p> <blockquote> <p>2020-02-08 17:58:36.295 20307-20307/com.example.pagevalue_shift_2 E/AndroidRunti...
OnClick in a loop does not function properly... The error refers to an excess of array values, I don't know why. Is there a way to make OnClick function normally with a loop? Logcat 2020-02-08 17:58:36.295 20307-20307/com.example.pagevalue_shift_2 E/AndroidRuntime: FATAL EXCEPTION: main [CODE] //error code [CODE]
android|for-loop|onclick
1
2020-02-08T09:10:58.463Z
2,020
2
9
5
151
3
314
19
3
2
true
false
false
false
false
false
low
60,125,571
generating R.JAVA files manually using aapt2
<p>I need to build <code>R.JAVA</code> files by using command line <code>aapt2</code>, is there any ways or codes to generate R.JAVA files by using <code>aapt2</code> command line?</p>
I need to build R.JAVA files by using command line aapt2 , is there any ways or codes to generate R.JAVA files by using aapt2 command line?
java|android|bash|command-line|apk
1
2020-02-08T09:37:34.760Z
2,020
2
9
5
355
1
139
44
5
0
false
false
false
false
false
false
low
60,125,601
How to use Flutter " package:flutter_android/android_telephony.dart' "?
<p>I wanted the feature of ,</p> <blockquote> <p>import android.telephony.TelephonyManager;</p> </blockquote> <p>in flutter, and according to pub.dev </p> <blockquote> <p>package:flutter_android/android_telephony.dart</p> </blockquote> <p>can do the same function, but i'm unable to make it work. Can someone ple...
I wanted the feature of , import android.telephony.TelephonyManager; in flutter, and according to pub.dev package:flutter_android/android_telephony.dart can do the same function, but i'm unable to make it work. Can someone please help ? [CODE]
android|flutter|flutter-packages
0
2020-02-08T09:43:03.340Z
2,020
2
9
5
773
0
243
71
3
1
true
true
false
false
false
false
zero
60,125,710
Opengl ES glGetAttribLocation problem! 0x0502 error
<p>There is a error when glGetAttribLocation excuted. And I don't know why it is. I tried to check program things, shaders, and logics. But I couldn't resolve this problem... I think there was a problem happend when creating program or passed program. But I don't know where the problem is.. Below is the execution log a...
There is a error when glGetAttribLocation excuted. And I don't know why it is. I tried to check program things, shaders, and logics. But I couldn't resolve this problem... I think there was a problem happend when creating program or passed program. But I don't know where the problem is.. Below is the execution log and ...
java|android|opengl-es|runtime-error|glsl
1
2020-02-08T09:59:42.987Z
2,020
2
9
5
233
1
408
51
5
4
true
false
false
false
false
false
low
60,125,771
Preload navigation destination or async navigation using Android App Components navigation?
<p>I am using App Component's navigation component. One of my destinations is a more complex form. On it's first call its creation takes around 200 ms. I can clearly notice that, cause the UI blocks for a short, but noticable duration. Each further call (even though the destination fragment is destroyed due to going ba...
I am using App Component's navigation component. One of my destinations is a more complex form. On it's first call its creation takes around 200 ms. I can clearly notice that, cause the UI blocks for a short, but noticable duration. Each further call (even though the destination fragment is destroyed due to going back)...
android|android-fragments|android-architecture-components|android-navigation
2
2020-02-08T10:09:53.920Z
2,020
2
10
5
202
0
701
91
4
0
false
true
false
false
false
false
low
60,125,774
FIDO client access to BLE Authenticator
<p>FIDO client stack supports Bluetooth attestation and assertion by first locating a paired authenticator device with a FIDO GATT and then attempting to connect to that device using it’s paired address. Both Android and iOS BLE stacks incorporate Resolvable Private Address methods; meaning on each new advertisement fr...
FIDO client stack supports Bluetooth attestation and assertion by first locating a paired authenticator device with a FIDO GATT and then attempting to connect to that device using it’s paired address. Both Android and iOS BLE stacks incorporate Resolvable Private Address methods; meaning on each new advertisement from ...
android|ios|bluetooth-lowenergy|authenticator|fido
1
2020-02-08T10:10:01.700Z
2,020
2
10
5
231
0
957
39
5
0
false
true
false
false
false
false
low
60,125,795
activity or fragment? help me out to choose
<p>There are 3 similar screens in my app. So doubt is what should I create for these screens Activity or Fragment.<a href="https://i.stack.imgur.com/V4IC6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V4IC6.png" alt="Login Screen Popup"></a> <a href="https://i.stack.imgur.com/IQMie.png" rel="nofoll...
There are 3 similar screens in my app. So doubt is what should I create for these screens Activity or Fragment.
android|android-activity|popup|fragment|android-fragmentactivity
-1
2020-02-08T10:12:42.123Z
2,020
2
10
5
368
2
111
43
5
0
false
false
false
false
false
true
negative
60,125,844
Install apk programmatically auto-updating my app
<p>Hi I'm in trouble with this code... I want to check on my server if versione code of my app is the Latest and update the app or not.</p> <p>This Is my checkupdate Activity</p> <p>'''</p> <p>public class CheckUPD extends AppCompatActivity {</p> <pre><code>TextView textServer; // text result from server on layout ...
Hi I'm in trouble with this code... I want to check on my server if versione code of my app is the Latest and update the app or not. This Is my checkupdate Activity ''' public class CheckUPD extends AppCompatActivity { [CODE] } ''' All working fine except for ''' public void download(View view) { String destination = E...
java|android|android-studio|permissions|installation
2
2020-02-08T10:19:47.500Z
2,020
2
10
5
1,222
0
897
49
5
2
true
true
false
false
false
false
low
60,125,851
Disabling an app auto-restart on crash (debug build)
<p>I want to disable auto restart of an app in debug builds. Looks like in Android 9.0 and later the app is automatically restarted right after a crash happened. You need to "crash" it twice, to get the app really killed. In this situation "AppName keeps stopping" dialog is displayed by the system.</p> <p>That's reall...
I want to disable auto restart of an app in debug builds. Looks like in Android 9.0 and later the app is automatically restarted right after a crash happened. You need to "crash" it twice, to get the app really killed. In this situation "AppName keeps stopping" dialog is displayed by the system. That's really annoying ...
android
3
2020-02-08T10:21:03.740Z
2,020
2
10
5
148
0
528
52
1
0
false
true
false
false
false
false
low
60,125,918
WorkManager stops scheduling periodic Worker after the app closes
<p>maybe this is yet another question about WorkManager, but I really can't find a solution...</p> <p>I'm trying, as the title suggests, to run a periodic work every 15 minutes. Actually in the worker I'm polling some data every minute. After every poll, every almost 1 second I check if the worker is being stopped and...
maybe this is yet another question about WorkManager, but I really can't find a solution... I'm trying, as the title suggests, to run a periodic work every 15 minutes. Actually in the worker I'm polling some data every minute. After every poll, every almost 1 second I check if the worker is being stopped and if so retu...
android|push-notification|android-workmanager|background-service
3
2020-02-08T10:31:59.383Z
2,020
2
10
5
2,617
1
1,400
65
4
2
true
false
true
false
false
false
low
60,125,988
How to fail a build if there are unescaped apostrophes in strings.xml?
<p>I have an Android app, and for this app I automatically download translations from crowdin.com - this works well. </p> <p>Some languages make use of apostrophes and it is known that if you have apostrophes in your strings.xml, then <a href="https://stackoverflow.com/questions/5657047/error-in-strings-xml-file-in-an...
I have an Android app, and for this app I automatically download translations from crowdin.com - this works well. Some languages make use of apostrophes and it is known that if you have apostrophes in your strings.xml, then you should escape them . What I am looking to do is fail the build if there are unescaped apostr...
java|android|gradle|internationalization
1
2020-02-08T10:40:15.623Z
2,020
2
10
5
349
1
727
70
4
0
false
false
false
false
false
false
low
60,126,069
How to Initialize Context on DummyData class
<p>I want to ask something about a problem of my project which I can't initialize a context from dummyData class. Here's my code.</p> <p>in Constructor of DummyData : static Context context;</p> <p>and i call on method getData() like :</p> <pre><code>VoucherDatabase vd = new VoucherDatabase(context); ArrayList&lt;Vo...
I want to ask something about a problem of my project which I can't initialize a context from dummyData class. Here's my code. in Constructor of DummyData : static Context context; and i call on method getData() like : [CODE] but it's finally when i'll try a twice times, i have issue like this. java.lang.NullPointerExc...
java|android|sqlite
0
2020-02-08T10:53:07.213Z
2,020
2
10
5
97
0
738
44
3
3
true
true
false
false
false
false
zero
60,126,102
Connecting with a specific bluetooth device
<p>how I'm building application using android studio that will try to connect (on button clicked) to specific device- bluetooth module HC-05 v2. I wrote 'trying' because HC-05 modeule will be able to connect only to 1 device. </p> <p>If first device is being handled, the second one in queue will try to connect as long...
how I'm building application using android studio that will try to connect (on button clicked) to specific device- bluetooth module HC-05 v2. I wrote 'trying' because HC-05 modeule will be able to connect only to 1 device. If first device is being handled, the second one in queue will try to connect as long as it will ...
android|bluetooth|hc-05
0
2020-02-08T11:00:03.123Z
2,020
2
11
5
376
1
798
43
3
1
true
false
false
false
false
false
zero
60,126,112
How is 'onRestart()' different from 'onCreate()'?
<p>I am learning about developing applications using Android and I think I understand when <code>onCreate()</code> and <code>onRestart()</code> are called during an Activity's lifecycle.</p> <p>The trouble is, both the functions seem to serve the same purpose, i.e., it seems that both the functions are supposed to th...
I am learning about developing applications using Android and I think I understand when onCreate() and onRestart() are called during an Activity's lifecycle. The trouble is, both the functions seem to serve the same purpose, i.e., it seems that both the functions are supposed to the things that are a pre-requisite to o...
android
0
2020-02-08T11:01:56.657Z
2,020
2
11
5
49
2
983
49
1
0
false
false
false
false
false
false
zero
60,126,173
How to Save "Data.Json" file from assets to internal Storage and then use it for read/write
<p>Currently i am fetching a package details(Onnet Minutes, Offnet Minutes, etc) from a Json file "<strong>Data.json</strong>" from <strong>assets</strong> but i know we cannot change values from assets. So my Question is how to copy <strong>Data.json</strong> to <strong>internal storage</strong> and then Load it for r...
Currently i am fetching a package details(Onnet Minutes, Offnet Minutes, etc) from a Json file " Data.json " from assets but i know we cannot change values from assets. So my Question is how to copy Data.json to internal storage and then Load it for read/Write. I am using this to load Data.Json from Assets [CODE] and u...
java|android
0
2020-02-08T11:10:53.547Z
2,020
2
11
5
255
2
408
91
2
3
true
false
false
false
false
false
zero
60,126,220
NativeScript that opens a website based on it's name?
<p>Is it possible to open a website (from a NativeScript App) that does not show the top part of browser like the address line and tabs and opens it in landscape?</p> <p>Possible to change what page that NativeScript App is opening without recompiling? with something like APK Edit? Or maybe can a NativeScript App be a...
Is it possible to open a website (from a NativeScript App) that does not show the top part of browser like the address line and tabs and opens it in landscape? Possible to change what page that NativeScript App is opening without recompiling? with something like APK Edit? Or maybe can a NativeScript App be aware of it'...
android|mobile|webview|apk|nativescript
0
2020-02-08T11:15:12.300Z
2,020
2
11
5
27
0
619
53
5
0
false
true
false
false
false
false
zero
60,126,280
Unable to access elements present in BottomSheetDialog
<p>I have BottomSheetDialog present in my activity and I have button in Bottom sheet how can I access that button in my activity.</p> <p>But I am getting error when app starts:</p> <pre><code> Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById...
I have BottomSheetDialog present in my activity and I have button in Bottom sheet how can I access that button in my activity. But I am getting error when app starts: [CODE] Below is my layout: activity_main.xml [CODE] custom_layout.xml [CODE] MainActivity.java [CODE] Someone please let me know what I am doing wrong.An...
android
0
2020-02-08T11:22:48.447Z
2,020
2
11
5
35
0
355
54
1
4
true
true
false
false
false
false
zero
60,126,284
How to check which background has a Textview?
<p>This may be kind of a stupid question. I have a large number of Textviews using 2 different background(Let's say, highlighted and not) and being accessed from different classes and updated very ofter, each class may highlight it or remove the highlight, and I would like to know which textview is currently using the ...
This may be kind of a stupid question. I have a large number of Textviews using 2 different background(Let's say, highlighted and not) and being accessed from different classes and updated very ofter, each class may highlight it or remove the highlight, and I would like to know which textview is currently using the one...
android|textview
0
2020-02-08T11:23:10.447Z
2,020
2
11
5
32
1
354
45
2
1
true
false
false
false
false
false
zero
60,126,343
Receiving bytes from a Bluetooth connection
<p>I have an android application that connects to a Bluetooth module to send and receive data. In the sending logic, its working fine and sending the data properly.</p> <p>The variables:</p> <pre><code> private BluetoothSocket bluetoothSocket; private BluetoothDevice bluetoothDevice; private static InputStream i...
I have an android application that connects to a Bluetooth module to send and receive data. In the sending logic, its working fine and sending the data properly. The variables: [CODE] Connecting to the module: [CODE] The sending logic: [CODE] All of the above is working fine, but when I come to receive data, the app do...
java|android|bluetooth
0
2020-02-08T11:31:08.207Z
2,020
2
11
5
88
0
559
43
3
4
true
true
false
false
false
false
zero
60,126,431
Want to create an app in which it shows 3 button vertically and horizontally at the center but when I have tried only the 3rd button was there ,
<p>I want to create an app which shows 3 buttons but when I run my code it shows the third button not other ones have this code here --></p> <p>Here is my screenshot(<a href="https://i.stack.imgur.com/Ih3mK.png" rel="nofollow noreferrer">https://i.stack.imgur.com/Ih3mK.png</a>)</p> <pre><code>&lt;RelativeLayout xmlns...
I want to create an app which shows 3 buttons but when I run my code it shows the third button not other ones have this code here --> Here is my screenshot( https://i.stack.imgur.com/Ih3mK.png ) [CODE]
android
-1
2020-02-08T11:41:21.690Z
2,020
2
11
5
41
2
201
144
1
1
true
false
false
false
false
true
negative
60,126,492
How to fix java.lang.NoClassDefFoundError on android api level lower than 21?
<p>My application runs fine with my android api level 23 , when I tried to run it on another android api level 19 the app crashes when begin to launch and error message says</p> <p>(java.lang.NoClassDefFoundError:com.notifyuser.peter.notify.PrefService )appeared.</p> <p>my app has jobservice class which is handled by...
My application runs fine with my android api level 23 , when I tried to run it on another android api level 19 the app crashes when begin to launch and error message says (java.lang.NoClassDefFoundError:com.notifyuser.peter.notify.PrefService )appeared. my app has jobservice class which is handled by job schedular, the...
java|android|noclassdeffounderror
0
2020-02-08T11:49:26.807Z
2,020
2
11
5
234
0
554
77
3
2
true
true
false
false
false
false
zero
60,126,503
How to add thirdparty iOS pod library into kotlin native project ? getting error "SharedCode:cinteropAFNetworkingIos failed"
<p>I created Kotlin native project to shared code between iOS and android.I did integration for cocoapods in-order to use in iOS project using POD file, Project successfully run on iOS and Android but when I tried to used iOS pod library in Kotlin native project, I start getting errors below.</p> <p>I know that I have...
I created Kotlin native project to shared code between iOS and android.I did integration for cocoapods in-order to use in iOS project using POD file, Project successfully run on iOS and Android but when I tried to used iOS pod library in Kotlin native project, I start getting errors below. I know that I have to run pod...
android|kotlin|gradle-kotlin-dsl|kotlin-multiplatform|kotlin-native
5
2020-02-08T11:51:10.327Z
2,020
2
11
5
3,410
2
677
124
5
2
true
false
true
false
false
false
low
60,126,528
Firebase - Activity restarts when user clicks notification
<p>I'm coding an app that uses firebase for implementing notifications. In my MainActivity I have a WebView with some url, but the thing is that when the user clicks on a notification, I want to open MainActiviy with a diferent url in the WebView. I've read a lot and I've added a bundle to the intent (that opens MainAc...
I'm coding an app that uses firebase for implementing notifications. In my MainActivity I have a WebView with some url, but the thing is that when the user clicks on a notification, I want to open MainActiviy with a diferent url in the WebView. I've read a lot and I've added a bundle to the intent (that opens MainActiv...
android|firebase
0
2020-02-08T11:55:38.940Z
2,020
2
11
5
162
2
1,098
58
2
4
true
false
false
false
false
false
zero
60,126,563
How make android application Proxy Aware (Programmatically)?
<p>When I use any proxy like Burp or Owasp ZAP, I see that many applications follow the proxy path and some doesn't and they just flow data directly.</p> <p>I want to know what code is used for this, so that I can choose my own application to be proxy aware or not.</p>
When I use any proxy like Burp or Owasp ZAP, I see that many applications follow the proxy path and some doesn't and they just flow data directly. I want to know what code is used for this, so that I can choose my own application to be proxy aware or not.
android|proxy|burp
2
2020-02-08T12:00:04.933Z
2,020
2
12
5
516
0
255
60
3
0
false
true
false
false
false
false
low
60,126,575
Drag & Drop app builder licensing. How do I make sure the source code won't be decompiled and re-used?
<p>I'm working on a drag and drop app builder. The concept is simple: users can build their apps visually, then the app's settings get turned into a configuration file which will be used by the app to decide how to construct itself (which views should be shown, how should the navigation look like, etc.)</p> <p>My main...
I'm working on a drag and drop app builder. The concept is simple: users can build their apps visually, then the app's settings get turned into a configuration file which will be used by the app to decide how to construct itself (which views should be shown, how should the navigation look like, etc.) My main concern is...
android|ios|node.js|react-native|encryption
1
2020-02-08T12:01:25.590Z
2,020
2
12
5
94
2
902
102
5
0
false
false
false
false
false
false
low
60,126,774
You can't request ViewModel before onCreate call error
<p>Working on trying to get my app to work when I rotate the screen. I placed my questions and answers in a view model called QuizViewModel. When I try to run my app, I'm getting I can't request ViewModel before onCreate call and NullPointerException error. </p> <p>I've tried to put the call to my viewModel after the ...
Working on trying to get my app to work when I rotate the screen. I placed my questions and answers in a view model called QuizViewModel. When I try to run my app, I'm getting I can't request ViewModel before onCreate call and NullPointerException error. I've tried to put the call to my viewModel after the onCreate and...
android|android-studio|kotlin
0
2020-02-08T12:27:42.717Z
2,020
2
12
5
1,362
0
424
54
3
1
true
true
false
false
false
false
zero
60,126,785
How to add privacy policy to an android app?
<p>I developed an android app and I'm to publish that app in playstore. I added the necessary permissions for ad mob in android manifest file such as INTERNET and NETWORK STATE.But its only for admob.Its a totally offline app and doesnt wantto access the internal storage or anything like that. So should I add a privacy...
I developed an android app and I'm to publish that app in playstore. I added the necessary permissions for ad mob in android manifest file such as INTERNET and NETWORK STATE.But its only for admob.Its a totally offline app and doesnt wantto access the internal storage or anything like that. So should I add a privacy po...
java|android|google-play-console
3
2020-02-08T12:28:54.217Z
2,020
2
12
5
1,280
2
490
44
3
1
true
false
false
false
false
false
low
60,126,784
Unable to call React native function from Android
<p>I am trying to call a function from native to react native . But I am getting this runtime exception </p> <pre><code>Tried to access a JS module before the React instance was fully set up. Calls to " + "ReactContext#getJSModule should only happen once initialize() has been called on your " + "na...
I am trying to call a function from native to react native . But I am getting this runtime exception [CODE] I am following Facebook react native documentation. And did went through many questions regarding this topic but nothing helps my issue.I am getting CatalystInstance null in getJsmodule.
android|react-native|events
0
2020-02-08T12:28:54.230Z
2,020
2
12
5
182
1
294
49
3
1
true
false
false
false
false
false
zero
60,126,803
What is wrong with my manifest and Braintree paypal exeption?
<p>I'm working on payment in Native script angular and after I added everything like in instructions the error occured: </p> <pre><code>com.braintreepayments.api.exceptions.BraintreeException: BraintreeBrowserSwitchActivity missing, incorrectly configured in AndroidManifest.xml or another app defines the same browser ...
I'm working on payment in Native script angular and after I added everything like in instructions the error occured: [CODE] Yeah i searched for solution but remaking my manifest didn't work for me. I have no idea what to do because every question ends with modyfying manifest... even if I change [CODE] for [CODE] My man...
paypal|nativescript|android-manifest|native|nativescript-angular
2
2020-02-08T12:31:33.857Z
2,020
2
12
5
651
1
572
61
5
5
true
false
false
false
false
false
low
60,126,824
Enable Night mode for Preview by default
<p>I have about three hundred layouts in my application and I want to implement dark theme for it. Currently, I am trying to find out if there any errors that are related to background colors. In order to do that, I looking through all my layouts one by one, opening them in Preview window and clicking "Orientation for ...
I have about three hundred layouts in my application and I want to implement dark theme for it. Currently, I am trying to find out if there any errors that are related to background colors. In order to do that, I looking through all my layouts one by one, opening them in Preview window and clicking "Orientation for pre...
android-studio|android-dark-theme
8
2020-02-08T12:33:55.803Z
2,020
2
12
5
1,188
1
449
40
2
0
false
false
false
false
false
false
medium
60,126,922
Disable Firebase data collection in a library module?
<p>from <a href="https://firebase.google.com/docs/analytics/configure-data-collection?platform=android" rel="nofollow noreferrer">Configure Analytics Data Collection and Usage</a>:</p> <blockquote> <p>In some cases, you may wish to temporarily or permanently disable collection of Analytics data, such as to collect...
from Configure Analytics Data Collection and Usage : In some cases, you may wish to temporarily or permanently disable collection of Analytics data, such as to collect end-user consent or to fulfill legal obligations. Google Analytics offers multiple options for disabling and deactivating Analytics collection. Used tog...
android|google-analytics|android-library|firebase-analytics
0
2020-02-08T12:45:11.250Z
2,020
2
12
5
235
0
829
53
4
1
true
true
false
false
false
false
zero
60,126,956
Google AdMob: Why do native ad response fail with "no fill" when both banner and interstitial are OK?
<p>I have both banner and interstitial ads in my app, but when trying to load additional native ads which I want to use in recylerviews, the result of the load with <code>AdLoader.Builder(...).forUnifiedNativeAd</code> is always :<code>I/Ads: Received log message: &lt;Google:HTML&gt; The ad request returned a no fill f...
I have both banner and interstitial ads in my app, but when trying to load additional native ads which I want to use in recylerviews, the result of the load with AdLoader.Builder(...).forUnifiedNativeAd is always : I/Ads: Received log message: <Google:HTML> The ad request returned a no fill for the particular slot. The...
android|admob|interstitial|banner-ads|native-ads
2
2020-02-08T12:50:12.933Z
2,020
2
12
5
1,584
0
1,948
101
5
1
true
true
false
false
false
false
low
60,126,960
cp: app/key.jks: No such file or directory on Jenkins
<p>How to fix this error in Jenkins?</p> <blockquote> <p>[Pipeline] { (Setup Tools)</p> <p>[Pipeline] withCredentials</p> <p>Masking supported pattern matches of $KEYFILE</p> <p>[Pipeline] {</p> <p>[Pipeline] sh</p> <p>cp **** app/key.jks</p> <p>cp: app/key.jks: No such file or director...
How to fix this error in Jenkins? [Pipeline] { (Setup Tools) [Pipeline] withCredentials Masking supported pattern matches of $KEYFILE [Pipeline] { [Pipeline] sh cp **** app/key.jks cp: app/key.jks: No such file or directory Pipeline Script [CODE] JKS Credential added like this, Android Project build.gradle [CODE] key.p...
android|jenkins|jenkins-pipeline|jenkins-groovy|jks
-1
2020-02-08T12:51:50.220Z
2,020
2
12
5
411
1
378
53
5
3
true
false
false
false
false
true
negative
60,126,970
How to generate multi flavor apk by selectively bundling the dependency library?
<p>My android app depends on multiple android library (say A,B,C,D). I would like to generate different apks out of them say apk1 needs to consume only on A,B and apk2 needs to consume B,C.</p> <p>I've explored the option of Android's <a href="https://developer.android.com/studio/build/build-variants.html#product-flav...
My android app depends on multiple android library (say A,B,C,D). I would like to generate different apks out of them say apk1 needs to consume only on A,B and apk2 needs to consume B,C. I've explored the option of Android's product flavor concept by doing something like this, [CODE] Now it's generating apks with multi...
android|gradle|build.gradle
1
2020-02-08T12:53:02.373Z
2,020
2
12
5
137
1
405
80
3
1
true
false
false
false
false
false
low
60,127,008
Unable to get provider androidx.lifecycle.ProcessLifecycleOwnerInitializer
<p>When I add Retrofit to my project (implementation 'com.squareup.retrofit2:retrofit:2.7.1'), I get error: <em>"Unable to get provider androidx.lifecycle.ProcessLifecycleOwnerInitializer: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ProcessLifecycleOwnerInitializer" on path: ..."</em></p> <...
When I add Retrofit to my project (implementation 'com.squareup.retrofit2:retrofit:2.7.1'), I get error: "Unable to get provider androidx.lifecycle.ProcessLifecycleOwnerInitializer: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ProcessLifecycleOwnerInitializer" on path: ..." [CODE] Gradle: [CO...
android|kotlin|retrofit
1
2020-02-08T12:59:34.770Z
2,020
2
12
5
1,023
1
323
74
3
2
true
false
false
false
false
false
low
60,127,094
How to set a background picture only to 90% of the screen?
<p>I am currently working on my first android app and I have a background picture. The app just shows quotes from people and it has 4 buttons at the bottom of the screen. </p> <p>This is my current state:</p> <p><a href="https://i.stack.imgur.com/aM9vv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
I am currently working on my first android app and I have a background picture. The app just shows quotes from people and it has 4 buttons at the bottom of the screen. This is my current state: As you can see (or cannot see), the buttons are not really visible. I want them to be black, but have a white background behin...
android|android-layout|layout
1
2020-02-08T13:10:57.003Z
2,020
2
13
5
33
1
626
58
3
0
false
false
false
false
false
false
low
60,127,105
Room - How to correctly/efficiently make a query that needs data from another table to be performed
<p><strong>Context</strong></p> <p>In The application i'm building there are two tables in my database: - the first one filled with <em>USERS</em>:</p> <pre><code>@Entity(tableName = "table_User") public class User { @PrimaryKey (autoGenerate = true) private int id = 0; @ColumnInfo(name = "firstName") private Strin...
Context In The application i'm building there are two tables in my database: - the first one filled with USERS : [CODE] in the second one i need to store couples of Users (organized by day), which i do saving the ID of the USERS : [CODE] Since the app is quite small i have a unique ViewModel , a Repository , that i use...
java|android|android-room|android-livedata
0
2020-02-08T13:12:13.573Z
2,020
2
13
5
43
1
1,382
99
4
4
true
false
false
false
false
false
zero
60,127,194
Android Paho Mqtt - close() v.s. unregisterResources() - OutOfMemoryError
<p>Whenever I encounter an error in the paho MQTT client, I attempt a reconnect 60 seconds later:</p> <pre><code>override fun connectionLost(cause: Throwable) { LOG.e("Connection Lost :: $cause") cleanupClient() retry { connect() } } private fun cleanupClient(){ try { for (i in topicList.indic...
Whenever I encounter an error in the paho MQTT client, I attempt a reconnect 60 seconds later: [CODE] So if the app is sitting without internet, it will continuously attempt to reconnect until it finally does. The issue is that after a few hundred attempts (a couple hours), the app crashed with an Out of Memory Issue: ...
java|android|kotlin|mqtt|paho
0
2020-02-08T13:23:14.173Z
2,020
2
13
5
766
1
1,153
73
5
3
true
false
false
false
false
false
zero
60,127,254
ObjectInputStream blocks on initialization Sockets
<p>As a school project I have to make an application on Android and Java that shares Objects for this it is required using Object Input and Output streams(it doesn't matter if it's not an efficient communication).</p> <p>Problems:</p> <ul> <li>The Server side stops and sits there when the ObjectInputStream is initial...
As a school project I have to make an application on Android and Java that shares Objects for this it is required using Object Input and Output streams(it doesn't matter if it's not an efficient communication). Problems: The Server side stops and sits there when the ObjectInputStream is initialized When i manually forc...
java|android|sockets|object|serialization
1
2020-02-08T13:31:42.997Z
2,020
2
13
5
118
1
435
50
5
3
true
false
false
false
false
false
low
60,127,269
Binary XML file line #18: Error inflating class androidx.recyclerview.widget.RecyclerView while Transaction to xml header
<p>I work on an app with kotlin and androidx and i create setting class was working normally till it crash and give me that error in logcat</p> <pre><code> E/AndroidRuntime: FATAL EXCEPTION: main Process: com.alserdar.evana, PID: 9425 android.view.InflateException: Binary XML file line #18: Binary XML file line #18: E...
I work on an app with kotlin and androidx and i create setting class was working normally till it crash and give me that error in logcat [CODE] i tried to implement implementation "androidx.legacy:legacy-preference-v14:1.0.0" and implementation 'androidx.core:core-ktx:1.2.0' implementation 'androidx.legacy:legacy-suppo...
android|kotlin|android-recyclerview|androidx
1
2020-02-08T13:33:24.107Z
2,020
2
13
5
224
0
640
121
4
2
true
true
false
false
false
false
low
60,127,447
Send Image and DTO from Retrofit to Spring
<p>I want to send from android retrofit a file and a DTO to a Spring Boot Server. I use Mutlipart with RequestBody. But so how i configured the api from the server, the server don't react to the call of the android app. Is my api from the server wrong?</p> <p>My API from the server is:</p> <pre><code>@PostMapping("i...
I want to send from android retrofit a file and a DTO to a Spring Boot Server. I use Mutlipart with RequestBody. But so how i configured the api from the server, the server don't react to the call of the android app. Is my api from the server wrong? My API from the server is: [CODE] The API from the android app is: [CO...
android|spring|spring-boot|retrofit|retrofit2
0
2020-02-08T13:53:52.313Z
2,020
2
13
5
303
0
393
42
5
3
true
true
false
false
false
false
zero
60,127,457
Calling native function from TypeScript in react-native
<p>Lately I needed a simple function to interact with the native code, but I decided not to build a package, because it wouldn't be very useful. I created the java files exactly as if they were from a plugin and registered it in MainApplication.</p> <p>I'm using typescript so now I'm struggling with the rn to java int...
Lately I needed a simple function to interact with the native code, but I decided not to build a package, because it wouldn't be very useful. I created the java files exactly as if they were from a plugin and registered it in MainApplication. I'm using typescript so now I'm struggling with the rn to java interaction. I...
android|typescript|react-native
2
2020-02-08T13:55:25.420Z
2,020
2
13
5
2,017
3
664
55
3
6
true
false
false
false
false
false
low
60,127,680
Gradle keeps forcing download to 4.6
<p>I have an android project, lately giving me headache. Because it keeps show a message:</p> <pre><code>Minimum supported Gradle version is 5.4.1. Current version is 4.6. </code></pre> <p>And it doesn't do anything because of that. I've tried changing distribuitionUrl to 5.4.1, no success. Tried invalidating cache a...
I have an android project, lately giving me headache. Because it keeps show a message: [CODE] And it doesn't do anything because of that. I've tried changing distribuitionUrl to 5.4.1, no success. Tried invalidating cache and restart, and every time I do this, it keeps forcing download version to 4.6 even deleting all ...
android-studio|gradle
0
2020-02-08T14:20:49.520Z
2,020
2
14
5
27
0
657
36
2
3
true
true
false
false
false
false
zero
60,127,726
Can not resolve reference: `Windows.Foundation.UniversalApiContract` in Android Application
<p>In my Xamarin.Forms Application for UWP, Android and iOS (unloaded for the moment) I added the following code:</p> <pre><code> StorageFolder localFolder = ApplicationData.Current.LocalFolder; databasePath = Path.Combine(localFolder.Path, databaseName); </code></pre> <p>This resulted in the addition of a refere...
In my Xamarin.Forms Application for UWP, Android and iOS (unloaded for the moment) I added the following code: [CODE] This resulted in the addition of a reference in the .Net Standard library as follows. [CODE] This in turn resulted in an error on the Android Application with the following text: [CODE] I do need the re...
c#|android|xamarin.forms
0
2020-02-08T14:26:43.053Z
2,020
2
14
5
898
1
463
91
3
3
true
false
false
false
false
false
zero
60,127,744
How to prevent Alert Dialog from being shut down
<p>I am using c# and Xamarin.Android.<br> I want to create an app, and when it realized it has a new version, it will let user download the new version and force itself off.<br> So I used AlertDialog.<br> My code: </p> <pre><code> if (NeedUpdate) { alertDialog = null; builde...
I am using c# and Xamarin.Android. I want to create an app, and when it realized it has a new version, it will let user download the new version and force itself off. So I used AlertDialog. My code: [CODE] In my code, NeedUpdate is a variable to store whether there's a new version. But the question has begun. In this a...
c#|xamarin.android
1
2020-02-08T14:28:48.277Z
2,020
2
14
5
91
1
789
48
2
1
true
false
false
false
false
false
low
60,127,757
SwipeRefreshLayout showing no conent and not able to refresh somethin
<p>When I try to use SwipeRefreshLayout with a BottomAppBar then the fragment shows no conent and the SwipeRefresh feature is not there. I also implemented it in a normal activity with an TopAppBar and it worked finde. Nevertheless, when I use the BottomAppBar nothing worked for me. I already spent hours of trying to s...
When I try to use SwipeRefreshLayout with a BottomAppBar then the fragment shows no conent and the SwipeRefresh feature is not there. I also implemented it in a normal activity with an TopAppBar and it worked finde. Nevertheless, when I use the BottomAppBar nothing worked for me. I already spent hours of trying to solv...
android|android-layout|android-appbarlayout
0
2020-02-08T14:31:09.283Z
2,020
2
14
5
76
1
448
69
3
2
true
false
false
false
false
false
zero
60,127,827
Define deserialization type with GSON
<p>I'm using Google Gson to de/serialize my app database to/from JSON. The app uses Room database with a custom class which has more than 20 fields, so for semplicity let's consider an example one. I recently changed the type of a field from String to JSON; Room managed the migration fine - just by creating a converter...
I'm using Google Gson to de/serialize my app database to/from JSON. The app uses Room database with a custom class which has more than 20 fields, so for semplicity let's consider an example one. I recently changed the type of a field from String to JSON; Room managed the migration fine - just by creating a converter cl...
java|android|json|gson
1
2020-02-08T14:39:01.013Z
2,020
2
14
5
50
0
1,076
37
4
2
true
true
false
false
false
false
low
60,127,875
How to create two tables in kivy , RecycleView
<p><strong>Hello everyone</strong>, I'm new in Kivy and i need your help .. i have a little question:</p> <p>I'd like to make a table in Kivy for Tow Class RV() &amp; VV(), but I don't know how can i return to second Class RV() and see the result !! now i can just see VV() Class in Kivy Window , can you help me pl...
Hello everyone , I'm new in Kivy and i need your help .. i have a little question: I'd like to make a table in Kivy for Tow Class RV() & VV(), but I don't know how can i return to second Class RV() and see the result !! now i can just see VV() Class in Kivy Window , can you help me plz [CODE] Thanks
python|class|android-recyclerview|return|kivy
0
2020-02-08T14:44:24.427Z
2,020
2
14
5
174
0
300
46
5
1
true
true
false
false
false
false
zero
60,127,885
Reading pictures from the storage
<p>I am practicing working with android programming and ran into this problem. In the view pager I have a fragment that holds a grid view loading images from <em><strong>ArrayList images</strong></em>. When I click on the thumbnail it will go to an activity show the full size image called <em><strong>FullScreenActivity...
I am practicing working with android programming and ran into this problem. In the view pager I have a fragment that holds a grid view loading images from ArrayList images . When I click on the thumbnail it will go to an activity show the full size image called FullScreenActivity .The problem is some images can load to...
android
0
2020-02-08T14:45:43.100Z
2,020
2
14
5
382
1
626
33
1
1
true
false
false
false
false
false
zero
60,127,987
i want to create android app that streams feed of a WiFi camera
<p>i want to create an android app like "v380 pro" that connects to a WiFi camera and streams the video feed from the camera. I however do not know how to go about this so any help is appreciated when it comes to what libraries i should use or any resources i can be pointed to.</p>
i want to create an android app like "v380 pro" that connects to a WiFi camera and streams the video feed from the camera. I however do not know how to go about this so any help is appreciated when it comes to what libraries i should use or any resources i can be pointed to.
android|android-wifi|ip-camera|onvif
0
2020-02-08T14:58:16.327Z
2,020
2
14
5
413
1
275
63
4
0
false
false
false
false
false
false
zero
60,128,074
Fragments newInstance
<p>Hi I'm learning now about Fragments and I have some doubts.</p> <p><strong>V1:</strong> So the correct way to create a new Fragment should be with &quot;newInstance&quot; instead of a constructor and would be something like this:</p> <pre><code> Fragment fragment = MyFragment.newInstance(variable); </code></pre> ...
Hi I'm learning now about Fragments and I have some doubts. V1: So the correct way to create a new Fragment should be with &quot;newInstance&quot; instead of a constructor and would be something like this: [CODE] And the code on the class &quot;MyFragment&quot; should be this: [CODE] New instance will receive the param...
android|android-fragments
0
2020-02-08T15:09:24.933Z
2,020
2
15
5
105
0
1,299
21
2
6
true
true
false
false
false
false
zero
60,128,077
Publishing same app for different customers on play store and app store
<h1>Context</h1> <p>We have an app (for both iOS and Android) that we would like to style differently for different customers. What I mean by this is that the functionality, features, navigation, layout etc. of the app will remain exactly the same but what will change is - fonts, icons, colours, button shapes,font size...
Context We have an app (for both iOS and Android) that we would like to style differently for different customers. What I mean by this is that the functionality, features, navigation, layout etc. of the app will remain exactly the same but what will change is - fonts, icons, colours, button shapes,font sizes etc. which...
android|ios|google-play|app-store
2
2020-02-08T15:09:41.730Z
2,020
2
15
5
797
1
1,996
71
4
0
false
false
false
false
false
false
low
60,128,115
How to save coordinates to Firebase
<p>I am trying to save location in Firebase. I can't find any information about how to save location in Firebase. And I develop my in Android Studio in Java. I put a button in layout and when I click to this button it should send coordinates to Firebase. But I don't know anything about saving data to Firebase.</p> <p>...
I am trying to save location in Firebase. I can't find any information about how to save location in Firebase. And I develop my in Android Studio in Java. I put a button in layout and when I click to this button it should send coordinates to Firebase. But I don't know anything about saving data to Firebase. Please if y...
javascript|java|android|firebase|android-studio
-1
2020-02-08T15:13:25.953Z
2,020
2
15
5
918
1
351
35
5
0
false
false
false
false
false
true
negative
60,128,225
How to enable permission for adb.log
<ul> <li>daemon not running; starting now at tcp:5037 adb F 02-08 20:48:54 2188 1112 main.cpp:49] cannot open C:\Users\HP\AppData\Local\Temp\adb.log: Permission denied</li> </ul>
daemon not running; starting now at tcp:5037 adb F 02-08 20:48:54 2188 1112 main.cpp:49] cannot open C:\Users\HP\AppData\Local\Temp\adb.log: Permission denied
android|adb
0
2020-02-08T15:26:25.137Z
2,020
2
15
5
410
0
158
36
2
0
false
true
false
false
false
false
zero
60,128,235
MPAndroidChart: Barchart xAxis label not centered - why?
<p>I have the following code snipped where I create a bar chart. It works fine, the only problem is that my X axis labels are not centered. They are aligned to the left of each bar. Can anyone help with some adjustments to the code to address this? I have found some similar questions but they have all related to group ...
I have the following code snipped where I create a bar chart. It works fine, the only problem is that my X axis labels are not centered. They are aligned to the left of each bar. Can anyone help with some adjustments to the code to address this? I have found some similar questions but they have all related to group bar...
android|bar-chart|mpandroidchart
1
2020-02-08T15:27:23.930Z
2,020
2
15
5
195
0
356
56
3
1
true
true
false
false
false
false
low
60,128,256
How to remove a tester's account from Google Play Console?
<p>In the <a href="https://play.google.com/apps/publish" rel="nofollow noreferrer">Google Play Console</a>, how can I remove a tester's account from open, closed or internal test tracks?</p> <ul> <li>I removed the email address from the tester list</li> <li>I clicked on the "Remove testers" button</li> </ul> <p>It ha...
In the Google Play Console , how can I remove a tester's account from open, closed or internal test tracks? I removed the email address from the tester list I clicked on the "Remove testers" button It had no effect at all.
android|account|google-play-console|beta-testing
0
2020-02-08T15:29:40.093Z
2,020
2
15
5
348
1
222
58
4
0
false
false
false
false
false
false
zero
60,128,566
Twilio chat, how set sum of chats to notification _bageCount
<hr> <p>Short description: I get push notification from <em>twilio chat</em>. But in my app I use 4 different chats (channels). So when I get field "<em>bage</em>" from notification it just show count of chats with new messages, but not amount of messages.</p> <p>How can I get the sum of unread messages from all chat...
Short description: I get push notification from twilio chat . But in my app I use 4 different chats (channels). So when I get field " bage " from notification it just show count of chats with new messages, but not amount of messages. How can I get the sum of unread messages from all chats? More info: I use react-native...
android|ios|react-native|twilio|twilio-programmable-chat
1
2020-02-08T16:07:05.123Z
2,020
2
16
5
324
1
1,301
60
5
0
false
false
false
false
false
false
low
60,128,582
Launch android apps on pepper´s tablet in Naoqi 2.5
<p>I installed an APK on my Pepper by following the instructions in this <a href="https://stackoverflow.com/questions/55817979/install-android-apps-on-pepper%C2%B4s-tablet-in-naoqi-2-5">link</a>.</p> <p>I used the following command: <code>qicli call ALTabletService._installApk http://198.18.0.1/apps/app-debug.apk</cod...
I installed an APK on my Pepper by following the instructions in this link . I used the following command: qicli call ALTabletService._installApk http://198.18.0.1/apps/app-debug.apk And get: [CODE] I don't know if this means that the installation succeeded or not but when using qicli call ALTabletService._listApks it ...
android|nao-robot|pepper
-1
2020-02-08T16:08:47.897Z
2,020
2
16
5
436
1
618
51
3
2
true
false
false
false
false
true
negative
60,128,609
Using wrap_content behavior and ellipsize if text too long
<p>I have three views on my layout <em>TextView1</em> <em>TextView2</em> and <em>ImageView</em>.</p> <p><em>TextView1</em> wraps content while <em>TextView2</em> aligned to end of <em>TextView1</em> <a href="https://i.stack.imgur.com/7VbGb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7VbGb.png" ...
I have three views on my layout TextView1 TextView2 and ImageView . TextView1 wraps content while TextView2 aligned to end of TextView1 I want to make TextView1 ellipsize in the end when its content too long while width of TextView1 TextView2 ImageView together have filled all width of layout I've tried a lot of option...
android|android-layout
0
2020-02-08T16:11:31.197Z
2,020
2
16
5
114
1
735
58
2
2
true
false
false
false
false
false
zero
60,128,614
Android Navigation Component: Self cycle destination with pop back stack by specific index
<p>I have a navigation graph like this </p> <p><a href="https://i.stack.imgur.com/mzGXJ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/mzGXJ.jpg" alt="navigation graph"></a></p> <p>It's a folder/file listing app, when click a folder it will navigate to the same fragment with new instance by the action defi...
I have a navigation graph like this It's a folder/file listing app, when click a folder it will navigate to the same fragment with new instance by the action defined by the graph. After I navigate to some folders and currently in Folder D, a breadcrumb of buttons like below. Root -> Folder A -> Folder B -> Folder C -> ...
android|android-architecture-components|android-architecture-navigation|android-navigation-graph
5
2020-02-08T16:11:47.697Z
2,020
2
16
5
958
0
486
90
4
1
true
true
false
false
false
false
low
60,128,678
Why doesn't my API and JSON app work in Android Studio
<p>I working on a weather channel app with API and JSON. I wrote all the code but it doesn't work, any help would be appreciated. The API for my app is from <a href="https://openweathermap.org/" rel="nofollow noreferrer">https://openweathermap.org/</a> and I ran it through Postman.</p> <p>Here is my <strong>activity_m...
I working on a weather channel app with API and JSON. I wrote all the code but it doesn't work, any help would be appreciated. The API for my app is from https://openweathermap.org/ and I ran it through Postman. Here is my activity_main.xml : [CODE] Here is my MainActivity.java : [CODE] and here is my AndroidManifest.x...
java|android|json|xml|api
0
2020-02-08T16:18:15.617Z
2,020
2
16
5
145
1
369
54
5
3
true
false
false
false
false
false
zero
60,128,691
I want to make a login without input form
<p>I want to make a login without input form, just use a button that authenticates to the custom field firebase, help me</p> <pre><code>TextView var_text; private DatabaseReference ref; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a...
I want to make a login without input form, just use a button that authenticates to the custom field firebase, help me [CODE] } enter image description here enter image description here
firebase|android-studio|firebase-realtime-database
0
2020-02-08T16:19:12.753Z
2,020
2
16
5
40
1
184
41
3
1
true
false
false
false
false
false
zero
60,128,773
VolleyError with null when invoking local rest api developed using PHP
<p>I have developed a php RestAPI and when i invoke them Postman, it is working fine. I am getting required responses: <a href="http://192.168.23.33/wopo/v1/registerUser.php" rel="nofollow noreferrer">http://192.168.23.33/wopo/v1/registerUser.php</a></p> <p>When i am calling the above API call with volley, it is getti...
I have developed a php RestAPI and when i invoke them Postman, it is working fine. I am getting required responses: http://192.168.23.33/wopo/v1/registerUser.php When i am calling the above API call with volley, it is getting into "public void onErrorResponse(VolleyError error)" where error is also null. I have configu...
android|android-volley
0
2020-02-08T16:28:43.930Z
2,020
2
16
5
21
0
395
70
2
1
true
true
false
false
false
false
zero
60,128,782
No GPS onLocationChanged callbacks while app in background?
<p>I have a working app that processes and logs GPS positions using the LocationManager's onLocationChanged() callback. It works fine <em>until I put the app in the background</em>, e.g. by going to another app using the "Recent Tasks" button or Home button. Updates resume when I bring it to the front again. Interestin...
I have a working app that processes and logs GPS positions using the LocationManager's onLocationChanged() callback. It works fine until I put the app in the background , e.g. by going to another app using the "Recent Tasks" button or Home button. Updates resume when I bring it to the front again. Interestingly, I do s...
cllocationmanager|android-gps
0
2020-02-08T16:29:46.773Z
2,020
2
16
5
82
1
915
59
2
0
false
false
false
false
false
false
zero
60,128,796
Data Sort Descendants Firebase
<p>How come it doesn't show every structure, but only the first of the repeated list? What am I doing wrong?</p> <p>I want to sort by desc rating</p> <p>Here is the structure of the data in Firebase, </p> <pre><code> Structure | id_structure | rating: 7 </code></p...
How come it doesn't show every structure, but only the first of the repeated list? What am I doing wrong? I want to sort by desc rating Here is the structure of the data in Firebase, [CODE] [CODE]
java|android|firebase|firebase-realtime-database
0
2020-02-08T16:31:25.643Z
2,020
2
16
5
35
0
196
30
4
2
true
true
false
false
false
false
zero
60,128,850
Flutter - RuntimeException after installing firebase_messaging onBackgroundMessage
<p>I followed firebase_messaging readme and I can run firebase messaging without onBackgroundMessage fine. When i try to setup background messages by following the readme, creating Application.java, changing the package and the AndroidManifest I get the following and app crashes on startup:</p> <pre><code>2020-02-08 1...
I followed firebase_messaging readme and I can run firebase messaging without onBackgroundMessage fine. When i try to setup background messages by following the readme, creating Application.java, changing the package and the AndroidManifest I get the following and app crashes on startup: [CODE] Application.java on Main...
android|flutter|firebase-cloud-messaging
0
2020-02-08T16:38:05.053Z
2,020
2
16
5
141
1
389
82
3
4
true
false
false
false
false
false
zero
60,128,878
How to pre download HERE Map tiles for offline usage
<p>I am working on here map offline navigation. To download any country map I have to use-</p> <pre><code>installMapPackages(List&lt;Integer&gt; packageIdList) </code></pre> <p>I am following <a href="https://developer.here.com/documentation/android-premium/dev_guide/topics/maps-offline-maploader.html" rel="nofollow ...
I am working on here map offline navigation. To download any country map I have to use- [CODE] I am following https://developer.here.com/documentation/android-premium/dev_guide/topics/maps-offline-maploader.html documentation for offline map. But I need only one country map tiles for offline navigation. Is there any wa...
android|here-api
-1
2020-02-08T16:41:08.553Z
2,020
2
16
5
311
1
509
52
2
1
true
false
false
false
false
true
negative
60,128,915
Alert dialog blur only part of the screen
<p>I have some problem with AlertDialog when I'm trying to blur his Background with Bitmap class.</p> <p>For some reason, when I'm calling pop up , it's blurring only part of screen. As you can see in the attached image, the layout of dialog not filling the screen. When I'm blurring other layouts, for example fragmen...
I have some problem with AlertDialog when I'm trying to blur his Background with Bitmap class. For some reason, when I'm calling pop up , it's blurring only part of screen. As you can see in the attached image, the layout of dialog not filling the screen. When I'm blurring other layouts, for example fragments , it's wo...
java|android|android-layout
1
2020-02-08T16:44:22.123Z
2,020
2
16
5
750
2
360
41
3
2
true
false
false
false
false
false
low
60,128,982
Mapsforge .map file are not shown on the osmdroid mapview
<p>I'm building an application to display the mapsforge .map file on the osmdroid mapview offline that should read the file from the phone memory sdcard and show on the map. I used the following code for this purpose but nothing is displayed. please guide me. Thanks</p> <pre><code>String path = "/sdcard"+PATH_BASE_OSM...
I'm building an application to display the mapsforge .map file on the osmdroid mapview offline that should read the file from the phone memory sdcard and show on the map. I used the following code for this purpose but nothing is displayed. please guide me. Thanks [CODE]
android|offline|osmdroid|mapsforge
0
2020-02-08T16:51:00.727Z
2,020
2
16
5
156
0
270
57
4
1
true
true
false
false
false
false
zero
60,128,992
My webview is not working on api level 29 - why?
<p>My code here. It is working on API 28. But in API 29 it is not working. So what is the problem? Please help me. Advance thanks for all. I am new in android studio. So please answer clearly. Thanks...</p> <pre><code> superProgressBar = findViewById(R.id.myProgressBar); superLinearLayout = findViewById(R.id.l...
My code here. It is working on API 28. But in API 29 it is not working. So what is the problem? Please help me. Advance thanks for all. I am new in android studio. So please answer clearly. Thanks... [CODE]
android|webview
0
2020-02-08T16:53:02.430Z
2,020
2
16
5
883
1
206
48
2
1
true
false
false
false
false
false
zero
60,129,178
ViewPager2/Tabs problem with ViewModel state
<p>I am following the MVVM pattern - meaning I have a ViewModel for each Fragment.</p> <p>I added <em>two</em> tabs by using ViewPager2.</p> <p>My adapter looks like this:</p> <pre><code>@Override public Fragment createFragment(int position) { switch (position) { case 0: return new MergedItem...
I am following the MVVM pattern - meaning I have a ViewModel for each Fragment. I added two tabs by using ViewPager2. My adapter looks like this: [CODE] The tabs are working. However, I noticed that the ViewModel of my MergedItemsFragment is behaving weirdly. Before I added tabs I navigated to the Fragment like this: [...
java|android|android-viewmodel|android-architecture-navigation|android-viewpager2
10
2020-02-08T17:16:13.157Z
2,020
2
17
5
2,989
2
1,411
44
5
4
true
false
true
false
true
false
medium
60,129,218
RecyclerView item's properites automatically changing while using DataBinding
<p>I'm trying to build a simple task using <strong>DataBinding</strong> (in Java) without any design pattern. The scenario is that there is a RecyclerView in which items/ products are binding from a HardCoded List. Whenever a user clicks on any <em>item</em>, it should show that <em>specific item</em> on the Left (blan...
I'm trying to build a simple task using DataBinding (in Java) without any design pattern. The scenario is that there is a RecyclerView in which items/ products are binding from a HardCoded List. Whenever a user clicks on any item , it should show that specific item on the Left (blank) side, with default values (propert...
java|android-studio|android-recyclerview|data-binding|android-databinding
0
2020-02-08T17:21:13.667Z
2,020
2
17
5
127
1
1,016
77
5
5
true
false
false
false
false
false
zero
60,129,254
canvas.scale with pivot, mouse coordinates
<p>I've been trying to get the mouse coordinates from scaled canvas. The canvas.scale(scale, scale) gives me the correct coordinates but if i use canvas.scale(scale, scale, pivotX, pivotY) the coordinates are wrong.</p> <pre><code>//onDraw canvas.scale(scaleFactor, scaleFactor); //default pivot x &amp; y = 0, 0 //canv...
I've been trying to get the mouse coordinates from scaled canvas. The canvas.scale(scale, scale) gives me the correct coordinates but if i use canvas.scale(scale, scale, pivotX, pivotY) the coordinates are wrong. [CODE] What do i need to do to get the correct coordinates from canvas.scale with different pivot other tha...
android|canvas|mouse|scale
0
2020-02-08T17:24:28.827Z
2,020
2
17
5
76
1
387
42
4
1
true
false
false
false
false
false
zero
60,129,259
Ionic can not add android
<p>I try to uninstal cordova then instal again but still not working</p> <p>[ERROR] An error occurred while running subprocess cordova.</p> <pre><code> cordova.cmd platform add android exited with exit code 1. Re-running this command with the --verbose flag may provide more information. </code></pre>
I try to uninstal cordova then instal again but still not working [ERROR] An error occurred while running subprocess cordova. [CODE]
android|cordova|ionic-framework
0
2020-02-08T17:25:07.703Z
2,020
2
17
5
38
1
132
25
3
1
true
false
false
false
false
false
zero
60,129,368
How to use a ListView or other technique to show complex messages?
<p>I started learning Android about one week ago. I've completed 15% of a book I read some of the docs. I've seen View, Viewgroup (layouts), the hierarchy of layout elements, some widgets like EditText and others. I am getting borred, I want to do something that assembles my knowledge until now. But there's something i...
I started learning Android about one week ago. I've completed 15% of a book I read some of the docs. I've seen View, Viewgroup (layouts), the hierarchy of layout elements, some widgets like EditText and others. I am getting borred, I want to do something that assembles my knowledge until now. But there's something in t...
android|android-studio
0
2020-02-08T17:37:16.080Z
2,020
2
17
5
18
0
965
66
2
1
true
true
false
false
false
false
zero
60,129,392
Uploading image from Android to my server (Permission Denied)
<p>I am trying to upload an image selected from gallery to my Springboot server, but when my service try to post the image I get permission denied for the file path. I have added these permissions to my AndroidManifest: </p> <pre><code> &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&g...
I am trying to upload an image selected from gallery to my Springboot server, but when my service try to post the image I get permission denied for the file path. I have added these permissions to my AndroidManifest: [CODE] I then ask for permission in real time to select the image, and then I want to place it in an in...
java|android|android-permissions|resttemplate
2
2020-02-08T17:39:29.460Z
2,020
2
17
5
1,836
2
3,025
61
4
5
true
false
false
false
false
false
low
60,129,447
How to fetch data just one time from firebase and don't listen to any data change
<p>I'm new to firebase and recently started working on this. Every tutorial I saw, is about how to listen to data change in cloud firestore. What if I want to fetch teh data just once and don't wanna set anyy listener on them. Example scenario is, just fetching the data user last login time or profile data of any user<...
I'm new to firebase and recently started working on this. Every tutorial I saw, is about how to listen to data change in cloud firestore. What if I want to fetch teh data just once and don't wanna set anyy listener on them. Example scenario is, just fetching the data user last login time or profile data of any user
android|firebase|google-cloud-firestore
0
2020-02-08T17:45:54.323Z
2,020
2
17
5
539
1
316
81
3
0
false
false
false
false
false
false
zero
60,129,475
How to send 100,000+ files as ArrayList<String> in Intent().putExtra?
<p>I want to pass an ArrayList() from one Intent to another Intent. Sometimes the size of the array will be more than 100,000. Pass such a huge array in android will throw a runtime exception. Is there any alternative to solve this issue? </p> <p>Here is the code from sending Intent: </p> <pre><code>var image = Array...
I want to pass an ArrayList() from one Intent to another Intent. Sometimes the size of the array will be more than 100,000. Pass such a huge array in android will throw a runtime exception. Is there any alternative to solve this issue? Here is the code from sending Intent: [CODE] Code for convertfile() : [CODE] Code fo...
android|android-intent
0
2020-02-08T17:48:25.183Z
2,020
2
17
5
49
0
521
69
2
3
true
true
false
false
false
false
zero
60,129,523
What does this mean download_url = task.getResult().getStorage().getDownloadUrl().toString()
<pre><code>StorageReference filePath = employee_photo_profile_reference.child(current_employee_ID+".jpg"); filePath.putFile(result_uri).addOnCompleteListener( new OnCompleteListener&lt;UploadTask.TaskSnapshot&gt;() { @Override public void onComplete(@NonNull Ta...
[CODE]
android|firebase|firebase-storage
-1
2020-02-08T17:53:55.773Z
2,020
2
17
5
88
1
6
92
3
1
true
false
false
false
false
true
negative
60,129,561
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'Map<dynamic, dynamic>' in flutter
<p>I'm fresh to <code>flutter</code>, trying to create my first application that is fetching some data from an API. here is how the API result body looks like : </p> <pre><code>[ { "id": 1, "user": { "username": "admin@admin.com" }, "name": "Ahmed Wagdi qwqw", ...
I'm fresh to flutter , trying to create my first application that is fetching some data from an API. here is how the API result body looks like : [CODE] And here is how am trying to call and parse it in flutter : [CODE] And finally, I got this error : [CODE]
android|ios|api|flutter|dart
-1
2020-02-08T17:58:39.850Z
2,020
2
17
5
189
1
258
101
5
3
true
false
false
false
false
true
negative
60,129,590
script.sh: line 1: ./gradlew: No such file or directory on Jenkins
<p>This is error message I got</p> <blockquote> <p>./gradlew clean assembleRelease /Users/bhanukaisuru/.jenkins/workspace/OrelGo@tmp/durable-b74adbad/script.sh: line 1: ./gradlew: No such file or directoryPipeline Script</p> </blockquote> <p>Pipeline Script</p> <pre><code>stage('Build Release APK') { ...
This is error message I got ./gradlew clean assembleRelease /Users/bhanukaisuru/.jenkins/workspace/OrelGo@tmp/durable-b74adbad/script.sh: line 1: ./gradlew: No such file or directoryPipeline Script Pipeline Script [CODE]
android|jenkins|gradle|jenkins-pipeline|continuous-deployment
2
2020-02-08T18:01:33.190Z
2,020
2
18
5
3,931
2
220
66
5
1
true
false
true
false
false
false
low
60,129,640
jquery show not working with href tel click on android chrome
<p>I created a webpage for mobile devices that I want to open a jquery ui dialog and then do the click of the number when link is clicked. all I did was a </p> <pre><code>$( "#dialog" ).dialog( "open" ) </code></pre> <p>and then a </p> <pre><code>$("#link").click(). </code></pre> <p>The link is <code>href="tel:2...
I created a webpage for mobile devices that I want to open a jquery ui dialog and then do the click of the number when link is clicked. all I did was a [CODE] and then a [CODE] The link is href="tel:2342342345" . If I am not on mobile, it will open the dialog fine, but obviously, ignores the click because it is not a p...
javascript|android|jquery|jquery-ui|mobile
0
2020-02-08T18:05:30.543Z
2,020
2
18
5
190
1
1,326
61
5
2
true
false
false
false
false
false
zero
60,129,670
Android EpoxyRecyclerView - switching orientation
<p>I am trying to build the following layout structure with Epoxy: </p> <p><a href="https://i.stack.imgur.com/5zMeT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5zMeT.png" alt="enter image description here"></a></p> <p>First three layouts are from EpoxyAModel. The fourth one is from the EpoxyBMo...
I am trying to build the following layout structure with Epoxy: First three layouts are from EpoxyAModel. The fourth one is from the EpoxyBModel. This is my buildModels function: [CODE] With this set up I am getting the following result: This is understandable, since the documentation of EpoxyRecyclerView says: If the ...
android|android-recyclerview|epoxy
0
2020-02-08T18:08:27.540Z
2,020
2
18
5
1,404
1
746
49
3
1
true
false
false
false
false
false
zero
60,129,702
context in main method in flutter
<p>I'd like my app loads all the localization strings before showing the first page. To get a translated string I use this instruction: <code>MyLocalizations.of(context).trans('key')</code></p> <p>In all other pages works but in main doesn't. I'd like to have the localized string without give the context variable. How...
I'd like my app loads all the localization strings before showing the first page. To get a translated string I use this instruction: MyLocalizations.of(context).trans('key') In all other pages works but in main doesn't. I'd like to have the localized string without give the context variable. How could I do? Thanks in a...
android|flutter|dart
-1
2020-02-08T18:10:57.730Z
2,020
2
18
5
1,859
1
533
33
3
0
false
false
false
false
false
true
negative
60,129,839
Android Navigation Bar has half transparant square behind it when making background color transparant
<p>I have a project for which I'm doing a transparant bottom nav bar, only the icons are visible.</p> <p>I've taken the default Bottom Navigation Activity project from Android Studio and made the background of the Nav Bar transparant:</p> <pre><code> android:background="@android:color/transparent" </code></pre> <...
I have a project for which I'm doing a transparant bottom nav bar, only the icons are visible. I've taken the default Bottom Navigation Activity project from Android Studio and made the background of the Nav Bar transparant: [CODE] Now there is a half transparant square with 8dp padding left and right going through the...
android|android-layout|navigationbar
1
2020-02-08T18:23:50.190Z
2,020
2
18
5
153
1
496
101
3
2
true
false
false
false
false
false
low
60,129,884
Android Bluetooth startDiscovery not working
<p>I am trying to learn how to use Bluetooth in android. However, I've already bumped into an issue to which I cannot seem to find the answer. When I am calling .startDiscovery() on the Bluetooth adapter it returns false, meaning that it failed. I am not doing anything strange, I get the bluetoothAdapter using Bluetoot...
I am trying to learn how to use Bluetooth in android. However, I've already bumped into an issue to which I cannot seem to find the answer. When I am calling .startDiscovery() on the Bluetooth adapter it returns false, meaning that it failed. I am not doing anything strange, I get the bluetoothAdapter using BluetoothAd...
android|android-studio|android-fragments|kotlin|bluetooth
1
2020-02-08T18:29:14.180Z
2,020
2
18
5
652
2
596
44
5
1
true
false
false
false
false
false
low