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
28,738,877
Fragment refreshing on backpress
<p>I have an activity <code>MainActivity</code> there are three fragments associated with this activity.</p> <p>Now one of my fragment <code>Timeline</code> has a listview. Which I populate from a Database in the backend. I use an AsyncTask to fetch values from the DB and process them to the List. I trigger this AsyncT...
I have an activity MainActivity there are three fragments associated with this activity. Now one of my fragment Timeline has a listview. Which I populate from a Database in the backend. I use an AsyncTask to fetch values from the DB and process them to the List. I trigger this AsyncTask in the onCreate of the Fragment ...
android|android-fragments
0
2015-02-26T09:39:18.040Z
2,015
2
9
3
157
2
1,257
32
2
1
true
false
false
false
false
false
zero
28,738,902
Custom radio button with a checked indicator on the right
<p>Can someone tell me how can I create a radioGroup with radio buttons that will have the look like on the image:</p> <p><img src="https://i.stack.imgur.com/nEtKZ.png" alt="enter image description here"></p> <p>Here is my xml code:</p> <pre><code>&lt;RadioGroup android:id="@+id/network_creation_radiogro...
Can someone tell me how can I create a radioGroup with radio buttons that will have the look like on the image: Here is my xml code: [CODE]
android|android-layout|android-selector|android-radiogroup|android-radiobutton
1
2015-02-26T09:40:23.133Z
2,015
2
9
3
1,433
2
139
57
5
1
true
false
false
false
false
false
low
28,738,930
Reusing AndroidTV RowsFragment outside BrowseFragment
<p>I'm trying to reuse the RowsFragment provided by AndroidTV Leanback outside of a BrowseFragment, to have a similar row interaction look &amp; feel on a different layout, but I'm getting XML-inflation errors that I haven't been able to debug and solve.</p> <p>The implementation itself is similar to what is implement...
I'm trying to reuse the RowsFragment provided by AndroidTV Leanback outside of a BrowseFragment, to have a similar row interaction look & feel on a different layout, but I'm getting XML-inflation errors that I haven't been able to debug and solve. The implementation itself is similar to what is implemented here: https:...
android|android-tv|leanback
4
2015-02-26T09:41:33.573Z
2,015
2
9
3
1,536
1
808
53
3
1
true
false
false
false
false
false
low
28,738,938
Set specific edittext has cursor blinking when enter the page
<p>The problem is there is a edittext and I would like to set it default has a cursor on it (but not focus and hide the keyboard )</p> <p>try</p> <pre><code> android:textCursorDrawable="@null" android:cursorVisible="true" &lt;EditText android:id="@+id/com...
The problem is there is a edittext and I would like to set it default has a cursor on it (but not focus and hide the keyboard ) try [CODE] but not works. Please help. Thanks a lot
android|android-layout|android-edittext|android-cursor
1
2015-02-26T09:41:46.167Z
2,015
2
9
3
1,114
1
179
61
4
1
true
false
false
false
false
false
low
28,739,039
Is there an Android Wear sms intent?
<p>I've been trying to make a social media app that lets you send texts to your contacts from the watch. Is there an intent that does that for Android Wear?</p> <p>I tried using the one from developer guides, but I get the error: "No Activity found to handle Intent { act=android.intent.action.VIEW typ=vnd.android-dir/...
I've been trying to make a social media app that lets you send texts to your contacts from the watch. Is there an intent that does that for Android Wear? I tried using the one from developer guides, but I get the error: "No Activity found to handle Intent { act=android.intent.action.VIEW typ=vnd.android-dir/mms-sms (ha...
java|android|android-intent|wear-os
0
2015-02-26T09:46:14.980Z
2,015
2
9
3
459
2
338
36
4
1
true
false
false
false
false
false
zero
28,739,060
Is there a non-youtube example to implement DASH using ExoPlayer?
<p>Hi I am looking for an example to configure <code>ExoPlayer</code> for <code>DASH</code>. But the example I found uses Youtube videos. Is there an example on videos which are not on youtube? Can <code>DASH</code> be configured for any video on the internet?</p>
Hi I am looking for an example to configure ExoPlayer for DASH . But the example I found uses Youtube videos. Is there an example on videos which are not on youtube? Can DASH be configured for any video on the internet?
android|exoplayer
2
2015-02-26T09:47:28.893Z
2,015
2
9
3
9,769
1
219
65
2
0
false
false
true
false
false
false
low
28,739,131
Android Studio - Gradle: How to replace variables in a file
<p>Im fairly new to Gradle and have been using Eclipse and Ant to do all the builds. Within our app we have a config.properties file located in the assets folder at the same level as src and res etc. In this file we have the following:</p> <pre><code>developmentsettings=true defaultLogLevel=4 prodEnvironment=false </c...
Im fairly new to Gradle and have been using Eclipse and Ant to do all the builds. Within our app we have a config.properties file located in the assets folder at the same level as src and res etc. In this file we have the following: [CODE] How can I replace the values of these 3 variables in the build.gradle file? Do I...
android|android-studio|gradle|build.gradle
2
2015-02-26T09:51:09.913Z
2,015
2
9
3
1,812
3
441
59
4
1
true
false
false
false
false
false
low
28,739,139
How to suppress Parse notification in Android while Activity is in foreground?
<p>I am working with notification using Parse for Android Platform. I have successfully received the push notification.</p> <p><strong>I want a callback method to stop this notification while the application is running</strong>.</p> <p>As of now I have tried to find, but I don't know if there is any call back method ...
I am working with notification using Parse for Android Platform. I have successfully received the push notification. I want a callback method to stop this notification while the application is running . As of now I have tried to find, but I don't know if there is any call back method which will call on activity if noti...
android|parse-platform
1
2015-02-26T09:51:47.180Z
2,015
2
9
3
435
1
355
78
2
0
false
false
false
false
false
false
low
28,739,151
Android Handler every X seconds in Service
<p>I have a problem with an handler that has to be executed every X seconds inside a Service. Basically the timing is not precise at all, some times the handler is called every X seconds, then nothing for 30 seconds and then many calls in a single second.</p> <pre><code>Handler handler = new Handler(); handler.postDel...
I have a problem with an handler that has to be executed every X seconds inside a Service. Basically the timing is not precise at all, some times the handler is called every X seconds, then nothing for 30 seconds and then many calls in a single second. [CODE]
android|service|handler
0
2015-02-26T09:52:27.703Z
2,015
2
9
3
1,034
1
259
42
3
1
true
false
false
false
false
false
zero
28,739,158
Android application with a webview in Main Activity and Fragment[activity2: HeaderActivity]
<p>I want to display MainActivity having webview(webview is already in MainActivity) and a fragment say Activity2. here's is the code:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:la...
I want to display MainActivity having webview(webview is already in MainActivity) and a fragment say Activity2. here's is the code: [CODE] The problem is that it is not displaying the HeaderActivity. When the app starts, it is displaying only the webview.
android|webview|fragment
0
2015-02-26T09:52:45.850Z
2,015
2
9
3
79
2
255
91
3
1
true
false
false
false
false
false
zero
28,739,285
Can't read file in subdirectory on android
<p>I'm trying to read a file from a folder on my Galaxy S4. When I place the file in the root directory, I can access it without problems:</p> <pre><code>File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "MyFile"); </code></pre> <p>But I want to put my file in a subdirectory. When I make ...
I'm trying to read a file from a folder on my Galaxy S4. When I place the file in the root directory, I can access it without problems: [CODE] But I want to put my file in a subdirectory. When I make a folder 'A', place my file inside of it and try to access it with: [CODE] I can't read it. Do I need some kind of permi...
android|file|storage
0
2015-02-26T09:58:37.167Z
2,015
2
9
3
375
1
387
42
3
2
true
false
false
false
false
false
zero
28,739,286
Android emulator failed to boot 80% of the time when started via Jenkins only
<p>Hi I am working on a MAC book. When I start the android emulator through Jenkins 80% of the time the emulator fails to boot. Without Jenkins it works.</p> <pre><code>Building in workspace /Users/Shared/Jenkins/Home/workspace/Stress Test $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android list target [andro...
Hi I am working on a MAC book. When I start the android emulator through Jenkins 80% of the time the emulator fails to boot. Without Jenkins it works. [CODE] I am using android emulator plugin. The funny thing is when I am using the command line as jenkins user it works as well. Any Ideas?
android|macos|jenkins|android-emulator|android-emulator-plugin
2
2015-02-26T09:58:38.190Z
2,015
2
9
3
583
1
290
77
5
1
true
false
false
false
false
false
low
28,739,352
android how to change long to decimal and display the result
<p>I am making an app. The app will calculate pmt function, its all working fine but the final result were not. The result could be displayed in int/long format but the request is to make it able to be displayed in currency format/decimal format that looks like currency.I am trying to display the results. However my im...
I am making an app. The app will calculate pmt function, its all working fine but the final result were not. The result could be displayed in int/long format but the request is to make it able to be displayed in currency format/decimal format that looks like currency.I am trying to display the results. However my imple...
android
1
2015-02-26T10:01:24.907Z
2,015
2
10
3
205
2
451
60
1
2
true
false
false
false
false
false
low
28,739,386
Android: string format with Double value in Strings.xml
<p>I need to create a String using the Formater to display some double values in application. I'm not clear on how to code it. Here is what I have:</p> <pre><code>&lt;string name="diseaseMessage"&gt;You have %s message, Unread %s&lt;/string&gt; </code></pre> <p>i get this error:</p> <pre><code>error: Multiple substi...
I need to create a String using the Formater to display some double values in application. I'm not clear on how to code it. Here is what I have: [CODE] i get this error: [CODE]
android
5
2015-02-26T10:02:34.230Z
2,015
2
10
3
5,844
1
176
55
1
2
true
false
true
false
false
false
low
28,739,520
Android.view.inflateexception binary xml file
<p>i am working with an app it works fine in ics and it is not working in jelly bean.please help me. i am getting error with edit text.where in edit text i have placed image on left side.when i try to excute that i am getting error that android.view.inflateexception binary xml file 24.</p> <pre><code>&lt;RelativeLayou...
i am working with an app it works fine in ics and it is not working in jelly bean.please help me. i am getting error with edit text.where in edit text i have placed image on left side.when i try to excute that i am getting error that android.view.inflateexception binary xml file 24. [CODE]
java|android|xml
-2
2015-02-26T10:07:44.827Z
2,015
2
10
3
162
1
290
45
3
1
true
false
false
false
false
true
negative
28,739,533
Is there an intent for uninstallation of an app for ALL users?
<h2>Background</h2> <p>The normal way to call for the uninstallation an app is simply by using the <a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_DELETE" rel="noreferrer"><strong>"ACTION_DELETE"</strong></a> intent :</p> <pre><code>startActivity(new Intent(Intent.ACTION_DELETE, Uri...
Background The normal way to call for the uninstallation an app is simply by using the "ACTION_DELETE" intent : [CODE] The problem starting with some Android version (don't remember which) , apps can be installed for multiple users on the same device. This means there is a new way to uninstall an app, one which will un...
android|android-intent|android-5.0-lollipop|uninstallation|multi-user
9
2015-02-26T10:08:13.047Z
2,015
2
10
3
5,350
1
727
62
5
1
true
false
true
false
false
false
medium
28,739,544
RegExp in java(android) to prevent other urls except one
<p>I am creating an app where i am using webview. I want only my website domain pages should load into my app(webview).</p> <p>If some other domain is clicked from my app, it should ask to open in other application (browser). At the first hit, i did the following to prevent other domains-</p> <pre><code>@Override pub...
I am creating an app where i am using webview. I want only my website domain pages should load into my app(webview). If some other domain is clicked from my app, it should ask to open in other application (browser). At the first hit, i did the following to prevent other domains- [CODE] But the problem is it will also o...
java|android|regex|webview
0
2015-02-26T10:08:41.587Z
2,015
2
10
3
102
1
490
56
4
1
true
false
false
false
false
false
zero
28,739,734
My ListView acitviity evrytime call previous arraylist when add new data in database
<p>I create an activity thats populate from database and fill to ArrayList.<br> when add a new data in database and call listview activity thats change ArrayList to last with for example 6 and previous ArrayList with 5 item.<br> when i finish activity use below code:</p> <pre><code>Intent intent = new Intent(ListView...
I create an activity thats populate from database and fill to ArrayList. when add a new data in database and call listview activity thats change ArrayList to last with for example 6 and previous ArrayList with 5 item. when i finish activity use below code: [CODE] but when call ListViewClass thasts save previous ArrayLi...
android|memory-management|arraylist
1
2015-02-26T10:18:13.967Z
2,015
2
10
3
118
0
775
84
3
4
true
true
false
false
false
false
low
28,739,738
Proxy set in settings of emulator not reflecting in webview
<p>I have set proxy settings in settings>..>apn>TelKila <br> changed proxy and port, and now internet is working fine on stock browser of emulator. <br><br> But it is not working in a webview I created in an app, and throwing <strong>error code 407</strong> (Need proxy details). While same things worked while I tried a...
I have set proxy settings in settings>..>apn>TelKila changed proxy and port, and now internet is working fine on stock browser of emulator. But it is not working in a webview I created in an app, and throwing error code 407 (Need proxy details). While same things worked while I tried a few months back. Any change in AP...
android|webview|proxy
0
2015-02-26T10:18:25.197Z
2,015
2
10
3
305
1
477
59
3
0
false
false
false
false
false
false
zero
28,739,744
NanoHTTPD How to save uploaded file to sdcard folder
<p>How to save uploaded file to sdcard folder , currently it stores to /data/data/cache folder with filename like "NanoHTTPD-some random number". </p> <p>I am not able to copy it to any folder location in sdcard.</p> <p>I would like to save the file to a pre-mentioned folder location in sdcard with the same name as t...
How to save uploaded file to sdcard folder , currently it stores to /data/data/cache folder with filename like "NanoHTTPD-some random number". I am not able to copy it to any folder location in sdcard. I would like to save the file to a pre-mentioned folder location in sdcard with the same name as the original file nam...
android|httpserver|nanohttpd
2
2015-02-26T10:18:56.387Z
2,015
2
10
3
5,214
5
589
52
3
1
true
false
true
false
false
false
low
28,739,790
Crashlytics:Upload a Cordova project
<p>The Crashlytics say we need to download the Fabric Plugin on Android Studio and then register/upload the app by running it. I have few questions about the same topic.</p> <ul> <li>How to upload a Cordova (Ionic) based project to Crashlytics? </li> <li>How to use this <a href="https://github.com/4sh-projects/cordova...
The Crashlytics say we need to download the Fabric Plugin on Android Studio and then register/upload the app by running it. I have few questions about the same topic. How to upload a Cordova (Ionic) based project to Crashlytics? How to use this cordova-crashlytics plugin? Any help is very helpful.
android|cordova|ionic-framework|crashlytics
6
2015-02-26T10:21:18.980Z
2,015
2
10
3
2,767
2
298
36
4
0
false
false
true
false
false
false
medium
28,739,845
cordova android cross domain issue
<p>I have a small app made in cordova using beacons plugins and I want to send get request to a given page once beacons are discovered; I cannot send get request to my server using below code with jsonp; I tried different options but none of them worked;</p> <pre><code>$.ajax({ type: "GET", ...
I have a small app made in cordova using beacons plugins and I want to send get request to a given page once beacons are discovered; I cannot send get request to my server using below code with jsonp; I tried different options but none of them worked; [CODE]
javascript|android|ajax|cordova|cross-domain
0
2015-02-26T10:23:48.220Z
2,015
2
10
3
575
1
258
34
5
1
true
false
false
false
false
false
zero
28,739,922
Android Studio 1.1.0 Log.d cannot output, but Log.e is OK
<p>I have traced into source code, and I found Log.d into Log.java->public static int w(String tag, Throwable tr), why? but when I use Log.w, all things ok. is any configuration I configured error?</p>
I have traced into source code, and I found Log.d into Log.java->public static int w(String tag, Throwable tr), why? but when I use Log.w, all things ok. is any configuration I configured error?
android|logging
0
2015-02-26T10:27:11.593Z
2,015
2
10
3
155
1
194
57
2
0
false
false
false
false
false
false
zero
28,739,951
Why do I get a socket time out?
<p>I am trying to access a remote service via Volley and I end up in the on error response function with the error:</p> <p>02-26 10:29:53.491: D/MyApp(1592): java.net.SocketTimeoutException: failed to connect to 10.10.201.10 (port 443) after 5000ms</p> <p>I can access this IP from my browser and I can see the interfa...
I am trying to access a remote service via Volley and I end up in the on error response function with the error: 02-26 10:29:53.491: D/MyApp(1592): java.net.SocketTimeoutException: failed to connect to 10.10.201.10 (port 443) after 5000ms I can access this IP from my browser and I can see the interface fine. Why do I g...
android|eclipse|http|networking|android-volley
0
2015-02-26T10:29:09.953Z
2,015
2
10
3
512
3
370
31
5
0
false
false
false
false
false
false
zero
28,739,964
Eclipse project stored in SVN checkout in Android studio
<p>I was using SVN with eclipse but now I switched to Android studio .. So I am trying to check out my project in android studio but getting </p> <pre><code>"Cannot load supported formats: Cannot run program "svn": error=2, No such file or directory android studio " </code></pre> <p>Pop up of this error. I updated ...
I was using SVN with eclipse but now I switched to Android studio .. So I am trying to check out my project in android studio but getting [CODE] Pop up of this error. I updated my Android studio also but the same problem. I am getting: I am trying to checkout using: [CODE] in android studio
android|eclipse|svn|android-studio
2
2015-02-26T10:29:37.370Z
2,015
2
10
3
1,785
1
291
56
4
2
true
false
false
false
false
false
low
28,740,042
Error : Faileld to run "ant -version" in build cordova project
<p>I have a problem that when I write command "cordova build android" to build my project ,shown me above error, but I download and installed Apache Ant:</p> <pre><code>Error : Failed to run "ant -version", make sure you have ant install to your path. at D:\hello\platforms\android\cordova\lib\chek_reqs.js:43:27 at Ch...
I have a problem that when I write command "cordova build android" to build my project ,shown me above error, but I download and installed Apache Ant: [CODE] and [CODE] what I did wrong? thanks in advance..
android|cordova|ant
2
2015-02-26T10:32:31.797Z
2,015
2
10
3
1,876
0
206
62
3
2
true
true
false
false
false
false
low
28,740,048
IllegalStateException on mediarecorder.prepare
<p>I am trying to stream video over socket.</p> <p>Here is the code snippet - </p> <pre><code> serverSocket = new ServerSocket(serverPort); receiverSocket = new Socket(); receiverSocket.connect(new InetSocketAddress(serverIP, serverPort)); // receiverSocket.setReceiveBufferSize(500000); receiverSock...
I am trying to stream video over socket. Here is the code snippet - [CODE] However I get IllegalStateException on call to prepare(). [CODE] When I set the output file to "filePath" on sdcard all goes fine. So I guess it's not able to set the outputfile to socket fd and hence prepare fails. How do I get this working? Wh...
android|video-streaming|illegalstateexception|android-mediarecorder
3
2015-02-26T10:32:57.513Z
2,015
2
10
3
578
0
400
46
4
2
true
true
false
false
false
false
low
28,740,156
Rewrite code android
<p>I need help with my code that save image to device on android but images are not showing in gallery i tried a lot of different code but not working i need implement it to this code </p> <pre><code>public class SaveImage extends Activity { public void saveImage(ImageView imageView) { Drawable image = im...
I need help with my code that save image to device on android but images are not showing in gallery i tried a lot of different code but not working i need implement it to this code [CODE] i call it in other activity like this [CODE] look on my updated code i add new void galleryAddpic and call it in TRY block it save p...
android
-1
2015-02-26T10:37:45.213Z
2,015
2
10
3
145
1
357
20
1
2
true
false
false
false
false
true
negative
28,740,183
Xamarin tab causes System.NullReferenceException
<p>I am trying to implement simple tab interface in my Xamarin Android application. My activity:</p> <pre><code>using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace SSMobile { [Activity (Label = "Tabs", MainLauncher =...
I am trying to implement simple tab interface in my Xamarin Android application. My activity: [CODE] When my app is opening that activity, I get error: System.NullReferenceException: Object reference not set to an instance of an object on this line: [CODE] Exception log: [CODE] What is wrong with this code?
c#|android|xamarin|xamarin.android
3
2015-02-26T10:38:56.797Z
2,015
2
10
3
3,182
1
308
48
4
3
true
false
true
false
false
false
low
28,740,206
How to make ImageButton a circle and to fit Uploaded Image inside that circle?
<p>I am trying to implement "Upload Profile Pic" thing in the android. Below is the Snapshot which I need to Implement in the Android. </p> <p><strong>Snapshot_for_profile_page.png</strong></p> <p><img src="https://i.stack.imgur.com/uQrSw.png" alt="enter image description here"></p> <p>I want "Add Photo" to work lik...
I am trying to implement "Upload Profile Pic" thing in the android. Below is the Snapshot which I need to Implement in the Android. Snapshot_for_profile_page.png I want "Add Photo" to work like same as Instagram's Edit profile thing. Here's What I have done so far. I took ImageButton. Onlcick event i uploaded the pictu...
android|android-layout
2
2015-02-26T10:39:57.447Z
2,015
2
10
3
4,695
2
707
78
2
3
true
false
true
false
false
false
low
28,740,230
How to use WebRTC + Pubnub Api for video chat client in Native android app
<p>i am working on one android application with the functionality of p2p video chat just like Skype. while researching on google, i got some libraries but not getting anything for android native.</p> <p>i decided to go with WebRTC with the use of PubNub api. how can i create a video chat native android client with the...
i am working on one android application with the functionality of p2p video chat just like Skype. while researching on google, i got some libraries but not getting anything for android native. i decided to go with WebRTC with the use of PubNub api. how can i create a video chat native android client with the use of the...
android|server|webrtc|pubnub|videochat
7
2015-02-26T10:40:54.087Z
2,015
2
10
3
5,953
2
542
74
5
0
false
false
true
false
false
false
medium
28,740,315
Android NDK : Getting java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "signal" referenced by "libffmpeg.so"
<p>I have a video trimmer application code .</p> <p>Its Android.mk file code is mentioned below:</p> <pre><code>MY_LOCAL_PATH := $(call my-dir) </code></pre> <p>include $(all-subdir-makefiles)</p> <pre><code>LOCAL_PATH :=$(MY_LOCAL_PATH) include $(CLEAR_VARS) LOCAL_MODULE := video-trimmer LOCAL_SRC_FILES := vide...
I have a video trimmer application code . Its Android.mk file code is mentioned below: [CODE] include $(all-subdir-makefiles) [CODE] and Application.mk file code is : [CODE] When I try to run this application, I get following error : [CODE] My video-trimmer.so and ffmpeg.so are generated in \libs\armeabi . Thanks in ad...
android|android-ndk|ffmpeg
11
2015-02-26T10:44:46.073Z
2,015
2
10
3
17,116
1
326
127
3
4
true
false
true
true
true
false
medium
28,740,337
Retrive the response of the software update android
<p>I need to write an application that allows the user to check if he needs a software update in his android phone.</p> <p>is it possible to get the response of the software update in android programmatically?</p> <p>Basically is the response for the last pop-up that show you if you need an update or not.</p> <p>I d...
I need to write an application that allows the user to check if he needs a software update in his android phone. is it possible to get the response of the software update in android programmatically? Basically is the response for the last pop-up that show you if you need an update or not. I don't know if is possible ge...
android|settings|software-update
1
2015-02-26T10:45:42.243Z
2,015
2
10
3
49
0
424
51
3
0
false
true
false
false
false
false
low
28,740,365
Centering a TextView while keeping it to the left of a button?
<p><strong>Requirement</strong></p> <p>I've got a button and a textview, and I want the textview to be centered in the parent view, while the button is on the right side in the parent view.</p> <p><strong>Approach</strong></p> <p>So I took a RelativeLayout, make the textview layout_centerHorizontal="true", and the b...
Requirement I've got a button and a textview, and I want the textview to be centered in the parent view, while the button is on the right side in the parent view. Approach So I took a RelativeLayout, make the textview layout_centerHorizontal="true", and the button layout_alignParentRight="true". Code [CODE] Problem So ...
android|android-layout|android-relativelayout
0
2015-02-26T10:47:05.403Z
2,015
2
10
3
78
6
491
62
3
1
true
false
false
false
false
false
zero
28,740,409
Change the background color of both the actionbar and the rest of the activity
<p>In continues to <a href="https://stackoverflow.com/questions/8024706/how-do-i-change-the-background-color-of-the-actionbar-of-an-actionbaractivity-us">this question</a>, I'd like to change the colors of both the actionbar (the upper pane)to one color and the rest of the screen to a different color. <br> How can I do...
In continues to this question , I'd like to change the colors of both the actionbar (the upper pane)to one color and the rest of the screen to a different color. How can I do it? when I tried this - [CODE] it seems like the 'android:background' definition override also the actionbarstyle definition
android|android-ui|android-styles
2
2015-02-26T10:49:18.523Z
2,015
2
10
3
725
2
299
78
3
1
true
false
false
false
false
false
low
28,740,538
CSipSimple - java.lang.SecurityException : Permission Denial: not allowed to send broadcast android.intent.action.Phone_State
<p>CSipSimple. Help Required. I'm trying to build a VoIP application that enables a user to call any device in the WLAN thrugh CSipSimple's local wizard. Here's the error I get on clicking the call button on Kitkat(4.4.2) CM 11. </p> <p>java.lang.SecurityException : Permission Denial: not allowed to send broadcast and...
CSipSimple. Help Required. I'm trying to build a VoIP application that enables a user to call any device in the WLAN thrugh CSipSimple's local wizard. Here's the error I get on clicking the call button on Kitkat(4.4.2) CM 11. java.lang.SecurityException : Permission Denial: not allowed to send broadcast android.intent....
android|voip|android-4.4-kitkat|pjsip|csip-simple
2
2015-02-26T10:55:31.457Z
2,015
2
10
3
1,058
1
402
125
5
1
true
false
false
false
false
false
low
28,740,566
Cannot Recieve UDP packets over Android from another Android Device
<p>I am pretty new to Android and I am Developing a sample chat application in Android using UDP packets by Server/Client technique. I have an Android Client through which I am able to send the packets from Android and can receive the same packets on java however when I try to receive the same Packets over Android it...
I am pretty new to Android and I am Developing a sample chat application in Android using UDP packets by Server/Client technique. I have an Android Client through which I am able to send the packets from Android and can receive the same packets on java however when I try to receive the same Packets over Android it does...
java|android|sockets|networking
2
2015-02-26T10:56:52.637Z
2,015
2
10
3
370
1
606
67
4
1
true
false
false
false
false
false
low
28,740,590
Android timer Seconds counts down fast
<pre><code> new CountDownTimer(400000, 100) { public void onTick(long millisUntilFinished) { Timer.setText((millisUntilFinished / 10000)+":"+(millisUntilFinished % 6000 / 100)); } public void onFinish() { Timer.setText("done!"); Intent intent = new Int...
[CODE] The issue is That the Seconds count Down So fast. i am trying to achieve a 40minutes count down..above is my code
android
-1
2015-02-26T10:57:51.123Z
2,015
2
10
3
170
4
120
38
1
1
true
false
false
false
false
true
negative
28,740,594
Rendering problems with xml drawable
<p>In android studio if I set a .xml drawable as a backgrouns I get Rendering Problems and when run app - see no background.</p> <p>For example I can't set this xml as a background for layout.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/andr...
In android studio if I set a .xml drawable as a backgrouns I get Rendering Problems and when run app - see no background. For example I can't set this xml as a background for layout. [CODE] If I add, for example, [CODE] result is the same. Also I see red exclamation mark near my background: Here is stack trace: [CODE]
android|xml|android-layout
1
2015-02-26T10:57:58.817Z
2,015
2
10
3
1,896
2
319
36
3
3
true
false
false
false
false
false
low
28,740,596
unable to instantiate an object of TimerTask class
<p>I am trying to create two timers each one with a new timerTask as shown in te code below. the timerTask object is an object of the class Timedtask3. eclipse underscores the "new Timedtask3()" with red, lease see the lines ended with "//error" below.</p> <p>the error says "No enclosing instance of type TimerTask00 i...
I am trying to create two timers each one with a new timerTask as shown in te code below. the timerTask object is an object of the class Timedtask3. eclipse underscores the "new Timedtask3()" with red, lease see the lines ended with "//error" below. the error says "No enclosing instance of type TimerTask00 is accessibl...
android
0
2015-02-26T10:58:02.283Z
2,015
2
10
3
1,537
2
491
50
1
1
true
false
false
false
false
false
zero
28,740,605
Resolving deprecated method in android
<p>My app needs to support android versions from 15 to 19, so for version below 15 i am using a deprecated method and for higher version i am using the latest method provided by android.<strong>The setup of my project is shown in screen shot below</strong><br> <img src="https://i.stack.imgur.com/H49IC.png" alt="Project...
My app needs to support android versions from 15 to 19, so for version below 15 i am using a deprecated method and for higher version i am using the latest method provided by android. The setup of my project is shown in screen shot below Now at runtime i will check the version of android and use suitable methods accord...
android
0
2015-02-26T10:58:20.730Z
2,015
2
10
3
838
1
869
38
1
1
true
false
false
false
false
false
zero
28,740,610
How do I show back button in Activity
<p>I tried this code to show my <code>ProfileActivity</code>:</p> <pre><code>@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_profile) { Intent mainIntent = new Intent(Contracts.this, Profile.class); startActiv...
I tried this code to show my ProfileActivity : [CODE] When I click on Profile menu Item I can see my ProfileActivity but I not have any back button on my ActionBar to return in my previous activity. So, how can I show some back button? Is correct my code to display an activity from my menu?
android|android-activity|android-actionbar
6
2015-02-26T10:58:32.613Z
2,015
2
10
3
9,873
2
291
37
3
1
true
false
true
false
false
false
medium
28,740,647
Android sqlite: How to search by second word in value?
<p>I have snippets of code where I search contacts by string <code>"niv"</code>:</p> <pre><code>idCursor = mApp.getContentResolver().query( ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Data.CONTACT_ID }, "( display_name LIKE ? ) OR ( data1 LIKE ? )", new String[] {...
I have snippets of code where I search contacts by string "niv" : [CODE] So this query looks for contacts where email ( data1 ) or display_name starts with niv . It should catch case where display_name is Niv The Great But whats happens if display_name is Great Niv . Second word starts from niv How can I write query wi...
java|android
1
2015-02-26T11:00:21.560Z
2,015
2
11
3
114
5
504
54
2
1
true
false
false
false
false
false
low
28,740,650
how to split a string containing URL?
<p>I have a String which has a url and i am getting intent value (also a String) from different activity and appending it to the url which has image names for example : </p> <pre><code>String imgURL = "http://182.118.18.200:8082/Server/Images/Gallery/" + images; </code></pre> <p>and i want to displ...
I have a String which has a url and i am getting intent value (also a String) from different activity and appending it to the url which has image names for example : [CODE] and i want to display the images from the above string into the viewpager so that i can scroll the images horizontally. So i am doing this [CODE] W...
android
0
2015-02-26T11:00:22.243Z
2,015
2
11
3
674
3
654
37
1
3
true
false
false
false
false
false
zero
28,740,657
Datepicker dialog without calendar visualization in lollipop [spinner mode]?
<p>I read the documentation: <a href="http://developer.android.com/guide/topics/ui/controls/pickers.html">http://developer.android.com/guide/topics/ui/controls/pickers.html</a> but now in lollipop appears the calendar (it is ok for an event but horrible for set a date of birth, I would a spinner mode.) and I can't remo...
I read the documentation: http://developer.android.com/guide/topics/ui/controls/pickers.html but now in lollipop appears the calendar (it is ok for an event but horrible for set a date of birth, I would a spinner mode.) and I can't remove it! In layout It's easy with this property: [CODE] but from code of the DatePicke...
android|datepicker|android-5.0-lollipop
41
2015-02-26T11:00:31.960Z
2,015
2
11
3
80,902
13
424
76
3
3
true
false
true
true
true
false
high
28,740,666
Android : Customizing view when user getting call?
<p>Hi friends I'm developing android application here I want to set image, accept button, cancel button when user getting call.</p> <p>I can't able to find any tutorial related. Suggest me any tutorial. Thanks in advance</p>
Hi friends I'm developing android application here I want to set image, accept button, cancel button when user getting call. I can't able to find any tutorial related. Suggest me any tutorial. Thanks in advance
android|performance|android-layout|phone-call
-2
2015-02-26T11:00:52.743Z
2,015
2
11
3
45
2
210
50
4
0
false
false
false
false
false
true
negative
28,740,788
how to simplify an img array that uses many drawable ressources
<p>I have an array which contains several drawables needed by my main java code I use this to call them when needed:</p> <pre><code>mImagesArray = new int[]{R.drawable.img_0, R.drawable.img_1, R.drawable.img_2,...,R.drawable.img_m} </code></pre> <p>this direct implementation method works but imagine if i have an arra...
I have an array which contains several drawables needed by my main java code I use this to call them when needed: [CODE] this direct implementation method works but imagine if i have an array containing +100 images, I would call each drawable value from img_1 to the final img_100 which is pretty frustrating. What I nee...
android|arrays|android-studio|drawable|increment
0
2015-02-26T11:06:52.103Z
2,015
2
11
3
994
3
726
63
5
2
true
false
false
false
false
false
zero
28,740,850
how to set inflate for view in list adapter when hide and show buttons
<p>I'm trying to make adapter for listview that make some friends items with buttons , if the user is friend i will hide the button "add" if not i will show the button , adapter run normaly and when i press on button add at any item will change the background for this button , but when i scroll the listview the button ...
I'm trying to make adapter for listview that make some friends items with buttons , if the user is friend i will hide the button "add" if not i will show the button , adapter run normaly and when i press on button add at any item will change the background for this button , but when i scroll the listview the button for...
android|listview|adapter
0
2015-02-26T11:09:21.553Z
2,015
2
11
3
74
0
409
70
3
1
true
true
false
false
false
false
zero
28,741,029
How to share both text and image in the share intent (email and gmail)
<p>I would like to make a share button for both <strong>gmail</strong> and the <strong>rom email app</strong> . The problem is how to share both image and text?</p> <p>For the image , I can provide either file uri / bitmap / whatever need and I only need to share <strong>one</strong> image.</p> <pre><code> final In...
I would like to make a share button for both gmail and the rom email app . The problem is how to share both image and text? For the image , I can provide either file uri / bitmap / whatever need and I only need to share one image. [CODE] Thanks for helping
android|email|android-intent|android-image
0
2015-02-26T11:17:59.803Z
2,015
2
11
3
1,857
1
256
70
4
1
true
false
false
false
false
false
zero
28,741,055
incorrect display GraphView(android)
<p>Sorry for my English. I do not know why I did not properly displays a message GraphView. Now in the graph below displays constantly 1,1,1,1 ... Though would have 1,2,3,4 ...And evaluation are all 1. A shows the graph as 10. Why is it, tell me please.</p> <p><img src="https://i.stack.imgur.com/Dugrx.png" alt="enter ...
Sorry for my English. I do not know why I did not properly displays a message GraphView. Now in the graph below displays constantly 1,1,1,1 ... Though would have 1,2,3,4 ...And evaluation are all 1. A shows the graph as 10. Why is it, tell me please. [CODE]
java|android|android-graphview
0
2015-02-26T11:19:53.273Z
2,015
2
11
3
165
1
257
36
3
1
true
false
false
false
false
false
zero
28,741,080
Why we need to use BufferedReader instead of String while getting the response from server
<p>I am doing an android application, Which is getting some JSON values from server. So I made some studies and develop the code for get data from server to my app.</p> <p>Simply I am using the below code for that.</p> <pre><code> HttpResponse response; Object content = null; HttpGet httpget = new HttpGet(...
I am doing an android application, Which is getting some JSON values from server. So I made some studies and develop the code for get data from server to my app. Simply I am using the below code for that. [CODE] When I looked in to some tutorials, They used BufferedReader for the same operation like this. [CODE] So my ...
java|android|httpclient|bufferedreader
2
2015-02-26T11:21:27.323Z
2,015
2
11
3
1,499
2
548
90
4
2
true
false
false
false
false
false
low
28,741,155
Forward geo coding not working when application using country changes
<p>I want to find latitude and longitude from address, which is filled by user in a text view.But the function I am using to find latitude and longitude is working fine in my country(India) but it is not finding coordinates when it is tested in SriLanka. I could not find a solution, being searching for so long. Providi...
I want to find latitude and longitude from address, which is filled by user in a text view.But the function I am using to find latitude and longitude is working fine in my country(India) but it is not finding coordinates when it is tested in SriLanka. I could not find a solution, being searching for so long. Providing ...
java|android|geocoding
0
2015-02-26T11:25:12.133Z
2,015
2
11
3
44
0
384
69
3
1
true
true
false
false
false
false
zero
28,741,158
WrapConverter for Binding item click in ListView template MvvMCross
<p>I have read this question <a href="https://stackoverflow.com/questions/18075928/binding-button-click-in-listview-template-mvvmcross">Binding button click in ListView template MvvMCross</a> Here is the code: </p> <pre><code>public class ListPresentationViewModel: MvxViewModel { private readonly ISQLService _...
I have read this question Binding button click in ListView template MvvMCross Here is the code: [CODE] And I would like to know about the WrapConverter class. Is it customized or standard library class? Thanks.
android|listview|binding|mvvmcross
0
2015-02-26T11:25:20.287Z
2,015
2
11
3
523
1
210
67
4
1
true
false
false
false
false
false
zero
28,741,166
Android Studio - java.lang.NoClassDefFoundError
<p>I added the <code>.jar</code> file to the <code>lib</code> folder in the project directory: <img src="https://i.stack.imgur.com/0EDbD.png" alt="enter image description here"></p> <p>Next I right clicked on each .jar file and selected "Add as library".</p> <p>Then I added the dependencies to the build.gradle file:<...
I added the .jar file to the lib folder in the project directory: Next I right clicked on each .jar file and selected "Add as library". Then I added the dependencies to the build.gradle file: [CODE] When I attempt to run the android application it displays the java.lang.NoClassDefFoundError . Here is the full log: [COD...
java|android|build|gradle|runtime-error
1
2015-02-26T11:25:37.093Z
2,015
2
11
3
7,659
2
523
47
5
3
true
false
true
false
false
false
low
28,741,191
org.xml.sax.SAXParseException: Unexpected token while parsing json
<p>I am creating an app in which i am using google map user can draw route and get directions all is going well but problem is that how i can get step by step direction from html_instruction like below :</p> <pre><code>"legs" : [ { "distance" : { "text" : "6.0 km", "value...
I am creating an app in which i am using google map user can draw route and get directions all is going well but problem is that how i can get step by step direction from html_instruction like below : [CODE] i am doing this [CODE] but its throwing exception of [CODE] how i can resolve it or any other way to get step by...
android|json|google-maps|google-maps-android-api-2|map-directions
-1
2015-02-26T11:26:45.823Z
2,015
2
11
3
929
1
374
66
5
3
true
false
false
false
false
true
negative
28,741,193
Multiple sticky objects of the same class?
<p>I'm using sticky events in EventBus to pass my "selected" objects into the upcoming Activity. The detail activity allows the user to "select" another object to fetch a new list. I want to post another sticky event with the <em>same</em> object class again into yet another list activity, but from what I understand, t...
I'm using sticky events in EventBus to pass my "selected" objects into the upcoming Activity. The detail activity allows the user to "select" another object to fetch a new list. I want to post another sticky event with the same object class again into yet another list activity, but from what I understand, the previous ...
android|android-intent|android-activity|greenrobot-eventbus
4
2015-02-26T11:26:47.903Z
2,015
2
11
3
1,674
2
1,740
42
4
0
false
false
false
false
false
false
low
28,741,260
Action_up not working
<p>I am working on a project in which I need to perform different functions on image press and image release. The following is my code. the action_down part works but the action up part doesn't what should i do.</p> <p>plz help.</p> <pre><code>img2.setOnTouchListener(new View.OnTouchListener() { @Suppres...
I am working on a project in which I need to perform different functions on image press and image release. The following is my code. the action_down part works but the action up part doesn't what should i do. plz help. [CODE]
android
-1
2015-02-26T11:29:41.493Z
2,015
2
11
3
919
1
225
21
1
1
true
false
false
false
false
true
negative
28,741,292
Deezer Android SDK 0.10.17 Beta Facebook authentication error
<p>I switched from Deezer Android SDK 0.10.16 to 0.10.17 Beta and now every time I try to authenticate using a Facebook account, I'm redirected to a webview with the following error: </p> <blockquote> <p>ERR_UNKNOWN_URL_SCHEME</p> </blockquote> <p>The address the browser tries to reach is: </p> <blockquote> <p>d...
I switched from Deezer Android SDK 0.10.16 to 0.10.17 Beta and now every time I try to authenticate using a Facebook account, I'm redirected to a webview with the following error: ERR_UNKNOWN_URL_SCHEME The address the browser tries to reach is: dzconnect://MYPACKAGE/success#access_token=...&expires=... I haven't chang...
android|deezer
0
2015-02-26T11:31:33.150Z
2,015
2
11
3
110
0
395
61
2
1
true
true
false
false
false
false
zero
28,741,336
GetMap() undefined for the type MapFragment
<p>I am trying to get a map fragment working within my application and I continue to get an error when trying to get my GoogleMap object. </p> <blockquote> <p>MapFragment.java</p> </blockquote> <pre><code>import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view....
I am trying to get a map fragment working within my application and I continue to get an error when trying to get my GoogleMap object. MapFragment.java [CODE] And my frament code is fragment_map.xml [CODE] The exact error I am getting is The method getMap() is undefined for the type MapFragment What am I doing wrong?
android|google-maps
2
2015-02-26T11:33:32.697Z
2,015
2
11
3
7,174
4
318
43
2
2
true
false
true
false
false
false
low
28,741,400
ActionItem appears after orientation change
<p>I have faced quite weird problem I've been fighting with for several days. I have two fragments <code>A</code> and <code>B</code>. </p> <p>While <code>A</code> is visible I have <code>ActionItem</code> visible. Up on replacing fragment <code>A</code> with <code>B</code> I hide <code>ActionItem</code> which are filt...
I have faced quite weird problem I've been fighting with for several days. I have two fragments A and B . While A is visible I have ActionItem visible. Up on replacing fragment A with B I hide ActionItem which are filters for data in onCreate() (tried in onConfigurationChanged() too). And it DOES hide. But when the ori...
android|android-fragments|android-actionbar
0
2015-02-26T11:36:21.720Z
2,015
2
11
3
281
3
877
43
3
5
true
false
false
false
false
false
zero
28,741,466
Exception on transfering BigDecimal over Google Cloud Endpoints
<p>I'm trying to transfer Articles data over cloud endpoints and the legacy application ( Android ) uses data structure that requires all the prices be in BigDecimal. Here is my Entity class:</p> <pre><code>import org.hibernate.annotations.GenericGenerator; import java.math.BigDecimal; import javax.persistence.Basic...
I'm trying to transfer Articles data over cloud endpoints and the legacy application ( Android ) uses data structure that requires all the prices be in BigDecimal. Here is my Entity class: [CODE] Using the API explorer I get the following result: [CODE] When trying to consume the endpoint in android using this code: [C...
java|android|google-app-engine|google-cloud-endpoints
1
2015-02-26T11:39:11.063Z
2,015
2
11
3
960
1
599
63
4
5
true
false
false
false
false
false
low
28,741,468
Android ImageView md5 different from original image
<p>I have an image downloaded from an API. I set the image to the imageview using <code>imageView.setImageUri(uri)</code>.</p> <p>The problem happened when I check for the color of a certain pixel of the image which is slightly different from the color on the original image. Later on I check the md5 of the original im...
I have an image downloaded from an API. I set the image to the imageview using imageView.setImageUri(uri) . The problem happened when I check for the color of a certain pixel of the image which is slightly different from the color on the original image. Later on I check the md5 of the original image is different with w...
android|image|imageview|md5
0
2015-02-26T11:39:14.100Z
2,015
2
11
3
98
0
464
51
4
0
false
true
false
false
false
false
zero
28,741,496
Read an image from jni code in android
<p>I'm new to JNI and for my work i need to read an image from sd card(emulator/device) through jni(c++ part) in android. Is this possible or the only way is by passing the image from java part. </p>
I'm new to JNI and for my work i need to read an image from sd card(emulator/device) through jni(c++ part) in android. Is this possible or the only way is by passing the image from java part.
android|c++|image-processing|android-ndk|java-native-interface
-1
2015-02-26T11:40:20.997Z
2,015
2
11
3
861
1
191
38
5
0
false
false
false
false
false
true
negative
28,741,570
android button ripple effect border color
<p>Iv've been trying to match a button solid color with its border color while also adding a ripple effect. I've have a matching border and solid color (without a ripple) but when I add the ripple it seems to add a border of its own thats slightly darker. Below are the styles and drawable,</p> <p>drawable-v21/my_btn.x...
Iv've been trying to match a button solid color with its border color while also adding a ripple effect. I've have a matching border and solid color (without a ripple) but when I add the ripple it seems to add a border of its own thats slightly darker. Below are the styles and drawable, drawable-v21/my_btn.xml [CODE] s...
android|android-drawable|android-styles|rippledrawable
3
2015-02-26T11:44:00.327Z
2,015
2
11
3
1,432
0
501
41
4
3
true
true
false
false
false
false
low
28,741,638
ACTION_MEDIA_MOUNTED not refreshing gallery
<p>I am getting image from server and display it in my application,and I download that image and downloading is working fine,but when I check my gallery image is not showing there,then in dev tools-Media Scanner I scan my SD card and again check my gallery and then image is showing..so how can I solve it..even I tried ...
I am getting image from server and display it in my application,and I download that image and downloading is working fine,but when I check my gallery image is not showing there,then in dev tools-Media Scanner I scan my SD card and again check my gallery and then image is showing..so how can I solve it..even I tried it ...
android|android-intent|android-mediascanner
-1
2015-02-26T11:47:16.197Z
2,015
2
11
3
293
1
419
43
3
1
true
false
false
false
false
true
negative
28,741,645
How to implement OnScrollListener to a listview??
<p>i am getting 500 records from server..i want to display 10 items in a listview and when listview reaches end i need to load another 10 and so on.. I have seen many examples in the net but i am unable to resolve it Pls help me.</p> <p>Here is my code:</p> <pre><code>public void onCreate(Bundle savedInstanceState) {...
i am getting 500 records from server..i want to display 10 items in a listview and when listview reaches end i need to load another 10 and so on.. I have seen many examples in the net but i am unable to resolve it Pls help me. Here is my code: [CODE]
android
5
2015-02-26T11:47:36.203Z
2,015
2
11
3
19,267
3
250
49
1
1
true
false
true
true
false
false
low
28,741,669
Android: SQLite GROUP BY
<p>In my application, I have a database table containing chat messages,like below.</p> <pre><code>|---------------------------------------------| |message | from | to |time |-------------|-------|------|----------------| |Hello |user1 |user2 |2015-2-26 1:15PM| |-------------|-------|------|------------...
In my application, I have a database table containing chat messages,like below. [CODE] In my messages page I want list messages from all users. In this condition assume, "user1" as log-inned user, Currently I am using query, [CODE] and I am getting output as, [CODE] What I want is distinct rows (like all chat apps), [C...
android|mysql|sql|sqlite
0
2015-02-26T11:48:35.893Z
2,015
2
11
3
719
3
384
24
4
4
true
false
false
false
false
false
zero
28,741,681
Asmack login issue on Android 5.0 and above
<p>I am facing an asmack SSL connection issue on Android 5.0 and above. I think it's related to security.</p> <p>I resolved it by disabling following before connecting:</p> <pre><code>config.setSASLAuthenticationEnabled(false); config.setSecurityMode(SecurityMode.disabled); </code></pre> <p>But I do want security en...
I am facing an asmack SSL connection issue on Android 5.0 and above. I think it's related to security. I resolved it by disabling following before connecting: [CODE] But I do want security enabled. How to resolve it without disabling setSecurityMode ? I looked the changes 5.0 http://developer.android.com/about/versions...
android|xmpp|asmack
5
2015-02-26T11:49:04.713Z
2,015
2
11
3
767
1
397
43
3
2
true
false
false
false
false
false
low
28,741,697
Android Studio - How to configure Android Studio to ask about the project to open when he start?
<p>When I open <code>Android Studio IDE</code> they open the last project that I opned :</p> <p>I want Android Studio to ask me about the project to open, How do I do it ?</p>
When I open Android Studio IDE they open the last project that I opned : I want Android Studio to ask me about the project to open, How do I do it ?
android|android-studio
5
2015-02-26T11:49:44.240Z
2,015
2
11
3
1,187
3
148
96
2
0
false
false
false
false
false
false
low
28,741,701
How to make vertical lockable scrollview in android?
<p>Now am using horizontal lockable scroll view. (i.e) am just scrolling the linear layout horizontally when ever the next button and back button is clicked respectively.so I used one Lockablescrollview class extends Horizontalscrollview to perform the linear layout to move horizontally.</p> <p>Now I want that to scro...
Now am using horizontal lockable scroll view. (i.e) am just scrolling the linear layout horizontally when ever the next button and back button is clicked respectively.so I used one Lockablescrollview class extends Horizontalscrollview to perform the linear layout to move horizontally. Now I want that to scroll it on ve...
android|scrollview
0
2015-02-26T11:49:56.670Z
2,015
2
11
3
240
1
360
52
2
0
false
false
false
false
false
false
zero
28,741,707
Android Blutooth Printer - Printing HTML Text
<p>I am making an android app in which app prints data on printer connected via Bluetooth. I have successfully connected printer via Bluetooth and app is able to print plain text and image also. But I am unable to print HTML text.</p> <p>To print plain text, I use the following code</p> <pre><code>byte[] cmd = new by...
I am making an android app in which app prints data on printer connected via Bluetooth. I have successfully connected printer via Bluetooth and app is able to print plain text and image also. But I am unable to print HTML text. To print plain text, I use the following code [CODE] To print image, I use the following cod...
java|android|printing|bluetooth
1
2015-02-26T11:50:12.990Z
2,015
2
11
3
1,183
0
451
45
4
3
true
true
false
false
false
false
low
28,741,829
Prevent "Complete action using..." dialog in android's chrome, when tapping a link?
<p>I've met this problem in Android's Chrome browser. When I try to open a link, which leads to google plus account, with target blank attribute:</p> <p><code>&lt;a href="http://plus.google.com" target="_blank"&gt;link&lt;/a&gt;</code></p> <p>It asks me to "Complete action using: "Chrome", "Google+" or "Native browse...
I've met this problem in Android's Chrome browser. When I try to open a link, which leads to google plus account, with target blank attribute: <a href="http://plus.google.com" target="_blank">link</a> It asks me to "Complete action using: "Chrome", "Google+" or "Native browser". And if I choose "Chrome", link is being ...
javascript|android|html|anchor|mobile-chrome
3
2015-02-26T11:56:00.540Z
2,015
2
11
3
668
1
531
83
5
0
false
false
false
false
false
false
low
28,741,835
android: calling a method each time a button is clicked
<p>i would like to create a class, which extends Button and implement a method, which is alwasy called, when the Button is clicked. But i still want it's OnClickListener to be called. My Idea is to save the OnClickListener into a private member when the constructor or setOnClickListener is called and then set the OnCli...
i would like to create a class, which extends Button and implement a method, which is alwasy called, when the Button is clicked. But i still want it's OnClickListener to be called. My Idea is to save the OnClickListener into a private member when the constructor or setOnClickListener is called and then set the OnClickL...
android|button
-3
2015-02-26T11:56:16.957Z
2,015
2
11
3
106
1
638
55
2
0
false
false
false
false
false
true
negative
28,741,878
Save image to custom folder android on onPictureTaken
<p>i need to save an image to a custom folder in my phone. my code is</p> <pre><code>@Override public void onPictureTaken(byte[] data, Camera camera) { if (data != null) { FileOutputStream outStream = null; try { Random generator = new Random(); ...
i need to save an image to a custom folder in my phone. my code is [CODE] not working
android|camera
3
2015-02-26T11:58:30.013Z
2,015
2
11
3
6,932
3
85
53
2
1
true
false
true
false
false
false
low
28,741,989
Open back camera on Android using Intents
<p>Using this code, I start the Andorid camera:</p> <pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image file name // start the image capture In...
Using this code, I start the Andorid camera: [CODE] But this code opens back camera . Is it possible to launch the Intent in order to open the front camera ?
android|android-camera
1
2015-02-26T12:04:04.310Z
2,015
2
12
3
2,280
1
157
41
2
1
true
false
false
false
false
false
low
28,742,046
How to blink image in back to back 4 image in android
<p>I want to blink the images in back to back upto 4 images. this means that 1 image is shown n gone and when 1st image is gone then show the 2nd image and when 2nd image is gone then show 3rd image this process is continue for my requirement and images are loaded in run time. </p>
I want to blink the images in back to back upto 4 images. this means that 1 image is shown n gone and when 1st image is gone then show the 2nd image and when 2nd image is gone then show 3rd image this process is continue for my requirement and images are loaded in run time.
java|android|animation|android-animation
0
2015-02-26T12:07:24.450Z
2,015
2
12
3
109
2
274
53
4
0
false
false
false
false
false
false
zero
28,742,051
NavigationDrawer, different activities
<p>I want to use a NavigationDrawer for switching between different activities. This works fine, but as the standard way is to create a Drawer for every Activity, I have problems to figure out to keep the actual selection. I have a NavigationFrawerFragment (generated by Android Studio) which is created for every activi...
I want to use a NavigationDrawer for switching between different activities. This works fine, but as the standard way is to create a Drawer for every Activity, I have problems to figure out to keep the actual selection. I have a NavigationFrawerFragment (generated by Android Studio) which is created for every activity:...
android|navigation-drawer
1
2015-02-26T12:07:50.867Z
2,015
2
12
3
112
1
478
38
2
1
true
false
false
false
false
false
low
28,742,085
Android studio mipmap and 9-patch drawables
<p>I am facing strange issue trying to put 9 patch drawables into new android studio mipmap directories. I've put all the images to specified folders, just as I used to do with drawable, but when I try to include it in a project it says </p> <blockquote> <p>Cannot resolve symbol @mipmap/myfile</p> </blockquote> <p>...
I am facing strange issue trying to put 9 patch drawables into new android studio mipmap directories. I've put all the images to specified folders, just as I used to do with drawable, but when I try to include it in a project it says Cannot resolve symbol @mipmap/myfile but it definitely "finds" it as you can see at th...
android-studio|nine-patch|mipmaps
2
2015-02-26T12:09:08.230Z
2,015
2
12
3
5,621
2
677
43
3
0
false
false
true
false
false
false
low
28,742,090
How to efficiently update and get data from a SQLite database on Android?
<p>I am making an app which gets a time schedule from a website and display it in my app in a nice ListView. To make the schedule available when the user is offline I am trying to save it in a SQLite database first and get the data from there. The idea is that the database gets updated when the user starts the app, whe...
I am making an app which gets a time schedule from a website and display it in my app in a nice ListView. To make the schedule available when the user is offline I am trying to save it in a SQLite database first and get the data from there. The idea is that the database gets updated when the user starts the app, when t...
android|android-asynctask|android-handlerthread
0
2015-02-26T12:09:16.070Z
2,015
2
12
3
1,035
1
773
73
3
0
false
false
false
false
false
false
zero
28,742,138
How does facebook decide if an Android app is a release or a development version?
<p>I work on an app that has Facebook integration. </p> <p>To configure Facebook I can configure release and development key hashes to verify my app during single sign on through the Facebook app. </p> <p>How decides Facebook if an app is a release or a development app? </p>
I work on an app that has Facebook integration. To configure Facebook I can configure release and development key hashes to verify my app during single sign on through the Facebook app. How decides Facebook if an app is a release or a development app?
android|facebook
1
2015-02-26T12:11:36.963Z
2,015
2
12
3
35
1
251
81
2
0
false
false
false
false
false
false
low
28,742,149
PackageManage checkSignatures only working one way
<p>I'm writing an "unlocker" app to unlock premium features of my app, and am using PackageManager.checkSignatures to: (a) Check that the unlocker app is installed (from the MainActivity of the main app) (b) Check whether the main app is installed (from the MainActivity of the unlocker app). My problem is that while c...
I'm writing an "unlocker" app to unlock premium features of my app, and am using PackageManager.checkSignatures to: (a) Check that the unlocker app is installed (from the MainActivity of the main app) (b) Check whether the main app is installed (from the MainActivity of the unlocker app). My problem is that while check...
android
0
2015-02-26T12:12:04.430Z
2,015
2
12
3
121
0
679
50
1
2
true
true
false
false
false
false
zero
28,742,164
Android and View size
<p>I would just like to know if every time I need to set the View's size (width or/and height) as a function of its parent size (e.g. width = 0.5 * parent_size), I have to create a custom View and override <a href="http://developer.android.com/reference/android/view/View.html#onMeasure(int,%20int)" rel="nofollow">onMea...
I would just like to know if every time I need to set the View's size (width or/and height) as a function of its parent size (e.g. width = 0.5 * parent_size), I have to create a custom View and override onMeasure() or is there a way to do it using XML? Thank you in advance! Edit: What I'd like to achieve is something l...
android|android-layout
0
2015-02-26T12:12:49.533Z
2,015
2
12
3
75
3
476
21
2
0
false
false
false
false
false
false
zero
28,742,186
Cordova/phonegap activity lifecycle
<p>I'm working on a map plugin for android in a cordova application (let's forget for a second that there is already more than one in the wild, and consider this an academical question), <a href="http://developer.android.com/reference/com/google/android/gms/maps/MapView.html" rel="nofollow" title="MapView documentation...
I'm working on a map plugin for android in a cordova application (let's forget for a second that there is already more than one in the wild, and consider this an academical question), the documentation for MapView states : Users of this class must forward all the life cycle methods from the Activity or Fragment contain...
android|google-maps|cordova|phonegap-plugins|cordova-plugins
3
2015-02-26T12:13:45.693Z
2,015
2
12
3
2,180
2
677
35
5
1
true
false
false
false
false
false
low
28,742,228
How to check availability and length of new data through Android Volley
<p>I have used Android Volley library for loading and caching of data coming from a server. The following is the simple code I used.</p> <pre><code>// Creating volley request queue RequestQueue queue = Volley.newRequestQueue(getActivity()); // Creating volley request obj JsonArrayRequest mReq = new JsonArrayRequest(u...
I have used Android Volley library for loading and caching of data coming from a server. The following is the simple code I used. [CODE] The loading and caching are working fine. Now, I want to display a message like "15 new data available. Tap to load." at the top of my layout whenever new data is available at server ...
android|caching|android-volley
1
2015-02-26T12:15:48.683Z
2,015
2
12
3
603
0
557
71
3
1
true
true
false
false
false
false
low
28,742,231
Image View is opening a wrong image when clicked on thumbnail image in grid view android
<p>I have some images which is displayed in grid View. If I click on thumbnail image in grid view sometimes it opens a wrong image.</p> <p>Please note: Not all the time.</p> <p>This issue i'll face only when I take a picture and goto grid View and trying to open the image which I recently took. For example I have 99 ...
I have some images which is displayed in grid View. If I click on thumbnail image in grid view sometimes it opens a wrong image. Please note: Not all the time. This issue i'll face only when I take a picture and goto grid View and trying to open the image which I recently took. For example I have 99 images in grid view...
android|gridview|imageview
0
2015-02-26T12:15:53.757Z
2,015
2
12
3
419
0
624
88
3
2
true
true
false
false
false
false
zero
28,742,275
How to get value while onProgressUpdate AsyncTask from another class?
<p>I usually use AsyncTask in the same class with the caller, but now I want to call asyntask from different class using interface class,I want to get value from onProgressUpdate call from another clas, this my asynctask class..</p> <pre><code>class UploadFileToServer extends AsyncTask&lt;String, Integer, String&gt; i...
I usually use AsyncTask in the same class with the caller, but now I want to call asyntask from different class using interface class,I want to get value from onProgressUpdate call from another clas, this my asynctask class.. [CODE] in my activity class [CODE] I use interface class for comunicated with diferent class, ...
android|interface|android-asynctask
0
2015-02-26T12:17:57.887Z
2,015
2
12
3
687
1
425
69
3
3
true
false
false
false
false
false
zero
28,742,294
Cursor in sqlite remaining in -1 position
<p>I am coding for an android app, I have 3 columns in my database, I have put values into the database using a cursor and I want to retrieve those and display it. But while retrieving it i am getting an exception i.e. <strong><em>CursorIndexOutofBounds Exception, index -1 requested with a size of 1</em></strong>. Duri...
I am coding for an android app, I have 3 columns in my database, I have put values into the database using a cursor and I want to retrieve those and display it. But while retrieving it i am getting an exception i.e. CursorIndexOutofBounds Exception, index -1 requested with a size of 1 . During debugging i realized that...
android|sqlite|android-cursor
-1
2015-02-26T12:18:57.143Z
2,015
2
12
3
257
1
516
41
3
2
true
false
false
false
false
true
negative
28,742,302
How to resolve 'getData()' method in recyclerview using android studio
<p>i have followed Slidenerd's tutorial on youtube on how to create a material design navigation drawer using android studio. However on running the app i get this <code>cannot resolve method getData()</code> and on the console <code>Error:(56, 46) error: cannot find symbol method getData()</code> error on<code>adapter...
i have followed Slidenerd's tutorial on youtube on how to create a material design navigation drawer using android studio. However on running the app i get this cannot resolve method getData() and on the console Error:(56, 46) error: cannot find symbol method getData() error on adapter=new AdapterClass(getActivity().ge...
java|android|android-studio|material-design|android-recyclerview
0
2015-02-26T12:19:19.343Z
2,015
2
12
3
2,840
2
467
70
5
2
true
false
true
false
false
false
zero
28,742,315
how to upload files using retrofit?
<p>i have a web service controller calss like this</p> <pre><code>public class User { private String user; // JSON string private CommonsMultipartFile photo1; private CommonsMultipartFile photo2; private CommonsMultipartFile photo3; private CommonsMultipartFile photo4; P...
i have a web service controller calss like this [CODE] the above create() method accepts object of type User. In client app i am calling this webservice like bellow using retrofit [CODE] But it is giving me no defaut constructor found at controller class in server side. Please check where i am doing wrong. Please solve...
android|json|spring|retrofit
1
2015-02-26T12:19:56.103Z
2,015
2
12
3
224
0
334
35
4
2
true
true
false
false
false
false
low
28,742,343
Android: Open/read or copy file in local network
<p>completely newby in Android, coming from c# world.. I've written a little private app for android and that must not be available on play store and the like... the app is using JTDS to directly connect to local SQL Server to manage "inputs" from the device, and it works as expected :)</p> <p>again, the app can not ...
completely newby in Android, coming from c# world.. I've written a little private app for android and that must not be available on play store and the like... the app is using JTDS to directly connect to local SQL Server to manage "inputs" from the device, and it works as expected :) again, the app can not be updated v...
java|android
0
2015-02-26T12:21:35.547Z
2,015
2
12
3
3,486
1
1,414
48
2
0
false
false
true
false
false
false
zero
28,742,385
How can I horizontally align two Textviews without overlapping?
<p>I'm trying to put an N (new) badge at the end of the <code>Textview</code>. But Android Studio gives me that two <code>Textview</code>s, <code>hashtag_list_row_title</code> and <code>hashtag_list_row_new</code> can overlap if one <code>Textview</code> contains some lengthy string.</p> <p>In production environment, ...
I'm trying to put an N (new) badge at the end of the Textview . But Android Studio gives me that two Textview s, hashtag_list_row_title and hashtag_list_row_new can overlap if one Textview contains some lengthy string. In production environment, it's not likely that hashtag_list_row_title is long, but I want to prevent...
android|textview
2
2015-02-26T12:23:28.157Z
2,015
2
12
3
926
3
1,277
63
2
1
true
false
false
false
false
false
low
28,742,414
cannot find symbol class BaseExpandableListAdapter android studio error
<p>i'm new to android studio and i'm trying to user BaseExpandableListAdapter and while running my project it raises an error says that</p> <p>Cannot find symbol class BaseExpandableListAdapter and here is extra errors for class functions</p> <p><strong>Error :</strong></p> <pre><code>Error:(66, 43) error: cannot fi...
i'm new to android studio and i'm trying to user BaseExpandableListAdapter and while running my project it raises an error says that Cannot find symbol class BaseExpandableListAdapter and here is extra errors for class functions Error : [CODE] my android studio version 1.1.0
android|android-studio
0
2015-02-26T12:24:38.843Z
2,015
2
12
3
711
1
275
71
2
1
true
false
false
false
false
false
zero
28,742,434
Managing Audio in A Native Android Application
<p>I am trying to write a native android application in which I want to play couple of audio streams. In order to have proper synchronization with other audio streams in rest of the android system, I need to manage playback of these streams properly. While programming in java, android framework provides APIs like 'Audi...
I am trying to write a native android application in which I want to play couple of audio streams. In order to have proper synchronization with other audio streams in rest of the android system, I need to manage playback of these streams properly. While programming in java, android framework provides APIs like 'AudioMa...
android|audio|android-ndk
1
2015-02-26T12:25:31.213Z
2,015
2
12
3
119
0
709
46
3
0
false
true
false
false
false
false
low
28,742,478
Android Studio Issue
<p>This error arise <strong>Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at <a href="http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html" rel="n...
This error arise Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html Please read the following p...
android
9
2015-02-26T12:27:57.093Z
2,015
2
12
3
10,330
4
655
20
1
0
false
false
true
false
false
false
medium
28,742,494
how to remove a complete layout in custom list view adapter in android?
<p>In my application i want to remove the row in custom list item whenever i touch the list view item layout. i try to delete with the help of position. but it is stopped.</p> <p>code:</p> <pre><code> @Override public View getView(final int position, View convertView, ViewGroup parent) { // TODO Auto-gen...
In my application i want to remove the row in custom list item whenever i touch the list view item layout. i try to delete with the help of position. but it is stopped. code: [CODE] In my application i want to remove the row in custom list item whenever i touch the list view item layout. i try to delete with the help o...
android|android-listview
0
2015-02-26T12:28:39.587Z
2,015
2
12
3
211
1
350
71
2
1
true
false
false
false
false
false
zero
28,742,495
Testing background color espresso Android
<p>Is it possible to check if the background color matches a given color with espresso? </p> <p><strong>Update:</strong></p> <p>I made a custom matcher, similar to what @Irfan suggested, thanks!</p> <pre><code>public static Matcher&lt;Object&gt; backgroundShouldHaveColor(int expectedColor) { return buttondShould...
Is it possible to check if the background color matches a given color with espresso? Update: I made a custom matcher, similar to what @Irfan suggested, thanks! [CODE]
android|testing|android-espresso
18
2015-02-26T12:28:48.827Z
2,015
2
12
3
20,669
8
166
41
3
1
true
false
true
true
true
false
medium
28,742,606
Mapbox select pin listener
<p>How to get listener for <a href="https://www.mapbox.com/" rel="nofollow">MapBox</a> pin. I want to change the drawable icon when I tap on the marker.</p> <pre><code>Marker marker = new Marker(myMapBoxView,title, details, new LatLng(latitude,longitude)); marker.setIcon(new Icon(myDrawable))); </code>...
How to get listener for MapBox pin. I want to change the drawable icon when I tap on the marker. [CODE] If I will tap this marker I will want to change the drawable. What is the listener to get this action. Thank you!
android|mapbox
0
2015-02-26T12:33:43.237Z
2,015
2
12
3
838
1
217
26
2
1
true
false
false
false
false
false
zero
28,742,631
Google Voice Typing on Activity
<p>This is <a href="http://img.wonderhowto.com/img/03/68/63509153521251/0/type-more-accurately-efficiently-your-samsung-galaxy-s3-with-wordwaves-intelligent-keyboard.w654.jpg" rel="nofollow noreferrer">Google Voice Typing</a> I would like to implement it on a activity (not <a href="http://android-developers.blogspot.co...
This is Google Voice Typing I would like to implement it on a activity (not IME ), because it offers continous speech recognition. I ve seen that some people ( like those guys ) create a service which contains a speech recognition loop. I would like to avoid that, and use Google Voice Typing and get partial results.
android|voice-recognition|voice|speech-to-text|ime
1
2015-02-26T12:34:53.303Z
2,015
2
12
3
351
1
317
31
5
0
false
false
false
false
false
false
low
28,742,650
lock screen dialog notification like whatsapp
<p>i am working on a chat application like whatsapp, i am working on popup notification on lock screen. i developed the code but the problem is -- i used two buttons on the dialog like whatsapp as close and view, but the onclick listener on buttons is not working , because of the dialog not having focus, whenever i cli...
i am working on a chat application like whatsapp, i am working on popup notification on lock screen. i developed the code but the problem is -- i used two buttons on the dialog like whatsapp as close and view, but the onclick listener on buttons is not working , because of the dialog not having focus, whenever i click ...
android|dialog|notifications|adt|whatsapp
3
2015-02-26T12:35:46.737Z
2,015
2
12
3
5,409
2
597
45
5
1
true
false
true
false
false
false
low
28,742,707
Does onsip-cordova plugin support android?
<p>i'm building an app for telecommunication that uses SIP, but i want to build a cross-platform app with cordova, but i didn't found a lot of info about that, other than two web SIP libraries, SIPML5, and onsip-cordova, i tried to use the last one, but when i followed the guide in their website, for android, the INVIT...
i'm building an app for telecommunication that uses SIP, but i want to build a cross-platform app with cordova, but i didn't found a lot of info about that, other than two web SIP libraries, SIPML5, and onsip-cordova, i tried to use the last one, but when i followed the guide in their website, for android, the INVITE r...
android|cordova|sip
0
2015-02-26T12:38:22.897Z
2,015
2
12
3
381
1
535
42
3
0
false
false
false
false
false
false
zero