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
53,438,512
Received Intent at 'onActivityResult' don't contain my extras
<p>I've got some trouble with receive extras from a second activity.</p> <p>in Activit A:</p> <pre><code>... // start Activity B Intent i = new Intent(getBaseContext(), ActivityB.class startActivityForResult(i, 0); ... protected void onActivityResult(int requestCode, int resultCode, Intent data){ // get the extra...
I've got some trouble with receive extras from a second activity. in Activit A: [CODE] In Activity B: [CODE] The problem is that - back in Activity a - no extras are contained in data at 'onActivityResult'. Was is wrong here?
android|android-intent|onactivityresult
0
2018-11-22T22:10:33.320Z
2,018
11
22
3
63
1
225
61
3
2
true
false
false
false
false
false
zero
53,490,321
How to save questions and answers in pairs in android studio?
<p>I'm trying to create an app where the user inputs multiple questions and answers together, and the app later reads these. I'm having trouble saving more than just one value at a time to a file. This is what I have currently:</p> <pre><code>// write text to file public void WriteBtn(View v) { // add-write text i...
I'm trying to create an app where the user inputs multiple questions and answers together, and the app later reads these. I'm having trouble saving more than just one value at a time to a file. This is what I have currently: [CODE] and for reading: [CODE] Any help would be great!
java|android
1
2018-11-26T22:52:10.663Z
2,018
11
22
0
63
1
280
61
2
2
true
false
false
false
false
false
low
53,520,189
Is it possible to communicate between two android telephones through a USB hub?
<p>I have the following:</p> <p>Two Android devices connected to a USB-hub with its own power supply that supplies power to the two Android devices. The hub is also connected to my computer and both of them can be found by the Android Debug Bridge (adb).</p> <p>Is it possible to communicate between the two devices ov...
I have the following: Two Android devices connected to a USB-hub with its own power supply that supplies power to the two Android devices. The hub is also connected to my computer and both of them can be found by the Android Debug Bridge (adb). Is it possible to communicate between the two devices over the USB-hub whil...
android|usb
-1
2018-11-28T13:07:04.920Z
2,018
11
13
2
63
1
619
79
2
0
false
false
false
false
false
true
negative
53,613,846
AndroidPdfViewer is not working in KitKat Version
<p>I am Using this Library For AndroidPdfViewer <a href="https://github.com/barteksc/AndroidPdfViewer" rel="nofollow noreferrer">https://github.com/barteksc/AndroidPdfViewer</a></p> <pre><code>E/PDFView: load pdf error java.lang.NullPointerException at com.github.barteksc.pdfviewer.util.Util.toByteArray(U...
I am Using this Library For AndroidPdfViewer https://github.com/barteksc/AndroidPdfViewer [CODE] Here I am Getting nullPointer Exception on This Line. [CODE]
android-pdf-api|androidpdfviewer
1
2018-12-04T13:15:41.443Z
2,018
12
13
1
63
1
157
49
2
2
true
false
false
false
false
false
low
53,622,581
How to change the color shown in app window when you switch app
<p>I want to change the panel color (i dont know what is it called, check the photo) without changing the primaryColor in ThemeData.</p> <p><a href="https://i.stack.imgur.com/zJFbe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zJFbe.jpg" alt="enter image description here"></a></p> <p>I am using f...
I want to change the panel color (i dont know what is it called, check the photo) without changing the primaryColor in ThemeData. I am using flutter for this project. Can this be done in flutter itself or should i need to do it in android code.
android|dart|flutter
1
2018-12-04T22:45:37.180Z
2,018
12
22
1
63
1
244
63
3
0
false
false
false
false
false
false
low
53,643,791
Room changing ids on join query
<p>So we are using room library and it's easy to use but we have a problem it apperise like room is changing the ids of the objects when we use join queries. </p> <pre><code>@Query("select * from puzzles inner join list_puzzle_join on puzzles.id=list_puzzle_join.puzzleId where list_puzzle_join.puzzleListId=:puzzleList...
So we are using room library and it's easy to use but we have a problem it apperise like room is changing the ids of the objects when we use join queries. [CODE] for example when we get puzzles Using the puzzlesDAO we get this ids : [CODE] and when we use the join query we get : [CODE] is it possible to get the correct...
android|sqlite|join|many-to-many|android-room
0
2018-12-06T02:36:39.373Z
2,018
12
2
3
63
1
355
31
5
3
true
false
false
false
false
false
zero
53,755,952
Trying to add relations in Backendless. No error but total count of relations added is always 0
<p>Hi guys I am trying to save objects with relations in Backendless via API. I have two classes namely Task and Reminder. A task can be associated with many reminders hence I want a 1:N relationship between the Task table and Reminder table in Backendless. My Task class is as follows:</p> <pre><code>public class Task...
Hi guys I am trying to save objects with relations in Backendless via API. I have two classes namely Task and Reminder. A task can be associated with many reminders hence I want a 1:N relationship between the Task table and Reminder table in Backendless. My Task class is as follows: [CODE] Reminder Class: [CODE] I am s...
android|backendless
0
2018-12-13T06:14:51.277Z
2,018
12
6
3
63
1
905
95
2
3
true
false
false
false
false
false
zero
53,576,195
Xamarin.Forms Java.exe exited with code 1
<p>I've seen a few people encounter this issue with the heap size, which seems to be the issue in my case:</p> <pre><code>2&gt; Could not reserve enough space for 1048576KB object heap (TaskId:336) </code></pre> <p>I tried manually setting it to 1G:</p> <p><a href="https://i.stack.imgur.com/AcbhF.png" rel="nofollow...
I've seen a few people encounter this issue with the heap size, which seems to be the issue in my case: [CODE] I tried manually setting it to 1G: Got the same error, realised the space required is actually greater than 1G (it's about 1.04GB), so I set it to 2G. But this just escalated the error: [CODE] I thought I'd go...
xamarin|xamarin.forms|xamarin.android
0
2018-12-02T00:09:26.453Z
2,018
12
0
6
319
1
732
41
3
2
true
false
false
false
false
false
zero
53,509,446
How to call computeChargeTimeRemaining , Android BatteryManager?
<p>What is the proper way to call computeChargeTimeRemaining ? The method doesn't exist when I try:</p> <pre><code>BatteryManager mBatteryManager = (BatteryManager)context.getSystemService(Context.BATTERY_SERVICE); long time = mBatteryManager.computeChargeTimeRemaining(); </code></pre>
What is the proper way to call computeChargeTimeRemaining ? The method doesn't exist when I try: [CODE]
android|batterymanager
2
2018-11-27T22:50:03.120Z
2,018
11
22
1
575
1
103
64
2
1
true
false
false
false
false
false
low
53,598,567
How many processes may be in one android app? What is max count?
<p>How many processes may be in one android app? </p> <p>We can added more than one process using manifest in android. What is max count?</p>
How many processes may be in one android app? We can added more than one process using manifest in android. What is max count?
android
3
2018-12-03T17:11:03.360Z
2,018
12
17
0
575
1
126
64
1
0
false
false
false
false
false
false
low
53,708,543
com.apollographql.apollo.exception.ApolloHttpException: HTTP 500
<p>I am getting this exception using the apollo graphql client for android.</p> <pre><code>com.apollographql.apollo.exception.ApolloHttpException: HTTP 500 </code></pre> <p>I used the same query in <a href="https://insomnia.rest/download/" rel="nofollow noreferrer">Insomnia</a> and it is working fine.</p> <p>Here's th...
I am getting this exception using the apollo graphql client for android. [CODE] I used the same query in Insomnia and it is working fine. Here's the query: [CODE] Any ideas how to fix this? I am also using this same query in iOS app with apollo client and it is also working fine.
android|graphql|apollo
0
2018-12-10T15:15:43.820Z
2,018
12
15
0
575
1
280
64
3
2
true
false
false
false
false
false
zero
53,569,299
react-navigation composing multiple navigations
<p>Imagine I have three states in my application:</p> <ol> <li>Home</li> <li>Settings</li> <li>Messages</li> </ol> <p>I want to show first two link to these states in the bottom of screen, I can achieve that with this code:</p> <pre><code>const routeConfig = { Profile: { screen: Profile }, Settin...
Imagine I have three states in my application: Home Settings Messages I want to show first two link to these states in the bottom of screen, I can achieve that with this code: [CODE] and I export it as my root component with this: [CODE] Now I want to show the third link, Messages in a drawer navigation, I see people d...
android|reactjs|react-native|react-navigation|react-navigation-drawer
1
2018-12-01T09:10:18.073Z
2,018
12
9
5
831
1
726
47
5
4
true
false
false
false
false
false
low
53,402,053
error: [Dagger/MissingBinding] when trying building the project
<p>I have a service class and I want to provide it via Dagger. But I get this error below:</p> <blockquote> <p>error: [Dagger/MissingBinding] service.KeyStoreService cannot be provided without an @Inject constructor or an @Provides-annotated method. service.KeyStoreService is provided at di.component.Applicati...
I have a service class and I want to provide it via Dagger. But I get this error below: error: [Dagger/MissingBinding] service.KeyStoreService cannot be provided without an @Inject constructor or an @Provides-annotated method. service.KeyStoreService is provided at di.component.ApplicationComponent.getKeyStoreService()...
java|android|dependency-injection|dagger-2|dagger
1
2018-11-20T21:45:43.457Z
2,018
11
21
1
1,087
1
610
63
5
3
true
false
false
false
false
false
low
53,433,969
What are the package names for Facebook Lite and Messenger Lite?
<p>I was able to open Facebook and Messenger apps though my app using <code>com.facebook.katana</code> and <code>com.facebook.orca</code>. However, there are also <strong>lite</strong> versions of the two. The thing is, I couldn't find the package name of these apps. I tried writing <code>com.facebook.katana.lite</code...
I was able to open Facebook and Messenger apps though my app using com.facebook.katana and com.facebook.orca . However, there are also lite versions of the two. The thing is, I couldn't find the package name of these apps. I tried writing com.facebook.katana.lite , ...lite.katana .. and so on. But no success... How can...
android|facebook|android-studio|facebook-graph-api|android-intent
6
2018-11-22T15:19:09.197Z
2,018
11
15
3
7,231
1
381
64
5
0
false
false
true
false
false
false
medium
53,434,513
Use variable as array name in pageData
<p>I want to call the same ViewPagerActivity with intents, but as source in pageData for view pager I want to use different arrays, according to the activity, which call view pager. So, I tried this</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte...
I want to call the same ViewPagerActivity with intents, but as source in pageData for view pager I want to use different arrays, according to the activity, which call view pager. So, I tried this [CODE] In the start activity "numbers" I have intent.putExtra("ArrayName", "numbers"); startActivity(intent); and want to ge...
android|arrays|android-intent|dynamic-variables
0
2018-11-22T15:52:40.267Z
2,018
11
15
3
64
1
605
38
4
1
true
false
false
false
false
false
zero
53,515,301
Google Cloud Vision produce duplicate files in android studio
<p>I'm using android studio and cloud vision in order to detect faces features in a picture. When compiling, I get this error (About cloud vision V 1.53):</p> <pre><code>Duplicate files copied in APK META-INF/INDEX.LIST File1: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-cor...
I'm using android studio and cloud vision in order to detect faces features in a picture. When compiling, I get this error (About cloud vision V 1.53): [CODE] My Gradles dependencies are: [CODE]
android|api|gradle
0
2018-11-28T08:41:31.190Z
2,018
11
8
2
64
1
194
61
3
2
true
false
false
false
false
false
zero
53,582,199
launcher animation when phone is unlocked
<p>I'm new to Android and I'm trying to make a launcher as my first Android project. I've done the basic work of displaying installed apps. Now I want to add animations to improve user experience. But I'm not able to figure out the following two things :</p> <ol> <li><p>How to add animation when the phone is just unlo...
I'm new to Android and I'm trying to make a launcher as my first Android project. I've done the basic work of displaying installed apps. Now I want to add animations to improve user experience. But I'm not able to figure out the following two things : How to add animation when the phone is just unlocked and apps are di...
android|animation|android-animation|android-launcher
0
2018-12-02T16:20:30.200Z
2,018
12
16
6
64
1
564
41
4
0
false
false
false
false
false
false
zero
53,617,037
PHP: How do i write variables in PHP from different tables of the same MYSQL database
<p>So i am writing an api code using Slim framework in Php to allow me get data from a database with multiple tables. However the some of the tables contain same names especially userid given the users table is connected to almost all the other tables.</p> <p>Here is my code in DbConnect under includes:</p> <pre><cod...
So i am writing an api code using Slim framework in Php to allow me get data from a database with multiple tables. However the some of the tables contain same names especially userid given the users table is connected to almost all the other tables. Here is my code in DbConnect under includes: [CODE] I have a User.java...
java|php|mysql|android-studio
1
2018-12-04T16:08:53.490Z
2,018
12
16
1
64
1
608
85
4
3
true
false
false
false
false
false
low
53,700,446
Android application distribution after Google App Signing
<p>Now we can use "App Signing by Google play" to sign our apps and will not have to manage keystores. But we use Jenkins for build creation and then share it with customers for testing via HockeyApp. <strong>How can we integrate Google's App Signing along with Jenkins and HockeyApp for testing before actual release?</...
Now we can use "App Signing by Google play" to sign our apps and will not have to manage keystores. But we use Jenkins for build creation and then share it with customers for testing via HockeyApp. How can we integrate Google's App Signing along with Jenkins and HockeyApp for testing before actual release?
android|jenkins|google-play|android-app-signing
1
2018-12-10T06:22:49.460Z
2,018
12
6
0
64
1
307
57
4
0
false
false
false
false
false
false
low
53,486,375
Scaling gradle tasks for multiple device support
<p>My current setup for instrumentation tests cannot handle the screenshots saved to each device during test sharding. It doesn't know what to do because it detects multiple devices, and so those tasks all fail. I'm trying to figure out how to scale it so regardless of how many devices are being used to run my tests, w...
My current setup for instrumentation tests cannot handle the screenshots saved to each device during test sharding. It doesn't know what to do because it detects multiple devices, and so those tasks all fail. I'm trying to figure out how to scale it so regardless of how many devices are being used to run my tests, whet...
android|android-gradle-plugin|adb|android-espresso|android-instrumentation
0
2018-11-26T17:40:10.093Z
2,018
11
17
0
320
1
1,968
48
5
5
true
false
false
false
false
false
zero
53,588,916
Exoplayer Aspect Ratio in Android 7+
<p>I'm having a problem when making video apps for android tv using exoplayer. In android 6 (Api 23), I can make the aspect ratio like this:</p> <p><a href="https://i.stack.imgur.com/VeIGq.jpg" rel="nofollow noreferrer"> <img src="https://i.stack.imgur.com/VeIGq.jpg" width="350"/></a></p> <p>But somehow in android 7+...
I'm having a problem when making video apps for android tv using exoplayer. In android 6 (Api 23), I can make the aspect ratio like this: But somehow in android 7+ (API 24), the result is like this: I don't know where is the problem because I'm using the same code and version. I already implement: [CODE] But the result...
android|aspect-ratio|android-tv|exoplayer|exoplayer2.x
0
2018-12-03T07:00:22.330Z
2,018
12
7
0
320
1
402
36
5
1
true
false
false
false
false
false
zero
53,636,223
Mapbox navigation finish route
<p>I use Mapbox Navigation turn-by-turn UI and want to do something after finish route. I can't find function for this. Does anyone know how to do this?</p>
I use Mapbox Navigation turn-by-turn UI and want to do something after finish route. I can't find function for this. Does anyone know how to do this?
android|navigation|mapbox
0
2018-12-05T16:01:57.157Z
2,018
12
16
2
320
1
149
30
3
0
false
false
false
false
false
false
zero
53,738,705
Fallback for unknown properties in gradle with elvis operator
<p>I want to get following to work:</p> <pre><code>android { compileSdkVersion setup?.compileSdk ?: 28 } </code></pre> <p>But this does fail with the following exception if the setup is not defined:</p> <blockquote> <p>Could not get unknown property 'setup' for the object of type com.android.build.gradle.Libra...
I want to get following to work: [CODE] But this does fail with the following exception if the setup is not defined: Could not get unknown property 'setup' for the object of type com.android.build.gradle.LibraryExtension. So I can rewrite it to following, which will work: [CODE] Problem If I use this, I have to define ...
android|gradle|android-gradle-plugin
3
2018-12-12T08:16:00.893Z
2,018
12
8
2
320
1
505
61
3
2
true
false
false
false
false
false
low
53,441,538
HERE maps Turn by turn navigation text in android
<p>This rest end point of HERE (<a href="https://developer.here.com/documentation/routing/topics/resource-calculate-route.html" rel="nofollow noreferrer">https://developer.here.com/documentation/routing/topics/resource-calculate-route.html</a>) returns response including the maneuver instruction in either text or html ...
This rest end point of HERE ( https://developer.here.com/documentation/routing/topics/resource-calculate-route.html ) returns response including the maneuver instruction in either text or html format. This is missing incase of android premium SDK. Maneuver object doesn't have instruction text with it. Should I create m...
android|navigation|maps|here-api
0
2018-11-23T06:23:55.563Z
2,018
11
6
4
832
1
888
49
4
0
false
false
false
false
false
false
zero
53,685,355
Post-oreo notification background color
<p>I am trying to set a color for my notification in android Pie, but having followed the info on <a href="https://developer.android.com/reference/android/app/Notification.Builder.html#setColorized(boolean)" rel="nofollow noreferrer">Android Developers</a>, I can't seem to get it to work, i.e. the notification stays wh...
I am trying to set a color for my notification in android Pie, but having followed the info on Android Developers , I can't seem to get it to work, i.e. the notification stays white. Here is my code: [CODE] I would be grateful for some pointers on this, thanks!
java|android|notifications|android-8.0-oreo
0
2018-12-08T17:56:48.717Z
2,018
12
17
5
1,088
1
261
39
4
1
true
false
false
false
false
false
zero
53,624,130
How to set Default Dialer for functions under test?
<p>I know from <a href="https://developer.android.com/guide/topics/connectivity/telecom/selfManaged" rel="nofollow noreferrer">https://developer.android.com/guide/topics/connectivity/telecom/selfManaged</a>, that you can set the default dialer by having the necessary items in your manifest and permissions listed. One o...
I know from https://developer.android.com/guide/topics/connectivity/telecom/selfManaged , that you can set the default dialer by having the necessary items in your manifest and permissions listed. One of those being the Dial intent. What i'm trying to do is build a library that does all of these content provider calls ...
android|integration-testing|android-dialer
0
2018-12-05T02:07:18.120Z
2,018
12
2
2
1,344
1
1,109
51
3
0
false
false
false
false
false
false
zero
53,364,161
How to transfer checked value of a radio button to a text view in another activity?
<p>I have 2 activities. In activity An I have a radio group consist of 4 radio buttons.</p> <p>In activity B, I have an empty text view. the user can only choose one radio button.</p> <p>I want to transfer the checked value of a radio button to the text view ,which is in the second activity.</p> <p>Update:I've found...
I have 2 activities. In activity An I have a radio group consist of 4 radio buttons. In activity B, I have an empty text view. the user can only choose one radio button. I want to transfer the checked value of a radio button to the text view ,which is in the second activity. Update:I've found the solution here. https:/...
android|android-studio
-1
2018-11-18T18:28:19.767Z
2,018
11
18
6
65
1
455
83
2
0
false
false
false
false
false
true
negative
53,410,714
YouTube Player View Buffered Video Lost
<p>On Orientation change, the buffered video stream is lost and the player reloads the video and then plays it. How to avoid the loss of buffered stream. I have initialised my player in the following way.</p> <pre><code>@Override public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTub...
On Orientation change, the buffered video stream is lost and the player reloads the video and then plays it. How to avoid the loss of buffered stream. I have initialised my player in the following way. [CODE]
android|youtube|youtube-api|android-youtube-api
0
2018-11-21T11:02:52.310Z
2,018
11
11
2
65
1
208
39
4
1
true
false
false
false
false
false
zero
53,475,765
Reduce UI Automation Test Time in Android
<p>I wrote a UI Automation test using UI Automator. Here are the test steps.</p> <ol> <li>Open My App</li> <li>Open Settings</li> <li>Click Advance Features(Samsung Only)</li> <li>Enable Finger Sensor Gesture</li> <li>Open Recent Apps</li> <li>Open My App</li> </ol> <p>This whole automation test takes 8-7 seconds. Is...
I wrote a UI Automation test using UI Automator. Here are the test steps. Open My App Open Settings Click Advance Features(Samsung Only) Enable Finger Sensor Gesture Open Recent Apps Open My App This whole automation test takes 8-7 seconds. Is there any workaround to reduce this test time to 4-5 seconds or is there any...
android|automation|automated-tests|ui-automation
1
2018-11-26T06:28:33.707Z
2,018
11
6
0
65
1
435
41
4
0
false
false
false
false
false
false
low
53,483,619
Retrofit with Dagger 2 - android
<p>I am using from bellow sample:</p> <p><a href="https://medium.com/@iammert/new-android-injector-with-dagger-2-part-1-8baa60152abe" rel="nofollow noreferrer">New Android Injector with Dagger 2</a></p> <p>How can I define my <code>SQLite Connection</code> and <code>retrofit</code> and etc... in this class <code>AppM...
I am using from bellow sample: New Android Injector with Dagger 2 How can I define my SQLite Connection and retrofit and etc... in this class AppModule
android|retrofit2|dagger-2
-1
2018-11-26T14:48:19.447Z
2,018
11
14
0
65
1
151
32
3
0
false
false
false
false
false
true
negative
53,541,718
Right intent-flags to go back to last opened activity regardless of app affiliation
<p>In may app there is an activity "AlertActivity" that is started from a service once in a while (think of it as an alarm going off). The user can choose to interact with this alarm or cancel it, if he/she is busy. When the user cancels the activity, I finish() it and would like the user to be brought back to the acti...
In may app there is an activity "AlertActivity" that is started from a service once in a while (think of it as an alarm going off). The user can choose to interact with this alarm or cancel it, if he/she is busy. When the user cancels the activity, I finish() it and would like the user to be brought back to the activit...
android|android-intent|android-activity|back-stack
0
2018-11-29T14:53:13.117Z
2,018
11
14
3
65
1
983
83
4
2
true
false
false
false
false
false
zero
53,549,163
Android studio SQLite can't add more than one string into database table
<p>I'm creating an app that generates a random recipe based upon certain filters, with features to add and delete recipes. Right now I'm working on adding a recipe (which will be inputted as a URL), which is done by inserting data collected from two EditText boxes into the database. When filling out the text fields and...
I'm creating an app that generates a random recipe based upon certain filters, with features to add and delete recipes. Right now I'm working on adding a recipe (which will be inputted as a URL), which is done by inserting data collected from two EditText boxes into the database. When filling out the text fields and cl...
java|sqlite|android-studio|android-toast
0
2018-11-29T23:36:40.620Z
2,018
11
23
3
65
1
725
72
4
3
true
false
false
false
false
false
zero
53,688,295
Background service kill my app when start application
<p>Want to run a service in back ground when SMS or call received then background service call the flash on and off. Application works on marshmallow and low version. But not work on Oreo 8.0 and Pie 9.0. Due to Background service application crash after 10 second when application open. </p> <pre><code>Android.app.Re...
Want to run a service in back ground when SMS or call received then background service call the flash on and off. Application works on marshmallow and low version. But not work on Oreo 8.0 and Pie 9.0. Due to Background service application crash after 10 second when application open. [CODE] How we fix this issue?
java|android|crash|android-8.0-oreo
-1
2018-12-09T00:21:00.113Z
2,018
12
0
6
65
1
314
53
4
1
true
false
false
false
false
true
negative
53,357,791
How to show data in a textview with room persistence in android studio?
<p>Hi I'm doing a project for university and I'm using room persistence to manage my sqlite database but It's kind of confused to full understand room persistence and now I want to show some data that is in my tables in textviews or spinners but I don't know how.</p> <p>I already show data in a RecyclerView like a lis...
Hi I'm doing a project for university and I'm using room persistence to manage my sqlite database but It's kind of confused to full understand room persistence and now I want to show some data that is in my tables in textviews or spinners but I don't know how. I already show data in a RecyclerView like a list, I know t...
android|android-studio|android-room
1
2018-11-18T04:05:45.543Z
2,018
11
4
6
321
1
441
71
3
0
false
false
false
false
false
false
low
53,508,422
Method must be overridden in [proguard.classfile.editor.AttributeAdder] if ever called
<p>I'm updating <code>com.google.android.gms:play-services-ads</code> from 15.0.1 to 17.1.1 and I'm getting the following error when attempting to run the app:</p> <blockquote> <p>Method must be overridden in [proguard.classfile.editor.AttributeAdder] if ever called</p> </blockquote> <p>When I go back to 15.0.1 eve...
I'm updating com.google.android.gms:play-services-ads from 15.0.1 to 17.1.1 and I'm getting the following error when attempting to run the app: Method must be overridden in [proguard.classfile.editor.AttributeAdder] if ever called When I go back to 15.0.1 everything works fine. When I disable Proguard everything works ...
android|admob|proguard|android-proguard
2
2018-11-27T21:28:14.857Z
2,018
11
21
1
577
1
600
86
4
0
false
false
false
false
false
false
low
53,536,121
Logging in with FireBase facebook authentication, getCurrentUser() keeps returning null
<p>I am struggling right now to pass on the CurrentUser when I am logging in with Facebook (with firebase authentication). It has been working before, but as I log into my application now, the currentuser keeps returning null.</p> <p>I think it might be because I am already logged into the app with Facebook, but the f...
I am struggling right now to pass on the CurrentUser when I am logging in with Facebook (with firebase authentication). It has been working before, but as I log into my application now, the currentuser keeps returning null. I think it might be because I am already logged into the app with Facebook, but the firebase aut...
android|facebook|firebase|firebase-authentication|facebook-authentication
0
2018-11-29T09:50:13.607Z
2,018
11
9
3
66
1
857
87
5
1
true
false
false
false
false
false
zero
53,708,616
ConstraintLayout by Code - Set Constraint too soon
<p>Good day,</p> <p>I need to show a list of fidelity cards, one on the others with a small border margin, and while clicking on it, it reveal it completely while sliding.</p> <p>In a fragment, I use a <code>ConstraintLayout</code> somewhere in the screen that I populate by code. I add all child's (total known after...
Good day, I need to show a list of fidelity cards, one on the others with a small border margin, and while clicking on it, it reveal it completely while sliding. In a fragment, I use a ConstraintLayout somewhere in the screen that I populate by code. I add all child's (total known after WS called) into the ConstraintLa...
android|kotlin|constraint-layout-chains
0
2018-12-10T15:20:03.770Z
2,018
12
15
0
66
1
799
50
3
2
true
false
false
false
false
false
zero
53,644,179
Too many Smack Cache Executor thread created
<h3>Smack version: 4.2.4</h3> <p>When a large number of messages (normal messages and delay-resent messages) comes enters the android client, smack creates 100~200 sleeping Smack Cache Executor threads. This sudden influx of threads causes the android client to become unresponsive (ANR error). </p> <p>Under normal op...
Smack version: 4.2.4 When a large number of messages (normal messages and delay-resent messages) comes enters the android client, smack creates 100~200 sleeping Smack Cache Executor threads. This sudden influx of threads causes the android client to become unresponsive (ANR error). Under normal operations, there would ...
android|multithreading|smack
1
2018-12-06T03:25:35.207Z
2,018
12
3
3
322
1
1,346
44
3
1
true
false
false
false
false
false
low
53,795,244
How to export unity 3d scene to Android Studio
<p>I was working on android project, I needed to use Unity</p> <p>I tried a very simple scene with a cube and simple UI text object as shown below <a href="https://i.stack.imgur.com/gcfn5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gcfn5.png" alt="simple scene"></a></p> <p>I spent a little time...
I was working on android project, I needed to use Unity I tried a very simple scene with a cube and simple UI text object as shown below I spent a little time searching how to use this scene in Android Studio. I got a lot of tutorials but nothing worked for me. I tried to export with this settings below: and with this ...
c#|android|unity3d
1
2018-12-15T16:50:17.937Z
2,018
12
16
5
578
1
826
46
3
0
false
false
false
false
false
false
low
53,364,859
Maintaining BackStack In Bottom Navaigation
<p>I am using bottomNavigation in my android app. I have 5 fragments A, B, C, D, E. The fragment B contains another fragment says B1. When I backpress on fragment B1, it closes the app. How can I move to fragment B when backpressed from fragment B1.</p> <p>Here is my code</p> <pre><code> bottomNavigationView.setOnNav...
I am using bottomNavigation in my android app. I have 5 fragments A, B, C, D, E. The fragment B contains another fragment says B1. When I backpress on fragment B1, it closes the app. How can I move to fragment B when backpressed from fragment B1. Here is my code [CODE]
android|android-fragments
0
2018-11-18T19:55:01.193Z
2,018
11
19
6
67
1
269
43
2
1
true
false
false
false
false
false
zero
53,376,542
Android - Application Level socket.io
<p>I'm working with Socket, using Socket.io Android Library &amp; it's implemented well and working successfully. It's done, But it's in only single activity.</p> <p>Now I want socket implementation in the entire application. Something more reliable and easy. I need socket listeners and methods to emit and receive in ...
I'm working with Socket, using Socket.io Android Library & it's implemented well and working successfully. It's done, But it's in only single activity. Now I want socket implementation in the entire application. Something more reliable and easy. I need socket listeners and methods to emit and receive in a single place ...
android|sockets|design-patterns|socket.io
0
2018-11-19T14:16:30.393Z
2,018
11
14
0
67
1
598
37
4
0
false
false
false
false
false
false
zero
53,479,365
Get error when trying to add custom header for recylerview
<p>I'm trying to add <code>header</code> to my recylerview so that it will look like <code>&lt;thead&gt;</code> (in HTML table). So, I'm following this tutorial <a href="https://en.proft.me/2017/11/25/how-add-custom-header-recylerview/" rel="nofollow noreferrer">https://en.proft.me/2017/11/25/how-add-custom-header-recy...
I'm trying to add header to my recylerview so that it will look like <thead> (in HTML table). So, I'm following this tutorial https://en.proft.me/2017/11/25/how-add-custom-header-recylerview/ Here is my adapter [CODE] and here is my sales_header_model [CODE] My header class [CODE] and the listener ListHeader [CODE] The...
android|android-recyclerview
0
2018-11-26T10:42:22.297Z
2,018
11
10
0
67
1
486
58
2
5
true
false
false
false
false
false
zero
53,481,336
How to properly deliver events from the ViewModel?
<p>I need some way to deliver events that should be done only once from the ViewModel. Currently, I'm using LiveData for this. Use case: </p> <p>I'm building some intent and then I should deliver it to fragment. The problem is obvious, after rotate, I get old data and startAtivity runs once again. I don't want to use...
I need some way to deliver events that should be done only once from the ViewModel. Currently, I'm using LiveData for this. Use case: I'm building some intent and then I should deliver it to fragment. The problem is obvious, after rotate, I get old data and startAtivity runs once again. I don't want to use some hacks w...
android|mvvm|android-architecture-components
1
2018-11-26T12:40:16.453Z
2,018
11
12
0
67
1
573
50
3
0
false
false
false
false
false
false
low
53,502,702
Does background services count in Firebase's currently active users?
<p>I have an application using background services (foreground in API 26+), and I'm implementing firebase analytics. Does firing the service count as a user activity in firebase? and does it differ between foreground services and background services in pre-oreo OS version ? </p>
I have an application using background services (foreground in API 26+), and I'm implementing firebase analytics. Does firing the service count as a user activity in firebase? and does it differ between foreground services and background services in pre-oreo OS version ?
android|firebase|firebase-analytics
0
2018-11-27T15:16:00.010Z
2,018
11
15
1
67
1
271
68
3
0
false
false
false
false
false
false
zero
53,665,567
MARKERS or POLY LINES not displaying in google map
<p>maps activity package com.example.user.pavai;</p> <pre><code>import android.support.v4.app.FragmentActivity; import android.os.Bundle; import android.util.Log; import android.widget.Toast; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.a...
maps activity package com.example.user.pavai; [CODE] MANIFEST [CODE] I am getting a string value from previous activity and parsing it into double value and using it for latitude and longitude but when running the app there is no map and poly line displayed what can i do to fix this issue but when i tried the same code...
java|android|google-maps|manifest
0
2018-12-07T08:10:22.627Z
2,018
12
8
4
67
1
393
50
4
2
true
false
false
false
false
false
zero
53,719,069
Is onReceive a proper method to do caller permission check?
<p>Is calling into checkCallingPermsision() API in onReceive method of a Broadcast receiver a proper method to check the caller app's permission?</p> <p>onReceive (Context context, Intent intent)</p> <p>Does the context passed to onReceive above have access to the calling app UID/PID, so we can just call into context...
Is calling into checkCallingPermsision() API in onReceive method of a Broadcast receiver a proper method to check the caller app's permission? onReceive (Context context, Intent intent) Does the context passed to onReceive above have access to the calling app UID/PID, so we can just call into context.checkCallingPermis...
android|security|ipc
1
2018-12-11T07:08:57.130Z
2,018
12
7
1
67
1
382
59
3
0
false
false
false
false
false
false
low
53,533,944
Launch Android email client in Unity, specifying recipient, subject, and body as intent extras... getting NoSuchFieldError
<p>I'm attempting to launch Android's email client (well, technically, whatever the user decides to pick when prompted, but really... the email client) from within Unity Player to allow the user to send email with the recipient, subject, and body pre-populated (they can edit it if they want, but the expectation is that...
I'm attempting to launch Android's email client (well, technically, whatever the user decides to pick when prompted, but really... the email client) from within Unity Player to allow the user to send email with the recipient, subject, and body pre-populated (they can edit it if they want, but the expectation is that th...
c#|android|unity3d
0
2018-11-29T07:35:09.253Z
2,018
11
7
3
323
1
2,067
122
3
2
true
false
false
false
false
false
zero
53,408,642
Azimuth reading changes to opposite when user holds the phone upright
<p>I have implemented the compass reading according to the usual recommendations that I could find on the web. I use the <code>ROTATION_VECTOR</code> sensor type and I transform it into the <code>(azimuth, pitch, roll)</code> triple using the standard API calls. Here's my code:</p> <pre><code>fun Fragment.receiveAzimu...
I have implemented the compass reading according to the usual recommendations that I could find on the web. I use the ROTATION_VECTOR sensor type and I transform it into the (azimuth, pitch, roll) triple using the standard API calls. Here's my code: [CODE] This results in behavior that's quite good when you hold the ph...
android|kotlin
2
2018-11-21T09:13:55.660Z
2,018
11
9
2
835
1
879
69
2
1
true
false
false
false
false
false
low
53,505,765
React Native Maps Error compile debugJavaWithJavac
<p>I'm new to React-native.I try to add google map on my App using <code>npm i react-native-maps --save</code></p> <p>I refer this <a href="https://github.com/react-community/react-native-maps/blob/master/docs/installation.md" rel="nofollow noreferrer">https://github.com/react-community/react-native-maps/blob/master/d...
I'm new to React-native.I try to add google map on my App using npm i react-native-maps --save I refer this https://github.com/react-community/react-native-maps/blob/master/docs/installation.md and follow the all step. I get the Google API and put it to the AndroidManifest . My Google Play Services version is 14.5.74 ....
android|google-maps|react-native|android-emulator
2
2018-11-27T18:14:31.503Z
2,018
11
18
1
1,347
1
5,056
50
4
0
false
false
false
false
false
false
low
53,576,278
Firebase get key for the last inserted item
<p>I have a database reference.</p> <pre><code>houseReference = FirebaseDatabase.getInstance().getReference("House"); </code></pre> <p>I add an item to the db using:</p> <pre><code>houseReference.push().setValue(house); </code></pre> <p>Google firebase reference documentation <a href="https://firebase.google.com/...
I have a database reference. [CODE] I add an item to the db using: [CODE] Google firebase reference documentation says you can then get the key for the last item using [CODE] However, this returns House . What am I doing wrong?
android|firebase|firebase-realtime-database
2
2018-12-02T00:28:31.800Z
2,018
12
0
6
1,603
1
227
43
3
3
true
false
false
false
false
false
low
53,359,045
Statusbar not getting transparent instead getting milky color
<p>I have implemented the following code for getting the transparent status bar but not able to Kindly help me. If fitSystemWindows is true then status bar not getting transparent and if fitSystemWindows is false to rootlayout then content is going below navigation bar. I have applied following code before setting cont...
I have implemented the following code for getting the transparent status bar but not able to Kindly help me. If fitSystemWindows is true then status bar not getting transparent and if fitSystemWindows is false to rootlayout then content is going below navigation bar. I have applied following code before setting content...
java|android|xml|android-layout
0
2018-11-18T08:19:35.330Z
2,018
11
8
6
68
1
880
61
4
3
true
false
false
false
false
false
zero
53,374,076
RecyclerView list row is repeating JsonArray data at the end
<p>In the data I'm getting from the server, not a single item is repeating. I debugged my code during this loop, which adds in the model class then sets in the adapter. Again, no single item is repeating. </p> <p>However, in my list items are repeating after performing the click event on a row button. When I use the m...
In the data I'm getting from the server, not a single item is repeating. I debugged my code during this loop, which adds in the model class then sets in the adapter. Again, no single item is repeating. However, in my list items are repeating after performing the click event on a row button. When I use the methods defin...
java|android|android-recyclerview|recyclerview-layout
0
2018-11-19T11:52:25.040Z
2,018
11
11
0
68
1
411
60
4
1
true
false
false
false
false
false
zero
53,387,642
Kotlin - How to create a class member function similar to TextView.setText(String) that can be invoked as TextView.text = ""
<p>What i am trying to create is a Custom AlertDialogBox for which i would like to invoke the "setTitle()" method as <code>alertObject.title = "SomeTitle"</code>. My current AlertDialog code is as below</p> <pre><code>class AlertBox(context: Context) : BaseDialogHelper() { override val dialogView: View by lazy { ...
What i am trying to create is a Custom AlertDialogBox for which i would like to invoke the "setTitle()" method as alertObject.title = "SomeTitle" . My current AlertDialog code is as below [CODE] I would like create a class member function similar to TextView.setText(String) that can be invoked as TextView.text = "". Ca...
android|kotlin
1
2018-11-20T06:48:55.743Z
2,018
11
6
1
68
1
357
124
2
1
true
false
false
false
false
false
low
53,765,732
Retrofit: cancel call if there is no network
<p>Actually i'm having an issue with my app when i'm using a Device with <em>radio frequencies</em>. If the device is out of radio range but trying to send a file i'm getting the onFailure where i'm saying to the user that there is not network but the <strong>MAIN ISSUE</strong> is that as soon as the device return in ...
Actually i'm having an issue with my app when i'm using a Device with radio frequencies . If the device is out of radio range but trying to send a file i'm getting the onFailure where i'm saying to the user that there is not network but the MAIN ISSUE is that as soon as the device return in the radio range so it return...
java|android|retrofit
0
2018-12-13T16:01:52.870Z
2,018
12
16
3
68
1
544
44
3
0
false
false
false
false
false
false
zero
53,775,862
How List<> object reference works?
<p>I have <code>List&lt;CapturedImage&gt; capturedImageList = assingedFromSomewhere();</code> </p> <p>What will happen if I delete element <code>0</code> of <code>capturedImageList</code> which is currently being processed by a separate <code>Thread</code>?</p> <pre><code>// Procesing a Thread capturedImage.deleteIma...
I have List<CapturedImage> capturedImageList = assingedFromSomewhere(); What will happen if I delete element 0 of capturedImageList which is currently being processed by a separate Thread ? [CODE] Will the file will get deleted? If so, how is the object reference is working here?
java|android|list|object
0
2018-12-14T08:22:44.450Z
2,018
12
8
4
68
1
280
34
4
1
true
false
false
false
false
false
zero
53,391,406
Android: Possible maximum number of audiosessions or effect engines for audio? (EQ, REV...)
<p>for awhile now, I am working on a media playing app. In this app, I also programmed a little 5 Band EQ using mainly this code:</p> <pre><code> try { AppPreferencesClass ap = new AppPreferencesClass(ctx); if (Activity_Player.eq != null) { ...
for awhile now, I am working on a media playing app. In this app, I also programmed a little 5 Band EQ using mainly this code: [CODE] For many days, this worked just fine but out of NO WHERE, the catch block sometimes gets activated. But only occasionally.On other times, try works fine but there are just no more change...
android
0
2018-11-20T10:52:46.263Z
2,018
11
10
1
69
1
2,319
91
1
1
true
false
false
false
false
false
zero
53,416,564
Android mockito mocking callback
<p>I am testing an interactor that returns a callback to a class. here is the code - </p> <p>Presenter</p> <pre><code>public MyPresenter() implements MyInteractorCallback { MyInteractorImpl interactorImpl = new MyInteractorImpl(this); interactorImpl.doSomething(obj); @Override public void statusChan...
I am testing an interactor that returns a callback to a class. here is the code - Presenter [CODE] InteractorImpl [CODE] InteractorCallback [CODE] MyTest [CODE] This throws me an error - [CODE] What exactly is this error? How can i get rid of this?
java|android
1
2018-11-21T16:30:35.917Z
2,018
11
16
2
69
1
248
32
2
5
true
false
false
false
false
false
low
53,598,672
Calling .NET Web API Post Service in Android sends null message
<p>I've implemented a Web API service on ASP.net side and wanted to call it from Android, but the sent message is null <code>"type has been uploaded successfully: !"</code>. The sent data should be printed between the colon and the exclamation mark. I've also checked the DB, a type with null value was added. I've also...
I've implemented a Web API service on ASP.net side and wanted to call it from Android, but the sent message is null "type has been uploaded successfully: !" . The sent data should be printed between the colon and the exclamation mark. I've also checked the DB, a type with null value was added. I've also checked the Web...
android|post|asp.net-web-api|outputstream
2
2018-12-03T17:17:01.263Z
2,018
12
17
0
69
1
486
63
4
2
true
false
false
false
false
false
low
53,743,491
List of One-to-Many Entities shows temporary entity from another Activity
<p>I have two activities. First activity shows list of notes. <code>Notes</code> themselves are lists. I use Android Architecture Components: ViewModel, LiveData; with Repository, Room, Dao, etc. So, I make a method <code>getAllNotes()</code> in Dao, Repository and ViewModel like in google sample apps. In <code>onCrea...
I have two activities. First activity shows list of notes. Notes themselves are lists. I use Android Architecture Components: ViewModel, LiveData; with Repository, Room, Dao, etc. So, I make a method getAllNotes() in Dao, Repository and ViewModel like in google sample apps. In onCreate method of first activity I call o...
android|android-architecture-components|android-livedata|android-viewmodel
0
2018-12-12T12:53:50.820Z
2,018
12
12
2
69
1
2,447
73
4
2
true
false
false
false
false
false
zero
53,438,163
Android phone built-in back button
<p>I have an activity with two fragments, each fragment has a back button to the previous activity/fragment. Both the back buttons on the fragments work properly. However when i run the app on my android phone and i use the built-in back button to navigate to the previous activity, it displays a blank activity and then...
I have an activity with two fragments, each fragment has a back button to the previous activity/fragment. Both the back buttons on the fragments work properly. However when i run the app on my android phone and i use the built-in back button to navigate to the previous activity, it displays a blank activity and then wh...
android
0
2018-11-22T21:29:10.817Z
2,018
11
21
3
325
1
499
34
1
0
false
false
false
false
false
false
zero
53,598,084
Is it possible to chain WorkManager periodic workers?
<p>I just started looking into WorkManager and I can't find any solution for chaining periodic workers. I'm my app it's necessary having workers to run in parallel because they have same constraints. Maybe I should create a single periodic worker that will enqueue a chain of workers needed?</p>
I just started looking into WorkManager and I can't find any solution for chaining periodic workers. I'm my app it's necessary having workers to run in parallel because they have same constraints. Maybe I should create a single periodic worker that will enqueue a chain of workers needed?
android|android-jetpack|android-workmanager
1
2018-12-03T16:41:07.167Z
2,018
12
16
0
581
1
288
53
3
0
false
false
false
false
false
false
low
53,541,154
ObjectInputStream readObject causes RoundingMode.ordinal NullPointerException
<p><strong>EDIT</strong>: it seems to be a problem related to Android Pie (api 28). Seems to work on previous versions (tested on 27, 26, 25). </p> <hr> <p>I'm working at this Android code for a very long time, and I noticed that lately when I'm saving data on the disk, I receive this error:</p> <pre><code>java.lang...
EDIT : it seems to be a problem related to Android Pie (api 28). Seems to work on previous versions (tested on 27, 26, 25). I'm working at this Android code for a very long time, and I noticed that lately when I'm saving data on the disk, I receive this error: [CODE] This is how I write data to disk [CODE] this.datasto...
java|android
7
2018-11-29T14:23:30.023Z
2,018
11
14
3
837
1
977
77
2
4
true
false
false
false
false
false
medium
53,427,963
Is it possible to build a project with Dynamic feature modules and Koin?
<p>I have an app with different modules but the project is growing and we need to split the project in different Dynamic feature modules because the users (probably) would not need all the features. My problem is that Koin needs to be started from the Application class with all the koin modules that the app is going to...
I have an app with different modules but the project is growing and we need to split the project in different Dynamic feature modules because the users (probably) would not need all the features. My problem is that Koin needs to be started from the Application class with all the koin modules that the app is going to lo...
android|android-studio|kotlin|koin
4
2018-11-22T09:43:27.603Z
2,018
11
9
3
1,093
1
617
72
4
0
false
false
false
false
false
false
low
53,527,446
How to get urls of Firebase storage and save them in Arraylist Android
<p>I have images on firebase storage like <a href="https://i.stack.imgur.com/ZgF3n.png" rel="nofollow noreferrer">this</a> and the images are uploaded from the firebase console so there is no way that I store the URLs before. I am wondering if there is any method to get the URLs and save them in an ArrayList. so I can ...
I have images on firebase storage like this and the images are uploaded from the firebase console so there is no way that I store the URLs before. I am wondering if there is any method to get the URLs and save them in an ArrayList. so I can use later from that ArrayList. I have searched a lot but can't find any single ...
android|firebase|arraylist|firebase-storage|geturl
0
2018-11-28T20:17:33.897Z
2,018
11
20
2
1,093
1
449
70
5
0
false
false
false
false
false
false
zero
53,423,835
Unity - SignInWithCredentialAsync causes internal error when using Firebase with Facebook Login
<p>I am a Unity programmer and I am using Firebase to manage user accounts. I tried to set up Facebook Login. No problems with the Facebook sdk and I can log in successfully. However, when the credential returned by Facebook sdk is used as a parameter of <em>FirebaseAuth.DefaultInstance.SignInWithCredentialAsync</em>, ...
I am a Unity programmer and I am using Firebase to manage user accounts. I tried to set up Facebook Login. No problems with the Facebook sdk and I can log in successfully. However, when the credential returned by Facebook sdk is used as a parameter of FirebaseAuth.DefaultInstance.SignInWithCredentialAsync , it returns ...
android|facebook|firebase|unity3d
1
2018-11-22T04:17:43.853Z
2,018
11
4
3
1,349
1
640
95
4
1
true
false
false
false
false
false
low
53,534,700
How to update a texture raw content by applying to it an OpenGL Filter?
<p>I m under android. I have a texture ID and I want to update the content of this texture (basically I want to apply to this texture an OpenGL filter). Note: I don't want to apply the OpenGL filter on each draw of the texture, I want to change the raw content of the texture (by applying to it an OpenGL filter)</p>
I m under android. I have a texture ID and I want to update the content of this texture (basically I want to apply to this texture an OpenGL filter). Note: I don't want to apply the OpenGL filter on each draw of the texture, I want to change the raw content of the texture (by applying to it an OpenGL filter)
android|opengl-es|textures|egl
0
2018-11-29T08:29:52.080Z
2,018
11
8
3
70
1
309
71
4
0
false
false
false
false
false
false
zero
53,569,308
2FA via Wifi? Does is exist? Why not?
<p>I was wondering if for example an android-app exists, which is able to share the 2fa-code via wifi with a computer, if they are connected with the same network.</p> <p>You have some kind of interface at your computer where you can copy/see the 2fa-codes and use them to log in. The computer gets these codes from you...
I was wondering if for example an android-app exists, which is able to share the 2fa-code via wifi with a computer, if they are connected with the same network. You have some kind of interface at your computer where you can copy/see the 2fa-codes and use them to log in. The computer gets these codes from your phone, wh...
android|authentication|packet|two-factor-authentication
1
2018-12-01T09:11:52.693Z
2,018
12
9
5
70
1
750
37
4
0
false
false
false
false
false
false
low
53,592,644
How to disable Spring Animation for Espresso Tests?
<p>I'm using the Android spring animation in my project (see <a href="https://developer.android.com/guide/topics/graphics/spring-animation" rel="nofollow noreferrer">here</a>). However, these animations are getting in the way of my espresso tests.</p> <p>I already tried to disable these animations using the developer ...
I'm using the Android spring animation in my project (see here ). However, these animations are getting in the way of my espresso tests. I already tried to disable these animations using the developer options in the phone, but they seem to not be affected by these settings. Is there any way how I can disable them just ...
android|android-animation|android-espresso|android-instrumentation|spring-android
4
2018-12-03T11:14:14.923Z
2,018
12
11
0
70
1
330
51
5
0
false
false
false
false
false
false
low
53,636,484
Crop Bitmap from center to fit display width and height
<p><a href="https://i.stack.imgur.com/n9ug3.jpg" rel="nofollow noreferrer">How can i make bitmap to fit to display height and width of display from the center of the bitmap</a></p>
How can i make bitmap to fit to display height and width of display from the center of the bitmap
android|android-studio|bitmap|android-bitmap
-2
2018-12-05T16:17:59.763Z
2,018
12
16
2
70
1
97
55
4
0
false
false
false
false
false
true
negative
53,682,011
"GoogleApiClient is not connect yet" on signout but signin success
<p>I'm trying to create a project using google signin on android and google drive on a server. So first I create the client:</p> <pre><code> protected override void OnCreate (Bundle savedInstanceState) { base.OnCreate (savedInstanceState); SetContentView (Resource.Layout.main); FindVie...
I'm trying to create a project using google signin on android and google drive on a server. So first I create the client: [CODE] I handle signin button click: [CODE] And handle result: [CODE] And on the server side everything is ok, I receive a valid code and can use google drive. But in fact mGoogleApiClient.isConnect...
c#|android|xamarin.android|google-signin
0
2018-12-08T11:21:07.740Z
2,018
12
11
5
70
1
557
66
4
3
true
false
false
false
false
false
zero
53,690,689
Strategy parse response from server
<p>I am using a library to make API call to the Instagram API. And I am getting a response like this:</p> <pre><code>POST: https://i.instagram.com/api/v1/feed/timeline/ DATA: is_prefetch=0&amp;feed_view_info=&amp;seen_posts=&amp;phone_id=4c14088a-94b7-49c3-bec3-12caad443c50&amp;reason=pull_to_refresh&amp;battery_leve...
I am using a library to make API call to the Instagram API. And I am getting a response like this: [CODE] I want the value of the response key from here. What is the strategy to parse it? Or this is a special kind of software architecture style like SOAP or REST?
php|android|json|api
-3
2018-12-09T08:45:00.713Z
2,018
12
8
6
70
1
263
35
4
1
true
false
false
false
false
true
negative
53,385,562
Android - How to resize only certain views when keyboard visibility changes
<p>I have an Activity with three Fragment and they are controlled by Tabs at the bottom.</p> <p>One of the fragments needs the keyboard and so I would like to resize the fragment recycler view when the keyboard is visible, so that the last item in the recycler view is visible above the keyboard (after scrolling).</p> ...
I have an Activity with three Fragment and they are controlled by Tabs at the bottom. One of the fragments needs the keyboard and so I would like to resize the fragment recycler view when the keyboard is visible, so that the last item in the recycler view is visible above the keyboard (after scrolling). But if in the A...
android|android-layout|android-softkeyboard|adjustpan|adjust-android
2
2018-11-20T02:56:30.010Z
2,018
11
2
1
326
1
895
75
5
2
true
false
false
false
false
false
low
53,464,638
Sound file runs fine on Desktop with LibGDX, but crashes on android device
<p>Right now, I am programming a video game in Android Studio with LibGDX that can run on both Desktop and Android devices.</p> <p>In certain parts of the game, I want to play a sound effect using a Sound variable:</p> <pre><code>public Sound sound5; </code></pre> <p>In the show() function of the Screen, I am initia...
Right now, I am programming a video game in Android Studio with LibGDX that can run on both Desktop and Android devices. In certain parts of the game, I want to play a sound effect using a Sound variable: [CODE] In the show() function of the Screen, I am initializing the sound by setting the path to the sound effect au...
javascript|android-studio|libgdx
0
2018-11-25T04:24:29.107Z
2,018
11
4
6
326
1
1,672
74
3
8
true
false
false
false
false
false
zero
53,692,402
How to create a Notification or Toast from startup service?
<p>I'm working on an basic reminder application which has a user interface capable to log user set dates to an sqlite database. To complete my application I'd like to have a service which starts and keep running in the background when the phone is restarted, so I can periodically check the database and display a notifi...
I'm working on an basic reminder application which has a user interface capable to log user set dates to an sqlite database. To complete my application I'd like to have a service which starts and keep running in the background when the phone is restarted, so I can periodically check the database and display a notificat...
java|android|service
0
2018-12-09T12:42:38.390Z
2,018
12
12
6
326
1
840
59
3
1
true
false
false
false
false
false
zero
53,672,883
Why am I unable to mount a simple .obb file?
<p>I am trying to mount an obb file located in <code>Android/obb/</code> but I'm getting this exception:</p> <pre><code>2018-12-07 10:47:48.795 18614-18640/? D/DefContainer: Couldn't get OBB info for /storage/emulated/0/Android/obb/bible audio.obb 2018-12-07 10:47:48.795 1178-1216/? W/StorageManagerService: com.androi...
I am trying to mount an obb file located in Android/obb/ but I'm getting this exception: [CODE] here is my code: [CODE] } What am I doing wrong?
android
0
2018-12-07T15:53:26.007Z
2,018
12
15
4
582
1
144
44
1
2
true
false
false
false
false
false
zero
53,437,612
Retrofit removes query parameters from base url
<p>I have query parameters that is used for all requests. It is added to the base url as follow</p> <pre><code>private val baseUrl = HttpUrl.Builder() .scheme("http") .host("ws.audioscrobbler.com") .addPathSegment("2.0") .addPathSegment("") .addQueryParameter...
I have query parameters that is used for all requests. It is added to the base url as follow [CODE] The api service call is [CODE] The url is built correctly till the actual call is made. It removes the query params added in the base url and keeps only the one added in service call. Shown in debugging till the delegate...
android|retrofit|retrofit2
1
2018-11-22T20:22:35.933Z
2,018
11
20
3
838
1
592
47
3
2
true
false
false
false
false
false
low
53,685,797
I am getting a strange error, google sign in is not working in flutter
<p>google sign isn't working, i have added sha1 hash of the debug.store on firebase</p> <p>the error is: </p> <p><code>I/flutter (26858): attempting to sign in W/ActivityThread(26858): handleWindowVisibility: no activity for token android.os.BinderProxy@2a59d18 I/DecorView(26858): It non-support bigbang I/PhoneWindow...
google sign isn't working, i have added sha1 hash of the debug.store on firebase the error is: I/flutter (26858): attempting to sign in W/ActivityThread(26858): handleWindowVisibility: no activity for token android.os.BinderProxy@2a59d18 I/DecorView(26858): It non-support bigbang I/PhoneWindow(26858): isNeedChangeStatu...
android|dart|flutter
0
2018-12-08T18:49:04.483Z
2,018
12
18
5
1,094
1
1,081
70
3
0
false
false
false
false
false
false
zero
53,559,862
Can we send SMS data with Twilio?
<p>I have an android studio application, the application use a BroadcastReceiver and </p> <pre><code>filter.addAction("android.intent.action.DATA_SMS_RECEIVED") </code></pre> <p>Now I'm trying to send DATA SMS (Bytes) to this application using Twilio.</p> <p>I do not know if it is posible or not, I need help please...
I have an android studio application, the application use a BroadcastReceiver and [CODE] Now I'm trying to send DATA SMS (Bytes) to this application using Twilio. I do not know if it is posible or not, I need help please
android|sms|twilio
0
2018-11-30T14:54:52.030Z
2,018
11
14
4
71
1
220
33
3
1
true
false
false
false
false
false
zero
53,566,705
stopService & stopSelf not working as intended
<p>I'm working on a mileage tracking app for a class project and am having issues stopping the mileage tracking service. My "home" activity starts the service with:</p> <pre><code>private void startGPSTracking() { startService(new Intent(this, GPSTracking.class)); } </code></pre> <p>and when the user clic...
I'm working on a mileage tracking app for a class project and am having issues stopping the mileage tracking service. My "home" activity starts the service with: [CODE] and when the user clicks on the stop trip button, the following is called: [CODE] I'm getting the toast and log entry but it's like the service is stil...
java|android
0
2018-12-01T00:34:11.040Z
2,018
12
0
5
71
1
724
46
2
3
true
false
false
false
false
false
zero
53,619,781
Arrangement of diamond-shaped buttons
<p>View have a background diamond pattern. It is necessary to place the "buttons" as in the picture.</p> <p>I did this kind of markup, but if the size of the space that these buttons start plusits. How can I get rid of static sizes in my case? Or you can prompt as it is possible on another to make such arrangement?</p...
View have a background diamond pattern. It is necessary to place the "buttons" as in the picture. I did this kind of markup, but if the size of the space that these buttons start plusits. How can I get rid of static sizes in my case? Or you can prompt as it is possible on another to make such arrangement? [CODE] only I...
android
0
2018-12-04T19:03:48.600Z
2,018
12
19
1
71
1
501
37
1
1
true
false
false
false
false
false
zero
53,655,937
Programatically fill inputs and submit AngularJS form after App is opened with URI Intent
<p>I have an Ionic 1 + AngularJS app, with cordova, that runs on Android.</p> <p>I'm using this cordova plugin (<a href="https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent" rel="nofollow noreferrer">https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent</a>) to get intent.extras whe...
I have an Ionic 1 + AngularJS app, with cordova, that runs on Android. I'm using this cordova plugin ( https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent ) to get intent.extras when I open it with another App. My question is: how can I fill the inputs and make the ng-submit programatically after the...
javascript|android|angularjs|cordova|android-intent
0
2018-12-06T16:40:12.777Z
2,018
12
16
3
71
1
476
89
5
1
true
false
false
false
false
false
zero
53,686,285
The authentification firebase remember me after logout
<p>I enter my main activity, inside the <code>MainActivity</code> I have registration, after the registartion accure I want to log out from firebase so that he doesn't remember me.</p> <p>Because when I retured to the <code>MainActivity</code> after the signout he still remembers the previous user when I register as a...
I enter my main activity, inside the MainActivity I have registration, after the registartion accure I want to log out from firebase so that he doesn't remember me. Because when I retured to the MainActivity after the signout he still remembers the previous user when I register as a new user. This occurs only after log...
java|android|firebase|firebase-authentication
1
2018-12-08T19:42:51.617Z
2,018
12
19
5
71
1
601
54
4
3
true
false
false
false
false
false
low
53,472,643
How can I use IoT telemetry events on Pub/Sub topic?
<p>I had read <a href="https://cloud.google.com/solutions/iot-overview" rel="nofollow noreferrer">documentation</a> about Google cloud IoT API. And I had wrote simple application for Android of things. Based on this google's <a href="https://github.com/androidthings/cloud-iot-core-androidthings" rel="nofollow noreferre...
I had read documentation about Google cloud IoT API. And I had wrote simple application for Android of things. Based on this google's library . My application is successfully connected to IoT platform and I had sent test data. My application code. [CODE] But there is method for sending device sensors data to IoT platfo...
google-cloud-platform|iot|google-cloud-pubsub|android-things|telemetry
1
2018-11-25T22:26:20.603Z
2,018
11
22
6
839
1
898
52
5
3
true
false
false
false
false
false
low
53,644,988
org.gradle.tooling.BuildException: invalid code lengths set
<p>I am trying to make <strong>dlib</strong>-android on Android Studio. It was downloaded from: <a href="https://github.com/tzutalin/dlib-android" rel="nofollow noreferrer">https://github.com/tzutalin/dlib-android</a>. </p> <p>After changing a couple of things such as a mips64... file, it synced and built successfull...
I am trying to make dlib -android on Android Studio. It was downloaded from: https://github.com/tzutalin/dlib-android . After changing a couple of things such as a mips64... file, it synced and built successfully. But when I try to run with a device or a virtual device, I always get "Cause: invalid code lengths set" er...
java|android|github|gradle|android-gradle-plugin
1
2018-12-06T05:07:40.497Z
2,018
12
5
3
1,607
1
1,184
59
5
1
true
false
false
false
false
false
low
53,486,805
OTP Code Issue using Firebase and Android Studio
<p>OTP Code Issue---Firebase</p> <p>I am not getting text(SMS)OTP message from Fire base but if I enter the code manually then it works.</p>
OTP Code Issue---Firebase I am not getting text(SMS)OTP message from Fire base but if I enter the code manually then it works.
java|android
1
2018-11-26T18:11:30.193Z
2,018
11
18
0
72
1
126
48
2
0
false
false
false
false
false
false
low
53,513,818
Tripod mode is not supported for Phantom 4 in DJI SDK
<p>DJI SDK version: <strong>4.7.1</strong></p> <p>While trying to enable the Tripod mode in Phantom 4 using the API "setTripodModeEnabled", we get the error "This feature is unsupported". We can enable the same in Mavic pro without any issues. This is in a sample app that I am working on. But the DJI GO 4 app supports...
DJI SDK version: 4.7.1 While trying to enable the Tripod mode in Phantom 4 using the API "setTripodModeEnabled", we get the error "This feature is unsupported". We can enable the same in Mavic pro without any issues. This is in a sample app that I am working on. But the DJI GO 4 app supports Tripod mode in Phantom 4. I...
android|dji-sdk
1
2018-11-28T06:59:02.480Z
2,018
11
6
2
72
1
413
53
2
0
false
false
false
false
false
false
low
53,764,195
How to add multiple data to arraylist from listview button click?
<p>I have a button and a Listview. Now on clicking the button, items will be added to listview. Now the listview item contains separate buttons, and on clicking that button a popup dialog will appear. I need to add the data from that popup to arraylist against each item in the listview.</p> <p>Please check the image h...
I have a button and a Listview. Now on clicking the button, items will be added to listview. Now the listview item contains separate buttons, and on clicking that button a popup dialog will appear. I need to add the data from that popup to arraylist against each item in the listview. Please check the image here Image 1...
java|android|arraylist|android-listview
0
2018-12-13T14:34:18.900Z
2,018
12
14
3
72
1
1,125
65
4
1
true
false
false
false
false
false
zero
53,772,441
xamarin android custom expandible list view
<p>I would like to know how can I create an expandable list view as shown in the diagram below where it would load all the dates and transactions in that specif date and the that transaction can be expanded to view all categories in a horizontal recycle view. </p> <p>Many Thanks</p> <p><a href="https://i.stack.imgur....
I would like to know how can I create an expandable list view as shown in the diagram below where it would load all the dates and transactions in that specif date and the that transaction can be expanded to view all categories in a horizontal recycle view. Many Thanks Custom List View Image
c#|android|listview|xamarin
0
2018-12-14T01:38:02.493Z
2,018
12
1
4
72
1
291
43
4
0
false
false
false
false
false
false
zero
53,754,879
Android Studio - Not recognizing syntax errors
<p>I've tried to Invalidate Caches/Restart and Clean Project several times.</p> <blockquote> <p>I'm running the following version of Android studio.</p> </blockquote> <pre><code>Android Studio 3.2.1 Build #AI-181.5540.7.32.5056338, built on October 8, 2018 JRE: 1.8.0_152-release-1136-b06 x86_64 JVM: OpenJDK 64-Bit ...
I've tried to Invalidate Caches/Restart and Clean Project several times. I'm running the following version of Android studio. [CODE] The issue is the code is not being autocorrected by the IDE and none of the code assist features are working. I left some intentional errors in my code and the compiler did not output any...
java|android|android-studio|ide
0
2018-12-13T04:06:12.403Z
2,018
12
4
3
328
1
733
46
4
2
true
false
false
false
false
false
zero
53,645,638
How to find in ddms tool in android studio?
<p>android studio in where DDMS and Android Monitor Device tools show? tools>Android>Android Monitor Device</p> <p><a href="https://i.stack.imgur.com/MuF42.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MuF42.png" alt="Screenshot from Android Studio"></a></p>
android studio in where DDMS and Android Monitor Device tools show? tools>Android>Android Monitor Device
android-studio
0
2018-12-06T06:16:59.917Z
2,018
12
6
3
584
1
104
43
1
0
false
false
false
false
false
false
zero
53,536,338
Retrieve data under userids from firebase
<p>I'm facing a problem on how to retrieve all data under uids to list string.But I don't know how to pass uids.</p> <p><img src="https://i.stack.imgur.com/TuBF6.png" alt="Here is the sample database structure.The red one is the uid of each user.The green one is the random push key."> <strong>Edit</strong> I want to r...
I'm facing a problem on how to retrieve all data under uids to list string.But I don't know how to pass uids. Edit I want to retrieve all data ..I mean there can have many uids and their childs.I want to access all uid(not only my uid but also other uids under mdg node). Please help me...
android|firebase|firebase-realtime-database
0
2018-11-29T10:01:27.883Z
2,018
11
10
3
73
1
289
41
3
0
false
false
false
false
false
false
zero
53,547,580
facebook Xamarin.Auth Activity redirector
<p>I try to add facebook auth in my Xamarin App (Google already done)</p> <p>On facebook i add <code>https://www.facebook.com/connect/login_success.html</code> as URI for redirection OAuth valid, all my auth parameter is on.</p> <p>On Xamarin :</p> <pre><code>public static string AndroidRedirectUrl = "https://www.f...
I try to add facebook auth in my Xamarin App (Google already done) On facebook i add https://www.facebook.com/connect/login_success.html as URI for redirection OAuth valid, all my auth parameter is on. On Xamarin : [CODE] in Constants_Facebook class, On Click : [CODE] Activity in Android part : [CODE] On app, after log...
android|facebook|url-redirection|xamarin.auth
0
2018-11-29T21:06:09.203Z
2,018
11
21
3
73
1
448
41
4
4
true
false
false
false
false
false
zero
53,661,720
android Cloud database
<p>which language is used to write an android sever(the server on the web)? I mean the server that sends the information to the android app from the web(not sharedpreferences or any local database) is that server different from the website server? please help me.</p>
which language is used to write an android sever(the server on the web)? I mean the server that sends the information to the android app from the web(not sharedpreferences or any local database) is that server different from the website server? please help me.
android|database|server|cloud
0
2018-12-07T00:41:20.667Z
2,018
12
0
4
73
1
260
22
4
0
false
false
false
false
false
false
zero
53,735,358
Implement function call after user taps on screen rhythmically
<p>Have a question, would like to implement a function call, wherein the user taps the screen in a rhythm like Morse Code, then we can execute the function. </p> <p>(building a little easter egg thing) Would be building this for both IOS and Android</p> <p>Have absolutely no clue where to even begin. For IOS I'd sta...
Have a question, would like to implement a function call, wherein the user taps the screen in a rhythm like Morse Code, then we can execute the function. (building a little easter egg thing) Would be building this for both IOS and Android Have absolutely no clue where to even begin. For IOS I'd start with a gesture tap...
java|android|ios|swift
-1
2018-12-12T02:48:02.917Z
2,018
12
2
2
73
1
667
62
4
0
false
false
false
false
false
true
negative
53,613,329
Buildozer gives error upon building Pong app of Kivy framework for android publishing
<p>I am trying to make an apk file using buildozer of the Pong App (<a href="https://kivy.org/doc/stable/tutorials/pong.html" rel="nofollow noreferrer">https://kivy.org/doc/stable/tutorials/pong.html</a>)</p> <p>However I am getting the following error on running the buildozer final step.</p> <pre><code>Traceback (mo...
I am trying to make an apk file using buildozer of the Pong App ( https://kivy.org/doc/stable/tutorials/pong.html ) However I am getting the following error on running the buildozer final step. [CODE] Please let me know the solution to proceed to make the apk file Reference: https://kivy.org/doc/stable/guide/packaging-...
android|python|kivy|buildozer
0
2018-12-04T12:44:53.560Z
2,018
12
12
1
329
1
332
85
4
1
true
false
false
false
false
false
zero
53,647,392
How can I populate an ExpandableListView child views through Firebase database?
<p>I want to populate my expandable list view with the values from Firebase database. I am able to add data to views statically but through Firebase not.</p> <p>This is my code for that:</p> <pre><code>public class ExpandableListitems { public List&lt;String&gt; food; public HashMap&lt;String, List&lt;String&gt;&gt;...
I want to populate my expandable list view with the values from Firebase database. I am able to add data to views statically but through Firebase not. This is my code for that: [CODE] And my database looks like this: [CODE] food_details: "2% Fat Milk" i want to add this food_details value into the listview's view but u...
java|android|firebase|firebase-realtime-database|expandablelistview
0
2018-12-06T08:32:30.640Z
2,018
12
8
3
329
1
358
79
5
2
true
false
false
false
false
false
zero
53,664,301
Can gradient color in animated drawable XML?
<p>I used gradient color in vectors. It's working. I want to use gradient color on animated vectors but it is cannot be working. I can't see a problem in my XML code. I don't know if this possible or should I use another method. If it's not possible, I want to know why.</p> <p><strong>Animated drawable file.</strong><...
I used gradient color in vectors. It's working. I want to use gradient color on animated vectors but it is cannot be working. I can't see a problem in my XML code. I don't know if this possible or should I use another method. If it's not possible, I want to know why. Animated drawable file. [CODE]
android|android-studio|android-animation|animatedvectordrawable
0
2018-12-07T06:21:33.883Z
2,018
12
6
4
329
1
298
44
4
1
true
false
false
false
false
false
zero
53,436,265
How to fix the following error "Please specify environmental variable OPENCV_ANDROID_SDK to OpenCV Android SDK directory." in android studio?
<p>I am trying to open a face recognizing app in android studio but it is showing me the following error "*** Please specify environmental variable OPENCV_ANDROID_SDK to OpenCV Android SDK directory."</p> <p>How to fixed it?</p>
I am trying to open a face recognizing app in android studio but it is showing me the following error "*** Please specify environmental variable OPENCV_ANDROID_SDK to OpenCV Android SDK directory." How to fixed it?
java|android|android-studio|opencv|face-recognition
2
2018-11-22T18:07:51.837Z
2,018
11
18
3
585
1
214
141
5
0
false
false
false
false
false
false
low
53,541,500
Reuse singleton views such as webView in fragment
<p>I use some JavaScript code in my Android project and I wanted that to be fully loaded and ready to be shared between activities. For that purpose I made a WebView inside a class that Extends Activity and implemented a fragment that uses this webview as it`s view. The fragment looks something like this.</p> <pre><co...
I use some JavaScript code in my Android project and I wanted that to be fully loaded and ready to be shared between activities. For that purpose I made a WebView inside a class that Extends Activity and implemented a fragment that uses this webview as it`s view. The fragment looks something like this. [CODE] And in my...
java|android|android-fragments
2
2018-11-29T14:41:35.720Z
2,018
11
14
3
585
1
1,046
49
3
3
true
false
false
false
false
false
low
53,457,154
Place holder (First Page) of PDF files in android
<p>I want to show first page of multi page PDF file on imageview and open PDF file on imageView click.</p> <p>I'm calling an api and getting PDF files urls as response. Users can upload PDF files and view uploaded files.</p> <p>(Whatsapp also create placeholder of the pdf, just like that)</p> <p>Thanks</p>
I want to show first page of multi page PDF file on imageview and open PDF file on imageView click. I'm calling an api and getting PDF files urls as response. Users can upload PDF files and view uploaded files. (Whatsapp also create placeholder of the pdf, just like that) Thanks
android|android-studio|pdf
-2
2018-11-24T10:16:58.077Z
2,018
11
10
5
841
1
279
49
3
0
false
false
false
false
false
true
negative