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,809,110
How to request and get jsonarray from url and view them on listview in android
<p>Im new to android studio and I want to create an rss reader application. the application should get the last news id from url,compare it to the last existing news id in the application,send a request and get json array per each id between them.and when downloading jsons were finished show them on a listview. The pro...
Im new to android studio and I want to create an rss reader application. the application should get the last news id from url,compare it to the last existing news id in the application,send a request and get json array per each id between them.and when downloading jsons were finished show them on a listview. The proble...
android|json|listview
0
2015-03-02T11:50:26.817Z
2,015
3
11
0
595
1
440
78
3
2
true
false
false
false
false
false
zero
28,809,120
default location for sqlite databases on an android device is not displaying my database
<p>I am a newbie to android. In my project i am sending data selected from drop down (spinners) via bluetooth.</p> <p>I have created a database and loaded the values into spinners and sent the selected values via bluetooth. It is working fine .Now the problem is i know the database is created as i am displaying its va...
I am a newbie to android. In my project i am sending data selected from drop down (spinners) via bluetooth. I have created a database and loaded the values into spinners and sent the selected values via bluetooth. It is working fine .Now the problem is i know the database is created as i am displaying its values for th...
android|mysql|sqlite|bluetooth
0
2015-03-02T11:51:01.913Z
2,015
3
11
0
483
1
856
88
4
0
false
false
false
false
false
false
zero
28,809,132
open eye and closed eye in android by Android eye detection and tracking with OpenCV
<p>i made application eye detecting by following this link <a href="http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/" rel="nofollow">link</a> and it work<br> how can i detect the eye is opened or closed ? is there library in android to detect closed or opened </p>
i made application eye detecting by following this link link and it work how can i detect the eye is opened or closed ? is there library in android to detect closed or opened
java|android|opencv|face-detection|eye-tracking
2
2015-03-02T11:51:27.530Z
2,015
3
11
0
3,423
1
174
84
5
0
false
false
true
false
false
false
low
28,809,176
Activities on the custoized backstack recreating
<p>I have four activities A->B->C->D where A is parent of B ,B of C and c of D. I have animations specified for onCreate and onBackPressed</p> <pre><code> protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); overridePendingTransition(R.anim.pull_in_right, R.anim.push_out_l...
I have four activities A->B->C->D where A is parent of B ,B of C and c of D. I have animations specified for onCreate and onBackPressed [CODE] and [CODE] On user input from some other activity i am launching activity D using following code [CODE] As expected D is launched and C,B,A is added to backstack.But when i pres...
android
0
2015-03-02T11:54:38.197Z
2,015
3
11
0
219
1
1,022
48
1
10
true
false
false
false
false
false
zero
28,809,196
How to display checkbox on the left when change language of Android app to Arabic?
<p>In Settings of my Android app, I use many of checkboxPreferences. When the locale selected is English, text appears at the Left side and Check box at the right side. Text ------------------Checkbox</p> <p>When I change locale to Arabic, I want to get this format: Checkbox---------------Text</p> <p>But it keeps the...
In Settings of my Android app, I use many of checkboxPreferences. When the locale selected is English, text appears at the Left side and Check box at the right side. Text ------------------Checkbox When I change locale to Arabic, I want to get this format: Checkbox---------------Text But it keeps the same as English lo...
android|checkbox|settings|locale|arabic
3
2015-03-02T11:55:42.917Z
2,015
3
11
0
1,219
2
371
82
5
0
false
false
false
false
false
false
low
28,809,198
SQLite Database in Android for select query along with between clause
<p>I am using SQLite Database in Android. I have used <code>rawQuery</code> in SQLite database. My Database method for that is as follows:</p> <pre><code>public Cursor selectedDate(String from_dt ,String to_dt) { try { String str_k="select RowId,Bill_Date from SalesMaster Where Bill_Date between '"+ ...
I am using SQLite Database in Android. I have used rawQuery in SQLite database. My Database method for that is as follows: [CODE] and my .java file is [CODE] The main problem is that it will return RowId from salesMaster table as per from-date and to-date, but actual problem is it will return values but not include las...
android
-2
2015-03-02T11:55:46.270Z
2,015
3
11
0
583
1
473
69
1
2
true
false
false
false
false
true
negative
28,809,225
Send RSA Public Key in Java to PHP server
<p>I'm having trouble trying to convert a Java generated RSA Public KEY to string format so I can use it on the PHP side. I tried converting it to string but the encryption fails on the PHP side. I generate a public Key in Java like this: </p> <pre><code>KeyPairGenerator k = KeyPairGenerator.getInstance("RSA"); k.init...
I'm having trouble trying to convert a Java generated RSA Public KEY to string format so I can use it on the PHP side. I tried converting it to string but the encryption fails on the PHP side. I generate a public Key in Java like this: [CODE] and the PublicKey when outputted to String looks something like this: [CODE] ...
php|android|encryption|rsa|phpseclib
1
2015-03-02T11:57:01.097Z
2,015
3
11
0
3,752
1
1,107
41
5
7
true
false
true
false
false
false
low
28,809,328
How to load html files as items in listview.?
<p>I have similar problem like the one in the link below.! </p> <p><a href="https://stackoverflow.com/questions/26798045/passing-url-and-title-to-a-webview-in-android">passing url and title to a webview in android</a></p> <p>I have a code like this in the MainActivity:</p> <pre><code>ListView lv; Arrayadapter&lt;Str...
I have similar problem like the one in the link below.! passing url and title to a webview in android I have a code like this in the MainActivity: [CODE] and in Mypage class get intent is like [CODE] //WbView.setWebViewClient(new myWebViewClient()); } And have tried with and without setting webview clients(the line whi...
android|android-activity|webview
-2
2015-03-02T12:01:55.730Z
2,015
3
12
0
501
1
457
45
3
2
true
false
false
false
false
true
negative
28,809,396
Get contact display picture with a phone number without a country code?
<p>Is it possible to get a contact's display picture regardless of whether the number exactly matches to that in the address book? </p> <p>For exmample - if the number saved is 736--------, but the incoming call shows +01736--------, how do I get the display picture using the number with the extension?</p>
Is it possible to get a contact's display picture regardless of whether the number exactly matches to that in the address book? For exmample - if the number saved is 736--------, but the incoming call shows +01736--------, how do I get the display picture using the number with the extension?
java|android
0
2015-03-02T12:05:49.587Z
2,015
3
12
0
233
1
292
71
2
0
false
false
false
false
false
false
zero
28,809,408
PhoneGap and WhatsApp
<p>I hope you'll can help me to find an issue to my problem.</p> <p>I'm developping an application who should use WhatsApp. This application is using HTML5, CSS3 and Javascript. I am using this link to send an message with WhatsApp :</p> <pre><code>&lt;a href="whatsapp://send?text=Test 1"&gt; </code></pre> <p>This l...
I hope you'll can help me to find an issue to my problem. I'm developping an application who should use WhatsApp. This application is using HTML5, CSS3 and Javascript. I am using this link to send an message with WhatsApp : [CODE] This link work perfectly when you use directly a browser but when I use PhoneGap I have a...
android|html|cordova|whatsapp
12
2015-03-02T12:06:15.093Z
2,015
3
12
0
13,107
3
584
21
4
2
true
false
true
true
true
false
medium
28,809,502
GeoWebCache and osmdroid
<p>I've got a GeoWebCache <a href="http://82.146.41.127:8080/geoserver/gwc/" rel="nofollow">geo server</a> and now I want to use that as tile source for my android app. How can I do that? Is that even possible? My effort:</p> <pre><code> mResourceProxy = new ResourceProxyImpl(this.getActivity() .getAppl...
I've got a GeoWebCache geo server and now I want to use that as tile source for my android app. How can I do that? Is that even possible? My effort: [CODE] Where tilesURL is http://82.146.41.127:8080/geoserver/gwc/ . It results 03-02 12:01:25.195: W/o*.o*.t*.m*.MapTileDow*(900): Problem downloading MapTile: /14/10434/5...
java|android|openstreetmap|osmdroid
3
2015-03-02T12:11:45.383Z
2,015
3
12
0
424
1
415
24
4
1
true
false
false
false
false
false
low
28,809,507
How to speed up the process of downloading and storing of audio files?
<p>I have to download and store a large number of audio(<strong>.mp3</strong>) and images for the first time user launches the application. The size of individual image and audio file is small and is roughly same for both. The number of images is double as that of audio. So, to download images, I'm using <a href="http:...
I have to download and store a large number of audio( .mp3 ) and images for the first time user launches the application. The size of individual image and audio file is small and is roughly same for both. The number of images is double as that of audio. So, to download images, I'm using Volley which is working flawless...
android
0
2015-03-02T12:12:09.833Z
2,015
3
12
0
78
1
698
70
1
1
true
false
false
false
false
false
zero
28,809,514
Obtain my class atributes from a JSON request in android
<p>i have the next situation. I want to obtain atributes from a User class , which contains atributes in the formats: Date, String, Name. Where Name is another class i created before which contains FirstName and LastName Strings. So, i have to do httprequest to my REST server and im doing this</p> <pre><code>protected...
i have the next situation. I want to obtain atributes from a User class , which contains atributes in the formats: Date, String, Name. Where Name is another class i created before which contains FirstName and LastName Strings. So, i have to do httprequest to my REST server and im doing this [CODE] I need to know some t...
android|json|parsing
0
2015-03-02T12:12:30.803Z
2,015
3
12
0
40
1
875
56
3
1
true
false
false
false
false
false
zero
28,809,537
Android Eclipse Error parsing XML: not well-formed (invalid token)
<p>Where is the mistake in this code? It says : </p> <blockquote> <p>error: Error parsing XML: not well-formed (invalid token)</p> </blockquote> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas....
Where is the mistake in this code? It says : error: Error parsing XML: not well-formed (invalid token) [CODE]
android|xml|eclipse
0
2015-03-02T12:14:01.780Z
2,015
3
12
0
231
0
109
66
3
1
true
true
false
false
false
false
zero
28,809,539
Receiving empty JSON array from GET request
<p>I am running an <code>asyncTask</code> to retrieve a JSON array of objects from a <code>HttpPost</code>.</p> <p>The output from the webservice is:</p> <pre><code> [ { "id": 1, "question": "What town were you born in?" }, { "id": 2, "question": "What is your mothers maid...
I am running an asyncTask to retrieve a JSON array of objects from a HttpPost . The output from the webservice is: [CODE] But get the JSONException : [CODE] Which refers to JArray in the following code: [CODE] Am I parsing the response to a JSONArray correctly? edit: This is how the webservice responds: [CODE]
java|android|json|object
0
2015-03-02T12:14:07.267Z
2,015
3
12
0
1,159
2
311
43
4
4
true
false
false
false
false
false
zero
28,809,545
Call ActivityManagerService methods from my application
<p>I've created a system application on a rooted device and was wondering: is there a way to access methods in <code>ActivityManagerService</code> from that application?</p> <p>I've tried using the <code>ActivityManager</code> object but not all methods also exist in <code>ActivityManagerService</code>.</p> <p>Thanx!...
I've created a system application on a rooted device and was wondering: is there a way to access methods in ActivityManagerService from that application? I've tried using the ActivityManager object but not all methods also exist in ActivityManagerService . Thanx!
android|activity-manager|rooted-device
5
2015-03-02T12:14:32.253Z
2,015
3
12
0
420
0
263
55
3
0
false
true
false
false
false
false
low
28,809,569
Android Null object Reference
<p>Okay so I have two activities and I am trying to open the activity Insert on a Button click. But it gives a message Unfortunately activity has stopped unexpectedly or whatever..</p> <p>Part of code from the Main Activity where button is calling intent:</p> <pre><code>//The intent typed earlier in the activity Int...
Okay so I have two activities and I am trying to open the activity Insert on a Button click. But it gives a message Unfortunately activity has stopped unexpectedly or whatever.. Part of code from the Main Activity where button is calling intent: [CODE] My LogCat Here: [CODE]
java|android|android-intent|android-activity
0
2015-03-02T12:15:57.327Z
2,015
3
12
0
4,829
1
275
29
4
2
true
false
true
false
false
false
zero
28,809,574
How to access cocos2d-x sprites in current scene from JNI?
<p>I want to access the children of a cocos2d-x scene from the Android JNI.</p> <p>The scene is created in the <strong>AppDelegate</strong> as follows:</p> <pre><code>Director::getInstance()-&gt;runWithScene(MainScene::create()); //scene node has several children </code></pre> <p>The scene contains several sprites a...
I want to access the children of a cocos2d-x scene from the Android JNI. The scene is created in the AppDelegate as follows: [CODE] The scene contains several sprites as children that should be manipulated in the JNI. In the scene initiation, sprites are added as follows: [CODE] But when I want to access the sprite in ...
android|android-ndk|cocos2d-x
2
2015-03-02T12:16:08.947Z
2,015
3
12
0
265
1
814
58
3
3
true
false
false
false
false
false
low
28,809,595
Push Notification sent from azure cloud service Via GCM is not reaching the device
<p>I'm pushing a notification from the azure, which in turn receiving a response from GCM as something like this,</p> <pre><code>{ "multicast_id": 741482134591577979968, "success": 1, "failure": 0, "canonical_ids": 1, "results": [ { "registration_id": "APA91bHUJE2EEEKkdjJaETiDfiaBiAxHdHB2q4moPhjknm...
I'm pushing a notification from the azure, which in turn receiving a response from GCM as something like this, [CODE] Eventhough we are getting success response,the message ain't reaching the device. We have tested manually by sending messages from azure which is perfectly delivered. We have tested by sending messages ...
android|azure|google-cloud-messaging
-1
2015-03-02T12:17:28.003Z
2,015
3
12
0
149
1
511
82
3
1
true
false
false
false
false
true
negative
28,809,615
Subversion Not Working?
<p>I am working with Android Studio 1.1.0 and while connecting SVN repository from Android Studio VCS i m getting error:</p> <pre><code>Subversion: (Accessing URL: https://url/svn/project_name) No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Please check Subversion SSL settings (Setti...
I am working with Android Studio 1.1.0 and while connecting SVN repository from Android Studio VCS i m getting error: [CODE] I Tried: File -> Setting -> Version Control -> SubVersion -> General -> Uncheck all (or check all) File -> Setting -> Version Control -> SubVersion ->Network (switched All or SSLv3 or TLSv1) Clea...
android|svn|ssl|intellij-idea|android-studio
4
2015-03-02T12:18:39.510Z
2,015
3
12
0
4,717
2
390
23
5
1
true
false
true
false
false
false
low
28,809,649
Array length in app Android
<p>In my app Android I have declared a variable:</p> <blockquote> <p>File f = new File(...);</p> <p>File[] files = f.listFiles();</p> </blockquote> <p>After, I have to test if there are files in my directory:</p> <blockquote> <p>if(<strong>files.length == 0</strong>) { ... }</p> </blockquote> <p>And here i...
In my app Android I have declared a variable: File f = new File(...); File[] files = f.listFiles(); After, I have to test if there are files in my directory: if( files.length == 0 ) { ... } And here is my problem. This is valid for my smartphone emulator (5.4" Android 4.2.2) and my tablet emulator (10" Android 4.2.2 ),...
android|file
0
2015-03-02T12:20:16.210Z
2,015
3
12
0
97
1
561
27
2
0
false
false
false
false
false
false
zero
28,809,660
Where can I find information about cmusphinx framework?
<p>Where can I find information or source code of Android sphinx framework? I need to make a report about speech recognition technology, especially sphinx framework, how does it works, about optimization of it and etc.</p>
Where can I find information or source code of Android sphinx framework? I need to make a report about speech recognition technology, especially sphinx framework, how does it works, about optimization of it and etc.
java|android|cmusphinx
-4
2015-03-02T12:20:59.150Z
2,015
3
12
0
89
1
215
55
3
0
false
false
false
false
false
true
negative
28,809,676
how to write the AsyncTask in JSON parser for my code?
<p>I am developing a login application using MySQL database. I am using JSONParser from the database package to connect to the local mysql database I am getting the following error please some one help me. I googled for this error but what I got is to use the AsyncTask but I don't know where to use and how to use and w...
I am developing a login application using MySQL database. I am using JSONParser from the database package to connect to the local mysql database I am getting the following error please some one help me. I googled for this error but what I got is to use the AsyncTask but I don't know where to use and how to use and what...
android|mysql|eclipse|exception|android-activity
-1
2015-03-02T12:22:02.017Z
2,015
3
12
0
69
3
538
54
5
1
true
false
false
false
false
true
negative
28,809,722
Nested generic type interface
<p>I am trying to create an interface that some of my classes will implement. While this works fine for one Type T:</p> <pre><code>public interface AsyncResponse&lt;T&gt; { void processFinish(T output); } </code></pre> <p>This allows the use of <code>processFinish&lt;String&gt;</code> etc.</p> <p>Making this wor...
I am trying to create an interface that some of my classes will implement. While this works fine for one Type T: [CODE] This allows the use of processFinish<String> etc. Making this work for generic lists doesn't seem to. Or atleast, I can't grasp how to be able to allow one of and not limited to the following: LinkedH...
java|android|generics
2
2015-03-02T12:24:56.833Z
2,015
3
12
0
348
1
503
29
3
3
true
false
false
false
false
false
low
28,809,727
how to upgrade SQLite database in android project?
<p>i have a database in my project and now i changed my database as new content , but database has not changed, Please help me to solve this problem</p> <p>i just replace database file in assets folder my source code :</p> <pre><code>public class MovieDB extends SQLiteOpenHelper { String DB_PATH = null; publ...
i have a database in my project and now i changed my database as new content , but database has not changed, Please help me to solve this problem i just replace database file in assets folder my source code : [CODE]
android|sqlite|upgrade
0
2015-03-02T12:25:08.280Z
2,015
3
12
0
127
1
215
50
3
1
true
false
false
false
false
false
zero
28,809,739
A second activity dosen't open
<p>I have an application with several buttons , when the user clicks on any of the buttons sounding music. The probelm is that when the activity opens the program closes.</p> <p>Only with this activity , eclipse error does not indicate what is not going on.</p> <p>this is the code:</p> <pre><code>import android.app....
I have an application with several buttons , when the user clicks on any of the buttons sounding music. The probelm is that when the activity opens the program closes. Only with this activity , eclipse error does not indicate what is not going on. this is the code: [CODE] And this is de xml code: [CODE] Android manifes...
android|eclipse|button|android-activity
0
2015-03-02T12:25:43.670Z
2,015
3
12
0
59
2
329
30
4
3
true
false
false
false
false
false
zero
28,809,740
Android Animation-View Animation On Transistion
<p>I am using Xamarin to develop an app. I am trying to achieve an Transition Animation Between the Activities such that the exit animation include another animation in which the relative layout move down and Activity exit to right and enters from left.</p> <p>I tried it with FragmentActivity and as well as Activity. ...
I am using Xamarin to develop an app. I am trying to achieve an Transition Animation Between the Activities such that the exit animation include another animation in which the relative layout move down and Activity exit to right and enters from left. I tried it with FragmentActivity and as well as Activity. But could n...
android|xamarin|xamarin.android|android-animation
1
2015-03-02T12:25:45.550Z
2,015
3
12
0
239
0
604
47
4
1
true
true
false
false
false
false
low
28,809,774
BufferedRead runtime crash
<p>My app crash when encounters BufferedReader operation. Ive tried to implement the code inside an asyncTask classe, because ive read that the crash is caused by the ui thread, but nothing has changed.</p> <pre><code>public class URLConnectionReader extends AsyncTask&lt;URL, Void, String&gt; { String result = nu...
My app crash when encounters BufferedReader operation. Ive tried to implement the code inside an asyncTask classe, because ive read that the crash is caused by the ui thread, but nothing has changed. [CODE] Logs [CODE] MainActivity code [CODE]
java|android|android-asynctask|bufferedreader
0
2015-03-02T12:27:23.363Z
2,015
3
12
0
160
1
243
26
4
3
true
false
false
false
false
false
zero
28,809,776
Sending an email with attachments programmatically on Android
<p>I wish to implement a button that upon pressing it will open the default email client with an attachment file.</p> <p>I am following <a href="https://stackoverflow.com/questions/20355870/explicit-intent-for-android-default-email-client">this</a>, but am getting an error message on the startActivity, saying it is ex...
I wish to implement a button that upon pressing it will open the default email client with an attachment file. I am following this , but am getting an error message on the startActivity, saying it is expecting an activity param while I am giving it an intent. I am using API 21 and Android Studio 1.1.0, so perhaps it ha...
android|email|android-intent|email-attachments
19
2015-03-02T12:27:26.163Z
2,015
3
12
0
39,676
3
506
61
4
1
true
false
true
true
true
false
medium
28,809,847
How can i call android screenshot system?
<p>I want to take a picture from my android app, but i'm getting a black image because of my videoView in current Activity. How can i take it without root access? </p> <p>bellow is the code to get my current View:</p> <p>In my main Activity:</p> <p><em>saveBitmap(tackeScreenshot());</em></p> <p>And the methods used...
I want to take a picture from my android app, but i'm getting a black image because of my videoView in current Activity. How can i take it without root access? bellow is the code to get my current View: In my main Activity: saveBitmap(tackeScreenshot()); And the methods used: [CODE]
android|system|call|screenshot|root
2
2015-03-02T12:31:20.813Z
2,015
3
12
0
781
1
283
41
5
1
true
false
false
false
false
false
low
28,809,854
Package cordova project
<p>I'm using Android to create an App Studio Android. To create it'm using a framework: Cordova. The problem comes when I go to load the application on the USB device. In "All tests" print this: </p> <pre><code>Testing started at 13:18 ... Waiting for device. Target device: lge-lg_e610-LGOTMS79a92e5a Uploading files l...
I'm using Android to create an App Studio Android. To create it'm using a framework: Cordova. The problem comes when I go to load the application on the USB device. In "All tests" print this: [CODE] In "Event Log" this: 12:51:24 Error running All Tests: [CODE] I do not understand how to solve. Here is the code in "Andr...
android|cordova|package
0
2015-03-02T12:31:36.020Z
2,015
3
12
0
181
0
554
23
3
4
true
true
false
false
false
false
zero
28,809,972
Up Navigation in fragment
<p>I am creating one android app in which i want to implement up navigation. i want to navigate to previous fragment through up navigation in actionbar. application also contain navigation drawer. i have implement following code but it does'n work. thanks in advance. main activity code as below.</p> <pre><code>public ...
I am creating one android app in which i want to implement up navigation. i want to navigate to previous fragment through up navigation in actionbar. application also contain navigation drawer. i have implement following code but it does'n work. thanks in advance. main activity code as below. [CODE] Fragment code as be...
android|android-fragments|navigation-drawer|android-fragmentactivity|up-navigation
0
2015-03-02T12:36:26.667Z
2,015
3
12
0
528
2
331
25
5
2
true
false
false
false
false
false
zero
28,809,977
Enabling Proguard Throws Exception
<p>I have added some external libs in my project and it works fine, but when I enabled proguard it throws exception every time. I have tried to exclude libs from proguard but my code not working.</p> <p><strong>gradle:</strong></p> <pre><code>dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) co...
I have added some external libs in my project and it works fine, but when I enabled proguard it throws exception every time. I have tried to exclude libs from proguard but my code not working. gradle: [CODE] proguard-rules.pro [CODE] Error [CODE]
android|proguard
0
2015-03-02T12:36:34.930Z
2,015
3
12
0
970
1
246
34
2
3
true
false
false
false
false
false
zero
28,810,009
How to capture frame from a video?
<p>I want to capture frames from a playing video. I have tried <code>MediaMetadataRetriever</code> &amp; it works fine for local videos (kept in SD card &amp; in res-raw directory). But in my app I am playing videos from web so it doesn't work, in that case.</p> <p>In my app, I am playing videos of Vimeo &amp; YouTube...
I want to capture frames from a playing video. I have tried MediaMetadataRetriever & it works fine for local videos (kept in SD card & in res-raw directory). But in my app I am playing videos from web so it doesn't work, in that case. In my app, I am playing videos of Vimeo & YouTube. For playing YouTube video, I am us...
android|youtube-api|android-videoview
0
2015-03-02T12:38:43.230Z
2,015
3
12
0
204
0
636
34
3
0
false
true
false
false
false
false
zero
28,810,024
While Using providerInstaller java.lang.ClassNotFoundException: Didn't find class on path: DexPathList
<pre><code>package com.example.providerinstallertest; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.Toast; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.security.ProviderInstaller; impor...
[CODE] Got Following exception:- [CODE] Manifiest File here: [CODE]
java|android|eclipse
1
2015-03-02T12:39:45.410Z
2,015
3
12
0
2,109
0
67
102
3
3
true
true
false
false
false
false
low
28,810,038
How to achieve animation in ImageView like newsstand application header - Android
<p>I want to set Animation to images of in image view like in newsstand application and change image after particular interval of time.</p> <p>Please help its very important for me.</p>
I want to set Animation to images of in image view like in newsstand application and change image after particular interval of time. Please help its very important for me.
android|animation|imageview
-3
2015-03-02T12:40:18.747Z
2,015
3
12
0
430
1
171
81
3
0
false
false
false
false
false
true
negative
28,810,048
InAppBilling crashes on startup
<p>I'm trying to make an app that I can get a simple implementation of in app purchases. I've been falling this guide <a href="http://www.techotopia.com/index.php/Integrating_Google_Play_In-app_Billing_into_an_Android_Application_%E2%80%93_A_Tutorial" rel="nofollow">http://www.techotopia.com/index.php/Integrating_Googl...
I'm trying to make an app that I can get a simple implementation of in app purchases. I've been falling this guide http://www.techotopia.com/index.php/Integrating_Google_Play_In-app_Billing_into_an_Android_Application_%E2%80%93_A_Tutorial but it's fraught with probably outdated information and neglects to include all t...
java|android|eclipse
0
2015-03-02T12:40:48.977Z
2,015
3
12
0
66
1
799
31
3
1
true
false
false
false
false
false
zero
28,810,064
How to download sqlite database file from the server in Android?
<pre><code>protected void doDownload(final String urlLink, final String fileName) { Thread dx = new Thread() { public void run() { File root = android.os.Environment.getExternalStorageDirectory(); File dir = new File (root.getAbsolutePath() + "/C...
[CODE] through this, I cannot download the file from the server. How to solve this problem?
android|sqlite
-2
2015-03-02T12:41:35.183Z
2,015
3
12
0
1,579
1
91
64
2
1
true
false
false
false
false
true
negative
28,810,073
Click inside the Path in Openstreetmap
<p>I have two overlays in my openstreetmap app, Itemized overlay and Path overlay together. I want to provide click inside the path inside the path overlay and custom marker</p>
I have two overlays in my openstreetmap app, Itemized overlay and Path overlay together. I want to provide click inside the path inside the path overlay and custom marker
android|openstreetmap|osmdroid
1
2015-03-02T12:41:57.590Z
2,015
3
12
0
147
2
170
38
3
0
false
false
false
false
false
false
low
28,810,090
How to add an OnClickListener on a ShinobiChart graph
<p>I'm using ShinobiCharts in a project to draw graphs. The library draws graphs in a ChartFragments. I have an activity with two frame layouts and I'm adding chartfragments to each one. I've added click listeners to these frame layouts but they do not register an event. Is there a way to add an onClickListener to a fr...
I'm using ShinobiCharts in a project to draw graphs. The library draws graphs in a ChartFragments. I have an activity with two frame layouts and I'm adding chartfragments to each one. I've added click listeners to these frame layouts but they do not register an event. Is there a way to add an onClickListener to a frame...
android|android-fragments|shinobi
0
2015-03-02T12:42:44.693Z
2,015
3
12
0
198
1
360
53
3
0
false
false
false
false
false
false
zero
28,810,212
Google map not loading on normal devices but loads on test device(real device)
<p>I have a google map in my android application, i have got the api key in my app from Google api console and it sucessfully loads the map in my test device and to those device with whom i shared the apk file, but after i have published the app on play store, and the user downloads the app, the map does not load. This...
I have a google map in my android application, i have got the api key in my app from Google api console and it sucessfully loads the map in my test device and to those device with whom i shared the apk file, but after i have published the app on play store, and the user downloads the app, the map does not load. This is...
android|google-maps|google-api-console
1
2015-03-02T12:48:14.420Z
2,015
3
12
0
1,975
3
467
78
3
0
false
false
false
false
false
false
low
28,810,233
Not receiving notifications from pushbots
<p>Everythings seems to work fine on my dashboard of pushbots.It is showing the devices that are registered and when i push notification it shows a message that notification is dilevered but on phone i am not getting it.This is my manifest file.I have followed <a href="http://pushbots.com/developer/docs/android" rel="n...
Everythings seems to work fine on my dashboard of pushbots.It is showing the devices that are registered and when i push notification it shows a message that notification is dilevered but on phone i am not getting it.This is my manifest file.I have followed http://pushbots.com/developer/docs/android this guide. [CODE] ...
android|push-notification
1
2015-03-02T12:49:51.517Z
2,015
3
12
0
1,087
1
789
41
2
2
true
false
false
false
false
false
low
28,810,428
Receiving data from other apps - android
<p>I read the <a href="http://developer.android.com/training/sharing/receive.html" rel="noreferrer">documentation</a> on receiving simple data. I want to receive an URL,i.e. text/plain from other apps.</p> <p>So, I declared only this intent filter:</p> <pre><code>&lt;intent-filter&gt; &lt;action android:name=...
I read the documentation on receiving simple data. I want to receive an URL,i.e. text/plain from other apps. So, I declared only this intent filter: [CODE] In my MainActivity.class: [CODE] I'm handling the received text as: [CODE] But, the document reads that I should handle MIME types of other types carefully. 1) But,...
java|android|android-intent|intentfilter|android-implicit-intent
5
2015-03-02T13:00:01.287Z
2,015
3
13
0
9,521
2
908
40
5
3
true
false
true
false
false
false
low
28,810,457
sqlite for android, how to update table
<p>I found a number of links on stack overflow dealing with this but none of the solutions have worked for me so here goes:</p> <p>I am trying to add a column to hold a date (and may need to add a time column in future) but am having some trouble since the table had already been created. Here is the database code:</p>...
I found a number of links on stack overflow dealing with this but none of the solutions have worked for me so here goes: I am trying to add a column to hold a date (and may need to add a time column in future) but am having some trouble since the table had already been created. Here is the database code: [CODE] Can som...
java|android|sqlite
0
2015-03-02T13:01:37.913Z
2,015
3
13
0
717
1
752
39
3
2
true
false
false
false
false
false
zero
28,810,564
Reduce Image size to KB's before uploading ANDROID, from following code
<p>I wanted to reduce the image size to kb's, before uploading to server, basically what my code does it, capture a image store it locally, then upload it to the server.</p> <p>just wanted to reduce image size while it stores locally on the External Storage. Found a good answer <a href="https://stackoverflow.com/quest...
I wanted to reduce the image size to kb's, before uploading to server, basically what my code does it, capture a image store it locally, then upload it to the server. just wanted to reduce image size while it stores locally on the External Storage. Found a good answer here But the problem is, I really don't know how to...
java|android
1
2015-03-02T13:06:43.860Z
2,015
3
13
0
1,474
1
404
71
2
1
true
false
false
false
false
false
low
28,810,623
How to measure Time between a start of an activity and stop?
<p>I thought maybe it could work with startactivityforresult, but no idea how..? After the measure I want this time to show up on another activity.</p> <p>I have tried this so far: </p> <p>In the Main activity:</p> <pre><code> public class MainScreen extends Activity implements OnClickListener { Button btn_start; T...
I thought maybe it could work with startactivityforresult, but no idea how..? After the measure I want this time to show up on another activity. I have tried this so far: In the Main activity: [CODE] } and in the activity, where i want to stop the time: [CODE] }
java|android|performance|time
0
2015-03-02T13:10:32.660Z
2,015
3
13
0
139
3
262
60
4
2
true
false
false
false
false
false
zero
28,810,763
Make a child view wider than its parent
<p>I have a RelativeLayout with an ImageView inside it. The RelativeLayout is a ListView row and it has padding set (the space is between the edge of the ListView and the edge of its child RelativeLayout view).</p> <p>I am trying to get the ImageView inside the RelativeLayout to be wider than the row using negative ma...
I have a RelativeLayout with an ImageView inside it. The RelativeLayout is a ListView row and it has padding set (the space is between the edge of the ListView and the edge of its child RelativeLayout view). I am trying to get the ImageView inside the RelativeLayout to be wider than the row using negative margins. Set ...
android|android-layout
2
2015-03-02T13:18:36.777Z
2,015
3
13
0
5,640
2
505
39
2
1
true
false
true
false
false
false
low
28,810,893
Multiplayer functionality via Facebook
<p>I want to add multiplayer functionality in my game via Facebook . So that Facebook friends can play game together using multiplayer. I implemented it via google play services but how can I implement it via Faceboook?</p>
I want to add multiplayer functionality in my game via Facebook . So that Facebook friends can play game together using multiplayer. I implemented it via google play services but how can I implement it via Faceboook?
android|facebook|multiplayer
4
2015-03-02T13:24:37.053Z
2,015
3
13
0
221
0
216
38
3
0
false
true
false
false
false
false
low
28,811,003
Android: Does a bitmap created by my app have to be stored and scanned before I can pass it as an implicit intent to other apps?
<p><strong>Introduction and background</strong></p> <p>Hi, I have a bitmap created by my application, I wish for this bitmap to be sent to any apps that can handle the mime type "image/png" and the action ("ACTION_SEND"). Basically, allow the bitmap image to be sent to someone by another component like email and messa...
Introduction and background Hi, I have a bitmap created by my application, I wish for this bitmap to be sent to any apps that can handle the mime type "image/png" and the action ("ACTION_SEND"). Basically, allow the bitmap image to be sent to someone by another component like email and messaging etc. What I got now At ...
android|android-intent|android-image|android-bitmap|android-implicit-intent
0
2015-03-02T13:29:20.317Z
2,015
3
13
0
100
1
919
128
5
0
false
false
false
false
false
false
zero
28,811,046
Qt Check platform type : Mobile or Desktop
<p>I'm looking for some code I could use to check if my application is executed on a mobile/tablet or a computer. Here is a sample to explain what I'm doing :</p> <pre><code>#include &lt;QtGlobal&gt; #if defined Q_OS_BLACKBERRY || defined Q_OS_ANDROID || defined Q_OS_IOS || defined Q_OS_WP #define Q_OS_MOBILE #else #...
I'm looking for some code I could use to check if my application is executed on a mobile/tablet or a computer. Here is a sample to explain what I'm doing : [CODE] How does it look to you? Am I reinventing the wheel?
android|c++|ios|linux|qt
10
2015-03-02T13:31:38.500Z
2,015
3
13
0
1,046
1
215
42
5
1
true
false
false
false
true
false
medium
28,811,096
How can I parse JsonObject shows in Android showing as a foders?
<p>this is my json response <code>result: [ { folder1: [ { test1.1: [ { app1.1.1: [ ] }, { app1.1.2: [ ] } ] }, { test1.2: [ { app1.2.1: [ ] }, { app1.2.2: [ ] } ] } ] }, { folder2: [ { test2.1: [ { app2.1.1: [ ] }, { app2.1.2: [ ] } ] }, { test2.2: [ { app2.2.1: [ ] }, { app2.2.2: [ ] } ] } ] }, { folder3: [ { test3....
this is my json response result: [ { folder1: [ { test1.1: [ { app1.1.1: [ ] }, { app1.1.2: [ ] } ] }, { test1.2: [ { app1.2.1: [ ] }, { app1.2.2: [ ] } ] } ] }, { folder2: [ { test2.1: [ { app2.1.1: [ ] }, { app2.1.2: [ ] } ] }, { test2.2: [ { app2.2.1: [ ] }, { app2.2.2: [ ] } ] } ] }, { folder3: [ { test3.1: [ { app...
android|arrays|json
-2
2015-03-02T13:34:15.927Z
2,015
3
13
0
45
2
666
64
3
1
true
false
false
false
false
true
negative
28,811,099
Google old GCM vs. Google New GoogleCloudMessaging
<p>i'm developing a news application and i'm confused between using the old GCM and the new GoogleCloudMessaging, they said GCM is deprecated, but it runs well when you get the gcm.jar and compile it in your app.</p> <p>So my question: is it safe to use the old deprecated GCM method ? or will it be cancelled be Google...
i'm developing a news application and i'm confused between using the old GCM and the new GoogleCloudMessaging, they said GCM is deprecated, but it runs well when you get the gcm.jar and compile it in your app. So my question: is it safe to use the old deprecated GCM method ? or will it be cancelled be Google in the fut...
android|google-cloud-messaging|google-play-services
1
2015-03-02T13:34:23.660Z
2,015
3
13
0
191
2
383
50
3
0
false
false
false
false
false
false
low
28,811,132
OpenCV Mat processing Android JNI
<p>I am currently developing some stuff using OpenCv's Android API and the JNI for faster processing.</p> <p>Currently, the program gets a frame from the device-camera and just forwards the RGBA-Matrix to the JNI-interfaced C++ algorithm.</p> <p>This generally works, but when trying to process the matrix in any way, ...
I am currently developing some stuff using OpenCv's Android API and the JNI for faster processing. Currently, the program gets a frame from the device-camera and just forwards the RGBA-Matrix to the JNI-interfaced C++ algorithm. This generally works, but when trying to process the matrix in any way, I get a SIGABRT -6 ...
java|android|c++|opencv|matrix
2
2015-03-02T13:35:44.710Z
2,015
3
13
0
1,066
2
1,001
33
5
4
true
false
false
false
false
false
low
28,811,139
HTML5 audio tag onplaying even is triggered before audio play in android
<p>I have write a code for highlight text according to audio. In this the logic is when audio start playing we fire a highlight function. which highlight each word for given no of time. </p> <p>And it is working fine for window PC and Desktop. But In android highlight function trigger before audio start that is why au...
I have write a code for highlight text according to audio. In this the logic is when audio start playing we fire a highlight function. which highlight each word for given no of time. And it is working fine for window PC and Desktop. But In android highlight function trigger before audio start that is why audio and high...
javascript|android|jquery|html5-audio
4
2015-03-02T13:36:05.230Z
2,015
3
13
0
896
1
372
72
4
1
true
false
false
false
false
false
low
28,811,148
Building Android project using Jenkins throws com.android.dex.DexException while command line building works probably
<p>I'm using command <strong><em>ant clean debug emma install test</em></strong> to build my Android project with Apache Ant from command line and everything works perfectly (tests work and build becomes successful). While same command for Jenkins building (ANT, JAVA, ANDROID_SDK are configured) throws an error at the ...
I'm using command ant clean debug emma install test to build my Android project with Apache Ant from command line and everything works perfectly (tests work and build becomes successful). While same command for Jenkins building (ANT, JAVA, ANDROID_SDK are configured) throws an error at the last build steps: [CODE] Jenk...
android|ant|jenkins|emma
0
2015-03-02T13:36:30.207Z
2,015
3
13
0
237
1
561
117
4
1
true
false
false
false
false
false
zero
28,811,195
Stepcounter in Phonegap - Background service
<p>I am developing a Phonegap application which, among other things, has a step counter (which uses the accelerometer). Obviously, i need the app to count the steps even if the screen is locked. I have used a background service, acquired partial wake lock, but for some reason the service is still killed when i lock the...
I am developing a Phonegap application which, among other things, has a step counter (which uses the accelerometer). Obviously, i need the app to count the steps even if the screen is locked. I have used a background service, acquired partial wake lock, but for some reason the service is still killed when i lock the sc...
android|cordova|accelerometer|background-process
2
2015-03-02T13:38:32.840Z
2,015
3
13
0
955
1
395
44
4
1
true
false
false
false
false
false
low
28,811,211
ViewPager and DrawerLayout
<p>i have a FragmentActivity that has two fragments that i control through a viewpager. i want to add a DrawerLayout to this FragmentActivity to have two more Fragments.</p> <p>the XML:</p> <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" androi...
i have a FragmentActivity that has two fragments that i control through a viewpager. i want to add a DrawerLayout to this FragmentActivity to have two more Fragments. the XML: [CODE] the FragmentActivity: in OnCreate: [CODE] the DetailFragment: [CODE] i cant display the whole code because its large (but upon your reque...
android|android-fragments|fragment
0
2015-03-02T13:39:30.383Z
2,015
3
13
0
326
0
982
26
3
3
true
true
false
false
false
false
zero
28,811,367
Does android apps without hamburger menu exists?
<p>We trying to decide on the main navigation structure for our app. I have read all there is about the disadvantages of the hamburger menu (aka side-menu, drawer).</p> <p>The use of a visible navigation bar (instead of the hamburger menu) makes sense and it can feet our design since we don't many screens to navigate....
We trying to decide on the main navigation structure for our app. I have read all there is about the disadvantages of the hamburger menu (aka side-menu, drawer). The use of a visible navigation bar (instead of the hamburger menu) makes sense and it can feet our design since we don't many screens to navigate. For iOS us...
android|user-interface|sidebar|hamburger-menu
-1
2015-03-02T13:47:17.253Z
2,015
3
13
0
297
1
761
48
4
0
false
false
false
false
false
true
negative
28,811,428
Handling two Activities with one Service
<p>I have two <code>Activity</code> and one <code>Service</code>.I have created a <code>service</code> and add actions to it in <code>manifest</code>. two actions belong to <code>firstActivity</code> and one action belongs to <code>SecondActivity</code>. Two <code>action</code> belongs to <code>firstActivity</code> cal...
I have two Activity and one Service .I have created a service and add actions to it in manifest . two actions belong to firstActivity and one action belongs to SecondActivity . Two action belongs to firstActivity calls but when i call the same Service from SecondActivity . It doesn't even create. Why is it so? Calling ...
android|android-intent|android-activity|android-service
0
2015-03-02T13:50:23.363Z
2,015
3
13
0
122
0
503
40
4
4
true
true
false
false
false
false
zero
28,811,441
Subversion Export option in Android Studio
<p>I have started working on Android Studio and set up a project on subversion. We are working in a team and for some of the tasks and backup purpose sometimes we need to give the code of the project after omitting the .svn files. I need to skip this files because I don't want other users to track the code or take fur...
I have started working on Android Studio and set up a project on subversion. We are working in a team and for some of the tasks and backup purpose sometimes we need to give the code of the project after omitting the .svn files. I need to skip this files because I don't want other users to track the code or take further...
android|eclipse|svn|android-studio
0
2015-03-02T13:51:02.147Z
2,015
3
13
0
912
1
651
42
4
0
false
false
false
false
false
false
zero
28,811,453
LoopJ and Google Maps in the same time
<p>I'm experiencing delay with single httppost while GMaps is downloading maps over mobile network. Once single httppost took 7min to finish. Is there a way to prioritize request or temporarily pause GMaps?</p>
I'm experiencing delay with single httppost while GMaps is downloading maps over mobile network. Once single httppost took 7min to finish. Is there a way to prioritize request or temporarily pause GMaps?
android|google-maps|loopj
0
2015-03-02T13:51:35.800Z
2,015
3
13
0
55
1
203
38
3
0
false
false
false
false
false
false
zero
28,811,469
Android Studio - Unfortunately "appName" has stopped
<p>I'm trying to build a 2-currency converter app (GNConverter) in Android Studio. I've created a button with onClickLister() to either convert a value or display a Toast message. I get the message "Unfortunately GNConverter has stopped" when ran on my phone.</p> <p>XML:</p> <pre><code>&lt;LinearLayout xmlns:android=...
I'm trying to build a 2-currency converter app (GNConverter) in Android Studio. I've created a button with onClickLister() to either convert a value or display a Toast message. I get the message "Unfortunately GNConverter has stopped" when ran on my phone. XML: [CODE] My Activity Class: [CODE]
android|onclicklistener
0
2015-03-02T13:52:35.440Z
2,015
3
13
0
340
1
294
52
2
2
true
false
false
false
false
false
zero
28,811,490
In-app purchases with multiple accounts
<p>I am facing a problem with <em>in app purchases/subscriptions</em>:</p> <p>If there are multiple accounts on the device, I can't get the purchases, which were made with the second account. This can sometimes be temporarily fixed, by installing the app from the Google Play web interface, but after a while, the purch...
I am facing a problem with in app purchases/subscriptions : If there are multiple accounts on the device, I can't get the purchases, which were made with the second account. This can sometimes be temporarily fixed, by installing the app from the Google Play web interface, but after a while, the purchases won't appear i...
android|google-play|google-play-services|in-app-billing|android-billing
70
2015-03-02T13:53:24.367Z
2,015
3
13
0
9,097
7
1,103
39
5
0
false
false
true
false
true
false
high
28,811,514
TextView height dependence on font size with wrap_content parameter
<p>During layout makeup, I often need pixel-to-pixel equivalence with templates. And with TextView, I have a trouble. It has strange vertical size - it equals to font size with some padding above and beyond - from 1 to 4 dp, I suppose. It is different with different font sizes and styles, and even worse, unpredictably ...
During layout makeup, I often need pixel-to-pixel equivalence with templates. And with TextView, I have a trouble. It has strange vertical size - it equals to font size with some padding above and beyond - from 1 to 4 dp, I suppose. It is different with different font sizes and styles, and even worse, unpredictably dif...
android|android-layout|textview
2
2015-03-02T13:54:28.813Z
2,015
3
13
0
827
1
461
67
3
1
true
false
false
false
false
false
low
28,811,539
Creating curved imageviews in android
<p>I want to create imageviews with curved edges like this diagram </p> <p><img src="https://i.stack.imgur.com/eqXf2.png" alt="enter image description here"></p> <p>I want to be able to change the colours of the border at runtime. How can I achieve this?</p>
I want to create imageviews with curved edges like this diagram I want to be able to change the colours of the border at runtime. How can I achieve this?
android|imageview
0
2015-03-02T13:55:23.773Z
2,015
3
13
0
59
1
153
37
2
0
false
false
false
false
false
false
zero
28,811,554
onCallStateChanged() gives wrong CALL_STATE
<p>I have overridden the <code>onCallStateChanged()</code> method of PhoneStateListener to get the device call status, but I'm facing a weird issue on device Micromax turbo (OS- 4.2.1). </p> <p>When an incoming call is received on this device, I get phone the state as ringing and after that I again receive a callback ...
I have overridden the onCallStateChanged() method of PhoneStateListener to get the device call status, but I'm facing a weird issue on device Micromax turbo (OS- 4.2.1). When an incoming call is received on this device, I get phone the state as ringing and after that I again receive a callback with the state as idle. I...
android|telephonymanager
1
2015-03-02T13:55:42.247Z
2,015
3
13
0
174
1
426
43
2
0
false
false
false
false
false
false
low
28,811,630
Cordova project in eclipse error
<p>This is the exact command I run in the CLi:</p> <ol> <li>ionic start myApp tabs</li> <li>cd myApp</li> <li>ionic platform add android</li> <li>ionic run android</li> </ol> <p>I use an android device as emulator, it run properly in the phone.</p> <p>I try to open that project using eclipse, it got these errors : <...
This is the exact command I run in the CLi: ionic start myApp tabs cd myApp ionic platform add android ionic run android I use an android device as emulator, it run properly in the phone. I try to open that project using eclipse, it got these errors :
android|eclipse|cordova
0
2015-03-02T13:59:06.813Z
2,015
3
13
0
52
0
251
32
3
0
false
true
false
false
false
false
zero
28,811,636
Catching an incoming phone call in Google Glass
<p>I have a Google Glass paired to a phone running Android Lollipop, I want to use a Broadcast Receiver in Google Glass to handle an incoming call and eventually customize the call interface. I have been searching in the topics for more than two weeks but I have found nothing. Please any suggestion ?</p>
I have a Google Glass paired to a phone running Android Lollipop, I want to use a Broadcast Receiver in Google Glass to handle an incoming call and eventually customize the call interface. I have been searching in the topics for more than two weeks but I have found nothing. Please any suggestion ?
android|broadcastreceiver|google-glass|incoming-call
2
2015-03-02T13:59:28.080Z
2,015
3
13
0
73
1
298
47
4
0
false
false
false
false
false
false
low
28,811,674
android cursor.getBlob not working
<p>Hi I tried to store and retrieve image to and from sqlite database. My following codes is not working. I'm not sure what wrong I did. Please help. I created the database table as follows:</p> <pre><code>db = openOrCreateDatabase("StudentDB", Context.MODE_PRIVATE, null); db.execSQL("CREATE TABLE IF NOT EXISTS studen...
Hi I tried to store and retrieve image to and from sqlite database. My following codes is not working. I'm not sure what wrong I did. Please help. I created the database table as follows: [CODE] then I inserted the fields db.execSQL("INSERT INTO student VALUES('" + editRollno.getText() + "','" + editName.getText() + "'...
android|sqlite|blob
1
2015-03-02T14:01:52.087Z
2,015
3
14
0
1,692
1
533
34
3
3
true
false
false
false
false
false
low
28,811,699
expandablelistview different styles for expand/collapse
<p>I am trying to get a custom Expandablelistview, that have different Layout for the states expand/collapse...</p> <p><strong>Adapter</strong></p> <pre><code>@Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { String headerTitle = ((User) getGroup(groupPo...
I am trying to get a custom Expandablelistview, that have different Layout for the states expand/collapse... Adapter [CODE] expanablelistview_header_collapse.xml [CODE] expanablelistview_header_expanded.xml [CODE] This was my try, but this methode is only called on start not on expand-state-change... Thank you, for you...
android|expandablelistview
2
2015-03-02T14:02:44.620Z
2,015
3
14
0
1,586
2
328
55
2
3
true
false
false
false
false
false
low
28,811,775
High score data persistence?
<p>I am trying to save a high score for my game. I have a mainscreen activity, a gamescreen activity, and a redirectscreen activity (for when a player loses). Here is a method form the gamescreen activity that runs when a player dies:</p> <pre><code>public void goToRedirectScreen() { //getting preferences Shar...
I am trying to save a high score for my game. I have a mainscreen activity, a gamescreen activity, and a redirectscreen activity (for when a player loses). Here is a method form the gamescreen activity that runs when a player dies: [CODE] And here is some of my code for the redirect screen that recieves the intent: [CO...
java|android|data-persistence
-1
2015-03-02T14:06:19.447Z
2,015
3
14
0
163
1
649
28
3
3
true
false
false
false
false
true
negative
28,811,826
AsyncTask: how to add check on internet connection faults?
<p>i created the following activity that includes an AsyncTask to download JSON data from a remote url. I added an AlertDialog to check if the internet connection is available on the user's device and i added a timeout to handle slow internet connection.</p> <p>Here is my activity:</p> <pre><code>public class MyActiv...
i created the following activity that includes an AsyncTask to download JSON data from a remote url. I added an AlertDialog to check if the internet connection is available on the user's device and i added a timeout to handle slow internet connection. Here is my activity: [CODE] It works but my app crashes if, for exam...
android|android-asynctask|connection|timeout|offline
3
2015-03-02T14:08:47.350Z
2,015
3
14
0
1,357
2
465
58
5
2
true
false
false
false
false
false
low
28,811,831
How to prevent app from closing when android device goes to sleep
<p>How do i prevent my app from closing when the device goes to sleep mode, i obsevered that anytime my device goes to sleep mode my app closes but i want it still open when my devices comes out of sleep mode. </p>
How do i prevent my app from closing when the device goes to sleep mode, i obsevered that anytime my device goes to sleep mode my app closes but i want it still open when my devices comes out of sleep mode.
android|wakelock|android-wake-lock|sleep-mode
-1
2015-03-02T14:09:13.160Z
2,015
3
14
0
2,322
1
206
65
4
0
false
false
false
false
false
true
negative
28,811,929
Android Studio Watches are not persistent
<p>Intellij IDEA documentation states the the Watches panel in Debug console should be persistent. However, I must constantly re-define the variables I would like to watch in the panel. Is there a setting that I am missing? I am new to Android Studio and Intellij.</p>
Intellij IDEA documentation states the the Watches panel in Debug console should be persistent. However, I must constantly re-define the variables I would like to watch in the panel. Is there a setting that I am missing? I am new to Android Studio and Intellij.
intellij-idea|android-studio|watch
2
2015-03-02T14:14:21.853Z
2,015
3
14
0
92
0
261
41
3
0
false
true
false
false
false
false
low
28,811,935
HTC One mini crashes XML parser
<p>Device: HTC One mini</p> <p>OS version: 4.3</p> <p>Problem: AsyncTask XML reader crashes without triggering UncaughtExceptionHandler</p> <p>.</p> <p>I made a simple AsyncTask XML reader / parser that runs on most devices (OS 2.2 and older), but not on my HTC One mini (OS 4.3). When I try to run the AsyncTask, it...
Device: HTC One mini OS version: 4.3 Problem: AsyncTask XML reader crashes without triggering UncaughtExceptionHandler . I made a simple AsyncTask XML reader / parser that runs on most devices (OS 2.2 and older), but not on my HTC One mini (OS 4.3). When I try to run the AsyncTask, it always crashes at some point in co...
android|xml|android-asynctask
0
2015-03-02T14:14:40.500Z
2,015
3
14
0
167
1
1,798
31
3
7
true
false
false
false
false
false
zero
28,812,006
Android Simple Camera Control App crashes when returning from Stopped
<p>I was working through the developer.Android Tutorials on <a href="http://developer.android.com/guide/topics/media/camera.html#custom-camera" rel="nofollow">building a Camera App</a> but I always encounter the following problem: When my app is put into the background, i.e. Stopped according to the activity lifecycle,...
I was working through the developer.Android Tutorials on building a Camera App but I always encounter the following problem: When my app is put into the background, i.e. Stopped according to the activity lifecycle, and I try to return to it it crashes, telling me the App has stopped working. I searched other questions,...
android|camera|android-lifecycle
0
2015-03-02T14:18:36.960Z
2,015
3
14
0
1,001
1
1,224
69
3
3
true
false
false
false
false
false
zero
28,812,067
My app is not visible in google play store for samsung galaxy note 4
<p>I have published an app in google play store. This app is designed for phones and I have made that it will be not visible for tablets by editing <em>compatible-screens</em> element in manifest file.</p> <p>The problem is that some phones with big screen size (more than 5 inches) also can't "see" my app on google pl...
I have published an app in google play store. This app is designed for phones and I have made that it will be not visible for tablets by editing compatible-screens element in manifest file. The problem is that some phones with big screen size (more than 5 inches) also can't "see" my app on google play store. For exampl...
java|android|xml|eclipse|google-play
4
2015-03-02T14:21:04.047Z
2,015
3
14
0
1,365
1
811
68
5
2
true
false
false
false
false
false
low
28,812,098
How to overlay layouts?
<p>I programmatically create the layout of my view:</p> <pre><code>RelativeLayout.LayoutParams layoutParamsDummy = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, this.optimalCenterPadding); layoutParamsDummy.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); RelativeLayout relativeLayoutDummy = n...
I programmatically create the layout of my view: [CODE] I have to do it programmatically because i use a custom circular layout. What i have now is the following: Two circles with the bigger circle below the smaller one. What i want to have is the following: the bigger circle should be exactly under the smaller circle ...
android
0
2015-03-02T14:22:38Z
-1
-1
-1
-1
84
1
960
23
1
1
true
false
false
false
false
false
zero
28,812,133
Why show Read contact security warning?
<p>I develop SMS &amp; Call reader apps. after this apps install. when incoming call then show </p> <p><img src="https://i.stack.imgur.com/4LJVh.png" alt="enter image description here"></p> <p>my menifest file like below:<br/></p> <pre><code> &lt;uses-sdk android:minSdkVersion="16" android:targetSdkV...
I develop SMS & Call reader apps. after this apps install. when incoming call then show my menifest file like below: [CODE] When i click allow then ok, otherwise deny 18 s . i want when incoming call then not come this window, so should be auto works. How to remove window programmatic ally. or what are give permission ...
android|contacts|android-contacts
0
2015-03-02T14:24:12.417Z
2,015
3
14
0
386
0
369
39
3
1
true
true
false
false
false
false
zero
28,812,136
Setting up 2 table with SQLOpenHelper throw error
<p>I'm trying to rebuild my databaseHandler since I need to use 2 tables.</p> <p>I followed the answer given here : <a href="https://stackoverflow.com/questions/4063510/multiple-table-sqlite-db-adapters-in-android">Multiple Table SQLite DB Adapter(s) in Android?</a> but this is giving me the following issue : <code>At...
I'm trying to rebuild my databaseHandler since I need to use 2 tables. I followed the answer given here : Multiple Table SQLite DB Adapter(s) in Android? but this is giving me the following issue : Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.rawQuery(java.lang.String...
android|database|sqlite|multi-table
-1
2015-03-02T14:24:17.173Z
2,015
3
14
0
284
2
686
49
4
3
true
false
false
false
false
true
negative
28,812,181
xamarin android ftp error
<p>I want to download a file with ftp (in an xamarin Android app).</p> <p>Here is code:</p> <pre><code>FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://addres.com/file.txt"); request.Method = WebRequestMethods.Ftp.DownloadFile; request.Credentials = new NetworkCredential("login", "password"); FtpWebRes...
I want to download a file with ftp (in an xamarin Android app). Here is code: [CODE] I have error in this part of code, I can't debug the program. Maybe I must check some permissions in the Android manifest file? I have checked: internet, internal storage.
c#|android|ftp|xamarin
0
2015-03-02T14:26:21.900Z
2,015
3
14
0
896
1
256
25
4
1
true
false
false
false
false
false
zero
28,812,234
Android circle menu
<p>I a trying to create a circular menu for more than 10 menus. I am following example as given <a href="https://github.com/szugyi/Android-CircleMenu" rel="nofollow">Android-Circle-MenuMaster</a> .</p> <p>I am able to make some changes <strong>activity_main.xml</strong> for image <em>rotation</em> &amp; <em>position</...
I a trying to create a circular menu for more than 10 menus. I am following example as given Android-Circle-MenuMaster . I am able to make some changes activity_main.xml for image rotation & position . This works perfectly for 6 menu images,but I am trying to make it for more than 10 menus. Can anybody give me guidance...
android|menu|android-animation|geometry
1
2015-03-02T14:28:57.920Z
2,015
3
14
0
4,083
0
584
19
4
3
true
true
true
false
false
false
low
28,812,353
Filter text like Android Studio/Eclipse logcat
<p>When I'm working with a QA and I receive a text of logcat from them and it's very hard to read. So I need a way to filter the text and highlight like in Android Studio/Eclipse. Does anyone know such a tool?</p>
When I'm working with a QA and I receive a text of logcat from them and it's very hard to read. So I need a way to filter the text and highlight like in Android Studio/Eclipse. Does anyone know such a tool?
android|text|logcat|android-logcat
0
2015-03-02T14:34:59.497Z
2,015
3
14
0
458
1
206
46
4
0
false
false
false
false
false
false
zero
28,812,426
google Maps v2 API for android location return null
<p>Hi I need some help with this, I have already looked and try many different things. I'm trying to get my current location on android but since the location comes back null my app crashes. I really need help with this please. </p> <p>I don't know if I'm being clear in here but everytime I call getLastKnownlocation i...
Hi I need some help with this, I have already looked and try many different things. I'm trying to get my current location on android but since the location comes back null my app crashes. I really need help with this please. I don't know if I'm being clear in here but everytime I call getLastKnownlocation it comes back...
android|google-maps|google-maps-android-api-2|google-maps-api-2
0
2015-03-02T14:38:40.653Z
2,015
3
14
0
1,866
2
536
51
4
1
true
false
false
false
false
false
zero
28,812,505
make native code access java methods and data members
<p>I am working on an android project with native code that is supposed to update a List and some other boolean variables in an object.</p> <p>consider the following code</p> <p>some java class in my code looks like:</p> <pre><code> class ReturnObject { boolean a, b; public List&lt;String[]&gt; listA; } pu...
I am working on an android project with native code that is supposed to update a List and some other boolean variables in an object. consider the following code some java class in my code looks like: [CODE] and the native code looks like: [CODE] How can I set the values of the boolean variables? and for the the List ( ...
java|android|c++|android-ndk|java-native-interface
2
2015-03-02T14:43:21.307Z
2,015
3
14
0
1,104
3
466
53
5
2
true
false
false
false
false
false
low
28,812,559
Testing using Mockito
<p>Apologies for what may seem an idiotic post.</p> <p>How do you run Mockito on the newest version of Android Studio SDK? and can you run multiple tests using Mockito using the Android Studio platform?</p> <p>I've used Mockito on Eclipse and ran as much as 6 tests in the same window. But I'm trying to figure out ho...
Apologies for what may seem an idiotic post. How do you run Mockito on the newest version of Android Studio SDK? and can you run multiple tests using Mockito using the Android Studio platform? I've used Mockito on Eclipse and ran as much as 6 tests in the same window. But I'm trying to figure out how to do this on the ...
android|mockito
0
2015-03-02T14:45:51.683Z
2,015
3
14
0
7,337
3
401
21
2
0
false
false
true
false
false
false
zero
28,812,601
RecyclerView Issue with Child Items Visibilities
<p>Hey guys I am creating chatting app something like whatsapp but facing issue with Childs Visibilties in RecyclerView here it contains my message and message from server I've defined the two items for my message and server message in single layout and I'm Setting Visibility Based on the Boolean ; but the items are no...
Hey guys I am creating chatting app something like whatsapp but facing issue with Childs Visibilties in RecyclerView here it contains my message and message from server I've defined the two items for my message and server message in single layout and I'm Setting Visibility Based on the Boolean ; but the items are not r...
android|android-5.0-lollipop|android-recyclerview
0
2015-03-02T14:47:43.913Z
2,015
3
14
0
1,008
1
396
48
3
2
true
false
false
false
false
false
zero
28,812,604
Is there a way to listen for animation end in AnimatedVectorDrawables
<p>I have created an AnimatedVectorDrawable, it works pretty well, now I am looking for a way to change the animation or hide the view after it finishes. I was hoping there was a listener but it doesn't look like there is. Can someone help?</p> <p><strong>EDIT</strong></p> <p>So I found a workaround, but not a very e...
I have created an AnimatedVectorDrawable, it works pretty well, now I am looking for a way to change the animation or hide the view after it finishes. I was hoping there was a listener but it doesn't look like there is. Can someone help? EDIT So I found a workaround, but not a very elegant way. What I did was create a ...
android|animation|listener|android-vectordrawable
22
2015-03-02T14:47:49.760Z
2,015
3
14
0
7,280
4
422
69
4
1
true
false
true
false
true
false
high
28,812,608
Menu not working on Android Chrome
<p>I have created a fullscreen overlay menu for my personal portfolio. It's working absolutely fine in Chrome / FF / IE on desktop and on my regular Android browser on my Galaxy S4. However, I cannot get it to work on Chrome for Android. It's as if the jQuery just isn't being toggled in that browser.</p> <p>Code below...
I have created a fullscreen overlay menu for my personal portfolio. It's working absolutely fine in Chrome / FF / IE on desktop and on my regular Android browser on my Galaxy S4. However, I cannot get it to work on Chrome for Android. It's as if the jQuery just isn't being toggled in that browser. Code below. JSFiddle ...
javascript|android|jquery|google-chrome
1
2015-03-02T14:48:03.223Z
2,015
3
14
0
182
1
382
34
4
3
true
false
false
false
false
false
low
28,812,615
Android Core API: Download/read a file
<p>I am using Dropbox Core API to connect my Android application. But i cannot manage to download/read a file from dropbox.</p> <p>I am using the following code to download and read a file but it doesn't work.</p> <pre><code> FileOutputStream outputStream = null; try { File file = new File("/path/to/new/user.t...
I am using Dropbox Core API to connect my Android application. But i cannot manage to download/read a file from dropbox. I am using the following code to download and read a file but it doesn't work. [CODE] I get the following error [CODE] Could someone show me a working sample code?
android|dropbox
0
2015-03-02T14:48:25.903Z
2,015
3
14
0
182
0
284
38
2
2
true
true
false
false
false
false
zero
28,812,672
Android-Studio won't start, NoClassDefFoundError com/intellij/openapi/diagnostic/Logger
<p>I'm trying to run Android-Studio on a Debian Jessie machine, but it won't. Just unpacked it, marked bin/studio.sh as executable and executed it. All I get is the following stacktrace:</p> <pre><code> Exception in thread "main" java.lang.NoClassDefFoundError: com/intellij/openapi/diagnostic/Logger at java.lan...
I'm trying to run Android-Studio on a Debian Jessie machine, but it won't. Just unpacked it, marked bin/studio.sh as executable and executed it. All I get is the following stacktrace: [CODE] No log is written or anything else. Already searched and tried various things (e.g. adding lib/openapi.jar manually to the classp...
android|linux|intellij-idea|android-studio
1
2015-03-02T14:50:49.120Z
2,015
3
14
0
653
1
380
87
4
1
true
false
false
false
false
false
low
28,812,688
R file does not generate variable name
<p>I am creating an android application and when changing some of the code and going to run it I got told that there was an error in the application's R.Java file. For some reason a variable name is not generated.</p> <pre><code>public static final class id { public static final int =0x7f09018d; public static final ...
I am creating an android application and when changing some of the code and going to run it I got told that there was an error in the application's R.Java file. For some reason a variable name is not generated. [CODE] The project contains no errors and I tried cleaning it multiple times. I had two views with the same i...
java|android|android-layout|android-resources
0
2015-03-02T14:51:16.993Z
2,015
3
14
0
51
2
518
38
4
1
true
false
false
false
false
false
zero
28,812,730
Android: hide / show table rows
<p>I have a table layout (a form with real estate filtering parameters). I need to hide/show rows with filtering parameters when user selects realty type from <code>Spinner</code> list (apartment, house, land etc.). Is it possible? Is TableLayout good for that or would it be better to use LinearLayout? When it's better...
I have a table layout (a form with real estate filtering parameters). I need to hide/show rows with filtering parameters when user selects realty type from Spinner list (apartment, house, land etc.). Is it possible? Is TableLayout good for that or would it be better to use LinearLayout? When it's better to use TableLay...
android|tablelayout|tablerow
4
2015-03-02T14:53:13.253Z
2,015
3
14
0
7,561
1
547
31
3
2
true
false
true
false
false
false
low
28,812,766
translationY view animation jumps to the end
<p>I'm trying to create an animation where there is one layout shown, and when I press it another one fades below it.</p> <p>because I want to put it in a recyclerView I want the divider to slide down before the second layout showing.</p> <p>the problem I'm having is that the divider doesn't animate the moving down, ...
I'm trying to create an animation where there is one layout shown, and when I press it another one fades below it. because I want to put it in a recyclerView I want the divider to slide down before the second layout showing. the problem I'm having is that the divider doesn't animate the moving down, it just jumps strai...
android|animation|android-view|android-recyclerview
0
2015-03-02T14:55:21.003Z
2,015
3
14
0
1,575
1
623
44
4
2
true
false
false
false
false
false
zero
28,812,897
Android SQLite Refreshing data on view after modification
<p>I have an activity, <code>GridView</code>, that displays the data from my database. When user selects an <code>Account</code> it will load up another activity <code>AccountManager</code> which will contain all details of the selected item from <code>GridView</code> and allow the user to manage it from there (Modify,...
I have an activity, GridView , that displays the data from my database. When user selects an Account it will load up another activity AccountManager which will contain all details of the selected item from GridView and allow the user to manage it from there (Modify, Delete and whatnot). PROBLEM: When user modifies the ...
android|sqlite|gridview
1
2015-03-02T15:01:35.397Z
2,015
3
15
0
212
1
1,078
57
3
2
true
false
false
false
false
false
low
28,812,906
How to get text from AlertDialog in Android
<p>I need your help in getting string value on refresh, and displaying it in AlertDialog. I would like to COPY TEXT TO NEW STRING on copy button click </p> <p>and want to add "COPY" button in AlertDialog</p> <pre><code>String plain ="hello;" // changing on refresh new AlertDialog.Builder(Demo.this) .setTitle("New ...
I need your help in getting string value on refresh, and displaying it in AlertDialog. I would like to COPY TEXT TO NEW STRING on copy button click and want to add "COPY" button in AlertDialog [CODE]
android
4
2015-03-02T15:01:49.043Z
2,015
3
15
0
5,461
3
199
43
1
1
true
false
true
false
false
false
low
28,812,990
Android :how do I add spinner to this code of mine (the way I did gives error)
<pre><code>String key,k[]; int index; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tarsos_dsp); Spinner spinner = (Spinner) findViewById(R.id.spinner1); ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.create...
[CODE] If I add it void run it still gives error, how do I add the spinner with a default value coming from the last activity using intent
android|android-layout|spinner|onitemselectedlistener
0
2015-03-02T15:05:40.843Z
2,015
3
15
0
45
0
138
78
4
1
true
true
false
false
false
false
zero
28,813,010
Implementing Push notifications using parse
<p>I am trying to create a push notification using Parse on Android. After testing it I get this error. Any idea what to do? I tried the emulator and it works there, but it doesn't work on my device(Galaxy S3).</p> <p>Got error when trying to register for GCM push</p> <pre><code>java.lang.Exception: GCM registration...
I am trying to create a push notification using Parse on Android. After testing it I get this error. Any idea what to do? I tried the emulator and it works there, but it doesn't work on my device(Galaxy S3). Got error when trying to register for GCM push [CODE]
android|parse-platform|push-notification
1
2015-03-02T15:06:53.583Z
2,015
3
15
0
347
1
261
43
3
1
true
false
false
false
false
false
low
28,813,092
Limit number of button clicks
<p>I have made an app, where the user presses a button to lead onto another activity, but I only want the user to press this button 5 times in total. I tried the below code, however it doesn't stop the user pressing the button more than 5 times, so I'm guessing the app needs to somehow remember the clicks? </p> <pre><...
I have made an app, where the user presses a button to lead onto another activity, but I only want the user to press this button 5 times in total. I tried the below code, however it doesn't stop the user pressing the button more than 5 times, so I'm guessing the app needs to somehow remember the clicks? [CODE] Activity...
java|android|button|android-studio
1
2015-03-02T15:11:24.023Z
2,015
3
15
0
4,991
4
336
29
4
2
true
false
true
false
false
false
low
28,813,097
Android - How to layout buttons inside image?
<p>I have some image with areas. I would like to react on click in specific area, but I can't cut this image into separate images. You can see example below.</p> <p><img src="https://i.stack.imgur.com/BXWOG.jpg" alt="Example image"></p> <p>Black circles are my areas. Red rectangles are my transparent buttons. How wou...
I have some image with areas. I would like to react on click in specific area, but I can't cut this image into separate images. You can see example below. Black circles are my areas. Red rectangles are my transparent buttons. How would you implement this in XML ? I want to make sure that active buttons will always cove...
android|xml|android-layout
0
2015-03-02T15:11:54.097Z
2,015
3
15
0
440
2
637
45
3
1
true
false
false
false
false
false
zero