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,537,434
Is there a way to speed up touch/click detection?
<p>I have been working on a game where speed is required to score well, in the game the user is clicking on objects and using them with other objects which are held in a gridView that's being controlled by an imageAdapter. I have noticed that when I click quite fast some clicks don't register, I have cleaned up the cod...
I have been working on a game where speed is required to score well, in the game the user is clicking on objects and using them with other objects which are held in a gridView that's being controlled by an imageAdapter. I have noticed that when I click quite fast some clicks don't register, I have cleaned up the code r...
android
0
2015-02-16T08:41:37.923Z
2,015
2
8
0
347
2
641
49
1
0
false
false
false
false
false
false
zero
28,537,439
how to install google play store in android sdk emulator
<p>I am using android SD k emulator in windows 8.1 computer and this works fine.</p> <p>only problem is i unable to install Google play store in it.</p> <p>i follow the link below, but no error and the problem is still same.</p> <p><a href="https://stackoverflow.com/questions/11154222/google-play-on-android-4-0-emul...
I am using android SD k emulator in windows 8.1 computer and this works fine. only problem is i unable to install Google play store in it. i follow the link below, but no error and the problem is still same. Google Play on Android 4.0 emulator anybody please help me
android|shell|cmd|android-emulator|adb
-1
2015-02-16T08:41:54.133Z
2,015
2
8
0
742
1
266
56
5
0
false
false
false
false
false
true
negative
28,537,457
android parse jsonObject with volley
<p>I first time try to parse json with volley. i found some examples and i learned how to use it. but I have one problem.... i have like this json</p> <pre><code> { "Items ": [ { "Branch" :"mybranch", "City" : "London" }, { "Branch" :"mybranch1", "City" : "Paris" }, { "Branch" :"mybranch2", "City" :...
I first time try to parse json with volley. i found some examples and i learned how to use it. but I have one problem.... i have like this json [CODE] and this is a my parser code [CODE] I can show jsonobject result in log but i have volley error [CODE] for my option i have something wrong in parse son..what am i doing...
android|json|gson|android-volley|http-get
0
2015-02-16T08:42:53.727Z
2,015
2
8
0
1,331
2
327
36
5
3
true
false
false
false
false
false
zero
28,537,468
getting cellular network status via ADB shell
<p>Is it possible to check via ADB if the phone is connected to a cellular network?</p> <p>I had a look at <a href="http://developer.android.com/reference/android/net/ConnectivityManager.html#EXTRA_EXTRA_INFO" rel="noreferrer">ConnectivityManager</a>, but it is for android application development.</p>
Is it possible to check via ADB if the phone is connected to a cellular network? I had a look at ConnectivityManager , but it is for android application development.
android|adb
6
2015-02-16T08:43:20.200Z
2,015
2
8
0
22,724
3
165
45
2
0
false
false
true
true
false
false
medium
28,537,477
cordova - responsive web design
<p>My HTML apps is having almost the same layout on any size mobile device &amp; tablets or PC. Even font uses to adjust as per the screen size. I can also zoom in &amp; out to my app when I open it in chrome browser</p> <p>But when I convert this html app to android app using cordova, My android app does not show sam...
My HTML apps is having almost the same layout on any size mobile device & tablets or PC. Even font uses to adjust as per the screen size. I can also zoom in & out to my app when I open it in chrome browser But when I convert this html app to android app using cordova, My android app does not show same flexibility. Font...
android|html|css|cordova
0
2015-02-16T08:43:49.307Z
2,015
2
8
0
1,909
1
1,121
31
4
1
true
false
false
false
false
false
zero
28,537,484
Changing action bar color
<p>I used this website to create files to change my action bar color:</p> <p><a href="http://jgilfelt.github.io/android-actionbarstylegenerator/#name=beerPortfolio&amp;compat=holo&amp;theme=light&amp;actionbarstyle=solid&amp;texture=0&amp;hairline=0&amp;neutralPressed=1&amp;backColor=f80%2C100&amp;secondaryColor=D6D6D...
I used this website to create files to change my action bar color: http://jgilfelt.github.io/android-actionbarstylegenerator/#name=beerPortfolio&compat=holo&theme=light&actionbarstyle=solid&texture=0&hairline=0&neutralPressed=1&backColor=f80%2C100&secondaryColor=D6D6D6%2C100&tabColor=f80%2C100&tertiaryColor=F2F2F2%2C10...
android|android-actionbar
0
2015-02-16T08:44:12.920Z
2,015
2
8
0
164
2
610
25
2
0
false
false
false
false
false
false
zero
28,537,498
Tapping android screen solves media skipping, how to fix?
<p>I wrote an Android app that plays multi-track audio files and it works completely in the simulator. On the device, it plays for a few seconds and then starts skipping and popping every few seconds. If I continuously tap the screen in the dead space of the app, the skipping doesn't occur and then recurs about 5 sec...
I wrote an Android app that plays multi-track audio files and it works completely in the simulator. On the device, it plays for a few seconds and then starts skipping and popping every few seconds. If I continuously tap the screen in the dead space of the app, the skipping doesn't occur and then recurs about 5 seconds ...
java|android
1
2015-02-16T08:45:10.723Z
2,015
2
8
0
95
1
853
57
2
2
true
false
false
false
false
false
low
28,537,562
Native video players for Android that can support HLS, DRM
<p>I'm researching options for native android players available today that can support features such as HLS and DRM.</p> <p>I've come across Google's ExoPlayer and NexStreaming's NexPlayer. Could anyone provide some more alternatives? Preferably open source ones. </p>
I'm researching options for native android players available today that can support features such as HLS and DRM. I've come across Google's ExoPlayer and NexStreaming's NexPlayer. Could anyone provide some more alternatives? Preferably open source ones.
android|android-video-player|drm|http-live-streaming
0
2015-02-16T08:49:13.410Z
2,015
2
8
0
2,066
1
253
58
4
0
false
false
false
false
false
false
zero
28,537,571
Passing data from fragment to fragment
<p>I have two activities says Activity A and Activity B.</p> <p>Activity A contains Fragments AF1,AF2. Activity B contains Fragments BF1,BF2.</p> <p>Currently I am in AF1.</p> <ol> <li>How can we pass data(bundle) from AF1 to AF2?</li> <li>How can we pass data (bundle) from AF1 to BF2?</li> </ol>
I have two activities says Activity A and Activity B. Activity A contains Fragments AF1,AF2. Activity B contains Fragments BF1,BF2. Currently I am in AF1. How can we pass data(bundle) from AF1 to AF2? How can we pass data (bundle) from AF1 to BF2?
android|android-activity|android-fragments|bundle
0
2015-02-16T08:49:42.270Z
2,015
2
8
0
169
2
247
38
4
0
false
false
false
false
false
false
zero
28,537,576
Launcher App chooser dialog is not being displayed
<p>I want to display Launcher app chooser dialog whenever I want but It is not displaying , app is getting closed.</p> <p>This is my code : </p> <pre><code> getPackageManager().clearPackagePreferredActivities(getPackageName()); Intent i = new Intent(Intent.ACTION_MAIN); i.addCategory(Intent.CATEGORY_HOME);...
I want to display Launcher app chooser dialog whenever I want but It is not displaying , app is getting closed. This is my code : [CODE] If I set phone launcher as default by pressing always then it will not display the dialog , I am really confused why it is happening.
android|android-launcher|kiosk-mode
-1
2015-02-16T08:49:54.480Z
2,015
2
8
0
733
2
270
50
3
1
true
false
false
false
false
true
negative
28,537,655
Is it possible to get real time coordinates of an ImageView while it is in Translate animation?
<p>I have an image of a bullet in an ImageView that does Translate animation.</p> <p>I need to show real time coordinates to show how far it is from target in real time.</p> <pre><code>ImageView myimage = (ImageView)findViewById(R.id.myimage); Animation animation = new TranslateAnimation(100, 200, 300, 400); anim...
I have an image of a bullet in an ImageView that does Translate animation. I need to show real time coordinates to show how far it is from target in real time. [CODE] Is it possible to get real time x and y coordinates of the image while it is doing TranslateAnimation ? And if its not possible using TranslateAnimation,...
android|imageview|coordinates|translate-animation
13
2015-02-16T08:55:07.033Z
2,015
2
8
0
4,926
3
512
95
4
3
true
false
true
false
true
false
medium
28,537,694
Android annotations gradle warning
<p>I'm using <strong>Android Studio 1.1 beta 4</strong> with <strong>gradle plugin 1.0.1</strong> and trying to add Android Annotations to my project following the <a href="https://github.com/excilys/androidannotations/wiki/Building-Project-Gradle" rel="nofollow">official insturctions</a>. So I get the following <stron...
I'm using Android Studio 1.1 beta 4 with gradle plugin 1.0.1 and trying to add Android Annotations to my project following the official insturctions . So I get the following build.gradle file: [CODE] And all works fine, but I get a warning in the line androidManifestFile variant.outputs[0].processResources.manifestFile...
android|gradle|android-annotations
3
2015-02-16T08:57:42.947Z
2,015
2
8
0
1,156
1
470
34
3
1
true
false
false
false
false
false
low
28,537,699
Android: SlidingMenu vs DrawerLayout
<p>What to use in 2015: <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow noreferrer">SlidingMenu</a> or <a href="http://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow noreferrer"><code>android.support.v4.widget.DrawerLayout</code></a>?</p> <p>SlidingMenu seems ...
What to use in 2015: SlidingMenu or android.support.v4.widget.DrawerLayout ? SlidingMenu seems to be popular but it is not updated since 10 Mar 2014 It seems like other example of Android standard thing superpassing some third parties libs, like ActionBarSherlock vs ActionBar Compatibility .
android|navigation
0
2015-02-16T08:57:52.243Z
2,015
2
8
0
736
1
292
36
2
0
false
false
false
false
false
false
zero
28,537,716
Is it possible to read gradle variables from Android resources xml file?
<p>I'm now in the process of migrating all my Maven config to Gradle. One thing that I liked with maven was the 'properties-maven-plugin', allowing me to declare all my configurable properties in a .properties file (like key=value) and reference that property in a Android xml file, like:</p> <pre><code>&lt;string name...
I'm now in the process of migrating all my Maven config to Gradle. One thing that I liked with maven was the 'properties-maven-plugin', allowing me to declare all my configurable properties in a .properties file (like key=value) and reference that property in a Android xml file, like: [CODE] Now I'd like to do the same...
android|maven|gradle
0
2015-02-16T08:58:37.613Z
2,015
2
8
0
393
1
643
72
3
1
true
false
false
false
false
false
zero
28,537,737
Android APK Expansion Zip File Total Files Limit?
<p>I am trying to play mp3 files from my app's apk expansion files. It was zip with no compression and it works well when the total files are about 20k. But after i added more files to around 50k files then getAssetFileDescriptor will simply return null. I tried reduced total files to about 20k again and it works so i ...
I am trying to play mp3 files from my app's apk expansion files. It was zip with no compression and it works well when the total files are about 20k. But after i added more files to around 50k files then getAssetFileDescriptor will simply return null. I tried reduced total files to about 20k again and it works so i am ...
android|apk-expansion-files
0
2015-02-16T08:59:31.840Z
2,015
2
8
0
99
0
523
49
2
0
false
true
false
false
false
false
zero
28,537,742
error code during application install -24 on Rooted device from Google Play Store
<p>I am trying to install the App from Google Play Store. Gets downloaded and fails during installation with:</p> <pre><code> unknown error code during application install -24 </code></pre> <p>The Same Application got installed with different certificate during debug runs from Android Studio. Now it is not get...
I am trying to install the App from Google Play Store. Gets downloaded and fails during installation with: [CODE] The Same Application got installed with different certificate during debug runs from Android Studio. Now it is not getting deleted or over written. How can i clear the cache completely? Connected the Mobile...
android|google-play
0
2015-02-16T08:59:56.653Z
2,015
2
8
0
265
3
430
81
2
2
true
false
false
false
false
false
zero
28,537,814
android LazyList cache issues in ArrayAdapter
<p>In my app i have a list of items, i'm getting items via LoaderManager. When i select or deselect items it doesn`t work properly, i mean sometimes not select all of them.Maybe it returns cached values to adapter in onLoadFinished method. Does anybody have ideas?</p> <pre><code>@EFragment(R.layout.fragment_mailbox) p...
In my app i have a list of items, i'm getting items via LoaderManager. When i select or deselect items it doesn`t work properly, i mean sometimes not select all of them.Maybe it returns cached values to adapter in onLoadFinished method. Does anybody have ideas? [CODE] } And here is my adapter. [CODE] }
android|android-arrayadapter|android-loadermanager|lazylist
1
2015-02-16T09:03:55.353Z
2,015
2
9
0
107
1
303
45
4
2
true
false
false
false
false
false
low
28,537,883
Android eclipse: is it possible to change decimal format to int?
<p>I'm making an application about PMT function. And I got stuck at some point. I have a function that will convert a number input from EditText to a decimal, e.g. 10000000 to 10,000,000. And there is another which clashing with this converter function. The another one handles 3 EditTexts, 1 EditText for price input, 2...
I'm making an application about PMT function. And I got stuck at some point. I have a function that will convert a number input from EditText to a decimal, e.g. 10000000 to 10,000,000. And there is another which clashing with this converter function. The another one handles 3 EditTexts, 1 EditText for price input, 2nd ...
android|eclipse
1
2015-02-16T09:08:36.100Z
2,015
2
9
0
110
0
740
64
2
2
true
true
false
false
false
false
low
28,537,888
Logout from twitter api android
<p>I am trying to integrate my app to twitter and I do it </p> <p>but my question is: How I can logout from twitter? can I remove RequestToken or OAuth of my app?</p> <p>I tried to use:</p> <ul> <li><code>twitter.setOAuthAccessToken(null);</code> </li> </ul> <p>but does not work</p> <ul> <li>callbackUrl = "api.twi...
I am trying to integrate my app to twitter and I do it but my question is: How I can logout from twitter? can I remove RequestToken or OAuth of my app? I tried to use: twitter.setOAuthAccessToken(null); but does not work callbackUrl = "api.twitter.com/oauth/authorize?force_login=true"; also does not work please help me...
android|twitter-oauth|twitter4j
4
2015-02-16T09:08:55.577Z
2,015
2
9
0
1,537
4
338
31
3
0
false
false
false
false
false
false
low
28,537,893
How to identify the white space is pressed from the keyboard
<p>I want to identify which key is pressed from the keyboard while type text into <code>EditText</code> box. I am using this code, but it is not working.</p> <pre><code>@Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if (keyCode == KeyEvent.KEYCODE_SPACE) { ...
I want to identify which key is pressed from the keyboard while type text into EditText box. I am using this code, but it is not working. [CODE] where i am getting wrong?
android|whitespace|keypress|android-keypad
2
2015-02-16T09:09:11.750Z
2,015
2
9
0
1,641
2
170
60
4
1
true
false
false
false
false
false
low
28,537,894
clicked listview to open detail view in android
<p>I have an XML file that consists of a title, a link to the image, and description.</p> <p>exp.</p> <pre><code>&lt;?xml ?&gt; &lt;wrap&gt; &lt;content&gt; &lt;title&gt;Title&lt;/title&gt; &lt;img&gt;link of image&lt;/img&gt; &lt;desc&gt;Descrioption&lt;/desc&gt; &lt;/content&gt; &lt;content&gt; &lt;title...
I have an XML file that consists of a title, a link to the image, and description. exp. [CODE] I want the title shown on Listview which when clicked will open a detail page complete with titles, pictures, and descriptions . examples such as those found at the following link Google's developer: http://developer.android....
javascript|android|xml
0
2015-02-16T09:09:18.497Z
2,015
2
9
0
165
0
616
47
3
8
true
true
false
false
false
false
zero
28,537,902
viewpager with retained fragment in tabs
<p>I searched about retaining Fragments in an Activity, but I need to know how to use retained Fragments in View Pager.<br> I found <a href="http://www.bernie-eng.com/blog/2013/01/23/retaining-fragments-in-viewpagers/" rel="nofollow">this</a>, but since it doesn't have complete code I couldn't understand it.<br> Could ...
I searched about retaining Fragments in an Activity, but I need to know how to use retained Fragments in View Pager. I found this , but since it doesn't have complete code I couldn't understand it. Could anyone address me a complete example or tutorial about using ViewPager with retained Fragment?
android|android-viewpager
1
2015-02-16T09:09:43.567Z
2,015
2
9
0
40
0
298
40
2
0
false
true
false
false
false
false
low
28,537,921
HTML5-Video crashes with "Surface Texture is abondoned" in Webview
<p>I created a webview in Android Studio with WebChromeClient and hardware accelaration turned on to play HTML5 videos in a custom playlist.</p> <p>Everything works fine for days, but when i leave the activity, i.e. to open a second one, and come back to the webview, most of the videos crashes after a while. The sound...
I created a webview in Android Studio with WebChromeClient and hardware accelaration turned on to play HTML5 videos in a custom playlist. Everything works fine for days, but when i leave the activity, i.e. to open a second one, and come back to the webview, most of the videos crashes after a while. The sound goes on, b...
android|html|video|webview
1
2015-02-16T09:11:02.467Z
2,015
2
9
0
438
1
658
66
4
3
true
false
false
false
false
false
low
28,537,930
ASP indirect download fails on android if chrome is used to download file
<p>i have a problem when downloading a file (indirect download mechanism) from my classic asp application with the android version of the Chrome browser (tested on android 5.01). The Download first fails and then gets queued ... It works with Opera, Firefox on Android, iOS and desktop version of chrome.</p> <p>The dif...
i have a problem when downloading a file (indirect download mechanism) from my classic asp application with the android version of the Chrome browser (tested on android 5.01). The Download first fails and then gets queued ... It works with Opera, Firefox on Android, iOS and desktop version of chrome. The difference bet...
android|google-chrome|download|download-manager
2
2015-02-16T09:11:19.387Z
2,015
2
9
0
175
0
748
73
4
0
false
true
false
false
false
false
low
28,538,078
java.lang.NoSuchFieldError: org.apache.http.message.BasicHeaderValueFormatter.INSTANCE android
<p>trying to upload large video using below code but getting this error&lt;<code>java.lang.NoSuchFieldError: org.apache.http.message.BasicHeaderValueFormatter.INSTANCE</code>>. i guess its happening due to multiple classpath but how to rectify in eclipse. and for this i have used jar files from <code>http://hc.apache.o...
trying to upload large video using below code but getting this error< java.lang.NoSuchFieldError: org.apache.http.message.BasicHeaderValueFormatter.INSTANCE >. i guess its happening due to multiple classpath but how to rectify in eclipse. and for this i have used jar files from http://hc.apache.org/downloads.cgi .have ...
android|eclipse|apache|httpclient
3
2015-02-16T09:20:30.983Z
2,015
2
9
0
7,449
1
425
94
4
2
true
false
true
false
false
false
low
28,538,086
How to store data in XML file in Android using Xamarin
<p>I'm developing an android app in xamarin using .net. I'm stuck to a very simple query, I just want to store simple data in XML file. I haven't started with any code I'm not getting any clue to start with it. Please help. </p>
I'm developing an android app in xamarin using .net. I'm stuck to a very simple query, I just want to store simple data in XML file. I haven't started with any code I'm not getting any clue to start with it. Please help.
android|xamarin|xamarin-studio
0
2015-02-16T09:21:13.697Z
2,015
2
9
0
1,452
1
220
54
3
0
false
false
false
false
false
false
zero
28,538,103
Android create Listener onLongClick for listview
<p>in my application i have one activity with some fragments. one of this fragments i have list view and <strong>i want to create Listener to listening onLongClick on Listview items from activity</strong>, for example if end-user press long click on listview items into Fragment i must be show Toast in activity</p> <p>...
in my application i have one activity with some fragments. one of this fragments i have list view and i want to create Listener to listening onLongClick on Listview items from activity , for example if end-user press long click on listview items into Fragment i must be show Toast in activity for this action i'm create ...
android|android-listview
-1
2015-02-16T09:22:19.763Z
2,015
2
9
0
205
2
668
48
2
5
true
false
false
false
false
true
negative
28,538,185
Relative layout gradient mask android
<p>Hi i'm now developing application that contain a profile like twitter profile I got a small problem . the problem is how to make a gradient black trasparent mask effect like this <img src="https://i.stack.imgur.com/zPCSO.png" alt="enter image description here"></p> <p>can anyone help me or provide me a code how ...
Hi i'm now developing application that contain a profile like twitter profile I got a small problem . the problem is how to make a gradient black trasparent mask effect like this can anyone help me or provide me a code how to make this effect with xml please thank's :)
android|xml|android-relativelayout
0
2015-02-16T09:27:58.217Z
2,015
2
9
0
609
1
269
37
3
0
false
false
false
false
false
false
zero
28,538,198
How to fix the warnings/errors that happens when using google-play-services for monodroid in xamarin?
<p>I am working on an android application using google-maps and I noticed that I had all these warnings of "iCCP: Not recognizing known sRGB profile that has been edited e_pack_holo_dark.9.png" etc around 6 of them. Google maps wont work with the warning: "'Android.GoogleMaps.MapActivity' is obsolete". </p> <p>First ...
I am working on an android application using google-maps and I noticed that I had all these warnings of "iCCP: Not recognizing known sRGB profile that has been edited e_pack_holo_dark.9.png" etc around 6 of them. Google maps wont work with the warning: "'Android.GoogleMaps.MapActivity' is obsolete". First I had the err...
c#|google-maps|xamarin.android|google-play-services
0
2015-02-16T09:28:50.180Z
2,015
2
9
0
183
0
2,100
101
4
3
true
true
false
false
false
false
zero
28,538,238
OpenSL ES VS MediaRecorder / AudioRecord
<p>In terms of audio recording, is there an advantage for using OpenSL ES instead of API recorders (MediaREcorder / AudioRecord)?<BR> Are there options that can be utilized to produce better quality / use wider range of devices? <BR> Can OpenSL-ES support more options / sources if device is rooted?</p>
In terms of audio recording, is there an advantage for using OpenSL ES instead of API recorders (MediaREcorder / AudioRecord)? Are there options that can be utilized to produce better quality / use wider range of devices? Can OpenSL-ES support more options / sources if device is rooted?
android|audio
1
2015-02-16T09:30:24.493Z
2,015
2
9
0
349
0
287
40
2
0
false
true
false
false
false
false
low
28,538,243
Android - multithreading
<p>Creating a simple game on android. I have to draw random pictures in random places of canvas.</p> <p>The problem is with appearing pictures and disappearing them. Each picture should disappear in say 5 seconds (during this time moving hero will have to catch them).</p> <p>I tried to draw a pictures in separate thr...
Creating a simple game on android. I have to draw random pictures in random places of canvas. The problem is with appearing pictures and disappearing them. Each picture should disappear in say 5 seconds (during this time moving hero will have to catch them). I tried to draw a pictures in separate thread, but it is not ...
android|multithreading|canvas
0
2015-02-16T09:30:37.833Z
2,015
2
9
0
64
1
498
24
3
1
true
false
false
false
false
false
zero
28,538,287
Bluetooth multiple UUID's
<p>I implemented a <code>BluetoothService</code> where i can connect between two devices. The next step is to connect to devices with different UUID's. I have three Devices:</p> <ul> <li>Nexus 7</li> <li>Nexus 4</li> <li>Microcontroller</li> </ul> <p>The Nexus 7 should be able to connect to Nexus 4 and the Microncont...
I implemented a BluetoothService where i can connect between two devices. The next step is to connect to devices with different UUID's. I have three Devices: Nexus 7 Nexus 4 Microcontroller The Nexus 7 should be able to connect to Nexus 4 and the Microncontroller. The Nexus 4 and the Microcontroller are both having dif...
android
1
2015-02-16T09:32:51.973Z
2,015
2
9
0
1,015
1
826
25
1
3
true
false
false
false
false
false
low
28,538,394
Automatic update of notifications when system language is changed
<p>My questions are basically for AOSP code (Android version 4.3). Questions: 1) When we change system language, already generated notifications are not updated to new language. Is it a bug in Android. If yes, why they are not supporting it(any major problem as such). Is there any plan for supporting this? 2) If automa...
My questions are basically for AOSP code (Android version 4.3). Questions: 1) When we change system language, already generated notifications are not updated to new language. Is it a bug in Android. If yes, why they are not supporting it(any major problem as such). Is there any plan for supporting this? 2) If automatic...
android|notifications|android-source
0
2015-02-16T09:39:35.120Z
2,015
2
9
0
187
1
453
65
3
0
false
false
false
false
false
false
zero
28,538,428
where is developer option in samsung sm-t531
<p>Hi i have a samsung tablet model sm-t531 with android 4.4.2 which don't have developer option in settings can any one tell me where is it?</p>
Hi i have a samsung tablet model sm-t531 with android 4.4.2 which don't have developer option in settings can any one tell me where is it?
android|samsung-mobile
1
2015-02-16T09:41:32.660Z
2,015
2
9
0
211
2
138
44
2
0
false
false
false
false
false
false
low
28,538,451
How to change captured video file name through user input before uploading to server in android?
<p>I want to change file name before going to upload to server. Please help me out of this. Thanks in advance.</p>
I want to change file name before going to upload to server. Please help me out of this. Thanks in advance.
android|file|filenames|user-input
0
2015-02-16T09:42:32.823Z
2,015
2
9
0
157
1
107
96
4
0
false
false
false
false
false
false
zero
28,538,484
Open Android App from Dialer
<p>I have implemented a Broadcast Receiver to open my app from the launcher. The number to open is <em>#1234#</em></p> <p>Now it works perfectly in some devices while it doesn't in some. Now my question is how is this even possible?</p> <p>If it works, then it should work in all devices isn't it? Also I need suggesti...
I have implemented a Broadcast Receiver to open my app from the launcher. The number to open is #1234# Now it works perfectly in some devices while it doesn't in some. Now my question is how is this even possible? If it works, then it should work in all devices isn't it? Also I need suggestions on what would be the bes...
android|android-intent|broadcastreceiver
1
2015-02-16T09:44:27.500Z
2,015
2
9
0
192
1
378
28
3
0
false
false
false
false
false
false
low
28,538,569
the best database for storing a large JSON
<p>I have a large file of json after the parsing using JACKSON, I must store it into a database, it takes a several minutes so my questions 1-there's any way to speed up the storage ? 2- there's another database ? 3- Using Object database could help me ?, I use SQLITE Database, I heared about RealM but I'm not sure t...
I have a large file of json after the parsing using JACKSON, I must store it into a database, it takes a several minutes so my questions 1-there's any way to speed up the storage ? 2- there's another database ? 3- Using Object database could help me ?, I use SQLITE Database, I heared about RealM but I'm not sure to use...
android|json|performance|sqlite|realm
-1
2015-02-16T09:48:33.493Z
2,015
2
9
0
1,110
2
337
42
5
0
false
false
false
false
false
true
negative
28,538,619
Embed playlist in an Android app?
<p>We're currently developing a mobile app for our business, which includes a music player. We would like to <em>embed</em> our <strong>Soundcloud</strong> playlist but we have issues as there only is a <em>SDK</em> for <em>iOS</em> but not <em>Android</em> </p> <p>What would be a workaround for this ?</p> <p>Thanks ...
We're currently developing a mobile app for our business, which includes a music player. We would like to embed our Soundcloud playlist but we have issues as there only is a SDK for iOS but not Android What would be a workaround for this ? Thanks for your help, Antoine
android|api|mobile|sdk
0
2015-02-16T09:52:01.567Z
2,015
2
9
0
62
1
269
33
4
0
false
false
false
false
false
false
zero
28,538,647
List chat messages QuickBlox History Message
<p>It is possible to load all history message according to custom parameter. Currently we set a according to setPageLimit. But i want to use a custom parameter. <img src="https://i.stack.imgur.com/SgM55.png" alt="enter image description here"> . Custom parameter is sh_id,sh_r_id,customer_id, date</p> <pre><code>privat...
It is possible to load all history message according to custom parameter. Currently we set a according to setPageLimit. But i want to use a custom parameter. . Custom parameter is sh_id,sh_r_id,customer_id, date [CODE]
android|quickblox
0
2015-02-16T09:53:33.337Z
2,015
2
9
0
841
1
218
44
2
1
true
false
false
false
false
false
zero
28,538,658
Android-Studio ( or IDEA in general ) refactor over multiple source sets
<p>What is a good way to handle the problem of refactoring over multiple source sets? E.g. in different flavors - or now unit-tests and integration-tests. You can only have one active source-set that is considered for renaming - so the other source-set might end up broken. What are your strategies to tackle this? Perha...
What is a good way to handle the problem of refactoring over multiple source sets? E.g. in different flavors - or now unit-tests and integration-tests. You can only have one active source-set that is considered for renaming - so the other source-set might end up broken. What are your strategies to tackle this? Perhaps ...
android|intellij-idea|android-studio|android-productflavors
23
2015-02-16T09:54:03.160Z
2,015
2
9
0
514
1
407
72
4
0
false
false
false
false
true
false
high
28,538,678
Calling a webservice from Android app
<p>I have a link like <a href="http://1.2.3.4:8080/csmmobileapi/service.asmx" rel="nofollow">http://1.2.3.4:8080/csmmobileapi/service.asmx</a> where in i am suppose to add my link as a webservice and create an object for the service in the app then call through that object ,but i am blank on how to achieve this,can any...
I have a link like http://1.2.3.4:8080/csmmobileapi/service.asmx where in i am suppose to add my link as a webservice and create an object for the service in the app then call through that object ,but i am blank on how to achieve this,can anyone help me to understand this and share few examples. This call will return m...
android|web-services
0
2015-02-16T09:55:04.173Z
2,015
2
9
0
47
0
333
37
2
0
false
true
false
false
false
false
zero
28,538,686
App logo is not changing in android lollipop 5.0.2 version
<p>The app logo on updating the app is not changing for my Moto G 1st Generation phone. Also I've two apps as "Google Photos". Don't know what to do with that?? </p> <p>Help!</p>
The app logo on updating the app is not changing for my Moto G 1st Generation phone. Also I've two apps as "Google Photos". Don't know what to do with that?? Help!
android|android-5.0-lollipop
0
2015-02-16T09:55:12.357Z
2,015
2
9
0
271
2
163
58
2
0
false
false
false
false
false
false
zero
28,538,763
Not able to navigate from Activity to a Fragment
<p>I am trying to navigate from activity to a fragment, but I have got caught with an error. I have posted my complete code. Please help me in solving this problem. All suggestions are welcome. Please find my code below:</p> <p>EditScreen.java:</p> <pre><code>public class EditScreen extends ActionBarActivity { ...
I am trying to navigate from activity to a fragment, but I have got caught with an error. I have posted my complete code. Please help me in solving this problem. All suggestions are welcome. Please find my code below: EditScreen.java: [CODE] DetailViewFragment.java: [CODE] DetailViewFragmentActivity.java: [CODE] fragme...
android|android-fragments
0
2015-02-16T09:59:21.660Z
2,015
2
9
0
180
1
657
48
2
6
true
false
false
false
false
false
zero
28,538,824
How to update Gradle dependencies to their latest version
<p>Is there an easy way to get gradle to update dependencies to their latest available version?</p> <p>For build reproducibility all my dependencies are defined with a version number like this in my build.gradle file:</p> <pre><code>dependencies { compile 'namespace:package1:version' compile 'namespace:packag...
Is there an easy way to get gradle to update dependencies to their latest available version? For build reproducibility all my dependencies are defined with a version number like this in my build.gradle file: [CODE] Periodically I want to update every package to their latest version. Typically this is the first thing I ...
android|android-studio|gradle|android-build|android-package-managers
46
2015-02-16T10:02:36.413Z
2,015
2
10
0
43,839
4
646
57
5
1
true
false
true
true
true
false
high
28,538,848
Is there a way to detect when the user has changed the clock time manually from the settings on their device?
<p>I am stuck up with the two actions in the broadcast receiver. 1) ACTION_TIME_CHANGED 2) ACTION_TIME_TICK</p> <p>Is there any way of determining the fact that the time is changed by the user manually from the device settings and not by the system automatically?</p> <p>These broadcasts somehow are triggered for auto...
I am stuck up with the two actions in the broadcast receiver. 1) ACTION_TIME_CHANGED 2) ACTION_TIME_TICK Is there any way of determining the fact that the time is changed by the user manually from the device settings and not by the system automatically? These broadcasts somehow are triggered for automatically as well w...
android|broadcastreceiver
1
2015-02-16T10:03:54.110Z
2,015
2
10
0
146
0
583
109
2
0
false
true
false
false
false
false
low
28,538,875
After starting an Intent to an external app and return to my app
<p>Currently I have a <code>Button</code> which will share an URL with a friend by using WhatsApp.</p> <p>However, is there a way to return them back to my app after the message has been sent?</p> <p>Here is my code so far.</p> <pre><code>whatsapp_item.setOnClickListener(new View.OnClickListener() { @Override ...
Currently I have a Button which will share an URL with a friend by using WhatsApp. However, is there a way to return them back to my app after the message has been sent? Here is my code so far. [CODE]
java|android|android-intent|whatsapp
1
2015-02-16T10:05:28.143Z
2,015
2
10
0
327
0
200
64
4
1
true
true
false
false
false
false
low
28,538,900
How to play a video from Content Provider
<p>I might have been using the wrong search tags, but here it goes. In the App I'm developing the user is able to upload pictures and videos.</p> <p>This through recording or gallery. I'm currently trying to show a video which the user just recorded. I'm taking the Uri from Intent.getData() after an intent with MediaS...
I might have been using the wrong search tags, but here it goes. In the App I'm developing the user is able to upload pictures and videos. This through recording or gallery. I'm currently trying to show a video which the user just recorded. I'm taking the Uri from Intent.getData() after an intent with MediaStore.ACTION...
android|video|android-contentprovider|android-videoview
0
2015-02-16T10:06:35.100Z
2,015
2
10
0
2,296
3
695
41
4
2
true
false
false
false
false
false
zero
28,538,972
Does GoogleCloudMessaging work in China now that eveything Google is blocked?
<p>I need to write an Android app for a Chinese company and it needs to support some form of push notifications. (This is for their internal use and not aimed at the general public)</p> <p>I'm not too clear on how exactly GCM operates as I've never used it before. Firstly <a href="http://developer.android.com/referenc...
I need to write an Android app for a Chinese company and it needs to support some form of push notifications. (This is for their internal use and not aimed at the general public) I'm not too clear on how exactly GCM operates as I've never used it before. Firstly it seems to require Google Play services , which most Chi...
android|google-cloud-messaging
2
2015-02-16T10:10:15.187Z
2,015
2
10
0
2,398
2
1,098
77
2
0
false
false
false
false
false
false
low
28,539,079
ListView changing background automatically
<p>I have a <code>ListView</code> in which i load an image from the server inside an <code>ImageView</code> object and then set my layout object background to be this imageview (the row list background). However, as i scroll the list my background for each row changes and is not fixed. How can i make the background not...
I have a ListView in which i load an image from the server inside an ImageView object and then set my layout object background to be this imageview (the row list background). However, as i scroll the list my background for each row changes and is not fixed. How can i make the background not to change when i scroll. MyA...
android|android-listview
-3
2015-02-16T10:16:32.880Z
2,015
2
10
0
141
2
367
42
2
2
true
false
false
false
false
true
negative
28,539,083
RecyclerView item long press handling
<p>How can I can handle long press event on items of recyclerview?? I want to generate an option menu on long press event on an item of recyclerview.</p>
How can I can handle long press event on items of recyclerview?? I want to generate an option menu on long press event on an item of recyclerview.
android
0
2015-02-16T10:16:49.757Z
2,015
2
10
0
2,822
0
146
37
1
0
false
true
true
false
false
false
zero
28,539,087
Android - Parse complex json in fragment (listview)
<p>How can I parse my complex json data inside fragment (listview). I can't all the json data inside fragment.</p> <p>Error</p> <p><img src="https://i.stack.imgur.com/lEutY.png" alt="enter image description here"></p> <p>Json data</p> <pre><code>{ "users": [{ "userId": 1, "name": "Dya Vega", ...
How can I parse my complex json data inside fragment (listview). I can't all the json data inside fragment. Error Json data [CODE] HistoryFragment.java [CODE] User.java (Model/Object) [CODE]
java|android|json|listview|android-fragments
-2
2015-02-16T10:17:10.030Z
2,015
2
10
0
1,158
2
190
51
5
3
true
false
false
false
false
true
negative
28,539,106
Add Two radio button in listview like yes or no buttons in each row of list
<p>I created a custom layout with one textview and two radio button.Textview fetches data form json url and show names in list format with two radio button in each row.but radio buttons are not actually connected.They show in each row but are not activated.so How to set these radio buttons with textview data so that af...
I created a custom layout with one textview and two radio button.Textview fetches data form json url and show names in list format with two radio button in each row.but radio buttons are not actually connected.They show in each row but are not activated.so How to set these radio buttons with textview data so that after...
android|json|listview
0
2015-02-16T10:18:09.107Z
2,015
2
10
0
307
0
497
75
3
0
false
true
false
false
false
false
zero
28,539,216
Android TextView leaks with setMovementMethod
<p>I have a <code>ListView</code> and in it's <code>adapter</code>'s <code>getView</code> method, I return a <code>RelativeLayout</code> with <code>MyButton</code> inside it.</p> <p><code>MyButton</code> has a <code>textView</code> and I have clickable words inside it (<code>ClickableSpan</code>).</p> <p>To make this...
I have a ListView and in it's adapter 's getView method, I return a RelativeLayout with MyButton inside it. MyButton has a textView and I have clickable words inside it ( ClickableSpan ). To make this work, I start with thew following line: textView.setMovementMethod(LinkMovementMethod.getInstance()); Everything works ...
android|listview|memory-leaks|textview|linkmovementmethod
7
2015-02-16T10:23:38.317Z
2,015
2
10
0
3,035
5
840
45
5
0
false
false
true
false
false
false
medium
28,539,298
Navigation Drawer: Action Bar color change
<p>I have an activity class that has a Navigation drawer. i want to change the action bar color when i go from one fragment to another from the navigation drawer. How do i do this.</p> <p>My code is similar to this:<a href="http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/" rel="nofoll...
I have an activity class that has a Navigation drawer. i want to change the action bar color when i go from one fragment to another from the navigation drawer. How do i do this. My code is similar to this: http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/ Plz Help.
android|navigation|android-actionbar
0
2015-02-16T10:27:38.173Z
2,015
2
10
0
3,249
3
297
42
3
0
false
false
true
false
false
false
zero
28,539,329
Detail Explanation of LaunchMode in Android
<p>I want to learn <code>the concept and idea for using launchMode</code> in Android. When to use which mode and a little detail about each of them. </p> <p>Because I am facing an issue in Animation Transition between Activity. As i go from Activity A to B. Amimation shows smoothly but when i go back to Activity A by ...
I want to learn the concept and idea for using launchMode in Android. When to use which mode and a little detail about each of them. Because I am facing an issue in Animation Transition between Activity. As i go from Activity A to B. Amimation shows smoothly but when i go back to Activity A by calling finish() Animatio...
android|animation|android-activity|launchmode
1
2015-02-16T10:29:20.867Z
2,015
2
10
0
92
0
782
43
4
0
false
true
false
false
false
false
low
28,539,363
Android checkboxpreference disabled even though it's enabled in XML
<p>I currently have the problem of a disabled checkbox preference which is enabled in the preference.xml. This happened after the migration to Metarial design. I tried to enable the view programmatically but it didn't help.</p> <p>(I'd like to show a screenshot but my rep is not high enough yet :/)</p> <p>my preferen...
I currently have the problem of a disabled checkbox preference which is enabled in the preference.xml. This happened after the migration to Metarial design. I tried to enable the view programmatically but it didn't help. (I'd like to show a screenshot but my rep is not high enough yet :/) my preference.xml [CODE] my pr...
android|xml|checkboxpreference|preferencefragment
1
2015-02-16T10:31:00.993Z
2,015
2
10
0
1,004
2
656
67
4
2
true
false
false
false
false
false
low
28,539,379
Create ArrayList from contents of a textfile
<p>I currently have an ArrayList hard coded within the app I am going to change. What I'd like to do is replace the hard coded list with something that reads the list from a text file. That way I can change the text file, without having to redo the code.</p> <p>Currently it looks like this:</p> <pre><code>public Ar...
I currently have an ArrayList hard coded within the app I am going to change. What I'd like to do is replace the hard coded list with something that reads the list from a text file. That way I can change the text file, without having to redo the code. Currently it looks like this: [CODE] How can I make it so that mCont...
java|android
0
2015-02-16T10:31:44.523Z
2,015
2
10
0
58
0
396
44
2
1
true
true
false
false
false
false
zero
28,539,402
Ecllipse : Not able to see any file/Project
<p>I installed Eclipse luna, Android SDK, ADT (all latest) &amp; set up everything. </p> <p>Even after re-starting Eclipse I don't see Welcome to Android screen. I can only see Welcome Screen. But the settings required for Android &amp; Java were all set I believe so, so the installation might be done properly only.</...
I installed Eclipse luna, Android SDK, ADT (all latest) & set up everything. Even after re-starting Eclipse I don't see Welcome to Android screen. I can only see Welcome Screen. But the settings required for Android & Java were all set I believe so, so the installation might be done properly only. I tried creating Andr...
java|android|eclipse
0
2015-02-16T10:33:12.713Z
2,015
2
10
0
114
2
1,671
43
3
0
false
false
false
false
false
false
zero
28,539,481
How do I change the Portable Hotspot's SSID in Android programmatically?
<p>I want change the Hotspot SSID! Can anybody help?</p> <p>From <a href="https://stackoverflow.com/questions/6394599/android-turn-on-off-wifi-hotspot-programmatically">Android turn On/Off WiFi HotSpot programmatically</a>, here is my code to toggle the Portable Hotspot:</p> <pre><code>import android.content.*;import...
I want change the Hotspot SSID! Can anybody help? From Android turn On/Off WiFi HotSpot programmatically , here is my code to toggle the Portable Hotspot: [CODE]
android|android-wifi|wifimanager|wifi
2
2015-02-16T10:37:30.517Z
2,015
2
10
0
10,594
1
161
72
4
1
true
false
true
false
false
false
low
28,539,497
Issue Changing Theme in Android Studio
<p>I am Using Android Studio 1.0.2. I am Having Problem Changing My App Theme. Through AndroidManifest.xml file Program Runs Fine Until I Change The Manifest File .. I want Complete Black Screen With No Action Bar. </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;a...
I am Using Android Studio 1.0.2. I am Having Problem Changing My App Theme. Through AndroidManifest.xml file Program Runs Fine Until I Change The Manifest File .. I want Complete Black Screen With No Action Bar. [CODE] [CODE] And This Is The Real Code [CODE] [CODE] This Is What i Got From Logcat [CODE] From build.gradl...
android|background|themes
0
2015-02-16T10:38:21.453Z
2,015
2
10
0
287
0
335
38
3
6
true
true
false
false
false
false
zero
28,539,558
joda time: getMaximumValue returns wrong value (Islamic chrono.)
<p>I'm trying to get the number of days in each month in the year(Islamic chronology)</p> <p>I'm using this function</p> <pre><code>public int daysOfMonth(int year, int month) { MutableDateTime dateTime = new MutableDateTime(IslamicChronology.getInstance()); dateTime.setDateTime(year, month, 14, 12, 0, 0, 00...
I'm trying to get the number of days in each month in the year(Islamic chronology) I'm using this function [CODE] but I get wrong values in comparison to http://www.islamicfinder.org/Hcal/index.php for example, I get that no of days in Rabi Al-Thani 1436 is 29 , while its 30. I can't find where the problem is. Any help...
java|android|jodatime
0
2015-02-16T10:41:38.757Z
2,015
2
10
0
96
0
321
64
3
1
true
true
false
false
false
false
zero
28,539,619
how to made each list clickable to redirect on it's url parsed through json
<p><em>I parsed a json object using an API and retrieve its data containing ID,Title, Url, Promotion etc now i am displaying it's Title and Promotion in listview and i want to make that list clickable to redirect on it's same url which i am getting from JSON object every list contains different urls. So how can i do it...
I parsed a json object using an API and retrieve its data containing ID,Title, Url, Promotion etc now i am displaying it's Title and Promotion in listview and i want to make that list clickable to redirect on it's same url which i am getting from JSON object every list contains different urls. So how can i do it? [CODE...
android|json|eclipse
0
2015-02-16T10:44:38.773Z
2,015
2
10
0
69
0
343
75
3
2
true
true
false
false
false
false
zero
28,539,651
Unwanted versioncode increment in android Manifest
<p>I am trying to deploy a version 1.1 update to my android apk of my worklight app. However when I try to update the versionName on my Manifest and build the project, it automatically gets updated back to 1.0 (updated to 1.1) and versionCode is also auto incremented. I do not want this to happen and I want an updated ...
I am trying to deploy a version 1.1 update to my android apk of my worklight app. However when I try to update the versionName on my Manifest and build the project, it automatically gets updated back to 1.0 (updated to 1.1) and versionCode is also auto incremented. I do not want this to happen and I want an updated ver...
android|ibm-mobilefirst
1
2015-02-16T10:46:20.430Z
2,015
2
10
0
245
2
577
50
2
0
false
false
false
false
false
false
low
28,539,657
Why picker behaves differently?
<p>I have designed pickers(number and time picker) in my app. Its working fine but behaves differently in different app. For one it is scrollable but for another it has + and - buttons, which has to be clicked in order to change the value. I want both to be scrolling.</p> <p>Both the application has min-version 16 and...
I have designed pickers(number and time picker) in my app. Its working fine but behaves differently in different app. For one it is scrollable but for another it has + and - buttons, which has to be clicked in order to change the value. I want both to be scrolling. Both the application has min-version 16 and max-versio...
android|picker
-1
2015-02-16T10:46:34.427Z
2,015
2
10
0
37
1
381
31
2
0
false
false
false
false
false
true
negative
28,539,666
RecyclerView Adapter and ViewHolder update dynamically
<p>I am trying to make an app that will be loading news from the network and will be updating dynamically. I am using a <code>RecyclerView</code> and <code>CardView</code> to display the content. I use <code>Jsoup</code> to parse sites. I don't think that my code is needed because my question is more theoretical than p...
I am trying to make an app that will be loading news from the network and will be updating dynamically. I am using a RecyclerView and CardView to display the content. I use Jsoup to parse sites. I don't think that my code is needed because my question is more theoretical than practical. I want to understand the process...
android|android-cardview|android-recyclerview|android-viewholder
11
2015-02-16T10:47:14.847Z
2,015
2
10
0
37,155
1
700
54
4
0
false
false
true
true
true
false
medium
28,539,676
Android ADB fails to install APK to Nexus 5 on Windows 8.1
<p>I am trying to install APK through ADB to Nexus 5, but it always gives me the following error:</p> <pre><code>Unrecognized option -Xlog-stdio dalvikvm: [options] class [argument ...] The following standard options are supported: -classpath classpath (-cp classpath) -Dproperty=value -verbose:tag ('gc', 'jni',...
I am trying to install APK through ADB to Nexus 5, but it always gives me the following error: [CODE] The Nexus 5 is running Android 5.0.1, and ADB (v1.0.32) is running on Windows 8.1. The USB driver is also latest. I have already tried different USB drivers and ports, but none of them works.
android|adb|windows-8.1|nexus-5
1
2015-02-16T10:47:52.407Z
2,015
2
10
0
2,699
1
293
58
4
1
true
false
true
false
false
false
low
28,539,717
Android: startRecording() called on an uninitialized AudioRecord when SAMPLERATE set to 44100
<p>I get an error, when I set the sampling rate to 44100 for the AudioRecord object. When it's 22050 it works fine.</p> <p>02-16 10:45:45.099 24021-24021/com.vlad.jackcomms E/AudioRecord﹕ frameCount 1024 &lt; minFrameCount 1792</p> <p>02-16 10:45:45.099 24021-24021/com.vlad.jackcomms E/AudioRecord-JNI﹕ Error creati...
I get an error, when I set the sampling rate to 44100 for the AudioRecord object. When it's 22050 it works fine. 02-16 10:45:45.099 24021-24021/com.vlad.jackcomms E/AudioRecord﹕ frameCount 1024 < minFrameCount 1792 02-16 10:45:45.099 24021-24021/com.vlad.jackcomms E/AudioRecord-JNI﹕ Error creating AudioRecord instance:...
java|android|sampling|audiorecord
10
2015-02-16T10:50:40.967Z
2,015
2
10
0
15,221
2
741
93
4
1
true
false
true
true
true
false
medium
28,539,723
How to inflate a ListView to a View
<p>I'm new here so i will try to explain my problems as good as i can.</p> <p>I am trying to inflate a ListView into a View in my main activity. My main activity has some buttons and texts on the top of the Activity and there is enough space left for the listView. The listview is consisted of categories, represented a...
I'm new here so i will try to explain my problems as good as i can. I am trying to inflate a ListView into a View in my main activity. My main activity has some buttons and texts on the top of the Activity and there is enough space left for the listView. The listview is consisted of categories, represented as an imageV...
android|listview|android-listview|android-inflate
1
2015-02-16T10:50:47.127Z
2,015
2
10
0
9,381
2
1,439
35
4
4
true
false
true
false
false
false
low
28,539,749
Android SIP or webRTC only for voip/audio calls?
<p>I am fairly new in this things, my basic question is in here: </p> <p>What is the best and easy way to create an audio call on web with two phones in android? Is it enough if I only use the built in Sip codes in android, or I have to use webRTC or other 3rd party libraries? </p> <p><strong>more: I have to record t...
I am fairly new in this things, my basic question is in here: What is the best and easy way to create an audio call on web with two phones in android? Is it enough if I only use the built in Sip codes in android, or I have to use webRTC or other 3rd party libraries? more: I have to record the calls in 3gpp or mpeg4 fil...
android|sip|webrtc
-1
2015-02-16T10:52:11.460Z
2,015
2
10
0
770
1
344
48
3
0
false
false
false
false
false
true
negative
28,539,808
Unknown permission android.permission.ACCESS_SUPERUSER in package com.powervr.PVRHub
<p>While trying to utilise <a href="http://community.imgtec.com/developers/powervr/tools/pvrhub/" rel="nofollow noreferrer">PVRHub</a> Imagination tool for OpenGL ES tracing I meet a problems dealing with it. First APK launch gives warning about</p> <blockquote> <p>unknown permission <code>android.permission.ACCESS_SUP...
While trying to utilise PVRHub Imagination tool for OpenGL ES tracing I meet a problems dealing with it. First APK launch gives warning about unknown permission android.permission.ACCESS_SUPERUSER and notification message about disabling to get root access (see details below): Logcat outputs related to the issue: [CODE...
android|adb|root|android-5.0-lollipop|trace
0
2015-02-16T10:55:00.653Z
2,015
2
10
0
12,611
1
1,115
84
5
1
true
false
true
true
false
false
zero
28,539,896
How can I access neo4j running on ( any http or localhost) from android
<p>I am successfully implemented neo4j on both mac and java application but I cannot access the same from and android and the it crashes at dbpath.But it keeps crashing.How can I get it to work?</p> <p>INstead of</p> <pre><code>graphDb = new EmbeddedGraphDatabase(DB_PATH); </code></pre> <p>it is</p> <pre><code> Res...
I am successfully implemented neo4j on both mac and java application but I cannot access the same from and android and the it crashes at dbpath.But it keeps crashing.How can I get it to work? INstead of [CODE] it is [CODE] also tried [CODE] Entire Code: [CODE]
android|neo4j
0
2015-02-16T10:59:54.623Z
2,015
2
10
0
640
1
260
71
2
4
true
false
false
false
false
false
zero
28,539,911
day month and year time stamps from gps wrong
<p>I'm trying to get the time stamp from the GPS. </p> <p>I'm using the method onLocationChanged and the Date class like this:</p> <pre><code> public void onLocationChanged(Location location) { Date date = new Date(location.getTime()); Log.d("TIME","day "+Calendar.get); Log.d("TIME","month ...
I'm trying to get the time stamp from the GPS. I'm using the method onLocationChanged and the Date class like this: [CODE] now I know that these methods are deprecated but it's still suppose to give me accurate results right? the min,sec and hour are fine but : The day value is 1. The month value is 1. The year value i...
android|time|gps
0
2015-02-16T11:01:12.617Z
2,015
2
11
0
132
1
444
45
3
1
true
false
false
false
false
false
zero
28,539,920
defining width and height to layouts android
<p>my requirement is to make 10 layouts in a single layout . Each layout should be 50 % horizontally and 20% Vertically. </p> <p>Current my code can make horizentally 50% but how to make same layouts to 20% vertical.</p> <p>Can it be possible. </p> <p>Code is </p> <pre><code>&lt;LinearLayout android:layout_width="f...
my requirement is to make 10 layouts in a single layout . Each layout should be 50 % horizontally and 20% Vertically. Current my code can make horizentally 50% but how to make same layouts to 20% vertical. Can it be possible. Code is [CODE]
android|android-layout
0
2015-02-16T11:01:40.713Z
2,015
2
11
0
68
3
240
44
2
1
true
false
false
false
false
false
zero
28,539,924
NullPointerException : Attempt to read from field 'com.android.volley.Cache$Entry com.android.volley.Response.cacheEntry
<p>Am getting JSONArray from external API using Android Volley. My code is below</p> <pre><code>StringRequest jq = new StringRequest("http://api.example.com/json/States", new Response.Listener&lt;String&gt;() { @Override public void onResponse(String jsonArray) { try { Log....
Am getting JSONArray from external API using Android Volley. My code is below [CODE] Am keep getting same error below NetworkDispatcher.run: Unhandled exception java.lang.NullPointerException: Attempt to read from field 'com.android.volley.Cache$Entry com.android.volley.Response.cacheEntry' on a null object reference j...
java|android|json|api|android-volley
3
2015-02-16T11:02:06.227Z
2,015
2
11
0
8,754
1
662
120
5
1
true
false
true
false
false
false
low
28,539,978
Should I avoid foreach for ArrayList in Andorid 4.0+?
<p>I just read this from the book "Android Programming - Pushing the Limits" by Hellman, Erik. Page 38:</p> <pre><code>void loopOne(String[] names) { int size = names.length; for (int i = 0; i &lt; size; i++) { printName(names[i]); } } void loopTwo(String[] names) { for (String name : names) {...
I just read this from the book "Android Programming - Pushing the Limits" by Hellman, Erik. Page 38: [CODE] These methods show four different ways of looping through collections and arrays. The first two methods have the same performance, so it’s safe to use the enhanced for-loop on arrays if you’re just going to read ...
android|performance|for-loop|arraylist|foreach
1
2015-02-16T11:05:35.653Z
2,015
2
11
0
422
1
714
53
5
1
true
false
false
false
false
false
low
28,539,990
Parse date from string to get milliseconds
<p>I'm trying to get the milliseconds from an string that contains a date, but seems that I'm getting the wrong value. This is the string im trying to parse: <code>2015-03-01 00:00:00</code>, I'm doing this to parse it:</p> <pre><code> DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss"); Date inputDat...
I'm trying to get the milliseconds from an string that contains a date, but seems that I'm getting the wrong value. This is the string im trying to parse: 2015-03-01 00:00:00 , I'm doing this to parse it: [CODE]
java|android|android-calendar|android-date|java-time
0
2015-02-16T11:06:22.560Z
2,015
2
11
0
115
3
211
42
5
1
true
false
false
false
false
false
zero
28,540,063
Android - Error inflecting class fragment
<p>I have two fragments and one main activity having navigation drawer. In the navigation drawer I have two menu items i.e. Home and Places. I have created xml fragments for both menu items. </p> <p><strong>fragment_home.xml</strong></p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res...
I have two fragments and one main activity having navigation drawer. In the navigation drawer I have two menu items i.e. Home and Places. I have created xml fragments for both menu items. fragment_home.xml [CODE] fragment_places.xml [CODE] Java Code [CODE] Problem When I run the project, I click on Home menu then it sh...
java|android|xml|android-layout|android-fragments
0
2015-02-16T11:10:08.757Z
2,015
2
11
0
138
2
629
41
5
5
true
false
false
false
false
false
zero
28,540,076
Link that would redirect to AppStore or application (if it's installed)
<p>I need to make a link on my website, that would lead to either my application or to that application's page in AppStore. I need it to work on iOS and Android (Windows Phone would be very nice). </p> <p>I know that I can't detect whether application is installed or not, but maybe there is some native mechanism that ...
I need to make a link on my website, that would lead to either my application or to that application's page in AppStore. I need it to work on iOS and Android (Windows Phone would be very nice). I know that I can't detect whether application is installed or not, but maybe there is some native mechanism that would do wha...
android|ios|web|windows-phone
0
2015-02-16T11:10:38.957Z
2,015
2
11
0
92
0
329
71
4
0
false
true
false
false
false
false
zero
28,540,128
setInterval() not working after window.open() in Android
<p>Just a little problem: I'm making a Hybrid app developed in angular with Cordova but when I use a <code>setInterval()</code> function after a <code>$window.open()</code> the <code>setInterval</code> stops working, but in Chrome, it's working (but it's normal, the new window is opened in a new tab).</p> <p>This is t...
Just a little problem: I'm making a Hybrid app developed in angular with Cordova but when I use a setInterval() function after a $window.open() the setInterval stops working, but in Chrome, it's working (but it's normal, the new window is opened in a new tab). This is the an extract of my code : [CODE] Thanks in advanc...
javascript|android|angularjs|cordova|ionic-framework
3
2015-02-16T11:12:54.740Z
2,015
2
11
0
1,156
1
906
56
5
1
true
false
false
false
false
false
low
28,540,146
How to make internal storage writable in android?
<p>I have Huawei Ascend Y530 phone with android 4.3 and now I can't neither read nor write from/to internal storage. At first time it was working fine after some time it just happened. Please help me how to make my internal storage writable. Tried a command restorecon -v -R /media/data on Terminal Emulator, but it kept...
I have Huawei Ascend Y530 phone with android 4.3 and now I can't neither read nor write from/to internal storage. At first time it was working fine after some time it just happened. Please help me how to make my internal storage writable. Tried a command restorecon -v -R /media/data on Terminal Emulator, but it kept sa...
android|permissions|storage|internal|writable
0
2015-02-16T11:13:57.043Z
2,015
2
11
0
1,517
0
420
49
5
0
false
true
false
false
false
false
zero
28,540,172
Android + Apache MINA doesn't run messageSent() after session.write()
<p>What could be the problem with Apache MINA if it won't call <code>messageSent()</code> method after writing to active session? My code works perfectly in simple Java client but doesn't work in Android application.</p> <p>TCPClient's code:</p> <pre><code>if (session != null &amp;&amp; session.isConnected()) { ...
What could be the problem with Apache MINA if it won't call messageSent() method after writing to active session? My code works perfectly in simple Java client but doesn't work in Android application. TCPClient's code: [CODE] TCPHandler's sending code: [CODE]
android|tcp|apache-mina
1
2015-02-16T11:15:15.600Z
2,015
2
11
0
393
2
259
69
3
2
true
false
false
false
false
false
low
28,540,216
Can't set GlideBuilder
<p>I use <strong>Glide</strong> library for Android. I want to set the cache in my custom folder, so the standard cache folder can be clean (with Master Clean for example). For this reason I use this code from <a href="https://github.com/bumptech/glide/wiki/Configuration#location" rel="nofollow">manual</a>, but this d...
I use Glide library for Android. I want to set the cache in my custom folder, so the standard cache folder can be clean (with Master Clean for example). For this reason I use this code from manual , but this don't work for me. My code: [CODE] After I run this app Glide saves the image in the default folder.
android|android-glide
3
2015-02-16T11:17:15.957Z
2,015
2
11
0
5,164
2
308
22
2
1
true
false
true
false
false
false
low
28,540,224
Retrofit GSON serialize Date from json string into long or java.lang.Long
<p>I am using the Retrofit library for my REST calls. The JSON that is coming in looks like this.</p> <pre><code>{ "created_at": "2013-07-16T22:52:36Z", } </code></pre> <p>How can I tell Retrofit or Gson to convert this into <strong>long</strong>?</p>
I am using the Retrofit library for my REST calls. The JSON that is coming in looks like this. [CODE] How can I tell Retrofit or Gson to convert this into long ?
java|android|gson|date-format|retrofit
8
2015-02-16T11:17:39.187Z
2,015
2
11
0
16,728
7
161
73
5
1
true
false
true
true
false
false
medium
28,540,270
How to enable coredump for JNI code in Android
<p>I'm writing an Android app that uses huge amounts of JNI-c code (mostly ported from other project). My problem is that my app crashes occasionally. And I've got no way to find out where is the crashing point unless I attach gdb. Sadly, I can not attach gdb all the time. And in this case, I got no clew on some crashe...
I'm writing an Android app that uses huge amounts of JNI-c code (mostly ported from other project). My problem is that my app crashes occasionally. And I've got no way to find out where is the crashing point unless I attach gdb. Sadly, I can not attach gdb all the time. And in this case, I got no clew on some crashes b...
android|c|linux|java-native-interface|coredump
0
2015-02-16T11:19:42.987Z
2,015
2
11
0
400
0
516
46
5
0
false
true
false
false
false
false
zero
28,540,288
How to add custom icon and group indicator to ExpandableListview android
<p><img src="https://i.stack.imgur.com/otBNG.png" alt="enter image description here">I am using <code>ExpandableListview</code> with custom <code>group indicator</code>. I am successful in this But ,Now there is a situation where I need both <code>custom icon</code> on left and <code>group indicator</code> on right H...
I am using ExpandableListview with custom group indicator . I am successful in this But ,Now there is a situation where I need both custom icon on left and group indicator on right How do I achieve this . Please suggest me how do I alter my adapter class list_group.xml [CODE] ExpandableListAdapter.java [CODE]
android|expandablelistview
2
2015-02-16T11:20:45.837Z
2,015
2
11
0
1,037
0
310
72
2
2
true
true
false
false
false
false
low
28,540,398
Android maintain activity state with data
<p>I have 2 different activities. <strong>MainActivity</strong>, <strong>ContactList</strong> &amp; <strong>ContactDetails</strong>. Now from MainActivity user will tap on Add new and application will open ContactList screen from where user can select any contact to see details which opens ContactDetails activity. Now ...
I have 2 different activities. MainActivity , ContactList & ContactDetails . Now from MainActivity user will tap on Add new and application will open ContactList screen from where user can select any contact to see details which opens ContactDetails activity. Now if user select any no. from ContactDetails, application ...
android|android-activity|android-fragments
1
2015-02-16T11:26:44.890Z
2,015
2
11
0
447
2
942
41
3
0
false
false
false
false
false
false
low
28,540,476
Get a callback when user dismisses an Intent dialog
<p>I have a video player that displays ads. When I click on the video player I fire a Intent that opens a URL. However, if there's many apps that can handle that Intent, a dialog is displayed. Is there a reliable way to know if the user has dismissed that dialog so I can resume the ad?</p>
I have a video player that displays ads. When I click on the video player I fire a Intent that opens a URL. However, if there's many apps that can handle that Intent, a dialog is displayed. Is there a reliable way to know if the user has dismissed that dialog so I can resume the ad?
android|android-intent
2
2015-02-16T11:31:14.977Z
2,015
2
11
0
767
3
283
51
2
0
false
false
false
false
false
false
low
28,540,512
Android Arabic Text Concatenation
<p>in Android I would like to concatenate number with Arabic text. but if i concatenate the number then the arabic text direction changes.</p> <p>Example: My Application reads each line of arabic text from file and adds the line number to each line and appended to string builder , After completion of reading final str...
in Android I would like to concatenate number with Arabic text. but if i concatenate the number then the arabic text direction changes. Example: My Application reads each line of arabic text from file and adds the line number to each line and appended to string builder , After completion of reading final string will be...
android|textview|arabic|typeface|spannable
1
2015-02-16T11:33:20.983Z
2,015
2
11
0
793
1
618
33
5
1
true
false
false
false
false
false
low
28,540,579
Is possible to stop process while alert dialog finish its work?
<p>This is my method</p> <pre><code>public void getValues() { alertDialog = new AlertDialog.Builder(MainActivity.this); LayoutInflater inflater = this.getLayoutInflater(); alertDialog.setView(inflater.inflate(R.layout.custom_layout, null)); alertDialog.setCancelable(fal...
This is my method [CODE] I need this method to create an input dialog that get the values that I need to check in my database. These method work with this code [CODE] Well, createObject() get some information in another part of code and create an object from class MyClass . checkDB search the object in my database; My ...
java|android|database|while-loop|android-alertdialog
0
2015-02-16T11:37:23.977Z
2,015
2
11
0
714
1
977
63
5
4
true
false
false
false
false
false
zero
28,540,599
Parse date milliseconds to days,hours,minutes
<p>I'm trying to get parse a string to date, and after that to get the days, hours &amp; minutes from the milliseconds. I'm parsing this string to date:<code>2015-03-01 00:00:00</code>, and that I'm doing with this code:</p> <pre><code>DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date inputDate...
I'm trying to get parse a string to date, and after that to get the days, hours & minutes from the milliseconds. I'm parsing this string to date: 2015-03-01 00:00:00 , and that I'm doing with this code: [CODE] Now after this I'm trying to get days, hours & minutes by doing this: [CODE] and when I display it I get this:...
android|date|datetime|java-time|android-date
0
2015-02-16T11:39:17.723Z
2,015
2
11
0
248
3
475
45
5
2
true
false
false
false
false
false
zero
28,540,667
Android: Choose the application with which to open a link
<p>In Android applications, often the choice of selecting an app to open a link or do some other action is left to the user, i.e. the framework <em>lets</em> the user <em>choose</em> the app to do something.</p> <p>For example, say you have a link to a tweet, and you are allowed to choose between:</p> <ul> <li>Twitte...
In Android applications, often the choice of selecting an app to open a link or do some other action is left to the user, i.e. the framework lets the user choose the app to do something. For example, say you have a link to a tweet, and you are allowed to choose between: Twitter Chrome Web Browser What is the reason tha...
android|android-intent|android-implicit-intent
1
2015-02-16T11:43:07.877Z
2,015
2
11
0
1,967
3
430
57
3
0
false
false
false
false
false
false
low
28,540,720
xmpp Chat application shows 401 un authorised
<p>When i created one to one chat it works perfectly when i try to join in a group chat this error displayed what could be the reason need help</p> <p>i used the same connection for the single chat and also that connection for joining the group chat .</p> <p>my code is this </p> <p><div class="snippet" data-lang="js...
When i created one to one chat it works perfectly when i try to join in a group chat this error displayed what could be the reason need help i used the same connection for the single chat and also that connection for joining the group chat . my code is this [CODE] [CODE]
android|xmpp|openfire|asmack
0
2015-02-16T11:45:36.003Z
2,015
2
11
0
366
1
271
45
4
2
true
false
false
false
false
false
zero
28,540,747
Android, trouble with parallax effect in case of staggered layout manager
<p>I am having trouble implementing parallax effect for staggered layout manager, here is my code:</p> <pre><code> actionbarBackgroundDrawable = getResources().getDrawable(R.drawable.dark_actionbar_drawable); actionbarBackgroundDrawable.setAlpha(0); getSupportActionBar().setBackgroundDrawable(actionbarBackg...
I am having trouble implementing parallax effect for staggered layout manager, here is my code: [CODE] This works great when Grid layout manager is used, but while using staggered grid layout manager, the view distorts on scrolling, can anyone suggest a solution for it?
android|android-recyclerview
1
2015-02-16T11:47:08.863Z
2,015
2
11
0
482
0
270
73
2
1
true
true
false
false
false
false
low
28,540,765
Menu items not displaying on the top right corner of phone
<p>I am developing an app that doesnt show up menu items in the top right corner. In google nexus it shows up but not in micromax canvas HD.</p> <p>below is my menu xml.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item androi...
I am developing an app that doesnt show up menu items in the top right corner. In google nexus it shows up but not in micromax canvas HD. below is my menu xml. [CODE] I tried overflow to show the 3 dot icon on top right corner.It works fine in 4.0 or more versions not in 2.2-2.3. in android 2.3, it gives noSuchFieldExc...
android|menu
0
2015-02-16T11:48:13.587Z
2,015
2
11
0
898
1
477
58
2
1
true
false
false
false
false
false
zero
28,540,796
Changing ListView Item background bug
<p>When I'm using <code>parent.getChildAt(position).setBackgroundColor(Color.GRAY);</code> in my <code>public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id)</code> it colorizes, but it works strange. </p> <p>When I click first or second item it colorizes it... and every item away ~five...
When I'm using parent.getChildAt(position).setBackgroundColor(Color.GRAY); in my public void onItemClick(AdapterView<?> parent, View view, int position, long id) it colorizes, but it works strange. When I click first or second item it colorizes it... and every item away ~five records. Sometimes I've got NullPointerExce...
android|listview
0
2015-02-16T11:50:08.447Z
2,015
2
11
0
110
2
774
37
2
3
true
false
false
false
false
false
zero
28,540,851
Removal of shared preference on update of android application through play store updates or auto updates?
<p>When I update application through popup implemented in application code on change of version shared preference persist but when update using auto-update or from updates available in play store shared preferences got removed?</p>
When I update application through popup implemented in application code on change of version shared preference persist but when update using auto-update or from updates available in play store shared preferences got removed?
android|sharedpreferences|auto-update
0
2015-02-16T11:52:36.063Z
2,015
2
11
0
840
1
224
105
3
0
false
false
false
false
false
false
zero
28,540,865
debug android studio app on zatec ZA-715E
<p>I have buyed a <a href="http://www.jumia.ma/zatec-za-715e-7-wi-fi-8-go-2-go-ram-android-4.4-noir-218636.html" rel="nofollow">tablet ZA-715E</a> and I want to debug my android studio app on it</p> <p>I have enabled usb debogage and I have looked for its usb driver in <a href="http://developer.android.com/tools/extra...
I have buyed a tablet ZA-715E and I want to debug my android studio app on it I have enabled usb debogage and I have looked for its usb driver in OEM USB Drivers list and I have installed intel usb driver because this tablet has an intel processor but always don't see it on running device in choose device popup
android|debugging|android-studio|tablet
0
2015-02-16T11:53:24.813Z
2,015
2
11
0
407
1
312
41
4
0
false
false
false
false
false
false
zero
28,540,874
"Attempted read on closed stream" when trying to use two AsynTasks in same time on 2.3
<p>I have 2 different <code>AsyncTask</code>. I trying to execute it in same time. On 4.0+ Android it works fine.</p> <p>But on 2.3 one of this Task always throw exception "Error converting result: java.io.IOException: Attempted read on closed stream" when i trying to parse response from server.</p> <p>If i remove ex...
I have 2 different AsyncTask . I trying to execute it in same time. On 4.0+ Android it works fine. But on 2.3 one of this Task always throw exception "Error converting result: java.io.IOException: Attempted read on closed stream" when i trying to parse response from server. If i remove execution of one of this Tasks i ...
android|android-asynctask
2
2015-02-16T11:54:08.720Z
2,015
2
11
0
70
0
590
86
2
0
false
true
false
false
false
false
low
28,540,887
how to parse a json file when starts with
<p>I want to parse the following JSON file but is starting with <code>[</code> indicating to me that is an array, and then continues with <code>{</code> objects, my current parser is returning a JSON object.</p> <p>My question is: how to modify the parser to parse this file? So that the parser will serve me for other ...
I want to parse the following JSON file but is starting with [ indicating to me that is an array, and then continues with { objects, my current parser is returning a JSON object. My question is: how to modify the parser to parse this file? So that the parser will serve me for other JSON files, starting with objects or ...
java|android|json|parsing|service
3
2015-02-16T11:54:56.687Z
2,015
2
11
0
8,739
1
401
41
5
3
true
false
true
false
false
false
low
28,540,971
Highlighting multiple items in a listview
<p>I'm really struggling to highlight items in my listview - I want them to be highlighted onClick and un-highlighted when they are clicked again. Can someone please help me achieve this for my code as I have looked at numerous bits of code online and can't get it to work - Thanks in advance!! Here is my code</p> <pr...
I'm really struggling to highlight items in my listview - I want them to be highlighted onClick and un-highlighted when they are clicked again. Can someone please help me achieve this for my code as I have looked at numerous bits of code online and can't get it to work - Thanks in advance!! Here is my code [CODE]
android
-3
2015-02-16T11:59:42.173Z
2,015
2
11
0
64
1
314
41
1
1
true
false
false
false
false
true
negative