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
44,013,762
What makes my phone's browser (webkit) go to google?
<p>When I key in a URL into my old HTC browser (android 2.2.1) sometimes it goes to the website address properly, but recently it's been going to google, and setting up as if I had asked for a google search. As an example - </p> <pre><code>www.google.com/m?hl=en&amp;gl=gb&amp;client=ms-android-htc&amp;source=android-...
When I key in a URL into my old HTC browser (android 2.2.1) sometimes it goes to the website address properly, but recently it's been going to google, and setting up as if I had asked for a google search. As an example - [CODE] ("Outer.space" is just a fictitious example.) Certain websites it goes straight to the websi...
android|url|web|mobile|browser
0
2017-05-17T00:47:23.790Z
2,017
5
0
2
33
1
710
52
5
1
true
false
false
false
false
false
zero
44,105,199
App is compatible with Jelly bean tab on play store but incompatible with Kitkat tab
<p>I opened play store app on my tab has os jelly bean has option of downloading but another tab contain kitkat os saying app version is incompatible with this device. I am very confused. Image link of tab is this <a href="https://www.dropbox.com/s/m2wf2ucm72lwquc/IMAG1827%20%281%29.jpg?dl=0" rel="nofollow noreferrer"...
I opened play store app on my tab has os jelly bean has option of downloading but another tab contain kitkat os saying app version is incompatible with this device. I am very confused. Image link of tab is this https://www.dropbox.com/s/m2wf2ucm72lwquc/IMAG1827%20%281%29.jpg?dl=0 [CODE]
android|performance
0
2017-05-22T05:25:35.400Z
2,017
5
5
0
33
1
287
84
2
1
true
false
false
false
false
false
zero
44,124,423
Not able to pull up values from Firebase database on Android
<p>This is my JSON data structure in Firebase database:</p> <pre><code>familylist |- 0 |--children | |-- 0:"FGH" | |-- 1:"HJU" |-- code: "2222" |-- family: "SWE" |-- fatherName: "ABC" |-- motherName: "XYZ" |- 1 |--children | |-- 0:"XXX" | |-- 1:"YYY" |-- code: "333...
This is my JSON data structure in Firebase database: [CODE] My code for retrieving Children data from firebase-database: [CODE] This are the details from LogCat. Null values are getting displayed. I'm not able to figure out what's wrong. Please do correct me. [CODE] UPDATE New Result after setting the order properly. I...
android|firebase|firebase-realtime-database
2
2017-05-23T01:34:08.257Z
2,017
5
1
1
33
1
343
60
3
4
true
false
false
false
false
false
low
44,156,088
best way of generating tab in the middle of the screen
<blockquote> <p>What i really want is dividing the screen into two half vertically.The top screen contain an activity that perform some certain task.The another bottom screen contain the Tab Activity that can be swiped.</p> <p>How can i do this?</p> </blockquote>
What i really want is dividing the screen into two half vertically.The top screen contain an activity that perform some certain task.The another bottom screen contain the Tab Activity that can be swiped. How can i do this?
android
-1
2017-05-24T10:44:55.607Z
2,017
5
10
2
33
1
222
54
1
0
false
false
false
false
false
true
negative
44,170,826
Which path must use for additional data with testdroid?
<p>Which path must use for additional data like an image to be used in a backdoor method in Android.</p> <p>I am using the public directory for example.</p> <pre><code>Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES) </code></pre> <p>Regards,</p>
Which path must use for additional data like an image to be used in a backdoor method in Android. I am using the public directory for example. [CODE] Regards,
android|calabash-android|testdroid
0
2017-05-25T01:18:09.663Z
2,017
5
1
3
33
1
158
55
3
1
true
false
false
false
false
false
zero
44,174,319
Setting the appearance of android activity programmatically
<p>I ma going to set my application's user interface from code behind but it has been confronted with a bizarre issue which has totally stopped me. I have a linear layout inside the activity which is supposed to hold some elements (Other linear layouts) so I can have a kind of menu. The first linear layout is considere...
I ma going to set my application's user interface from code behind but it has been confronted with a bizarre issue which has totally stopped me. I have a linear layout inside the activity which is supposed to hold some elements (Other linear layouts) so I can have a kind of menu. The first linear layout is considered a...
c#|xaml|xamarin.android
0
2017-05-25T07:04:33.813Z
2,017
5
7
3
33
1
922
59
3
2
true
false
false
false
false
false
zero
44,196,614
Get a broadcast from service on click(activity)
<p>I have a service that is running in background, that is responsable for catpuring location changes and those stuffs.</p> <p>On my activity i need to recover the last location <strong>when i click on a button</strong>, like taking a picture, when i click to send i want to get the data on the service.</p> <p>I tried...
I have a service that is running in background, that is responsable for catpuring location changes and those stuffs. On my activity i need to recover the last location when i click on a button , like taking a picture, when i click to send i want to get the data on the service. I tried to send the data trough a broadcas...
java|android|android-studio|service|broadcastreceiver
0
2017-05-26T08:05:28.123Z
2,017
5
8
4
33
1
947
47
5
4
true
false
false
false
false
false
zero
44,226,070
importing images into an existing Android Studio project
<p>I have a problem with Android Studio: I use a template found on internet, and I can't import images in it.<br /> Usually, it's ok to import images in my projects, but here, I have this error: <a href="http://hpics.li/fe183bb" rel="nofollow noreferrer">http://hpics.li/fe183bb</a>.</p> <p>It is strange, because the i...
I have a problem with Android Studio: I use a template found on internet, and I can't import images in it. Usually, it's ok to import images in my projects, but here, I have this error: http://hpics.li/fe183bb . It is strange, because the images appear correctly in the res layout, but it crashes when I want to compile ...
android|image|import|project
0
2017-05-28T10:05:20.530Z
2,017
5
10
6
33
1
385
56
4
0
false
false
false
false
false
false
zero
44,286,708
Using Xamarin for iOs, Android and Windows Phone
<p>I just have a question regarding the use of Xamarin. When making an app for iOS, how similar is it when making it for Android and Windows Phone? The code changes somehow ?</p> <p>Thank you!</p>
I just have a question regarding the use of Xamarin. When making an app for iOS, how similar is it when making it for Android and Windows Phone? The code changes somehow ? Thank you!
android|ios|xamarin|windows-phone
0
2017-05-31T13:53:57.513Z
2,017
5
13
2
33
1
182
48
4
0
false
false
false
false
false
false
zero
44,321,868
getting latlong value from web server and point to google map
<pre><code> else if(type.equals("abc")){ try { String dest = strings[1]; String imei = strings[2]; URL url3 = new URL(url2); HttpURLConnection hp = (HttpURLConnection) url3.openConnection(); hp.setRe...
[CODE] getting latlong value from the webserver and point to Google map. this code is not coming from latlang value and I can't assign that String variable to Latlong value Con can I do it please help me.
java|android
0
2017-06-02T06:03:24.497Z
2,017
6
6
4
33
1
204
61
2
1
true
false
false
false
false
false
zero
44,096,316
Android studio volley bad response
<p>I'm trying to send a simple request to my server and show the response in a textbox. my server code is a simple echo("hello"); . my app has a button to send request and two textbox, one for showing responses and one for showing errors I expect that my app show "hello" in response textbox. but I receive this:</p> <p...
I'm trying to send a simple request to my server and show the response in a textbox. my server code is a simple echo("hello"); . my app has a button to send request and two textbox, one for showing responses and one for showing errors I expect that my app show "hello" in response textbox. but I receive this: [CODE] my ...
javascript|php|android|android-studio|android-volley
2
2017-05-21T11:27:36.220Z
2,017
5
11
6
289
1
397
34
5
2
true
false
false
false
false
false
low
44,113,235
Application Installation failed
<p>When I attempted to run one of my projects,this I get this error message:</p> <pre><code>Installation failed with message INSTALL_FAILED_INSUFFICIENT_STORAGE. </code></pre> <p>It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.</p> <p...
When I attempted to run one of my projects,this I get this error message: [CODE] It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove the application data! Do you want to uninstall the existing application? ...
android|android-studio|android-gradle-plugin|installation|apk
-3
2017-05-22T12:46:12.427Z
2,017
5
12
0
289
1
452
31
5
1
true
false
false
false
false
true
negative
44,192,257
Creating different Drawable instances from the same icon
<p>I want to use a circle icon to display a few circles inside my activity, each one set to a different color. To do that I tried this code:</p> <pre><code>Drawable solidCircle = ContextCompat.getDrawable(context, R.drawable.solid_circle); solid.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); </code></pre> <p>(The c...
I want to use a circle icon to display a few circles inside my activity, each one set to a different color. To do that I tried this code: [CODE] (The color is randomly selected) My problem is that all the circles get the same color - the last one I called setColorFilter for, I assume because the drawable is always the ...
android|android-drawable
0
2017-05-26T01:36:12.043Z
2,017
5
1
4
289
1
466
56
2
1
true
false
false
false
false
false
zero
44,069,982
Android ApolloCall.CallBack onResponse not fetching data
<p>Im using this query for fetching data:</p> <pre><code>query Products($id: ID!){ node(id: $id) { id ... on Collection { title products(first: 250){ edges...
Im using this query for fetching data: [CODE] In OnResponse method of ApolloCall.CallBack when i want do fetch product title it generates nullPointerException on this line " Log.i("CallBack products", String.valueOf(response.data().node().asCollection().products().edges())); " i need to display product's title,price an...
android|interceptor|graphql|apollo|apollo-android
0
2017-05-19T12:20:30.740Z
2,017
5
12
4
545
1
465
56
5
3
true
false
false
false
false
false
zero
44,166,328
Android TV hide/show PlaybackControlsRow programmatically
<p>In androidTV is there any way to hide and show the PlaybackcontrolsRow programmatically? (I check the official documentation, but there is nothing related to it)</p> <p>Thanks</p>
In androidTV is there any way to hide and show the PlaybackcontrolsRow programmatically? (I check the official documentation, but there is nothing related to it) Thanks
android|android-tv
0
2017-05-24T18:46:04.123Z
2,017
5
18
2
545
1
168
57
2
0
false
false
false
false
false
false
zero
44,213,174
android move image from one place to another place on different screen size and resolutions
<p>I am new in android. I want to make ludo game. and I sets all things related to this game. but I want to move TOKEN from one place to another for different screens like (Nexus 6, Samsung Note 5, Moto G3, etc...). But issue is that for every screen size (Width x Height) are different. that's why I am not set proper x...
I am new in android. I want to make ludo game. and I sets all things related to this game. but I want to move TOKEN from one place to another for different screens like (Nexus 6, Samsung Note 5, Moto G3, etc...). But issue is that for every screen size (Width x Height) are different. that's why I am not set proper x an...
android|resolution|screen-size
0
2017-05-27T05:10:17.693Z
2,017
5
5
5
545
1
1,043
91
3
1
true
false
false
false
false
false
zero
44,364,246
Ionic Cordova $http POST data works well in browser but does not work in my android phone
<p>I am developing a hybrid application using Ionic Framework. I am using $http Restful web service to POST data into my server and get the response from server. When I test it in browser, it works well and I able to retrieve data from serve. But when I test it in my android device, it does not work at all. The followi...
I am developing a hybrid application using Ionic Framework. I am using $http Restful web service to POST data into my server and get the response from server. When I test it in browser, it works well and I able to retrieve data from serve. But when I test it in my android device, it does not work at all. The following ...
php|android|angularjs|cordova
0
2017-06-05T07:55:24.157Z
2,017
6
7
0
545
1
377
89
4
2
true
false
false
false
false
false
zero
44,180,368
my maps in a webview launches in googlemaps
<p>So it's a simple app showing a webview with a mymap, and, oh my, Google have made it wonderful. They've extracted all the markers and info boxes and sent them off to the Google maps app where they're displayed as cards.</p> <p>But this creates problems.</p> <ol> <li>If the user presses the home button, when they ...
So it's a simple app showing a webview with a mymap, and, oh my, Google have made it wonderful. They've extracted all the markers and info boxes and sent them off to the Google maps app where they're displayed as cards. But this creates problems. If the user presses the home button, when they relaunch the app they're m...
android|google-maps|webview|mymaps
1
2017-05-25T12:16:03.563Z
2,017
5
12
3
801
1
885
43
4
0
false
false
false
false
false
false
low
44,231,065
Streaming video from asp.net core web API to Android/iOS
<p>I'm facing an issue in my current Web API project. I have a database and one of the tables has a column of type <code>varbinary</code>. I would like to build an action method where I retrieve the data from that column and prepare it so when I call this action method, I can view the actual video from Android and iOS ...
I'm facing an issue in my current Web API project. I have a database and one of the tables has a column of type varbinary . I would like to build an action method where I retrieve the data from that column and prepare it so when I call this action method, I can view the actual video from Android and iOS devices. I mana...
android|ios|asp.net-web-api|asp.net-core|streaming
3
2017-05-28T19:13:02.340Z
2,017
5
19
6
801
1
551
56
5
1
true
false
false
false
false
false
low
44,045,427
XmlHttpRequest getting status 0 only with cordova android
<p>i'm working on a cordova project and i'm trying to connect to a restful api but it keeps on returning a blank response. i'm assuming that it's an issue related to cors but i can't figure what i'm missing and none of the old same questions helped me when i run the app on browser it works fine and i get</p> <pre><cod...
i'm working on a cordova project and i'm trying to connect to a restful api but it keeps on returning a blank response. i'm assuming that it's an issue related to cors but i can't figure what i'm missing and none of the old same questions helped me when i run the app on browser it works fine and i get [CODE] but when i...
javascript|android|cordova|xmlhttprequest
1
2017-05-18T10:36:53.803Z
2,017
5
10
3
1,057
1
630
57
4
4
true
false
false
false
false
false
low
44,053,664
Firebase Cloud messaging and Azure Notification Hubs device registration mutual implementation
<p>I'm working on a xamarin app where I need to implement notifications. We decided to use azure to manage them, however the one that actually sends the notification is firebase so the devices need to be register in the NotificationHub and in the Firebase service.</p> <p><strong>I already succeded</strong> doing this ...
I'm working on a xamarin app where I need to implement notifications. We decided to use azure to manage them, however the one that actually sends the notification is firebase so the devices need to be register in the NotificationHub and in the Firebase service. I already succeded doing this directly on the phone, using...
c#|push-notification|xamarin.android|firebase-cloud-messaging|azure-notificationhub
1
2017-05-18T16:49:04.947Z
2,017
5
16
3
2,593
1
1,133
94
5
2
true
false
false
false
false
false
low
43,935,881
Android image rotate and lost in Samsung tab
<p>In my app, when image taken from camera it rotates and lost in Samsung tab sometimes, in Other tab it works well always. </p> <pre><code> public void onActivityResult(int requestCode, int resultCode, Intent data){ if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) { if (resultCode == Act...
In my app, when image taken from camera it rotates and lost in Samsung tab sometimes, in Other tab it works well always. [CODE]
android|android-camera
-1
2017-05-12T10:46:34.323Z
2,017
5
10
4
34
1
127
44
2
1
true
false
false
false
false
true
negative
43,960,351
Emulator Screen Issue
<p>My emulator screen and activity_main.xml screen different. so I can't change position. How can I fix? Thanks</p> <p><a href="https://i.stack.imgur.com/3LDKq.png" rel="nofollow noreferrer">Emulator View</a></p> <p><a href="https://i.stack.imgur.com/cHh1D.png" rel="nofollow noreferrer">Android Studio View</a></p>
My emulator screen and activity_main.xml screen different. so I can't change position. How can I fix? Thanks Emulator View Android Studio View
android|android-emulator
1
2017-05-14T04:22:18.367Z
2,017
5
4
6
34
1
142
21
2
0
false
false
false
false
false
false
low
44,034,741
Android Contact get Photo Thumbnail in one query
<p>I had many query and it was taking lot of time to fetch contact data. So need to convert all query in into one.</p> <p>I got all other info like display name, mobile number, label, email in one query but finding prob only with getting pics</p> <p>Help me to Convert below photo query into single query and get uri o...
I had many query and it was taking lot of time to fetch contact data. So need to convert all query in into one. I got all other info like display name, mobile number, label, email in one query but finding prob only with getting pics Help me to Convert below photo query into single query and get uri of pics : [CODE] Try...
android|mysql|uri|photo|contact
0
2017-05-17T21:04:16.967Z
2,017
5
21
2
34
1
404
48
5
4
true
false
false
false
false
false
zero
44,164,708
I want to get AsyncTask outside. in Task data
<p>My code is:</p> <pre><code>public String search ="hello"; public void WeatherSearch() { new GeneralAPI(new OnCompletionListener() { @Override public void onComplete(String result) { try { JSONObject jObj = new JSONObject(result); JSONObject cord = nul...
My code is: [CODE] Only search print, in search -> clear sky etc... but ㅇㅇ + search print -> hello ... But I want to get clear sky data. I'm trying to execute().get() but result is same.
java|android
1
2017-05-24T17:08:29.690Z
2,017
5
17
2
34
1
186
45
2
1
true
false
false
false
false
false
low
44,166,581
Holding task for AlertDialog response
<p>I wanted to hold a task for an AlertDialog response. I know UI interaction in the doInBackground method is against the rules, but there is no possibility to do it in onPreExecute.</p> <pre><code> public static class AsyncMongoConnection extends AsyncTask&lt;Void, Void, Void&gt; { @Override protected Void d...
I wanted to hold a task for an AlertDialog response. I know UI interaction in the doInBackground method is against the rules, but there is no possibility to do it in onPreExecute. [CODE] As you can see, I wanted to create a port forwarding from my local device to a remote host-address. But I want to enable StrictHostKe...
java|android|task|android-alertdialog|jsch
0
2017-05-24T19:02:23.570Z
2,017
5
19
2
34
1
1,036
37
5
2
true
false
false
false
false
false
zero
44,273,473
How to duplicate com.android.internal.R in my librairy?
<p>Because of just one wrong written line of code in FloatingToolbar.java i was force to copy the entire source code in my library to patch it. This work but now the problem is that this unit call also com.android.internal.R. The problem with com.android.internal.R is that it's could be different between release, (beca...
Because of just one wrong written line of code in FloatingToolbar.java i was force to copy the entire source code in my library to patch it. This work but now the problem is that this unit call also com.android.internal.R. The problem with com.android.internal.R is that it's could be different between release, (because...
android
1
2017-05-30T23:35:06.643Z
2,017
5
23
1
34
1
594
55
1
1
true
false
false
false
false
false
low
44,283,146
Unable to get GoogleAuthToken on Signed apk
<p>I am using following token to get Google Token using silent-signin method. I works fine with debug apk, but it never works for signed apk. Why ?</p> <pre><code>public String getGoogleToken() { String idToken = null; String SERVER_CLIENT_ID = "xxxxxxxxxx-xxxxxxxxxxxxxxxxx.apps.googleusercontent.com";...
I am using following token to get Google Token using silent-signin method. I works fine with debug apk, but it never works for signed apk. Why ? [CODE]
android|google-authentication
0
2017-05-31T11:08:03.207Z
2,017
5
11
2
34
1
151
43
2
1
true
false
false
false
false
false
zero
44,355,941
Should I use Google Maps degug or release key whenever setting up a beta/alpha test
<p>So I will be setting up my first alpha test. Do I need to use the release key or debug key that created for the Google Maps API? </p> <p>Thanks</p>
So I will be setting up my first alpha test. Do I need to use the release key or debug key that created for the Google Maps API? Thanks
android|google-maps-api-3|google-api-console
0
2017-06-04T15:55:50.653Z
2,017
6
15
6
34
1
135
83
3
0
false
false
false
false
false
false
zero
44,088,728
android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked using fragments
<p>It happens when i call the inp(its used to retrieve data from the database) function in OneFragment.java what it does is catches all the data and stores it in the db and grabs it and added to the list view the insertion works fine when i try to retrieve it gives the error is that is a problem with db closing? or wi...
It happens when i call the inp(its used to retrieve data from the database) function in OneFragment.java what it does is catches all the data and stores it in the db and grabs it and added to the list view the insertion works fine when i try to retrieve it gives the error is that is a problem with db closing? or with c...
java|android|database|sqlite|android-sqlite
0
2017-05-20T17:11:38.153Z
2,017
5
17
5
290
1
403
74
5
2
true
false
false
false
false
false
zero
44,367,068
Android CAMERA 2 API captures 0kb images & gives a full white preview. Shows no errors or warnings on logcat
<p>I use Android <strong>CAMERA 2 API</strong> for the camera2 supporting phones on my app. Works great, but some times it <em>captures 0kb images</em> &amp; gives <em>a full white preview</em>. Shows no errors or warnings on logcat. Below is my camera image capture &amp; save code:</p> <pre><code>protected void takeP...
I use Android CAMERA 2 API for the camera2 supporting phones on my app. Works great, but some times it captures 0kb images & gives a full white preview . Shows no errors or warnings on logcat. Below is my camera image capture & save code: [CODE] Could any one help on this? NOTE: The camera, captures and stores an image...
java|android|android-camera2
0
2017-06-05T10:36:26.193Z
2,017
6
10
0
546
1
439
108
3
1
true
false
false
false
false
false
zero
44,312,067
Duplicate entry IInAppBillingService
<p>Recently I implemented app billing to my android app <a href="https://developer.android.com/google/play/billing/billing_integrate.html#billing-service" rel="nofollow noreferrer">https://developer.android.com/google/play/billing/billing_integrate.html#billing-service</a></p> <p>Then I implemented "stickerpipe" and t...
Recently I implemented app billing to my android app https://developer.android.com/google/play/billing/billing_integrate.html#billing-service Then I implemented "stickerpipe" and then I got this error Error:Execution failed for task :app:transformClassesWithJarMergingForRelease.> com.android.build.api.transform.Transfo...
android|duplicates
4
2017-06-01T15:48:27.367Z
2,017
6
15
3
802
1
613
36
2
0
false
false
false
false
false
false
low
44,296,194
adb shell dpm set-device-owner with Unity issue
<p>I am trying to make a Unity app go into kiosk mode by using COSU (Corporate Owned Single Use) functionality.</p> <p>My plan was to first get things working using just Android, so I followed the tutorial offered by <a href="https://codelabs.developers.google.com/codelabs/cosu/index.html?index=..%2F..%2Findex#0" rel=...
I am trying to make a Unity app go into kiosk mode by using COSU (Corporate Owned Single Use) functionality. My plan was to first get things working using just Android, so I followed the tutorial offered by Google Code Labs After I got this working, my plan was to then figure out how to integrate this into my Unity pro...
java|android|unity3d|kiosk|cosu
0
2017-05-31T23:27:56.327Z
2,017
5
23
2
1,314
1
1,417
47
5
8
true
false
false
false
false
false
zero
44,095,498
java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbqv.class
<p>The app keeps on crashing continuously, can anyone help? First there was dex error I added the dependency and also enabled multiDex but still no luck..</p> <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.parth.newapp1, PID: 21233 ...
The app keeps on crashing continuously, can anyone help? First there was dex error I added the dependency and also enabled multiDex but still no luck.. [CODE] The line 29 on MainActivity: mDatabase = FirebaseDatabase.getInstance().getReference.child("Blog"); Gradle: [CODE]
android|firebase|firebase-realtime-database|firebase-storage
1
2017-05-21T10:00:30.993Z
2,017
5
10
6
1,826
1
273
88
4
2
true
false
false
false
false
false
low
43,926,543
Initializing TextToSpeech class in Android Studio
<p>I'm working on making my first Android App, and I cannot get the text to speech to work. </p> <p>The gist of the app: user selects the time they want to set an alarm (using a TimePicker), then the app calculates the amount of time left, continuously updating the amount of time left. </p> <p>I want the use the text...
I'm working on making my first Android App, and I cannot get the text to speech to work. The gist of the app: user selects the time they want to set an alarm (using a TimePicker), then the app calculates the amount of time left, continuously updating the amount of time left. I want the use the text to speech engine to ...
java|android|initialization|text-to-speech
2
2017-05-11T22:25:16.067Z
2,017
5
22
3
2,082
1
1,249
49
4
2
true
false
false
false
false
false
low
44,146,647
What does "SystemInfo.deviceUniqueIdentifier" use in Android builds?
<p>The <a href="https://docs.unity3d.com/ScriptReference/SystemInfo-deviceUniqueIdentifier.html" rel="nofollow noreferrer">documentation</a> notes what identifier is used in iOS/Windows builds, but not Android builds. What identifier does <code>SystemInfo.deviceUniqueIdentifier</code> use on Android?</p>
The documentation notes what identifier is used in iOS/Windows builds, but not Android builds. What identifier does SystemInfo.deviceUniqueIdentifier use on Android?
c#|android|unity3d
4
2017-05-23T23:33:25.263Z
2,017
5
23
1
7,714
1
165
68
3
0
false
false
true
false
false
false
low
44,051,765
How to keep track of AsynchHttpClient request
<p>Hi I'm trying to put do something like this. Any idea how to know which request is corresponding to which project?</p> <pre><code>for (int i=0; i&lt;projects.size(); i++) { post("api/Project/getProductionTime", rp, new JsonHttpResponseHandler() { @Override public void onSuccess(int statusCode, H...
Hi I'm trying to put do something like this. Any idea how to know which request is corresponding to which project? [CODE]
java|android
0
2017-05-18T15:19:03.987Z
2,017
5
15
3
35
1
121
45
2
1
true
false
false
false
false
false
zero
44,087,756
How can selected gallery image show in first activity and another activity?
<pre><code>public class Main2Activity extends AppCompatActivity { private static int PICK_IMAGE_REQUEST = 1; ImageView imgView; static final String TAG = "Main2Activity"; public String[] filePathColon; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
[CODE] What is the problem?
android
-2
2017-05-20T15:36:22.770Z
2,017
5
15
5
35
1
27
75
1
1
true
false
false
false
false
true
negative
44,103,571
Regarding instrumentation test cases for APK
<p>I have developed an Android application that parses RSS feed from a website. </p> <p>I have developed instrumentation test cases for application since I have access to code. So far everything is ok. </p> <p>Now I want to ask is there any way or is it possible through which I can develop instrument test cases for a...
I have developed an Android application that parses RSS feed from a website. I have developed instrumentation test cases for application since I have access to code. So far everything is ok. Now I want to ask is there any way or is it possible through which I can develop instrument test cases for apk when I don't have ...
android
0
2017-05-22T01:54:26.580Z
2,017
5
1
0
35
1
428
44
1
0
false
false
false
false
false
false
zero
44,147,717
Button not responding after a few clicks lib-gdx
<p>I cant seem to find an answer to this. Why does my start button freeze after a certain amount of clicks(3)? It works for the first 3 clicks and then decides to stop working. I can still see that the screen is responding(the button becomes red when clicked), but the text on it doesn't change. It's like the click list...
I cant seem to find an answer to this. Why does my start button freeze after a certain amount of clicks(3)? It works for the first 3 clicks and then decides to stop working. I can still see that the screen is responding(the button becomes red when clicked), but the text on it doesn't change. It's like the click listene...
java|android|libgdx
0
2017-05-24T01:57:34.373Z
2,017
5
1
2
35
1
376
48
3
1
true
false
false
false
false
false
zero
44,178,414
I have working small app that access the camera using intent. The app returns an image captured to an imageview
<p>I have working small app that access the camera using intent. The app returns an image captured to an imageview. I want to add a functionality to turn that image in imageview to a pdf file. Someone kindly help on how to go about this</p>
I have working small app that access the camera using intent. The app returns an image captured to an imageview. I want to add a functionality to turn that image in imageview to a pdf file. Someone kindly help on how to go about this
android|pdf-generation
-3
2017-05-25T10:37:32.720Z
2,017
5
10
3
35
1
233
111
2
0
false
false
false
false
false
true
negative
44,302,692
How find a line that contains a regexp, and replace that line in a file on Android
<p>I am trying to find a line in a file using regexp, and replace that line with a new line. I want to do this on the command line on Android.</p> <p>I thought I could do it using vi like that:</p> <pre><code>vi +"%s/ro.streaming.video.drs.*/ro.streaming.video.drs=false/g | x" | build.prop </code></pre> <p>To replac...
I am trying to find a line in a file using regexp, and replace that line with a new line. I want to do this on the command line on Android. I thought I could do it using vi like that: [CODE] To replace line containing: ro.streaming.video.drs=true with: ro.streaming.video.drs=false However, I noticed that vi 1.1.6.1 in ...
android|replace|vi
0
2017-06-01T08:46:46.943Z
2,017
6
8
3
35
1
463
82
3
1
true
false
false
false
false
false
zero
44,334,179
I m unable tostore the screenshot into sd card in android
<p>I m facing problem with saving the screenshot into sd card in android.</p> <p>Below is the Code :</p> <pre><code> public void onClick(View view) { switch (view.getId()){ case R.id.button1: tf1 = et2.getText().toString(); et3.setText(tf1); tf2 = et1.getText().toString(); et4.setText(tf2); br...
I m facing problem with saving the screenshot into sd card in android. Below is the Code : [CODE] There is a runtime error in this code as the code is running sucessfully but the image is noot being stored in the sd card. The Toast is getting displayed "Image saved sucessfully". please help. I have added the below code...
android|screenshot
0
2017-06-02T17:10:56.697Z
2,017
6
17
4
35
1
381
57
2
1
true
false
false
false
false
false
zero
43,986,570
LoadImageFromUrl IBitmap to ImageSource
<p>I am using the code below the Akavache to cache images.</p> <p>Return is an IBitmap, how can I convert this IBitmap to an ImageSource?</p> <pre><code>var url = "https://ashdbhjas/image.png"; ImageSource imageSrc = await BlobCache.LocalMachine.LoadImageFromUrl(url); // ??? </code></pre>
I am using the code below the Akavache to cache images. Return is an IBitmap, how can I convert this IBitmap to an ImageSource? [CODE]
android|ios|xamarin.forms|akavache
2
2017-05-15T18:36:45.607Z
2,017
5
18
0
291
1
134
39
4
1
true
false
false
false
false
false
low
44,081,875
Android: View file created in internal storage
<p>I have created an app using Xamarin Forms PCL project in that I tried to write a file in internal memory of android device with the help of <a href="https://stackoverflow.com/questions/43931910/xamarin-forms-write-a-file-in-android-devices-internal-storage">this link.</a></p> <p>Using DDMS, I tried viewing the file...
I have created an app using Xamarin Forms PCL project in that I tried to write a file in internal memory of android device with the help of this link. Using DDMS, I tried viewing the files that I have created but in DDMS I am unable to find the file. In device physically, there is no such folder that I created. Is ther...
android|xamarin.forms|android-log
0
2017-05-20T04:22:11.180Z
2,017
5
4
5
291
1
394
46
3
0
false
false
false
false
false
false
zero
44,087,584
How to verify email without the need of signing in again while using FirebaseUI-auth?
<p>I'm using <a href="https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md" rel="nofollow noreferrer">FirebaseUI-auth</a> in my app in order to sign in user using email and facebook.</p> <p>When a user signin using email he is taken to a screen which shows a text asking him to verify his email.</p...
I'm using FirebaseUI-auth in my app in order to sign in user using email and facebook. When a user signin using email he is taken to a screen which shows a text asking him to verify his email. Here's my code: [CODE] When he clicks on the verification link sent to him, his email gets verified but now when he comes back ...
android|firebase|firebase-authentication|firebaseui
0
2017-05-20T15:21:07.073Z
2,017
5
15
5
291
1
795
85
4
3
true
false
false
false
false
false
zero
44,333,865
How to put multiple where clause in a query?
<p>I have this code below in which gets all data having the 'grpnumber'. my question is: How can I get 2 where clause? i want to get the records having the group number and calories? </p> <pre><code>String[] projection = { FoodReaderContract.FoodGroupEntry._ID, FoodReaderContract.FoodGroupEntry...
I have this code below in which gets all data having the 'grpnumber'. my question is: How can I get 2 where clause? i want to get the records having the group number and calories? [CODE]
android|sqlite|android-sqlite
0
2017-06-02T16:49:18.027Z
2,017
6
16
4
291
1
186
44
3
1
true
false
false
false
false
false
zero
43,933,194
Android/Retrofit HAL JSON support
<p>I'm using Retrofit in my Android project to handle REST web service calls. Now I need to add support HAL JSON to be able to implement dynamic adding items to my list (load more on scrool). HalJson: <a href="http://stateless.co/hal_specification.html" rel="nofollow noreferrer">http://stateless.co/hal_specification.ht...
I'm using Retrofit in my Android project to handle REST web service calls. Now I need to add support HAL JSON to be able to implement dynamic adding items to my list (load more on scrool). HalJson: http://stateless.co/hal_specification.html Does anybody know how to handle it with Retrofit?
android|json|retrofit|hal-json
1
2017-05-12T08:42:03.093Z
2,017
5
8
4
803
1
290
33
4
0
false
false
false
false
false
false
low
44,297,442
How to send Notifications to multiple users after an Event happened?
<p>Hey I'm new to android and i made an application that enable the user to upload a file (Professor) so that Students can download it for educational purposes.</p> <p>I came to point that i want when the professor upload something to the application, I need the application to send a notification to the users notifyi...
Hey I'm new to android and i made an application that enable the user to upload a file (Professor) so that Students can download it for educational purposes. I came to point that i want when the professor upload something to the application, I need the application to send a notification to the users notifying them that...
android|firebase|push-notification|notifications|firebase-cloud-messaging
0
2017-06-01T02:15:22.730Z
2,017
6
2
3
803
1
420
68
5
0
false
false
false
false
false
false
zero
44,350,950
How to build cast app which enable to cast media to non Android TV
<p>I would like to develop an app which enable to cast medias like audio, images &amp; videos but cast should work without chromecast. It should directly cast to Smart TV. It should be similar to AllCast app. As I am new with Adroid Cast SDK. So any help with example will help me lot to get started. </p> <p>I gone thr...
I would like to develop an app which enable to cast medias like audio, images & videos but cast should work without chromecast. It should directly cast to Smart TV. It should be similar to AllCast app. As I am new with Adroid Cast SDK. So any help with example will help me lot to get started. I gone through the googlec...
android|casting|google-cast
1
2017-06-04T05:08:50.420Z
2,017
6
5
6
803
1
445
66
3
0
false
false
false
false
false
false
low
44,208,122
android Camera2 API + TextureView overlay for drawing on camera preview
<p>So, I need to overlay the camera2 preview and draw a rectangle on the preview video image by layering a transparent overlay on top. I started with a basic Camera2 code here: <a href="https://github.com/googlesamples/android-Camera2Basic" rel="noreferrer">https://github.com/googlesamples/android-Camera2Basic</a></p>...
So, I need to overlay the camera2 preview and draw a rectangle on the preview video image by layering a transparent overlay on top. I started with a basic Camera2 code here: https://github.com/googlesamples/android-Camera2Basic the above use TextureView for camera preview. Next, I added the following class to project [...
android|overlay|preview|camera2
6
2017-05-26T18:33:03.297Z
2,017
5
18
4
8,739
1
737
71
4
3
true
false
true
false
false
false
medium
43,977,870
AlarmsManager triggers whenever it wants
<p>I want to trigger a notification each day at a specific time choosen by the user, like 6' / 7' / 8'.</p> <p>For this, I created a <code>WakefulBroadcastReceiver</code>, that pass to an <code>IntentService</code> to create the notification.</p> <p>And this is how I setup my AlarmsManager. <code>timeInHours</code> i...
I want to trigger a notification each day at a specific time choosen by the user, like 6' / 7' / 8'. For this, I created a WakefulBroadcastReceiver , that pass to an IntentService to create the notification. And this is how I setup my AlarmsManager. timeInHours is an integer passed as parameter, between 6 and 12 : [COD...
android|notifications|android-alarms
0
2017-05-15T11:05:54.687Z
2,017
5
11
0
36
1
1,246
40
3
3
true
false
false
false
false
false
zero
44,018,024
what are the generic URLs need to be enable to add dependencies in Android project using proxy?
<p>In my organization due security they restricted network like social media sites, other sites. Because of this, I am unable to add some Android dependencies in my project <code>build.gradle</code>.</p> <p><strong>Eg:-</strong> </p> <pre><code>compile 'com.google.code.gson:gson:2.6.2' compile 'com.squareup.retrofit2...
In my organization due security they restricted network like social media sites, other sites. Because of this, I am unable to add some Android dependencies in my project build.gradle . Eg:- [CODE] But I am able to add default android dependencies like below. [CODE] So, here my question is what are the generic URLs need...
android|networking|dependencies|build.gradle|dependency-management
0
2017-05-17T07:14:56.143Z
2,017
5
7
2
36
1
428
95
5
2
true
false
false
false
false
false
zero
44,141,763
Passing arry of custom objects then applying to textView the array variables
<p>I am starting to learn java and android developement and got stuck with passing a custom array from my MainMenu activity to another activity used to print out the values. Can anybody point out where I went wrong?</p> <p>MainMenu Class: </p> <pre><code>public class MainMenu extends AppCompatActivity{ SharedP...
I am starting to learn java and android developement and got stuck with passing a custom array from my MainMenu activity to another activity used to print out the values. Can anybody point out where I went wrong? MainMenu Class: [CODE] UnosSati Class(used for data entry): [CODE] PregledSati Class used for viewing the d...
java|android|arrays|android-activity|textview
-1
2017-05-23T17:49:35.007Z
2,017
5
17
1
36
1
350
76
5
4
true
false
false
false
false
true
negative
44,215,637
How to get 50 big numbers (ascending order) in Realm database?
<p>I'm using Realm database for my android project. I'm having a field called <code>invoice number</code> (Integer). The invoice number is stored in sequential order. But in this series, some numbers may not be there. For example[1,5,11,20,55,.......].</p> <p>Now I want to retrieve first 50 big numbers in ascending or...
I'm using Realm database for my android project. I'm having a field called invoice number (Integer). The invoice number is stored in sequential order. But in this series, some numbers may not be there. For example[1,5,11,20,55,.......]. Now I want to retrieve first 50 big numbers in ascending order in Realm database.
android|realm
0
2017-05-27T10:18:48.697Z
2,017
5
10
5
36
1
318
62
2
0
false
false
false
false
false
false
zero
44,242,521
Cant upload android SDK revision 22
<p>I download android SDK and ADV manager, try download android SDK revision 22 and android SDK revision 19. Log:</p> <pre><code>Skipping 'Android SDK Tools, revision 22'; it depends on 'Android SDK Platform-tools, revision 19' which was not installed. Downloading Android SDK Platform-tools, revision 19 Installing And...
I download android SDK and ADV manager, try download android SDK revision 22 and android SDK revision 19. Log: [CODE] And nothing. Nothing was uploaded. I install and launch android SDK and ADV manager as administrator and using compalibity mode Windows XP SP3
android
0
2017-05-29T12:28:38.603Z
2,017
5
12
0
36
1
260
35
1
1
true
false
false
false
false
false
zero
44,289,336
In-App App Widget configuration
<p>How do I configure an <strong>App Widget</strong>, that was added to the home screen, not immediately (like a configuration activity), but afterward in the actual App (MainActivity)?</p>
How do I configure an App Widget , that was added to the home screen, not immediately (like a configuration activity), but afterward in the actual App (MainActivity)?
java|android|configuration|android-appwidget
0
2017-05-31T15:50:42.420Z
2,017
5
15
2
36
1
166
31
4
0
false
false
false
false
false
false
zero
44,328,637
Impose one image on another programatically(overrwrite). Android
<p>I have 2 images inside my app. First one it's some kind of map with empty boxes. Second one it's simply correct mark. In some cases I need to impose this correct mark on some of this empty boxes which are placed on first image. There is an option to do that ? how to manage it?</p> <p><a href="https://i.stack.imgur.c...
I have 2 images inside my app. First one it's some kind of map with empty boxes. Second one it's simply correct mark. In some cases I need to impose this correct mark on some of this empty boxes which are placed on first image. There is an option to do that ? how to manage it?
java|android|android-image|overwrite
0
2017-06-02T12:10:35.203Z
2,017
6
12
4
36
1
277
64
4
0
false
false
false
false
false
false
zero
44,338,638
Running code via an application
<p>So I am trying to build a simple app which runs a code that is typed in.</p> <p>For example "*#06#". </p> <p>I thought this was supposed to be done by using <code>Intent.ACTION_CALL</code>, since you run the code by typing it into the phone keypad. </p> <p>The "#" character isn't shown when the call is made so it...
So I am trying to build a simple app which runs a code that is typed in. For example "*#06#". I thought this was supposed to be done by using Intent.ACTION_CALL , since you run the code by typing it into the phone keypad. The "#" character isn't shown when the call is made so it doesn't work. Is there some other Intent...
android
1
2017-06-02T23:17:08.083Z
2,017
6
23
4
36
1
376
31
1
0
false
false
false
false
false
false
low
44,349,412
how to activate the activity in android app in the right time that the app should be closed then
<p>I am working on alarm clock android app. my problem is to activate an ringing activity in the app at the right time that the app should be closed then.. how to do that?? I wish my idea is clear. thanks</p>
I am working on alarm clock android app. my problem is to activate an ringing activity in the app at the right time that the app should be closed then.. how to do that?? I wish my idea is clear. thanks
android
0
2017-06-03T23:24:27.080Z
2,017
6
23
5
36
1
201
96
1
0
false
false
false
false
false
false
zero
44,371,742
Android Studio icons such as AVD, Run, debug, etc are unavailable (grey)
<p>Pretty much what the title says. I am sorry if the question seems naive, but today is the first day I am starting learning android development and I am extremely unfamiliar with this feature-heavy IDE as of yet.</p>
Pretty much what the title says. I am sorry if the question seems naive, but today is the first day I am starting learning android development and I am extremely unfamiliar with this feature-heavy IDE as of yet.
android|android-studio
0
2017-06-05T14:54:25.813Z
2,017
6
14
0
36
1
211
72
2
0
false
false
false
false
false
false
zero
44,156,299
I want to hide video download button from control list in android browser
<p>I am working on video project where i want to hide download option from all android browser. i already tried css trick to hide media controls but it wont work any browser except Google chrome </p>
I am working on video project where i want to hide download option from all android browser. i already tried css trick to hide media controls but it wont work any browser except Google chrome
php|android|cross-browser
-3
2017-05-24T10:54:10.740Z
2,017
5
10
2
292
1
191
73
3
0
false
false
false
false
false
true
negative
44,102,042
Error gralloc Android Studio
<p>** I noticed that there is an error in Android monitor called "gralloc",I searched everyhwere but i didn't find nothing about this strange error,do you know what this means: E/HAL: load: id=gralloc != hmi->id=gralloc**</p>
** I noticed that there is an error in Android monitor called "gralloc",I searched everyhwere but i didn't find nothing about this strange error,do you know what this means: E/HAL: load: id=gralloc != hmi->id=gralloc**
android-studio
0
2017-05-21T21:36:59.830Z
2,017
5
21
6
804
1
218
28
1
0
false
false
false
false
false
false
zero
44,104,252
Ionic SQLite -- check if database exists
<p>I'm trying out Ionic framework. I need to store some data in the Android SQLite. So, I want to open or create a database and if database didn't exist before, populate it with some data.</p> <p>Here it says I use <code>create</code> method even if the database already exists: <a href="https://ionicframework.com/docs...
I'm trying out Ionic framework. I need to store some data in the Android SQLite. So, I want to open or create a database and if database didn't exist before, populate it with some data. Here it says I use create method even if the database already exists: https://ionicframework.com/docs/native/sqlite/ So I wrote a clas...
android|database|sqlite|cordova|ionic-framework
2
2017-05-22T03:32:16.847Z
2,017
5
3
0
7,972
1
559
40
5
1
true
false
true
false
false
false
low
43,946,863
Removing row from ViewHolder
<p>Total nube here. I'm trying to remove a row from a Viewholder that is being used as a sidebar menu in an Android app.</p> <p>One of the menu items returns an "EMPTY_LABEL" text. I can set the text to invisible but I'd rather remove the row entirely. Any ideas on how I do this?</p> <p>Code below - would really appr...
Total nube here. I'm trying to remove a row from a Viewholder that is being used as a sidebar menu in an Android app. One of the menu items returns an "EMPTY_LABEL" text. I can set the text to invisible but I'd rather remove the row entirely. Any ideas on how I do this? Code below - would really appreciate your help! [...
java|android|sidebar|android-viewholder
1
2017-05-12T21:40:31.067Z
2,017
5
21
4
37
1
327
28
4
1
true
false
false
false
false
false
low
43,953,213
android, set spinner value to default after clicking save
<p>So i have this method to save some values to sharedpref. I am also storing 3 spinner. I have problems with spinner 3. Actualy has onclick listener. For example if you click 3 you get a popup window with androids "setTimePicker". This works well, but now i need to set the value in spinner to 0 when either the user se...
So i have this method to save some values to sharedpref. I am also storing 3 spinner. I have problems with spinner 3. Actualy has onclick listener. For example if you click 3 you get a popup window with androids "setTimePicker". This works well, but now i need to set the value in spinner to 0 when either the user selec...
android|spinner
1
2017-05-13T12:34:08.587Z
2,017
5
12
5
37
1
591
57
2
2
true
false
false
false
false
false
low
43,986,981
Video isn't shown only audio on android
<p>I am trying to show video in the middle of the screen but I can only hear audio and there is no video. I added buttons to the framelayout but the buttons are shown (the video isnt) this is my xml</p> <pre><code> &lt;FrameLayout android:layout_width="776dp" android:layout_height="365dp" android:layout_gr...
I am trying to show video in the middle of the screen but I can only hear audio and there is no video. I added buttons to the framelayout but the buttons are shown (the video isnt) this is my xml [CODE] and this is my code: [CODE] what am I doing wrong? (I already tried Set Z - didnt work) thank you!
java|android|video|media-player
0
2017-05-15T19:03:16.600Z
2,017
5
19
0
37
1
301
39
4
2
true
false
false
false
false
false
zero
43,999,035
I want a spinner to be displayed when an item in a listview is clicked. How to do that?
<p>I have a listview containing 4 items. Whenever one of them is clicked, a pop up spinner should be displayed. I have populated the spinner adapter but I don't know how to display it.</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentVi...
I have a listview containing 4 items. Whenever one of them is clicked, a pop up spinner should be displayed. I have populated the spinner adapter but I don't know how to display it. [CODE]
android|listview|spinner|android-spinner
-1
2017-05-16T10:33:02.523Z
2,017
5
10
1
37
1
188
87
4
1
true
false
false
false
false
true
negative
44,096,149
How to equalize android button with KeyEvent.KEYCODE_ENTER ,namely when I press ENTER to physical keyboard , to click my button?
<p>How to equalize android button with <code>KeyEvent.KEYCODE_ENTER</code>, namely when I press <code>ENTER</code> to physical keyboard, to click my button? </p> <pre><code>Button enterBtn; saveBtn = (Button) findviewbyId(R.id.enter); </code></pre>
How to equalize android button with KeyEvent.KEYCODE_ENTER , namely when I press ENTER to physical keyboard, to click my button? [CODE]
android
0
2017-05-21T11:09:25.083Z
2,017
5
11
6
37
1
135
128
1
1
true
false
false
false
false
false
zero
44,118,341
CSV writing data beside each other
<p>I am writing to CSV file the BLE scanned results. What I am doing currently is writing all the data one below another. The data consists of device name, rssi and mac address. For example, the CSV file looks like this - </p> <pre><code>DeviceA -85 DS:DA:AB:2B:B4:AE DeviceB -100 2C:18:0B:2B:96:9E DeviceA -85 DS:DA:A...
I am writing to CSV file the BLE scanned results. What I am doing currently is writing all the data one below another. The data consists of device name, rssi and mac address. For example, the CSV file looks like this - [CODE] My requireemnt is to write like this - [CODE] After the last column of device A, I need to sta...
java|android|csv
0
2017-05-22T16:56:25.780Z
2,017
5
16
0
37
1
637
34
3
3
true
false
false
false
false
false
zero
44,145,158
Why does removing this dropdown menu break this app?
<p>This is not my code, but I'm working with an application that contains two activities and a dropdown menu. You can navigate between the two activities via the dropdown. My goal is to remove one of the activities and the dropdown menu. What I have accomplished is simply removing the activity from the dropdown menu so...
This is not my code, but I'm working with an application that contains two activities and a dropdown menu. You can navigate between the two activities via the dropdown. My goal is to remove one of the activities and the dropdown menu. What I have accomplished is simply removing the activity from the dropdown menu so th...
java|android|android-fragments|drop-down-menu
-2
2017-05-23T21:14:07.137Z
2,017
5
21
1
37
1
630
52
4
2
true
false
false
false
false
true
negative
44,201,540
Method didn't throw UnsupportedOperationException, eventhough it should
<p>For some reason I have been able execute an removeAll on an extension of AbstractList.</p> <p>In particular that list was an java.util.Arrays.Arraylist (which is not java.util.ArrayList), which is an extension of AbstractList that doesn't support remove or add.</p> <p>After changing the following lines </p> <pre>...
For some reason I have been able execute an removeAll on an extension of AbstractList. In particular that list was an java.util.Arrays.Arraylist (which is not java.util.ArrayList), which is an extension of AbstractList that doesn't support remove or add. After changing the following lines [CODE] To [CODE] I was able to...
java|android|android-studio|debugging
1
2017-05-26T12:23:34.587Z
2,017
5
12
4
37
1
1,211
71
4
2
true
false
false
false
false
false
low
44,231,916
Is there any way to simplify my work and increase my productivity with regular Xamarin for Android?
<p>I'll be blunt. I miss XAML. I also miss DataBinding and markup that actually makes sense and is consistent in the naming of its properties. When it uses camelCase, it sticks to it, unlike android markup, which just does some properties with a <code>_</code> in between words, and others without it. It's a nightmare t...
I'll be blunt. I miss XAML. I also miss DataBinding and markup that actually makes sense and is consistent in the naming of its properties. When it uses camelCase, it sticks to it, unlike android markup, which just does some properties with a _ in between words, and others without it. It's a nightmare to handle without...
c#|android|xaml|xamarin|xamarin.android
1
2017-05-28T20:52:34.240Z
2,017
5
20
6
37
1
584
99
5
0
false
false
false
false
false
false
low
44,271,617
Android onClickListener issues
<p>I'm struggling to understand how to implement OnClickListeners.</p> <p>Below is the code for one of the pages I'm putting together. Now it has 2 buttons. Button 3 needs to go to one page and then button 4 needs to go to another page. I have added the information for button 3 to tell it where it needs to go, but it ...
I'm struggling to understand how to implement OnClickListeners. Below is the code for one of the pages I'm putting together. Now it has 2 buttons. Button 3 needs to go to one page and then button 4 needs to go to another page. I have added the information for button 3 to tell it where it needs to go, but it doesn't see...
android|onclicklistener
-2
2017-05-30T20:45:09.110Z
2,017
5
20
1
37
1
530
30
2
1
true
false
false
false
false
true
negative
44,289,574
Get person name from chatting apps - Android
<p>Currently I'm working on a project where I need to know with who the user is chatting with, in any given time, in chatting apps like Whatsapp, Facebook messenger, Skype, line and other chatting apps.</p> <p>Could that be done? Is there any API that I can work with to know this information?</p>
Currently I'm working on a project where I need to know with who the user is chatting with, in any given time, in chatting apps like Whatsapp, Facebook messenger, Skype, line and other chatting apps. Could that be done? Is there any API that I can work with to know this information?
android|chat
0
2017-05-31T16:03:01.417Z
2,017
5
16
2
37
1
283
44
2
0
false
false
false
false
false
false
zero
44,349,123
ActiveAndroid optimization relative tables
<p>I have the app that uses <code>ActiveAndroid ORM</code> and I need to save list of models with inner list and objects, that looks like this:</p> <pre><code>public class MyModel extends Model{ @Expose @SerializedName(Columns.COLUMN_CREATED_AT) @Column(name=Columns.COLUMN_CREATED_AT) private Date createdAt; ......
I have the app that uses ActiveAndroid ORM and I need to save list of models with inner list and objects, that looks like this: [CODE] so, the current logic that saves List<MyModel> do next: 1) makes all update in ActiveAndroid.beginTransaction() / ActiveAndroid.endTransaction(); block 2) for each MyModel user model re...
android|performance|optimization|database-design|activeandroid
0
2017-06-03T22:34:03.480Z
2,017
6
22
5
37
1
937
42
5
2
true
false
false
false
false
false
zero
44,357,839
Pass external parameter to Custom View
<p>I just get going on drawing, canvas, basic animations but have stumbled upon this annoying issue:</p> <p>I have a CustomView </p> <pre><code>public class CustomView extends View{ // //Edited code **************************** bool dir; // true -- right-to-left, false -- left-to-right public void se...
I just get going on drawing, canvas, basic animations but have stumbled upon this annoying issue: I have a CustomView [CODE] and inside I have created a little animation, basically something flying from right to left over and over again. Now, let's say I wanted to have 2 of these views in my layout. But on the second o...
android|android-animation|subclass|android-custom-view
0
2017-06-04T19:10:53.803Z
2,017
6
19
6
37
1
711
38
4
1
true
false
false
false
false
false
zero
44,365,469
Need Help for Developing XML file based Android App with Editable Item List
<p>I am currently working on an Android Application which shows Data from XML file and can be also edited.</p> <p>This app parses XML document and displays contents of nodes in List of EditText Views, XML file contains nodes of items with child nodes as follows</p> <ul> <li>Item Image Path</li> <li>Item Name</li> <li...
I am currently working on an Android Application which shows Data from XML file and can be also edited. This app parses XML document and displays contents of nodes in List of EditText Views, XML file contains nodes of items with child nodes as follows Item Image Path Item Name Item Price Later i want to edit this infor...
android
-3
2017-06-05T09:11:29.093Z
2,017
6
9
0
37
1
776
75
1
0
false
false
false
false
false
true
negative
44,083,717
Xamarin ReactiveUI - You are referencing the Portable version of ReactiveUI in an App error
<p>I've used a portable template to create a Xamarin app, and I have installed reactive UI into both the portable library and the Android library. However, when I deploy the app to my phone and cause a RaisePropertyChanged to be fired. I get the error:</p> <blockquote> <p>You are referencing the Portable version of ...
I've used a portable template to create a Xamarin app, and I have installed reactive UI into both the portable library and the Android library. However, when I deploy the app to my phone and cause a RaisePropertyChanged to be fired. I get the error: You are referencing the Portable version of ReactiveUI in an App. Refe...
c#|xamarin|xamarin.android|xamarin.forms|reactiveui
2
2017-05-20T08:37:46.377Z
2,017
5
8
5
293
1
488
91
5
0
false
false
false
false
false
false
low
44,357,874
Set EditText above listview with swiperefreshlayout
<p>I'm trying to put EditText above listview but I don't understand why listiview is overlapping over edit text. Here is the layout source:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.c...
I'm trying to put EditText above listview but I don't understand why listiview is overlapping over edit text. Here is the layout source: [CODE] I had tried everything that was on my mind and in Android Studio designer there is error like Layout fidelity warning
android|listview|android-relativelayout
0
2017-06-04T19:15:33.080Z
2,017
6
19
6
293
1
261
51
3
1
true
false
false
false
false
false
zero
44,358,283
Removing default padding in listview items within Android studio
<p>Can someone provide me with any insights on how to remove the default padding around a listview item? I have provided an image with arrows indicating what padding I am talking about.</p> <p><a href="https://i.stack.imgur.com/aQeAr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aQeAr.png" alt="en...
Can someone provide me with any insights on how to remove the default padding around a listview item? I have provided an image with arrows indicating what padding I am talking about.
android|xml|listview|user-interface
-1
2017-06-04T20:03:51.657Z
2,017
6
20
6
293
1
182
64
4
0
false
false
false
false
false
true
negative
44,029,261
onOptionsItemSelected is not called in PopupMenu
<p>I am trying to open popup menu when pressing one of the elements of the Dialog Fragment, but onOptionsItemSelected method is never called, even when pressing one of the menu items. What should I do to fix it?</p> <p><a href="https://i.stack.imgur.com/XMG57.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
I am trying to open popup menu when pressing one of the elements of the Dialog Fragment, but onOptionsItemSelected method is never called, even when pressing one of the menu items. What should I do to fix it? [CODE] song_genres.xml [CODE]
java|android|android-dialogfragment|android-menu|popupmenu
1
2017-05-17T15:36:20.653Z
2,017
5
15
2
549
1
238
48
5
2
true
false
false
false
false
false
low
44,229,860
ProgressBar Background doesn't show on android 5.1 and above
<p>I'm trying to fix an issue appearing only on android 5.1 and above regarding a circular ProgressBar: the background property works perfectly on android 5.0 but it isn't shown in other versions. Do you know why it could happen? Here is my code:</p> <p>pbar.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ...
I'm trying to fix an issue appearing only on android 5.1 and above regarding a circular ProgressBar: the background property works perfectly on android 5.0 but it isn't shown in other versions. Do you know why it could happen? Here is my code: pbar.xml [CODE] layout.xml [CODE] Here is the progressbar on android 7.0 and...
android|android-layout|android-progressbar
1
2017-05-28T16:58:51.003Z
2,017
5
16
6
549
1
359
60
3
2
true
false
false
false
false
false
low
44,211,490
Android Things Developer Preview 4: flash-all.sh failed on MacOSX
<p>I updated the BIOS from Linux following these instructions: <a href="https://software.intel.com/en-us/articles/installing-android-things-on-intel-edison-kit-for-arduino" rel="nofollow noreferrer">https://software.intel.com/en-us/articles/installing-android-things-on-intel-edison-kit-for-arduino</a></p> <p>and then ...
I updated the BIOS from Linux following these instructions: https://software.intel.com/en-us/articles/installing-android-things-on-intel-edison-kit-for-arduino and then came back to my MacOSX 10.12.5 and tried to run flash-all.sh [CODE]
android-things|intel-edison
1
2017-05-26T23:40:50.953Z
2,017
5
23
4
805
1
236
65
2
1
true
false
false
false
false
false
low
44,256,755
dumpsys window windows output
<p>I'm trying to list all UI elements being displayed on an Android device. I'm doing this by running "dumpsys window windows | grep "Window #" in an adb shell. This gives me a list of windows from window n to 0.</p> <p>I'd like to know how the output order is determined. Is window n on top and window 0 at the bottom ...
I'm trying to list all UI elements being displayed on an Android device. I'm doing this by running "dumpsys window windows | grep "Window #" in an adb shell. This gives me a list of windows from window n to 0. I'd like to know how the output order is determined. Is window n on top and window 0 at the bottom of the stac...
android|window|dumpsys
2
2017-05-30T08:03:19.720Z
2,017
5
8
1
805
1
452
29
3
1
true
false
false
false
false
false
low
44,324,982
Send multipart(File) with some parameters using retrofit
<p>I want to send file (Image) and some parameters to server, then my php script will send them to database. I have already tried. My file has been uploaded in server and the name of file has been uploaded in database but the parameters is not included.</p> <p>I will show my code. I hope you can help me.</p> <p>ApiSe...
I want to send file (Image) and some parameters to server, then my php script will send them to database. I have already tried. My file has been uploaded in server and the name of file has been uploaded in database but the parameters is not included. I will show my code. I hope you can help me. ApiService.java [CODE] M...
java|php|android|retrofit|retrofit2
2
2017-06-02T09:08:00.870Z
2,017
6
9
4
1,573
1
416
56
5
4
true
false
false
false
false
false
low
44,008,026
Android Share Multiple Images with Other Apps
<p>I'm attempting to use the native Android share functionality to share a set of images I retrieved using <a href="https://github.com/bumptech/glide" rel="nofollow noreferrer">Glide</a>. So any app that is compatible with the images will show up in Android's share menu.</p> <p>I created a method that gets invoked whe...
I'm attempting to use the native Android share functionality to share a set of images I retrieved using Glide . So any app that is compatible with the images will show up in Android's share menu. I created a method that gets invoked when share is clicked. [CODE] Then created ShareImagesTask which allows you to share mu...
java|android|android-glide|android-fileprovider
0
2017-05-16T17:31:57.543Z
2,017
5
17
1
2,085
1
941
45
4
4
true
false
false
false
false
false
zero
44,034,507
Get image path selected from the gallery
<p>I need to pass proper image (which I selected from the gallery) path to ExifInterface, but I cant seem to get it working...</p> <pre><code> File myFile = new File(selectedImageUri.getPath()); String patch = myFile.getPath(); </code></pre> <p>This will return:</p> <pre><code>/document/image:489 </code></pre> <p>...
I need to pass proper image (which I selected from the gallery) path to ExifInterface, but I cant seem to get it working... [CODE] This will return: [CODE] I am trying to detect if the image is rotaded or not, but without this full path i.e. ../images/test.jpg it will not work. How do I get the proper image path??
java|android
0
2017-05-17T20:46:52.380Z
2,017
5
20
2
38
1
315
40
2
2
true
false
false
false
false
false
zero
44,036,121
fragment - navigation drawer - app stopped error
<p>Greeting</p> <p>When I click on the camera text, the app shows an error said "The application has stopped". How it can be fixed?</p> <p>MaingActivity.java</p> <pre><code>public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); if ...
Greeting When I click on the camera text, the app shows an error said "The application has stopped". How it can be fixed? MaingActivity.java [CODE]
android-fragments
0
2017-05-17T23:07:54.763Z
2,017
5
23
2
38
1
147
48
1
1
true
false
false
false
false
false
zero
44,110,207
Getting Error while generating signed apk for Android Wear
<p>Getting bellow Error while generating signed APK for android wear.</p> <pre><code>Error:Execution failed for task ':wear:transformClassesWithDexForRelease'. &gt; com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android....
Getting bellow Error while generating signed APK for android wear. [CODE] Although when I'm debugging, its running flawlessly in device or emulator. But the above issue occurs every time I try to generate the signed APK for Android-Wear.
android|wear-os|signed-apk
0
2017-05-22T10:08:49.077Z
2,017
5
10
0
38
1
237
58
3
1
true
false
false
false
false
false
zero
44,114,369
Android Toolbar item DragListener
<p>I have an Item (a cart) in my Toolbar, and I want to be able to add a DragListener to it.</p> <p>What I'm trying to do, is to drag &amp; drop my products (thanks to DragShadowBuilder) directly in my Cart, but I just can't find a way to add this listener to It. I've tried my drag &amp; drop on a simple Floatbutton a...
I have an Item (a cart) in my Toolbar, and I want to be able to add a DragListener to it. What I'm trying to do, is to drag & drop my products (thanks to DragShadowBuilder) directly in my Cart, but I just can't find a way to add this listener to It. I've tried my drag & drop on a simple Floatbutton and It works as it s...
android
0
2017-05-22T13:37:08.070Z
2,017
5
13
0
38
1
421
33
1
0
false
false
false
false
false
false
zero
44,301,396
issue to get data from XML using intent filter
<p>i need, when i click on XML file, to pass data from file to app...if i pass file's path static it work...but if i use <code>intent filter</code> so i pass data dynamically it doesn't work...i show you both codes:</p> <p>without intent filter:</p> <pre><code> File file = new File(Environment.getExternalStorageDi...
i need, when i click on XML file, to pass data from file to app...if i pass file's path static it work...but if i use intent filter so i pass data dynamically it doesn't work...i show you both codes: without intent filter: [CODE] with intent filter: [CODE] who can help me? OnCreate: [CODE] CUSTOM ADAPTER: [CODE]
java|android|xml|android-intent
0
2017-06-01T07:40:16.660Z
2,017
6
7
3
38
1
313
46
4
4
true
false
false
false
false
false
zero
44,341,873
itextpdf, JPEG to PDF (JPEG is showing broken in pdf)
<p>I am trying to generate PDF from existed JPEG image but could not succeed, pdf is generating with broken JPEG image, only first 1/4 of JPEG comes to PDF</p> <p>Below is my code</p> <pre><code> public void createPDFFromBitmap(Bitmap bitmap){ File appDir = new File(Environment.getExternalStorageDirectory()+...
I am trying to generate PDF from existed JPEG image but could not succeed, pdf is generating with broken JPEG image, only first 1/4 of JPEG comes to PDF Below is my code [CODE] I am creating first JPEG and then I use that JPEG filepath and want to convert it into PDF, but unfortunately not able to generate PDF properly
android|pdf|bitmap
0
2017-06-03T08:12:13.403Z
2,017
6
8
5
38
1
320
53
3
1
true
false
false
false
false
false
zero
43,927,788
Can I do performance testing with Espresso, or should I use something else?
<p>I'm new to the performance world, and am trying to figure out how to write some performance tests. A friend suggested Espresso to me, but i'm having trouble figuring out if it can actually do the things I need. Here's what i'm looking to do:</p> <ul> <li>Time how long it takes for app A to start</li> <li>Launch app...
I'm new to the performance world, and am trying to figure out how to write some performance tests. A friend suggested Espresso to me, but i'm having trouble figuring out if it can actually do the things I need. Here's what i'm looking to do: Time how long it takes for app A to start Launch app A. Launch app B. Time how...
java|android|performance|android-espresso
0
2017-05-12T01:05:44.363Z
2,017
5
1
4
294
1
536
75
4
0
false
false
false
false
false
false
zero
44,064,601
Android EditText Destroys Webview Actionmode
<h1>Background:</h1> <ul> <li><p>I have a webview with an actionmode callback.</p> </li> <li><p>If you longpress and make a text selection on the webview, the actionmode is shown.</p> </li> <li><p>The edit menu option for the webview actionmode opens a linearlayout at the bottom of webview with an edit text field.</p> ...
Background: I have a webview with an actionmode callback. If you longpress and make a text selection on the webview, the actionmode is shown. The edit menu option for the webview actionmode opens a linearlayout at the bottom of webview with an edit text field. The problem: As soon as I click in the edittext field the a...
java|android|webview|android-edittext
0
2017-05-19T08:00:44.267Z
2,017
5
8
4
294
1
1,370
44
4
7
true
false
false
false
false
false
zero
44,088,177
Monitoring android GPS location
<p>I am building an app that will monitor where a user is using GPS and alert him if he is within a certain distance of a particular place. I would provide the app with a list of the places and their latitude and longitude and the app would check against this list. Once the user has launched the app to start the locati...
I am building an app that will monitor where a user is using GPS and alert him if he is within a certain distance of a particular place. I would provide the app with a list of the places and their latitude and longitude and the app would check against this list. Once the user has launched the app to start the location ...
android|location
0
2017-05-20T16:16:56.137Z
2,017
5
16
5
294
1
820
31
2
0
false
false
false
false
false
false
zero
44,354,713
How to reduce space between PagerTabStrip indicator elements
<p>I am developing an application using android viewPager with tabs as you can see on this screenshot: </p> <p><a href="https://i.stack.imgur.com/ckTJx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ckTJx.png" alt="enter image description here"></a></p> <p>my issue concerns the two indicators <cod...
I am developing an application using android viewPager with tabs as you can see on this screenshot: my issue concerns the two indicators Page 0 and Page 1 . I want to center them on my viewpager and whenever i click on or swipe, it will display the content. here is my XML layout: [CODE] Thank you
android|android-viewpager|viewpagerindicator
0
2017-06-04T13:43:50.890Z
2,017
6
13
6
294
1
297
60
3
1
true
false
false
false
false
false
zero
44,251,714
Android Fused Location API problems when requesting location for the first time
<p>I have an app that needs to get location to work and everything goes smoothly except when (from what i've gathered researching about this) my app is the first one to request a location and no lat and long have yet been retrieved.</p> <p>How can I get location in this situation?</p> <p>Thank you.</p>
I have an app that needs to get location to work and everything goes smoothly except when (from what i've gathered researching about this) my app is the first one to request a location and no lat and long have yet been retrieved. How can I get location in this situation? Thank you.
android|android-gps|fusedlocationproviderapi|android-fusedlocation
1
2017-05-30T00:16:26.603Z
2,017
5
0
1
550
1
282
79
4
0
false
false
false
false
false
false
low
44,268,149
Android: preserve EGLContext across screen rotation
<p>I'm writing an Android OpenGL ES application that potentially will have many resources, textures, shaders etc. to load. Normally, the EGLContext is trashed when the view is destroyed, such as when the screen orientation changes. Seeing as it can take a substantial amount of time to load all the necessary resources i...
I'm writing an Android OpenGL ES application that potentially will have many resources, textures, shaders etc. to load. Normally, the EGLContext is trashed when the view is destroyed, such as when the screen orientation changes. Seeing as it can take a substantial amount of time to load all the necessary resources into...
android|opengl-es|glsurfaceview|egl
2
2017-05-30T17:11:20.857Z
2,017
5
17
1
550
1
1,182
51
4
0
false
false
false
false
false
false
low
44,154,599
ActivityNotFoundException for intent android.settings.NFC_PAYMENT_SETTINGS
<p>I'm trying to open settings on NFC Tap &amp; Pay page with this piece of code:</p> <pre><code>startActivity(new Intent(Settings.ACTION_NFC_PAYMENT_SETTINGS)); </code></pre> <p>While testing on LG Nexus 5X with Android 7.1.2 I have received this crash:</p> <pre><code>android.content.ActivityNotFoundException: No ...
I'm trying to open settings on NFC Tap & Pay page with this piece of code: [CODE] While testing on LG Nexus 5X with Android 7.1.2 I have received this crash: [CODE] Well, this crash can be handled easilly with try-catch but what is wierd, when I open this NFC settings manually, code works like a charm - no crash. Why? ...
android|nfc
0
2017-05-24T09:38:26.393Z
2,017
5
9
2
806
1
706
74
2
2
true
false
false
false
false
false
zero