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,521,992
status 422 Unprocessable entity DELETE json request in Android Client
<p>I'm having some trouble with my Android REST client, I can use the get method with no problem to access my Rails API, but when I try to delete something it doesnt seems to connect. I can't find what should the route be called, the normal <a href="http://myapi.com/users/1" rel="nofollow">http://myapi.com/users/1</a> ...
I'm having some trouble with my Android REST client, I can use the get method with no problem to access my Rails API, but when I try to delete something it doesnt seems to connect. I can't find what should the route be called, the normal http://myapi.com/users/1 doesnt seem to work for the delete command. What should b...
android|ruby-on-rails|json|rest
1
2015-02-15T00:57:07.673Z
2,015
2
0
6
1,300
1
682
69
4
1
true
false
false
false
false
false
low
28,522,024
How to Reference Buttons in the same Activity from a Custom View
<p>I am trying to make a simple drawing application, but am running into problems switching the paint color.<a href="http://creative-punch.net/2014/03/make-basic-single-touch-drawing-app-android/" rel="nofollow">Here</a> is the tutorial I used to get to the point I am at. Here is my code: <strong>Drawing_View.java</str...
I am trying to make a simple drawing application, but am running into problems switching the paint color. Here is the tutorial I used to get to the point I am at. Here is my code: Drawing_View.java [CODE] Here is the code for the activity the custom view sits inside. Drawing_Main.java [CODE] As you can see I started ex...
java|android
0
2015-02-15T01:02:14.270Z
2,015
2
1
6
47
1
522
64
2
2
true
false
false
false
false
false
zero
28,522,094
Get user gender from Facebook
<p>I'm trying to get a user's gender using the facebook sdk for Android. I am using parse to login/signup so I have access to all users id and access token. When I try and make a new HTTP GET request, I can only get MY information - but I need [user_x]'s information. If I use the Graph API Explorer it works just fine, ...
I'm trying to get a user's gender using the facebook sdk for Android. I am using parse to login/signup so I have access to all users id and access token. When I try and make a new HTTP GET request, I can only get MY information - but I need [user_x]'s information. If I use the Graph API Explorer it works just fine, but...
android|facebook|facebook-graph-api|sdk
2
2015-02-15T01:16:17.443Z
2,015
2
1
6
543
0
616
29
4
2
true
true
false
false
false
false
low
28,522,103
Why isn't onShow in my custom dialogfragment being invoked?
<p>I have a custom alertdialog that implements interfaces so that their callbacks can be invoked. </p> <p>I set breakpoints in the first lines of onDismiss and onShow. </p> <p>The dialog pops up and I see all the views, but the breakpoint in onShow does not get hit and my async task does not get created.</p> <pre>...
I have a custom alertdialog that implements interfaces so that their callbacks can be invoked. I set breakpoints in the first lines of onDismiss and onShow. The dialog pops up and I see all the views, but the breakpoint in onShow does not get hit and my async task does not get created. [CODE] In my calling fragment I i...
android|android-alertdialog|android-dialogfragment
0
2015-02-15T01:18:02.117Z
2,015
2
1
6
4,389
1
382
59
3
2
true
false
true
false
false
false
zero
28,522,144
Where is the R.java file in Android Studio?
<p>Where is the R.java file in Android Studio? Can someone please help with this? I already tried google for the answer but can't find any solution.</p>
Where is the R.java file in Android Studio? Can someone please help with this? I already tried google for the answer but can't find any solution.
java|android-studio|aapt
51
2015-02-15T01:24:10.007Z
2,015
2
1
6
77,230
12
145
43
3
0
false
false
true
true
true
false
high
28,522,183
intelliji or android studio - short cut to create method test case
<p>Is there a short cut to create a test method quickly in IntelliJ? What I want to happen is if I already have a test class called TestClass, then in my Class file if I create a new method I could right click on the new method and click something like 'create test' on the method itself. There is an option available ...
Is there a short cut to create a test method quickly in IntelliJ? What I want to happen is if I already have a test class called TestClass, then in my Class file if I create a new method I could right click on the new method and click something like 'create test' on the method itself. There is an option available for t...
testing|intellij-idea|junit|android-studio
19
2015-02-15T01:32:20.383Z
2,015
2
1
6
15,922
5
957
66
4
0
false
false
true
true
true
false
medium
28,522,405
Android: Preview picture after capture, before save
<p>I got a full camera app up and running, but I'd like to have the captured picture show on the screen before saving them (they're not going to the gallery). I've googled extensively and I can't find anything on the topic. I also have no idea how to start, so any advice or links to relevant information I didn't find w...
I got a full camera app up and running, but I'd like to have the captured picture show on the screen before saving them (they're not going to the gallery). I've googled extensively and I can't find anything on the topic. I also have no idea how to start, so any advice or links to relevant information I didn't find woul...
android
6
2015-02-15T02:15:18.413Z
2,015
2
2
6
2,394
1
343
51
1
0
false
false
false
false
false
false
medium
28,522,414
Android - Handle click and swipe on listview items
<p>I am making a menu where the items have to respond to two types of events:</p> <blockquote> <p><strong>OnClick</strong><br> <em>If the user clicks the item, it should start an Activity. Each button launches a different activity.</em></p> <p><strong>OnFling</strong><br> <em>When the user swipes the item f...
I am making a menu where the items have to respond to two types of events: OnClick If the user clicks the item, it should start an Activity. Each button launches a different activity. OnFling When the user swipes the item from right to left, its name should appear. Each item has a different name, and the name will show...
android|listview|android-listview|onclick|android-gesture
2
2015-02-15T02:16:15.387Z
2,015
2
2
6
6,992
2
1,716
50
5
5
true
false
true
false
false
false
low
28,522,524
How to make my android app display a specific facebook post
<p>I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app</p> <p>I've been searching a couple of week for...
I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app I've been searching a couple of week for method to ...
android|facebook|facebook-graph-api
0
2015-02-15T02:43:58.497Z
2,015
2
2
6
517
1
413
59
3
0
false
false
false
false
false
false
zero
28,522,546
pattern or example for classes with multi-table sqlite database
<p>I'm working on an Android app where the database continues to grow.</p> <p>To assist with my database I have a MySQLIteHelper class that extends SQLiteOpenHelper and contains strings for defining the tables. I have a dbDataSource class that handles the adding, deleting, reading and writing of the database rows. A...
I'm working on an Android app where the database continues to grow. To assist with my database I have a MySQLIteHelper class that extends SQLiteOpenHelper and contains strings for defining the tables. I have a dbDataSource class that handles the adding, deleting, reading and writing of the database rows. And a class ca...
android|mysql|database|sqlite
0
2015-02-15T02:48:10.923Z
2,015
2
2
6
112
0
1,376
63
4
1
true
true
false
false
false
false
zero
28,522,594
Why is the SSID from getConfiguredNetworks() added quotation mark?
<p>I hope to get both the name of current connected WIFI and the name of stored connected WIFI.</p> <p>I find wifiInfo.getSSID() can get the correct result, such as MyWiFi1,</p> <p>but the name from config.SSID is added quotation mark, such as "MyWiFi2".</p> <p>How can I get correct name from config.SSID? Thanks!</p...
I hope to get both the name of current connected WIFI and the name of stored connected WIFI. I find wifiInfo.getSSID() can get the correct result, such as MyWiFi1, but the name from config.SSID is added quotation mark, such as "MyWiFi2". How can I get correct name from config.SSID? Thanks! [CODE]
android
6
2015-02-15T02:57:55.893Z
2,015
2
2
6
1,584
1
297
66
1
1
true
false
false
false
false
false
medium
28,522,596
Placing Tabs in DialogFragment
<p>I am attempting to place TabHost inside of DialogFragment but at present it is none functional and returns null on the line: </p> <p><code>tabs.findViewById(R.id.tabHost);</code></p> <p>How can tabhost be initialized in the DialogFragment to allow the tabs to appear?</p> <p>Tabbed DialogLog class:</p> <pre><code...
I am attempting to place TabHost inside of DialogFragment but at present it is none functional and returns null on the line: tabs.findViewById(R.id.tabHost); How can tabhost be initialized in the DialogFragment to allow the tabs to appear? Tabbed DialogLog class: [CODE] tabbed layout file: [CODE]
android|android-tabhost|android-dialogfragment
0
2015-02-15T02:59:09.707Z
2,015
2
2
6
2,061
1
297
30
3
2
true
false
false
false
false
false
zero
28,522,832
Android keyboard only shows up once, but works perfectly when I remove the ListView
<p><strong>Current Behavior</strong></p> <p>Use the below xml layout, the android keyboard for the EditText immediately shows up when the activity starts. If I exit the keyboard, touching the EditText does nothing to bring the keyboard back.</p> <p><strong>Desired Behavior</strong></p> <p>When I comment out the Lis...
Current Behavior Use the below xml layout, the android keyboard for the EditText immediately shows up when the activity starts. If I exit the keyboard, touching the EditText does nothing to bring the keyboard back. Desired Behavior When I comment out the ListView below, everything works perfectly. The android keyboard ...
java|android|xml|listview|keyboard
0
2015-02-15T03:53:34.767Z
2,015
2
3
6
137
1
857
83
5
1
true
false
false
false
false
false
zero
28,522,833
Joda Time not getting right Islamic Date
<p>i need to get 3 islamic dates and i'm using Joda Time to convert dates.</p> <p>date1:</p> <pre><code>DateTime todayIso = new DateTime(2014, 4, 20,0,0,0); DateTimeZone tz = DateTimeZone.forID("Asia/Tehran"); DateTime dtIslamic = todayIso.withChronology( IslamicChronology.get...
i need to get 3 islamic dates and i'm using Joda Time to convert dates. date1: [CODE] result is "1435 6 19" It's Wrong and should be "1435 6 20". date2: [CODE] result is "1436 1 25" It's True. date 3: [CODE] result is "1437 2 19" It's Wrong and should be "1437 2 20". the first month of islamic date in year 1437 have 29...
android|date|jodatime
2
2015-02-15T03:54:09.067Z
2,015
2
3
6
196
0
351
40
3
3
true
true
false
false
false
false
low
28,522,879
webView scrollTo not working all the time
<p>I am currently having a problem with Android webview scrollTo function. I have it working properly (sometimes), but as I am clicking on the links in webview, it sometimes resets the screen back to 0,0 position.</p> <p>Heres my code.</p> <pre><code> public void onPageFinished(WebView webview, String Url) { ...
I am currently having a problem with Android webview scrollTo function. I have it working properly (sometimes), but as I am clicking on the links in webview, it sometimes resets the screen back to 0,0 position. Heres my code. [CODE] So here is whats going on. On my webviews onPageFinished, I am changing my webviews scr...
java|android|webview|scrollto|postdelayed
0
2015-02-15T04:04:45.403Z
2,015
2
4
6
1,326
1
1,323
41
5
1
true
false
false
false
false
false
zero
28,522,886
Remove Android Toolbar Navigation Drawer option
<p>How can i remove the leftmost navigation drawer menu item on the Android Toolbar. Basically i wan't to contain 4 images in a horizontal fashion, Nothing else !</p>
How can i remove the leftmost navigation drawer menu item on the Android Toolbar. Basically i wan't to contain 4 images in a horizontal fashion, Nothing else !
android|navigation-drawer|android-toolbar
6
2015-02-15T04:06:44.310Z
2,015
2
4
6
16,237
6
159
47
3
0
false
false
true
true
false
false
medium
28,522,890
TextWatcher slow when using setText
<p>I'm using <code>TextWatcher</code> to modify the <code>EditText</code> to always look like <code>#tag1 #tag2...</code></p> <p>Here is my code:</p> <pre><code> editHashtags.addTextChangedListener(new TextWatcher() { private boolean lock = false; private String toGo; @Override pub...
I'm using TextWatcher to modify the EditText to always look like #tag1 #tag2... Here is my code: [CODE] The problem is when I use lock to change the text. It appears that setText is really slow, so if I type fast, some characters are ignored. What is the best approach to solve this issue? Thank you.
android
0
2015-02-15T04:07:26.413Z
2,015
2
4
6
999
2
300
35
1
1
true
false
false
false
false
false
zero
28,522,932
Not able to add view dynamically
<p>I have linear layout R.id.linearLayoutQuantityPrice in XML.</p> <p>I want to add a new linear layout inside that dynamically.</p> <p>The new linear layout has two textviews and one imageview. </p> <pre><code>List&lt;Price&gt; priceList = database.getItemQuantityPrice(id); LinearLayout linearLayoutQuantity...
I have linear layout R.id.linearLayoutQuantityPrice in XML. I want to add a new linear layout inside that dynamically. The new linear layout has two textviews and one imageview. [CODE] The code doesn't get any errors. But the desired views are not added.
android|android-layout|android-linearlayout
0
2015-02-15T04:16:58.240Z
2,015
2
4
6
341
2
254
32
3
1
true
false
false
false
false
false
zero
28,522,991
Android: Unable to download from play store
<p>I am developing an Android App. I was able test it on my device successfully. So I pushed the released version on Google Play store. Now I uninstalled the debug build from my device and tried to download it from the Play Store. But when I click on install button, I am getting this error.</p> <blockquote> <p>you c...
I am developing an Android App. I was able test it on my device successfully. So I pushed the released version on Google Play store. Now I uninstalled the debug build from my device and tried to download it from the Play Store. But when I click on install button, I am getting this error. you cannot install this app bec...
android
13
2015-02-15T04:29:02.497Z
2,015
2
4
6
7,125
5
621
43
1
1
true
false
true
false
true
false
medium
28,523,028
Open stream with FFmpeg libavformat exits with I/O error after once in Android Application
<p>I am trying to open a video stream in an android application. The first time I open the stream, the stream is opened and everything runs fine. However, if I press back and open the stream again, the app crashes. </p> <p>I am a newbie to this, so I used log statements to see if the argument values for the methods co...
I am trying to open a video stream in an android application. The first time I open the stream, the stream is opened and everything runs fine. However, if I press back and open the stream again, the app crashes. I am a newbie to this, so I used log statements to see if the argument values for the methods could lead me ...
android|android-ndk|ffmpeg|surfaceview|libavformat
0
2015-02-15T04:35:25.900Z
2,015
2
4
6
1,325
0
658
90
5
1
true
true
false
false
false
false
zero
28,523,032
Check which actor is pressed? (libgdx/androidstudio)
<p>I'm fairly new to android programming and libgdx/scene2d and all that good stuff. I have four arrow keys on the screen and am messing around with moving a "dude" around when they are pressed. I wanted to see if anyone knows of a way to have one InputListener, and inside that listener have a way to check which actor ...
I'm fairly new to android programming and libgdx/scene2d and all that good stuff. I have four arrow keys on the screen and am messing around with moving a "dude" around when they are pressed. I wanted to see if anyone knows of a way to have one InputListener, and inside that listener have a way to check which actor was...
android|button|libgdx|actor|stage
0
2015-02-15T04:35:46.037Z
2,015
2
4
6
407
1
619
52
5
1
true
false
false
false
false
false
zero
28,523,046
Android spinner and change text depends on the Item selection
<p>I am an android noob, and I am trying to make a spinner that and want to change the another text depends on the spinner item selection.</p> <p>For example, if I choose juice, I need to change the text to "gallons." etc.</p> <p>This is my code:</p> <pre><code> protected void onCreate(Bundle savedInstanceState)...
I am an android noob, and I am trying to make a spinner that and want to change the another text depends on the spinner item selection. For example, if I choose juice, I need to change the text to "gallons." etc. This is my code: [CODE] But the text changed to "Dozens" first time, and then it is not changed when I sele...
android|onclick|textview|spinner
2
2015-02-15T04:39:01.313Z
2,015
2
4
6
2,485
3
352
61
4
1
true
false
false
false
false
false
low
28,523,054
Android Studio No LogCat
<p>Android Studio is just killing me. I'm migrating over from Eclipse and am unable to produce LogCat output. I just created a simple hello world app complete with a single line of <code>System.out.println("hello world");</code> Regardless of whether I run this on an emulator or on a USB device, I get no LogCat output....
Android Studio is just killing me. I'm migrating over from Eclipse and am unable to produce LogCat output. I just created a simple hello world app complete with a single line of System.out.println("hello world"); Regardless of whether I run this on an emulator or on a USB device, I get no LogCat output. I reinstalled A...
android|android-studio
0
2015-02-15T04:40:29.577Z
2,015
2
4
6
770
2
1,273
24
2
0
false
false
false
false
false
false
zero
28,523,084
Want to create a login page like facebook login, but have no idea where to start
<p>I'm in the process of making an alternative facebook app for android, but I have no idea where to start. I'm looking at the Facebook SDK but that seems like it's used for people who want to use Facebook as their platform for their own seperate apps. I want to make a login screen like facebook login screen, and I'm l...
I'm in the process of making an alternative facebook app for android, but I have no idea where to start. I'm looking at the Facebook SDK but that seems like it's used for people who want to use Facebook as their platform for their own seperate apps. I want to make a login screen like facebook login screen, and I'm look...
java|android|facebook
-2
2015-02-15T04:46:41.130Z
2,015
2
4
6
135
1
626
80
3
0
false
false
false
false
false
true
negative
28,523,085
How can I access a method from an activity and use it into another activity in Android?
<p>I have the first class named <strong>iHave</strong></p> <pre><code>public class iHave extends ActionBarActivity { //below is the instance for calling the method from the other activity. (The name of the other activity is **iThank**) **iThank thankYou = new iThank();** @Override protected void onCreate(Bundle...
I have the first class named iHave [CODE] //The Next class is "iThank" [CODE] How can I use the method " public void display() " of iThank activity to the "iHave" activity? It always gives me an error of NullPointerException . Please help. Thank you very much!
java|android|android-activity
0
2015-02-15T04:46:50.917Z
2,015
2
4
6
52
2
260
87
3
2
true
false
false
false
false
false
zero
28,523,099
Simple Android Image Download Async
<p>I'm attempting to obtain an image URL through JSON data, which works successfully. Everything below works SLOWLY. However, I am trying to figure out a way to get a URL to display much faster below in Android Volley or another fast method. I am trying to download these images from a URL (resized too) into a <code>...
I'm attempting to obtain an image URL through JSON data, which works successfully. Everything below works SLOWLY. However, I am trying to figure out a way to get a URL to display much faster below in Android Volley or another fast method. I am trying to download these images from a URL (resized too) into a MapView pin ...
java|android|json|asynchronous|android-volley
0
2015-02-15T04:49:33.523Z
2,015
2
4
6
145
2
515
35
5
1
true
false
false
false
false
false
zero
28,523,122
Android How to get the size of application area
<p><img src="https://i.stack.imgur.com/JTIo6.png" alt="Nexus6"></p> <p>For the above emulator, in my <code>onCreate</code> method, how to get the size(height and width) of area of the white space? (not including the <code>Project1 Screen2</code>' space)?</p>
For the above emulator, in my onCreate method, how to get the size(height and width) of area of the white space? (not including the Project1 Screen2 ' space)?
android
1
2015-02-15T04:54:25.963Z
2,015
2
4
6
37
1
158
47
1
0
false
false
false
false
false
false
low
28,523,125
Unable to insert record into SQLite database from another class
<p>I am trying to insert record into a sqlite database and bypassing the contentResolver. The first class named EventProvider extends ContentProvider and also contains an instance of my SQLite database helper class as shown below. So the code in the first class works fine when i insert records through a contentResolver...
I am trying to insert record into a sqlite database and bypassing the contentResolver. The first class named EventProvider extends ContentProvider and also contains an instance of my SQLite database helper class as shown below. So the code in the first class works fine when i insert records through a contentResolver bu...
java|android|mysql|database|sqlite
0
2015-02-15T04:54:43.450Z
2,015
2
4
6
457
1
745
63
5
2
true
false
false
false
false
false
zero
28,523,169
Connect HTML5 PhoneGap App to an online database
<p>I am looking to make an HTML 5 App which will be available on the apple and android store. (so it needs to be cross platform and for which I am using Phonegap) </p> <p>My problem is the information displayed on the app will be updated regularly via some online database that will be edited online by myself not users...
I am looking to make an HTML 5 App which will be available on the apple and android store. (so it needs to be cross platform and for which I am using Phonegap) My problem is the information displayed on the app will be updated regularly via some online database that will be edited online by myself not users. What is th...
javascript|android|ios|html|cordova
1
2015-02-15T05:04:04.250Z
2,015
2
5
6
1,955
1
899
48
5
0
false
false
false
false
false
false
low
28,523,194
ButterKnife inside fragment and toolbar height
<p>I am starting to use ButterKnife and I got it is working inside fragment with views that are inflated.</p> <p>But I have a question, is it possible to get views which aren't inflated?</p> <p>For example, I have a toolbar inside of my MainActivity, but not inside the fragment. Can I access to this toolbar using But...
I am starting to use ButterKnife and I got it is working inside fragment with views that are inflated. But I have a question, is it possible to get views which aren't inflated? For example, I have a toolbar inside of my MainActivity, but not inside the fragment. Can I access to this toolbar using ButterKnife?. And othe...
android|height|fragment|toolbar|butterknife
1
2015-02-15T05:08:16.423Z
2,015
2
5
6
759
1
541
46
5
2
true
false
false
false
false
false
low
28,523,196
how to close previous activity from current activiy in android
<p>Hi i am working with IME in android. In my keyboard i have a special key which start quick-Action with three option. Each option start a new activity. So here each activity is started from input method service. lets assume, Option 1 start activity 1, Option 2 start activity 2 So now activity 2 is foreground and 1 is...
Hi i am working with IME in android. In my keyboard i have a special key which start quick-Action with three option. Each option start a new activity. So here each activity is started from input method service. lets assume, Option 1 start activity 1, Option 2 start activity 2 So now activity 2 is foreground and 1 is ba...
android|android-service
1
2015-02-15T05:08:50.867Z
2,015
2
5
6
385
1
589
62
2
1
true
false
false
false
false
false
low
28,523,307
Will java compiler optimize static functions which are conditionalized based on static variable?
<p>For an android application, I am using a logging function which looks like this -</p> <pre><code>public static void logData(String str) { if (BuildConfig.DEBUG) Log.d("MYTAG", str); } </code></pre> <p>Here, <code>BuildConfig.DEBUG</code> is a static variable which sets to true when compiling the code for debug m...
For an android application, I am using a logging function which looks like this - [CODE] Here, BuildConfig.DEBUG is a static variable which sets to true when compiling the code for debug mode and to false while compiling for release. I know if I use if(BuildConfig.DEBUG) Log.d("MYTAG", msg); anywhere in my code directl...
java|android
3
2015-02-15T05:30:12.927Z
2,015
2
5
6
221
2
660
96
2
1
true
false
false
false
false
false
low
28,523,359
How does SIP server work?
<p>I want to create VoIP SIP app on Android. In Android example, I found SipDemo project, and it's SIP client. But I don't know how client from SipDemo can register and connect to SIP server such as Asterisk or Yate? And how does SIP server work? Thank you everyone.</p>
I want to create VoIP SIP app on Android. In Android example, I found SipDemo project, and it's SIP client. But I don't know how client from SipDemo can register and connect to SIP server such as Asterisk or Yate? And how does SIP server work? Thank you everyone.
android|sip|voip
-2
2015-02-15T05:38:40.117Z
2,015
2
5
6
231
1
263
25
3
0
false
false
false
false
false
true
negative
28,523,435
What‘s the different of entry.softTtl and entry.ttl in volley?
<p>In class HttpHeaderParser:</p> <pre><code>public static Cache.Entry parseCacheHeaders(NetworkResponse response) { long now = System.currentTimeMillis(); Map&lt;String, String&gt; headers = response.headers; long serverDate = 0; long serverExpires = 0; long softExpire = 0; long maxAge = 0; ...
In class HttpHeaderParser: [CODE] entry.softTtl = softExpire; entry.ttl = entry.softTtl; This two variables has the same value, so why? In class CacheDispatcher [CODE] How can I differentiate between the cast of entry.isExpired() and entry.refreshNeeded() as the values are the same?
java|android|android-volley
5
2015-02-15T05:54:52.980Z
2,015
2
5
6
1,778
1
283
62
3
2
true
false
false
false
false
false
low
28,523,467
Displaying progress bar while loading JSON from Web
<p>I want to put a progress bar for download Json When the download starts:</p> <p>I want to display a dialog window for user. After downloading , the progress bar disappears .</p> <p>java codes:</p> <pre><code>public class GetJsonTask extends AsyncTask&lt;String, Void, String&gt; { protected void onPr...
I want to put a progress bar for download Json When the download starts: I want to display a dialog window for user. After downloading , the progress bar disappears . java codes: [CODE] But when the program is executed Does not display a progress bar (Progress bar is GONE ) What is the problem ?
android
0
2015-02-15T06:02:22.863Z
2,015
2
6
6
1,758
1
296
51
1
1
true
false
false
false
false
false
zero
28,523,516
Stop items from moving around when using StaggeredGridLayoutManager
<p>I'm using recyclerview with staggredGridLayoutManager in android. The problem is, sometimes when scrolling items move around to fit in the screen. Normally it's nothing to worry about but in my case it messes up everything! So is there anyway to stop this behavior? Not just the animation. The whole items rearranging...
I'm using recyclerview with staggredGridLayoutManager in android. The problem is, sometimes when scrolling items move around to fit in the screen. Normally it's nothing to worry about but in my case it messes up everything! So is there anyway to stop this behavior? Not just the animation. The whole items rearranging st...
android|android-recyclerview|staggered-gridview
10
2015-02-15T06:11:28Z
-1
-1
-1
-1
4,093
4
334
67
3
0
false
false
true
false
true
false
medium
28,523,517
AppCompat PopUp menu RuntimeException
<p>I am using following class to create iconized popup menu:</p> <pre><code>public class IconizedMenu implements MenuBuilder.Callback, MenuPresenter.Callback { private Context mContext; private MenuBuilder mMenu; private View mAnchor; private MenuPopupHelper mPopup; private OnMenuItemClickListener ...
I am using following class to create iconized popup menu: [CODE] However if I try to run it on lolipop it causes error. It works fine on devices with API level < 21. Here is the logcat: [CODE] activity which uses this extends Activity, not ActionBarActivity. Any ideas why is it generating an error? Thanks in forward ED...
android|popupmenu
5
2015-02-15T06:11:29.140Z
2,015
2
6
6
7,043
4
436
37
2
2
true
false
true
false
false
false
low
28,523,560
PhoneGap/Cordova: how to prevent Android softkeyboard from hiding after clicking on "Go"?
<p>I am using HTML/JavaScript and PhoneGap/Cordova to develop a small Scattergories-like game in which users have to type words related to a topic.</p> <p>The app uses <a href="https://github.com/driftyco/ionic-plugins-keyboard" rel="nofollow noreferrer">Ionic keyboard plugin</a> to show the soft keyboard at the begin...
I am using HTML/JavaScript and PhoneGap/Cordova to develop a small Scattergories-like game in which users have to type words related to a topic. The app uses Ionic keyboard plugin to show the soft keyboard at the beginning of the round, and to hide it at the end. During the round, there is a simple form that reads the ...
android|cordova|keyboard|phonegap-plugins
3
2015-02-15T06:19:30.557Z
2,015
2
6
6
1,804
0
2,054
89
4
2
true
true
false
false
false
false
low
28,523,604
Android - where the user clicked on - find out the exact position
<p>I'm working on a my new android application, It will show a <code>country map</code> to the user at first, then user can choose one of <code>Provinces</code> from the map. so the problem is how to find out the user's Selection؟</p> <p>For ex: I show the map below and user choose <code>Napoli</code>, so how can I fi...
I'm working on a my new android application, It will show a country map to the user at first, then user can choose one of Provinces from the map. so the problem is how to find out the user's Selection؟ For ex: I show the map below and user choose Napoli , so how can I find out the user clicked on Napoli . I can't find ...
android|dictionary|user-controls|user-input
0
2015-02-15T06:27:35.757Z
2,015
2
6
6
51
1
379
65
4
0
false
false
false
false
false
false
zero
28,523,644
Audio player for Ionic
<p>I am learning Ionic and want to embed an audio player. I have found this Plnkr example of <a href="http://plnkr.co/edit/C9vWoszT3FmfcATmZZ81?p=preview" rel="nofollow noreferrer">Video Player</a>: </p> <pre><code> angular.module('app',[]) .directive('youtubeIframe', ['$timeout', function ($timeout, $sce ) { ...
I am learning Ionic and want to embed an audio player. I have found this Plnkr example of Video Player : [CODE] Is there a similar example for an audio player within iframe for a mobile App (Android for the time being, but later on iOS as well)?
android|angularjs|ionic-framework|audio
1
2015-02-15T06:35:10.303Z
2,015
2
6
6
9,258
2
245
22
4
1
true
false
true
false
false
false
low
28,523,647
Android Studio Can't find file in Assets Folder
<p>New to Android Studio and am stumbling on fairly simple things. I'm trying to open a file that I have stored in the assets folder of my project. I get a <code>FileNotFoundException</code> error. How should I correctly store and reference the file? </p> <p>Here is the method that crashes:</p> <pre><code> public ...
New to Android Studio and am stumbling on fairly simple things. I'm trying to open a file that I have stored in the assets folder of my project. I get a FileNotFoundException error. How should I correctly store and reference the file? Here is the method that crashes: [CODE] And here is how I am calling it: [CODE] The f...
android|android-studio
0
2015-02-15T06:35:47.143Z
2,015
2
6
6
3,124
1
363
47
2
2
true
false
true
false
false
false
zero
28,523,680
How do I prevent error messages when I open other people's android studio project?
<p>I am evaluating my fellow coursemate Android Studio project.</p> <p>WHen I attempt to run, I get the below.</p> <p>Error message:</p> <pre><code>Error:A problem occurred configuring project ':app'. &gt; Could not resolve all dependencies for configuration ':app:_debugCompile'. &gt; Could not find com.android.s...
I am evaluating my fellow coursemate Android Studio project. WHen I attempt to run, I get the below. Error message: [CODE] The only way for me to solve the problem is to: go into their build.gradle (Module: app) [CODE] and change to [CODE] and get this: [CODE] change to [CODE] How do I avoid having to repeatedly change...
android|android-studio
0
2015-02-15T06:41:18.097Z
2,015
2
6
6
580
1
338
82
2
5
true
false
false
false
false
false
zero
28,523,707
How to explore styling in android
<p>I'm trying to theme my app in Android. However, each widget is an excrutiating pain in itself: I have to search for theming that particular widget and then create a style that hopefully derives from same style that widget uses.</p> <p>Of course, answers about theming a particular widget don't always contain info ab...
I'm trying to theme my app in Android. However, each widget is an excrutiating pain in itself: I have to search for theming that particular widget and then create a style that hopefully derives from same style that widget uses. Of course, answers about theming a particular widget don't always contain info about base st...
android|styling
13
2015-02-15T06:44:56.803Z
2,015
2
6
6
3,307
2
775
33
2
0
false
false
true
false
true
false
medium
28,523,759
Android Tab data not showing on back navigation
<p>My usecase is as follows:</p> <p>I have to fetch some data from the web endpoint, and I have to add tabs to the <code>TabHost</code>. Every tab has a <code>listview</code>, which will further get populated with data from a different web service. So far, I have able to add tabs dynamically in the TabHost, and listvi...
My usecase is as follows: I have to fetch some data from the web endpoint, and I have to add tabs to the TabHost . Every tab has a listview , which will further get populated with data from a different web service. So far, I have able to add tabs dynamically in the TabHost, and listview is also populated properly. Ever...
android|android-fragments|android-tabhost|android-tabs
0
2015-02-15T06:53:48.527Z
2,015
2
6
6
503
0
1,105
47
4
2
true
true
false
false
false
false
zero
28,523,815
How should I pass an Arraylist to BaseAdapter in android?
<p>I have the following problem. I am not able pass the Arraylist to another Activity which extends BaseActivity.</p> <p>ListViewAdapter.java</p> <pre><code>package com.example.coherendz.uobgoldandsilver; import android.app.Activity; import android.content.Context; import android.util.Log; import android.view.Layout...
I have the following problem. I am not able pass the Arraylist to another Activity which extends BaseActivity. ListViewAdapter.java [CODE] Settings.java [CODE] I am not able to retrieve the values of selectedList. Any Suggestions ?
android|android-listview|android-arrayadapter
0
2015-02-15T07:05:32.397Z
2,015
2
7
6
1,557
1
231
57
3
2
true
false
false
false
false
false
zero
28,523,828
How to access/detect particular activity variable from another android application Programmatically?
<p>Suppose, I have two separate android projects.<br/> first project is A, second project is B.<br/> Project A have many activity class such as a, aa, aaa, aaaa etc.<br/> also Project B have many activity class such as b, bb, bbb, bbb etc.<br/> aa activtiy contains on project A.</p> <pre><code>Boolean foo; if (requ...
Suppose, I have two separate android projects. first project is A, second project is B. Project A have many activity class such as a, aa, aaa, aaaa etc. also Project B have many activity class such as b, bb, bbb, bbb etc. aa activtiy contains on project A. [CODE] somehow, i need detect foo variable of activity aa is tr...
java|android|sdk
1
2015-02-15T07:08:31.693Z
2,015
2
7
6
100
1
571
100
3
2
true
false
false
false
false
false
low
28,523,855
how to convert image that is in the string form (captured from android and passed using arraylist) to blob and save it in mysql database
<p>I have captured image from android and passed it to the database side using arraylist in the string form. Now the problem is how to convert this string to BLOB and save it in the database using servlets.</p> <p>Thank you guys for the help</p> <p>Here is the android code: new Thread(new Runnable() {</p> <pre><cod...
I have captured image from android and passed it to the database side using arraylist in the string form. Now the problem is how to convert this string to BLOB and save it in the database using servlets. Thank you guys for the help Here is the android code: new Thread(new Runnable() { [CODE]
java|android|mysql|image|base64
0
2015-02-15T07:13:07.413Z
2,015
2
7
6
1,157
1
292
136
5
1
true
false
false
false
false
false
zero
28,523,860
AVD is up and running but eclipse doesnt detects
<p>My AVD is running properly and in the process tab, there's an emulator-arm.exe so i'm pretty sure about it but when i run my program with a run configuration that says to pick up this AVD, i get the following message. </p> <pre><code>Android Launch! [2015-02-15 00:38:50 - FirstApp] adb is running normally. [2015-02...
My AVD is running properly and in the process tab, there's an emulator-arm.exe so i'm pretty sure about it but when i run my program with a run configuration that says to pick up this AVD, i get the following message. [CODE] This is the Manifest.xml looks like, and as a matter of fact, i have had absolutely no problems...
android|eclipse|android-emulator
0
2015-02-15T07:14:13.253Z
2,015
2
7
6
32
2
403
48
3
2
true
false
false
false
false
false
zero
28,523,878
How to get a dimension value that is a reference to an attribute?
<p>I've got these two items in my dimension definitions:</p> <pre><code>&lt;dimen name="toolbar_search_extended_height"&gt;158dp&lt;/dimen&gt; &lt;dimen name="toolbar_search_normal_height"&gt;?attr/actionBarSize&lt;/dimen&gt; </code></pre> <p>Now I'd like to get the actual value in pixels at runtime:</p> <pre><code>...
I've got these two items in my dimension definitions: [CODE] Now I'd like to get the actual value in pixels at runtime: [CODE] The first call gives whatever 158dp is in pixels on the device. The second call yields a NotFoundException : [CODE] Type 0x2 is: TypedValue#TYPE_ATTRIBUTE : [CODE] What is the preferred method ...
android|android-resources
7
2015-02-15T07:18:07.800Z
2,015
2
7
6
2,225
1
416
65
2
4
true
false
false
false
false
false
medium
28,523,903
Textview goes offscreen on small screens
<p>I have a listView and in the row of listView I have 2 TextViews side by side. First TextView has layout_width of <strong>180dp</strong> and second of <strong>5dp</strong></p> <p>It works fine on large screens but on small screens text goes off screen. I was thinking that dp would itself adjust properly on all scree...
I have a listView and in the row of listView I have 2 TextViews side by side. First TextView has layout_width of 180dp and second of 5dp It works fine on large screens but on small screens text goes off screen. I was thinking that dp would itself adjust properly on all screen sizes but it is not the case. Below are the...
android
0
2015-02-15T07:22:17.877Z
2,015
2
7
6
262
2
676
40
1
1
true
false
false
false
false
false
zero
28,523,922
Android WebView Exception
<p><img src="https://i.stack.imgur.com/DTmfM.jpg" alt="normal webview"></p> <p><img src="https://i.stack.imgur.com/GPDQ5.png" alt="webview exception"></p> <p>I am using <code>WebView</code> in android. When I click one of the three buttons, it renders a related website in the rest of the screen. When I click the firs...
I am using WebView in android. When I click one of the three buttons, it renders a related website in the rest of the screen. When I click the first button, it works well (picture 1)( http://www.baidu.com ). But when I click the rest of two, it pops out a hint to let me choose the browser(picture 2). Why it can not be ...
android|webview|android-webview
0
2015-02-15T07:25:53.360Z
2,015
2
7
6
419
2
421
25
3
2
true
false
false
false
false
false
zero
28,523,951
How to SetText Some Strings Repetitive Like Animation-List?
<p>I have 4 Strings that I want to show them in 1 <code>textview</code> every 3 seconds and make it repeat.</p> <p>like <code>animation-list</code> that show some <code>.png</code> file.</p> <p>to be clear, I Want To Do This:</p> <pre><code>while(true){ tv.SetText("Text1"); //delay for 3 second tv.SetTe...
I have 4 Strings that I want to show them in 1 textview every 3 seconds and make it repeat. like animation-list that show some .png file. to be clear, I Want To Do This: [CODE]
java|android|textview
3
2015-02-15T07:32:19.540Z
2,015
2
7
6
71
2
176
59
3
1
true
false
false
false
false
false
low
28,524,020
Android Wifi scan: Differentiating a "real" access point from a mobile hotspot of a mobile phone?
<p>When I make a scan using the WifiManager from Android SDK, I can get all scannable access points near me. However, I noticed that the result include all access points, including those mobile phones that have mobile hotspot turned on.</p> <p>What would be the efficient way to differentiate/filter them, so that I can...
When I make a scan using the WifiManager from Android SDK, I can get all scannable access points near me. However, I noticed that the result include all access points, including those mobile phones that have mobile hotspot turned on. What would be the efficient way to differentiate/filter them, so that I can just only ...
android|android-wifi|wifimanager
0
2015-02-15T07:46:36.267Z
2,015
2
7
6
312
0
889
97
3
0
false
true
false
false
false
false
zero
28,524,063
Spotify Android Intent Play on Launch
<p>I'm trying to get Spotify to resume playback when launched from an intent but not having much luck. I think I'm close I can get Spotify to launch, and if I specify a search for an artist it will auto play but really I just want it to resume what I was last playing which I have not gotten to work yet. This site mad...
I'm trying to get Spotify to resume playback when launched from an intent but not having much luck. I think I'm close I can get Spotify to launch, and if I specify a search for an artist it will auto play but really I just want it to resume what I was last playing which I have not gotten to work yet. This site made it ...
android|android-intent|spotify
1
2015-02-15T07:54:40.617Z
2,015
2
7
6
3,576
2
522
37
3
1
true
false
true
false
false
false
low
28,524,132
Android EditText align right no work properly
<p>This is my code:</p> <pre><code>&lt;EditText android:layout_width="@dimen/edittext_width" android:layout_height="@dimen/edittext_height" android:gravity="right|center_vertical"/&gt; </code></pre> <p>I want the text go from right, so I add this code: <code>android:gravity="right"</code>.</p>...
This is my code: [CODE] I want the text go from right, so I add this code: android:gravity="right" . The problem is that the cursor always remain at right. I Attaching screen shots: With gravity right - Without gravity right - Actually I want it will be like the first image and the last image. Any help?
android|xml|android-edittext|gravity
1
2015-02-15T08:06:15.883Z
2,015
2
8
6
520
3
304
45
4
1
true
false
false
false
false
false
low
28,524,160
Developing app similar to Surelock
<p>I have developed a launcher. Now I need to disable the top status bar so that my user never exits out of my application. The functionality would be similar to SureLock App. How to achieve the same functionality</p>
I have developed a launcher. Now I need to disable the top status bar so that my user never exits out of my application. The functionality would be similar to SureLock App. How to achieve the same functionality
android
1
2015-02-15T08:10:09.143Z
2,015
2
8
6
405
0
210
34
1
0
false
true
false
false
false
false
low
28,524,170
How to create photo icons for the buttons in the sliding menu in Android?
<p>I just started developing for Android. How can I add photo icons for the buttons in the sliding menu?</p>
I just started developing for Android. How can I add photo icons for the buttons in the sliding menu?
android|button|icons|slidingmenu
1
2015-02-15T08:11:11.570Z
2,015
2
8
6
389
0
101
73
4
0
false
true
false
false
false
false
low
28,524,184
classes error android studio 1.0.1 in gradle assemblerelease
<p>Error:Execution failed for task ':app:preDexRelease'.</p> <blockquote> <p>com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\Hotline4all\AppData\Local\Android\Sdk\build-tools\21.1.1\dx.bat --dex --output C:\Users\Hotline4all\AndroidStudioProjects\NaviFirm\app\build\interme...
Error:Execution failed for task ':app:preDexRelease'. com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\Hotline4all\AppData\Local\Android\Sdk\build-tools\21.1.1\dx.bat --dex --output C:\Users\Hotline4all\AndroidStudioProjects\NaviFirm\app\build\intermediates\pre-dexed\release\classes...
android
0
2015-02-15T08:12:40.727Z
2,015
2
8
6
134
0
575
60
1
0
false
true
false
false
false
false
zero
28,524,197
touchpad not showing and gives no errors
<p>So, I've finally made a body using <strong>Physics Body Editor</strong> and <strong>Box2D</strong> in <strong>libGDX</strong>. Now I would love to create a classy <strong>touchpad</strong> using <strong>libGDX</strong>. Basically, I did it like the following:</p> <pre><code>// Touchpad private Touchpad touchpad; pr...
So, I've finally made a body using Physics Body Editor and Box2D in libGDX . Now I would love to create a classy touchpad using libGDX . Basically, I did it like the following: [CODE] and that is what i wrote in the create() method: [CODE] But, as I tested it, I discovered that no touchpad was ever rendered. Maybe that...
java|android|camera|libgdx|touchpad
0
2015-02-15T08:15:22.593Z
2,015
2
8
6
115
1
786
40
5
2
true
false
false
false
false
false
zero
28,524,234
Using android default buttons
<p>I found these website <a href="http://androiddrawables.com/Buttons.html" rel="nofollow">http://androiddrawables.com/Buttons.html</a> where you can check the differences between <code>Android buttons</code> .</p> <p>How can I use them? If I type <code>R.drawables.btn_star_big_on_pressed</code> the editor says it co...
I found these website http://androiddrawables.com/Buttons.html where you can check the differences between Android buttons . How can I use them? If I type R.drawables.btn_star_big_on_pressed the editor says it couldn't find the resource. How can I use those default Android images ? I am using 4.0.
android
1
2015-02-15T08:19:50.670Z
2,015
2
8
6
157
4
298
29
1
0
false
false
false
false
false
false
low
28,524,254
Can't connect to Samsung Galaxy Tab S with Android Studio, Windows 7
<p>I have a nice, new Samsung Galaxy Tab S which I'm trying to connect with Android Studio. I've enabled usb debugging on the tablet, and downloaded and installed the driver by executing "SAMSUNG_USB_Driver_for_Mobile_Phones_v1.5.45.0.exe" from "<a href="http://www.samsung.com/us/support/owners/product/SM-T800NTSAXAR" ...
I have a nice, new Samsung Galaxy Tab S which I'm trying to connect with Android Studio. I've enabled usb debugging on the tablet, and downloaded and installed the driver by executing "SAMSUNG_USB_Driver_for_Mobile_Phones_v1.5.45.0.exe" from " http://www.samsung.com/us/support/owners/product/SM-T800NTSAXAR ". The Googl...
android-studio|usb|adb|device
5
2015-02-15T08:23:40.860Z
2,015
2
8
6
8,637
2
894
68
4
0
false
false
true
false
false
false
low
28,524,282
Android set items into Spinner by custom Adapter
<p>in my application i have custom <code>BaseAdapter</code> for <code>Spinner</code> for insert data from List into that,</p> <p>in this method i can return <code>List</code> as an data:</p> <pre><code>public List&lt;String&gt; getSmsNumberList() { return Arrays.asList(smsNumbers.split("\\s*,\\s*")); } </code></p...
in my application i have custom BaseAdapter for Spinner for insert data from List into that, in this method i can return List as an data: [CODE] after geting successfull data from that i'm prepare to insert into Spinner: [CODE] smsNumbers have some data returned by getSmsNumberList() function, now i'm using this below ...
android|android-spinner
0
2015-02-15T08:27:05.837Z
2,015
2
8
6
1,023
3
457
48
2
3
true
false
false
false
false
false
zero
28,524,323
Retaining UI state after onBackPressed()
<p>I implemented a broadcast receiver to update one of my UI activities but my problem is this: when the back button is pressed by the user, android kills the broadcast receiver but when the home button is clicked, the state is retained. What am trying to achieve is retaining the state even after the back buttton is cl...
I implemented a broadcast receiver to update one of my UI activities but my problem is this: when the back button is pressed by the user, android kills the broadcast receiver but when the home button is clicked, the state is retained. What am trying to achieve is retaining the state even after the back buttton is click...
android
0
2015-02-15T08:33:52.417Z
2,015
2
8
6
133
2
397
40
1
0
false
false
false
false
false
false
zero
28,524,403
Android: ActionBar action overflow is not shown in Android 4.3, Samsung Note 2
<p>We switching back to showing <a href="https://developer.android.com/training/appbar" rel="nofollow noreferrer">Actionbar</a></p> <p><a href="https://i.stack.imgur.com/iLJP4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iLJP4.png" alt=""></a><br> <sub>(source: <a href="https://developer.android....
We switching back to showing Actionbar (source: android.com ) But [3] action overflow menu is not shown (in Android 4.3, Samsung Note 2). [CODE] Activity class extends android.app.Activity (not ActionBarActivity) I played to even setting all menu item to have android:showAsAction="never" (In that case no actions are on...
android|android-actionbar
0
2015-02-15T08:44:00.687Z
2,015
2
8
6
1,319
3
662
78
2
2
true
false
false
false
false
false
zero
28,524,417
How to reduce Tab indicator height in android
<p>I want to solve the problem like this link <a href="https://stackoverflow.com/questions/17541468/issue-in-tab-widget-indicator-height-in-android">How to set tab widget indicator&#39;s height in android?</a></p> <p>The user Hiren Patel said he is using <a href="http://romannurik.github.io/AndroidAssetStudio/" rel=...
I want to solve the problem like this link How to set tab widget indicator&#39;s height in android? The user Hiren Patel said he is using http://romannurik.github.io/AndroidAssetStudio/ ,but I still don't know how to reduce the indicator height ,I also used 9 patch image for it .
android
0
2015-02-15T08:45:57.057Z
2,015
2
8
6
626
1
280
45
1
0
false
false
false
false
false
false
zero
28,524,567
query from id to id in SQLite
<p>i wanna to get query from an id to an id so i used this code:</p> <pre><code>public List&lt;Convers&gt; getConversation(long min,long max){ List&lt;Convers&gt; queryconvlist = new ArrayList&lt;Convers&gt;(); Cursor querycursor = database.query(dbHelper.getTableName(1),null, DatabaseHandler.ConvID+" &gt;= "+...
i wanna to get query from an id to an id so i used this code: [CODE] but the app has crashed and logcat is 02-15 12:30:06.600: E/SQLiteLog(413): (1) near "<": syntax error
android|sqlite
0
2015-02-15T09:07:43.510Z
2,015
2
9
6
38
0
171
29
2
1
true
true
false
false
false
false
zero
28,524,573
Android real time audio signal processor output does not work
<p>I am currently developing realtime audio DSP app for android... Signal is taken from mic input(on the phone or tablet) processed and then played back.... </p> <p>When my app starts, if mic and headphone jack is pressent, Audio DSP gets intialized.... For the first second there is output from the speakers or headpho...
I am currently developing realtime audio DSP app for android... Signal is taken from mic input(on the phone or tablet) processed and then played back.... When my app starts, if mic and headphone jack is pressent, Audio DSP gets intialized.... For the first second there is output from the speakers or headphones, but aft...
android|android-audiorecord
0
2015-02-15T09:08:31.407Z
2,015
2
9
6
279
1
643
61
2
1
true
false
false
false
false
false
zero
28,524,579
Change setMyLocationEnabled button location on screen
<p>When using Google Maps V2 on Android, when I call function:</p> <pre><code>googleMap.setMyLocationEnabled(true); </code></pre> <p>It gives the button for the current location on TOP-RIGHT of map. I want to change that button location to left-bottom with my custom theme.</p> <p>What should I do?</p>
When using Google Maps V2 on Android, when I call function: [CODE] It gives the button for the current location on TOP-RIGHT of map. I want to change that button location to left-bottom with my custom theme. What should I do?
android|button|google-maps-android-api-2
4
2015-02-15T09:09:08.620Z
2,015
2
9
6
2,083
2
225
53
3
1
true
false
false
false
false
false
low
28,524,595
Native Android select menu - Cordova Phonegap
<p>I just wondering if is there any cordova plugin can convert select tag to a native android context menu or at least enhance performance and behaviour of the select tag ?</p> <p>Note : I am using ionic cordova framework</p> <p>Thanks in advance</p>
I just wondering if is there any cordova plugin can convert select tag to a native android context menu or at least enhance performance and behaviour of the select tag ? Note : I am using ionic cordova framework Thanks in advance
android|cordova|select|phonegap-plugins|ionic-framework
1
2015-02-15T09:10:43.727Z
2,015
2
9
6
1,013
1
229
45
5
0
false
false
false
false
false
false
low
28,524,683
Android processing priority
<p>I am using android eclipse for programming. I will use this basic calculation to fit to what I want to happen.</p> <p>Here: I got two buttons add and minus. if i press add it will obviously call the method add. But my problem is. if I will keep pressing add button. It will keep adding multiple times and if I will ...
I am using android eclipse for programming. I will use this basic calculation to fit to what I want to happen. Here: I got two buttons add and minus. if i press add it will obviously call the method add. But my problem is. if I will keep pressing add button. It will keep adding multiple times and if I will click 2 butt...
java|android
0
2015-02-15T09:22:43.843Z
2,015
2
9
6
57
2
531
27
2
1
true
false
false
false
false
false
zero
28,524,730
Android app not opening from URL using intent-filter
<p>I am trying to open my app from a website and read some text from link. The URL will be like <code>codespike.com/?code=xxxx</code>. I need to read the <code>xxx</code> but my problem is that I am not able to open my app when this specific URL in being opened in the browser. For testing I also used a webiste <code>bf...
I am trying to open my app from a website and read some text from link. The URL will be like codespike.com/?code=xxxx . I need to read the xxx but my problem is that I am not able to open my app when this specific URL in being opened in the browser. For testing I also used a webiste bfinstafollowers.com , not working w...
android|android-intent
1
2015-02-15T09:29:00.203Z
2,015
2
9
6
348
1
506
52
2
1
true
false
false
false
false
false
low
28,524,738
unfortunately <OpenGL Sample app> has stopped
<p>I am trying run a sample OpenGL30 app Platform: ubuntu 12.04. adreno-sdk-linux. When I run it I am getting the error:"Unfortunately has stopped" My output is given below: java.nio.BufferOverflowException at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:200) at com.android.ddmlib.JdwpPacket.movePacket(...
I am trying run a sample OpenGL30 app Platform: ubuntu 12.04. adreno-sdk-linux. When I run it I am getting the error:"Unfortunately has stopped" My output is given below: java.nio.BufferOverflowException at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:200) at com.android.ddmlib.JdwpPacket.movePacket(JdwpPacket.java:...
android|opengl
0
2015-02-15T09:30:46.913Z
2,015
2
9
6
149
0
622
45
2
0
false
true
false
false
false
false
zero
28,524,799
java.lang.String cannot be cast to android.widget.ListAdapter
<p>I got this error trying to get all items with specific object and store it to my Listview. </p> <p>Following the codes:</p> <pre><code> SimpleDateFormat formatdate = new SimpleDateFormat("MMM. dd, yyyy"); String selecdate = formatdate.format(date); if (eventDates.contains(selecdate)) { ...
I got this error trying to get all items with specific object and store it to my Listview. Following the codes: [CODE]
android-listview
0
2015-02-15T09:37:48.370Z
2,015
2
9
6
434
1
118
61
1
1
true
false
false
false
false
false
zero
28,524,863
how update a progressBar when download json
<p>I want to download a file Jason I put a progress bar for download Jason .. My problem is that the progress bar is not updated . Download correctly but does not update the progress bar What is the problem ? java codes:</p> <pre><code> public class GetJsonTask extends AsyncTask&lt;String, String, String&gt; { ...
I want to download a file Jason I put a progress bar for download Jason .. My problem is that the progress bar is not updated . Download correctly but does not update the progress bar What is the problem ? java codes: [CODE]
android
0
2015-02-15T09:46:31.333Z
2,015
2
9
6
1,047
1
224
43
1
1
true
false
false
false
false
false
zero
28,524,867
Android frame animaton being forced stop. Need reason for it
<p>I have a ImageView -</p> <pre><code>&lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageAnimation" android:layout_centerVertical="true" android:layout_centerHorizontal="true" /&gt; </code></pre> <p>And a XML file, <str...
I have a ImageView - [CODE] And a XML file, animation_list.xml for frame animation in the Drawable folder - [CODE] I have the Java code for animation inside onCreate - [CODE] It is getting forced stop. What might be the reason for this ? On debugging, this line - [CODE] shows the error, thread exiting with uncaught exc...
java|android|android-animation
0
2015-02-15T09:46:57.737Z
2,015
2
9
6
55
3
388
60
3
4
true
false
false
false
false
false
zero
28,524,923
How android apps can communicate with each other?
<p>I need a way to communicate and control from my app, every other app in a mobile android device. </p> <p>Is there any communication protocol like SOAP (Web Services) for installed android apps?</p> <p>I have found a way to open from my app, other apps but I can not control them to send and receive data. </p> <p>I...
I need a way to communicate and control from my app, every other app in a mobile android device. Is there any communication protocol like SOAP (Web Services) for installed android apps? I have found a way to open from my app, other apps but I can not control them to send and receive data. Is there a way to do this? Tha...
android
2
2015-02-15T09:54:22.537Z
2,015
2
9
6
2,078
1
326
49
1
0
false
false
false
false
false
false
low
28,524,967
outgoing call duration inappropriate android
<p>Below is the code to track outgoing call duration:</p> <pre><code>public class OutgoingCallReceiver extends BroadcastReceiver { static boolean flag = false; static long start_time, end_time; @Override public void onReceive(Context context, Intent intent) { String phoneNumber = getResultDat...
Below is the code to track outgoing call duration: [CODE] duration of outgoing call is inappropriate, can any 1 guide me to find approximate duration of outgoing call
android
0
2015-02-15T10:01:30.470Z
2,015
2
10
6
398
1
166
44
1
1
true
false
false
false
false
false
zero
28,524,986
Android : Error inflating class fragment
<p>XML layout file</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android...
XML layout file [CODE] Java file [CODE] As I searched this question before also, I have done following things to solve 1.Imported following classes [CODE] 2.Extended FragmentActivity class Still I am getting this error in logcat [CODE] Is there any other way to solve this? Thanks.
java|android|android-layout|android-fragments|google-maps-android-api-2
2
2015-02-15T10:04:29.140Z
2,015
2
10
6
6,530
1
281
40
5
4
true
false
true
false
false
false
low
28,525,007
How to use double coordinates to draw rectangles in Canvas (Android)
<p>I'm using Canvas to draw figures by means of rectangles. These figures are modeling real world shapes, so the measures are real numbers (double variables). Thus, what I do is scale the dimensions and then convert the double variables to int variables. The problem is that because of the "rounding" in the conversion s...
I'm using Canvas to draw figures by means of rectangles. These figures are modeling real world shapes, so the measures are real numbers (double variables). Thus, what I do is scale the dimensions and then convert the double variables to int variables. The problem is that because of the "rounding" in the conversion step...
android|canvas
1
2015-02-15T10:08:26.937Z
2,015
2
10
6
705
0
466
68
2
1
true
true
false
false
false
false
low
28,525,080
How to store a single row data into a string array of sqlite database in android
<p>I have called a function <code>returnCurrentNameById()</code> by passing the <code>id</code> of the particular row. But it gives an error. </p> <pre><code>String[] s1; public String[] returnCurrentNameById(int k) throws SQLException{ String[] columns = new String[]{ KEY_ID1, KEY_NAME, Key_DOB, KEY_AGE, KEY_...
I have called a function returnCurrentNameById() by passing the id of the particular row. But it gives an error. [CODE] The Log cat error report is: [CODE]
java|android|arrays|string|sqlite
3
2015-02-15T10:20:33.380Z
2,015
2
10
6
1,311
2
155
80
5
2
true
false
false
false
false
false
low
28,525,112
Android Recyclerview vs ListView with Viewholder
<p>I recently came across the android <code>RecyclerView</code> which was released with Android 5.0 and it seems that <code>RecyclerView</code> is just an encapsulated traditional <code>ListView</code> with the ViewHolder pattern incorporated into it, which promotes the reuse of the view, rather than creating it every ...
I recently came across the android RecyclerView which was released with Android 5.0 and it seems that RecyclerView is just an encapsulated traditional ListView with the ViewHolder pattern incorporated into it, which promotes the reuse of the view, rather than creating it every single time. What are the other benefits o...
android|performance|listview|android-recyclerview
156
2015-02-15T10:24:02.283Z
2,015
2
10
6
103,515
7
734
48
4
0
false
false
true
true
true
false
high
28,525,156
Unity App size doubled when ported from android to IOS/Xcode
<p>My app size has more than doubled from 21MB to 44MB when ported over from android to ios and compiled in xcode (default settings with a few imported frameworks for admob and chartboost). Any ideas on why this is and if there is any way to reduce it?</p> <p>I've gone through my texture/audio settings after convertin...
My app size has more than doubled from 21MB to 44MB when ported over from android to ios and compiled in xcode (default settings with a few imported frameworks for admob and chartboost). Any ideas on why this is and if there is any way to reduce it? I've gone through my texture/audio settings after converting the proje...
android|ios|unity3d
0
2015-02-15T10:30:36.240Z
2,015
2
10
6
2,923
3
449
60
3
1
true
false
true
false
false
false
zero
28,525,163
SetSpan in an edit field for two strings merging in each other from top to bottom in Android?
<p>I am working on an application where I have contacts chosen in the TO field of screen. I have used <strong>new BackgroundColorSpan</strong> to color the string of the names as shown in the picture.</p> <p>How can I <strong>separate the 2 strings from top to bottom</strong> as shown in the figure?</p> <p>Below I ha...
I am working on an application where I have contacts chosen in the TO field of screen. I have used new BackgroundColorSpan to color the string of the names as shown in the picture. How can I separate the 2 strings from top to bottom as shown in the figure? Below I have mentioned the source code which I am using. [CODE]
android|background|spannablestring
0
2015-02-15T10:31:51.240Z
2,015
2
10
6
34
0
320
93
3
1
true
true
false
false
false
false
zero
28,525,211
Libgdx game using Google Play Game Services on iOS and Android
<p>I am creating a game using Libgdx and would like to integrate player, Leaderboard, high score on both iOS and Android devices. Ideally I would use Google Play Game Services but I could be convinced to use other technologies (like Parse).</p> <p>There are tutorials to use Google Play services for Android devices: (<...
I am creating a game using Libgdx and would like to integrate player, Leaderboard, high score on both iOS and Android devices. Ideally I would use Google Play Game Services but I could be convinced to use other technologies (like Parse). There are tutorials to use Google Play services for Android devices: ( http://thei...
android|ios|libgdx|google-play-services|leaderboard
2
2015-02-15T10:38:45.707Z
2,015
2
10
6
1,407
1
1,274
62
5
0
false
false
false
false
false
false
low
28,525,228
Appear an Android Studio error, when I try to run app
<p>What should I do for this error?</p> <p>Error:Execution failed for task ':app:dexDebug'.</p> <blockquote> <p>com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\User\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output C:\Users\User\AndroidStudi...
What should I do for this error? Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\User\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output C:\Users\User\AndroidStudioProjects\Camera_test_01\app\build\inter...
android
0
2015-02-15T10:41:08.227Z
2,015
2
10
6
220
1
5,458
53
1
0
false
false
false
false
false
false
zero
28,525,268
Fatal Exception: main java.lang.RuntimeException: Unable to start activity a lot of bug
<p>I added <code>scrollview</code> in my <code>activity_main.xml</code> and its not working anymore. Before <code>scrollview</code> it did not work on Samsung s3,s4. But it worked on other phones and tablets.</p> <pre><code>02-15 05:37:35.700: D/AndroidRuntime(936): Shutting down VM 02-15 05:37:35.700: W/dalvikvm(936)...
I added scrollview in my activity_main.xml and its not working anymore. Before scrollview it did not work on Samsung s3,s4. But it worked on other phones and tablets. [CODE] [CODE]
android|exception|project|fatal-error
1
2015-02-15T10:46:15.493Z
2,015
2
10
6
7,208
3
180
87
4
2
true
false
true
false
false
false
low
28,525,317
Android mediaPlayer only plays file once
<p>I'm trying to create an app that play a certain audio file, that was previously recorded, when I press a button or shake my phone. Here is my code.</p> <pre><code>public class Reproduzir extends Activity implements SensorEventListener{ MediaPlayer player = new MediaPlayer(); SensorManager sensor; @Override protect...
I'm trying to create an app that play a certain audio file, that was previously recorded, when I press a button or shake my phone. Here is my code. [CODE] } My problem is that when I run it, I can only play it once. If I press the button a second time or shake it again, it does nothing. Can anyone help?
android|android-mediaplayer
2
2015-02-15T10:52:57.250Z
2,015
2
10
6
2,202
4
304
40
2
1
true
false
false
false
false
false
low
28,525,335
LocationServices.GeofencingApi can't remove geofences
<p>In the app im writing I have to use GPS 6.1 (for your information) . I'm adding geo fences using this code:</p> <pre><code>LocationServices.GeofencingApi.addGeofences(mGoogleApiClient, normGeofences, pendingIntent); </code></pre> <p>and putting each requestId in shared preferences like this: </p> <pre><code>set.a...
In the app im writing I have to use GPS 6.1 (for your information) . I'm adding geo fences using this code: [CODE] and putting each requestId in shared preferences like this: [CODE] saving the set: [CODE] than the app closes. and in some point in time the user presses a notification that cancels the geo fences: connect...
android|google-play-services|google-api-client|geofencing
2
2015-02-15T10:55:26.353Z
2,015
2
10
6
1,567
1
514
53
4
5
true
false
false
false
false
false
low
28,525,355
Gradle Project Sync Failed on latest android studio
<p>I installed the latest Android studio and am getting a gradle project sync failed when I start a new project:</p> <p><img src="https://i.stack.imgur.com/jbH2D.png" alt="enter image description here"></p> <p>build.gradel file:</p> <pre><code>// Top-level build file where you can add configuration options common to...
I installed the latest Android studio and am getting a gradle project sync failed when I start a new project: build.gradel file: [CODE] When i added: [CODE] I got this error:
android|android-studio
0
2015-02-15T10:57:40.290Z
2,015
2
10
6
178
1
174
51
2
2
true
false
false
false
false
false
zero
28,525,382
Callback to manipulate photo before it is saved to file
<p>I'd like to take photo and compress its size before saving it to file. According to what I understand from android developer guide, I can only save the photo to file first and then compress it. </p> <pre><code>File photoFile = //aquire file path to the saved photo... takePictureIntent.putExtra(MediaStore.EXTRA_OUTP...
I'd like to take photo and compress its size before saving it to file. According to what I understand from android developer guide, I can only save the photo to file first and then compress it. [CODE] Is it the best practice for this flow? Can't I get in callback the byte[] of the image and manipulate it before it is b...
android|android-intent|camera|android-camera
1
2015-02-15T11:01:09Z
-1
-1
-1
-1
155
0
339
55
4
1
true
true
false
false
false
false
low
28,525,462
How to prevent .setDisplayHomeAsUpEnabled from re-creating the parent activity?
<p>When I press the "back/up" button in the toolbar to go up one level, the parent activity is re-creating itself (re-loading data, etc.) when I'd just like to <code>finish</code> the current activity.</p> <p>Right now my activity is automatically creating the <code>Toolbar</code> (support Toolbar), so I'm not sure ho...
When I press the "back/up" button in the toolbar to go up one level, the parent activity is re-creating itself (re-loading data, etc.) when I'd just like to finish the current activity. Right now my activity is automatically creating the Toolbar (support Toolbar), so I'm not sure how to select it to call NavUtils.navig...
android
1
2015-02-15T11:13:18.417Z
2,015
2
11
6
610
2
469
79
1
0
false
false
false
false
false
false
low
28,525,487
Which database to use for educational android application??
<p>I am developing one android application for which I need to use database but I am confused between MySQL and SQLite. My application consists of one questionnaire having 4-5 test papers and generates automatic report on the basis of answers given by user. But as a newbie in the area of application development, I coul...
I am developing one android application for which I need to use database but I am confused between MySQL and SQLite. My application consists of one questionnaire having 4-5 test papers and generates automatic report on the basis of answers given by user. But as a newbie in the area of application development, I couldn'...
android|mysql|sqlite
-1
2015-02-15T11:16:28.520Z
2,015
2
11
6
44
1
371
59
3
0
false
false
false
false
false
true
negative
28,525,505
Two onActivityResult conflict android
<p>I have two activities, <code>TakePictureActivity</code> and <code>ChoosePicActivity</code>, and they both lead to <code>PuzzleActivity</code>.</p> <p>As you can see, 1st activity starts an intent to start the camera, allows you to take a picture and starts the <code>PuzzleActivity</code>.</p> <p>The 2nd activity a...
I have two activities, TakePictureActivity and ChoosePicActivity , and they both lead to PuzzleActivity . As you can see, 1st activity starts an intent to start the camera, allows you to take a picture and starts the PuzzleActivity . The 2nd activity accesses to the gallery, allows you to choose a picture and starts th...
java|android|get|onactivityresult
0
2015-02-15T11:18:40.920Z
2,015
2
11
6
592
1
1,570
37
4
3
true
false
false
false
false
false
zero
28,525,580
Android add items to Listview.setAdapter which contains only specific items
<p>Is there any possible way to add items in listview using setAdapter which only contains specific items? for example I want to add in listview an items which contains a date of "Feb. 15, 2015" only.</p> <p>Following the codes: </p> <pre><code> final ListAdapter adapter = new SimpleAdapter(CalendarActivity.this, e...
Is there any possible way to add items in listview using setAdapter which only contains specific items? for example I want to add in listview an items which contains a date of "Feb. 15, 2015" only. Following the codes: [CODE]
android|listview|android-listview
1
2015-02-15T11:29:36.703Z
2,015
2
11
6
567
1
225
75
3
1
true
false
false
false
false
false
low
28,525,597
How to display and get directions with A*
<p>I have a Pathfinding algorithm which is working but the problem is that i can't get the directions on my main class. in other words every time i wan't to display the directions it output null values.</p> <p>here's my code.</p> <p>Astar.java</p> <pre><code>package path; import java.util.ArrayList; import java.uti...
I have a Pathfinding algorithm which is working but the problem is that i can't get the directions on my main class. in other words every time i wan't to display the directions it output null values. here's my code. Astar.java [CODE] Node.java [CODE] Area.java [CODE] output: [CODE] Problem: No directions: I get null wh...
java|android|algorithm
-1
2015-02-15T11:32:10.010Z
2,015
2
11
6
1,277
1
340
41
3
4
true
false
false
false
false
true
negative
28,525,613
Floating Views using Window Manager android
<p>i am able to float a drawable using float manager but how do i make a layout or a view float? below is my code- (i am new to android and coding please be patient) </p> <pre><code>public class example extends Service { private WindowManager wind...
i am able to float a drawable using float manager but how do i make a layout or a view float? below is my code- (i am new to android and coding please be patient) [CODE]
android|android-windowmanager
2
2015-02-15T11:34:14.183Z
2,015
2
11
6
1,419
1
169
43
2
1
true
false
false
false
false
false
low
28,525,623
Migrating from Eclipse to Android Studio: library references
<p>Ok, so here's the deal. Recently I've found out, that Eclipse will no longer be receiving support in matters of Android development and that Android Studio is the go-to IDE for this task. I've checked the newest Studio version and am pretty stoked to try out some new tools, but here's my predicament.</p> <p>I want ...
Ok, so here's the deal. Recently I've found out, that Eclipse will no longer be receiving support in matters of Android development and that Android Studio is the go-to IDE for this task. I've checked the newest Studio version and am pretty stoked to try out some new tools, but here's my predicament. I want to migrate ...
android|eclipse|android-studio|migration
0
2015-02-15T11:35:46.800Z
2,015
2
11
6
425
1
1,038
60
4
0
false
false
false
false
false
false
zero
28,525,642
How to set Notification icon from Imageview
<p>Hi guys i am trying to implement notifications into my application. The thing is that i want each notification to have a certain image taken from the imageview if possible.</p> <p>Since the <a href="http://developer.android.com/reference/android/app/Notification.Builder.html" rel="nofollow">documentation</a> says t...
Hi guys i am trying to implement notifications into my application. The thing is that i want each notification to have a certain image taken from the imageview if possible. Since the documentation says that the setSmallIcon() method can only take an int resId as parameter i have to use the setLargeIcon() method. How ca...
android|bitmap|android-notifications|android-bitmap
1
2015-02-15T11:38:46.450Z
2,015
2
11
6
2,887
2
669
43
4
5
true
false
true
false
false
false
low
28,525,644
Custom ListView repeating old content instead of new
<p>So, I am dynamically creating items for each card. It works all fine and dandy until it has to create a card at index >= 3. Once it reaches there, it recreate old content instead.</p> <p>Somehow,it does not specify index 3 as having a converView of null. It's somewhat in between created and not created. </p> <pre>...
So, I am dynamically creating items for each card. It works all fine and dandy until it has to create a card at index >= 3. Once it reaches there, it recreate old content instead. Somehow,it does not specify index 3 as having a converView of null. It's somewhat in between created and not created. [CODE]
java|android|listview|repeat
0
2015-02-15T11:39:14.377Z
2,015
2
11
6
38
0
304
52
4
1
true
true
false
false
false
false
zero
28,525,680
Converting a SQL DataBase to a PDF document
<p>I'm hoping someone can help here, I have been following a great tutorial, <a href="http://www.androidhub4you.com/2013/04/sqlite-example-in-android-add-image.html" rel="nofollow">http://www.androidhub4you.com/2013/04/sqlite-example-in-android-add-image.html</a></p> <p>This allows me a create a List of photos taken f...
I'm hoping someone can help here, I have been following a great tutorial, http://www.androidhub4you.com/2013/04/sqlite-example-in-android-add-image.html This allows me a create a List of photos taken from the gallery or the camera. What i would love to be able to do is convert / write that data to a PDF document which ...
android|pdf-generation
0
2015-02-15T11:43:45.037Z
2,015
2
11
6
167
0
499
43
2
0
false
true
false
false
false
false
zero