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,554,546
Android camera2 api and exif
<p>I am experimenting with the <code>camera2 api</code> and I have made an app that can take an a photo from the camera. Now I want to add <code>exif</code> data to the captured image. I have a question on where or how to put the <code>exif information</code>. </p> <p>Should I create an Exif interface in the <code>onC...
I am experimenting with the camera2 api and I have made an app that can take an a photo from the camera. Now I want to add exif data to the captured image. I have a question on where or how to put the exif information . Should I create an Exif interface in the onCaptureCompleted() function or what is the best way to do...
android|android-camera
1
2015-02-17T04:15:51.367Z
2,015
2
4
1
4,565
2
547
28
2
1
true
false
true
false
false
false
low
28,554,614
Click effect in Android
<p>I have some code for setting the background for my buttons, but when I run the code, I don't see the effect of click in my buttons! Below, I show you my xml file for the background. Thanks!</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/a...
I have some code for setting the background for my buttons, but when I run the code, I don't see the effect of click in my buttons! Below, I show you my xml file for the background. Thanks! [CODE]
android|xml|button|background
0
2015-02-17T04:24:11.640Z
2,015
2
4
1
795
2
196
23
4
1
true
false
false
false
false
false
zero
28,554,627
Google Map Marker Routing
<p>i am new in Google Map API V2 and i would like to make a marker/direction pointer to route on the google map. If you don't get what i mean, please visit this link <a href="https://developers.google.com/maps/documentation/android/" rel="nofollow">https://developers.google.com/maps/documentation/android/</a> and click...
i am new in Google Map API V2 and i would like to make a marker/direction pointer to route on the google map. If you don't get what i mean, please visit this link https://developers.google.com/maps/documentation/android/ and click on flat marker. The code there is not even full and i have no idea how to do it. Please h...
android|google-maps|routes|marker|transit
0
2015-02-17T04:25:53.810Z
2,015
2
4
1
558
1
343
25
5
0
false
false
false
false
false
false
zero
28,554,668
Can using Mit app inventor and fusion tables cause your computer to have script problems?
<p>I was doing the pizza party tutorial and the next day my laptop had issues. It's an older one with windows vista on it. I can get it to work but decided to buy a new laptop. I would like to try to make an app but kind of leary know. Sorry if this question is inappropriate.</p>
I was doing the pizza party tutorial and the next day my laptop had issues. It's an older one with windows vista on it. I can get it to work but decided to buy a new laptop. I would like to try to make an app but kind of leary know. Sorry if this question is inappropriate.
android
0
2015-02-17T04:31:27.310Z
2,015
2
4
1
20
0
273
89
1
0
false
true
false
false
false
false
zero
28,554,690
How to add a CardView to a RecyclerView list
<p>Looking to add a generic <code>CardView</code> to the top of an empty <code>RecyclerView</code> list by clicking on the "+" icon that is on the app's main menu. Clicking "+" again will move the initial <code>CardView</code> down and the next generic <code>CardView</code> will be added to the top of the list.</p> <...
Looking to add a generic CardView to the top of an empty RecyclerView list by clicking on the "+" icon that is on the app's main menu. Clicking "+" again will move the initial CardView down and the next generic CardView will be added to the top of the list. Below is the portion of the MainActivity.java file: [CODE]
android|android-recyclerview|android-cardview
0
2015-02-17T04:35:28.440Z
2,015
2
4
1
383
1
316
44
3
1
true
false
false
false
false
false
zero
28,554,714
parse the image from url
<p>I am trying to parse image from server,and I am using a query, in my Logcat response is showing but image is not displaying! The following is my response of Json and snippet code.</p> <p>Can anyone help?</p> <pre><code> [ { "b_card":"http:\/\/www.webname.com\/uploaded\/users\/vcard\/8_ers.jpg" ...
I am trying to parse image from server,and I am using a query, in my Logcat response is showing but image is not displaying! The following is my response of Json and snippet code. Can anyone help? [CODE] And BusinessCard.java: [CODE]
android|json|aquery
1
2015-02-17T04:37:49.507Z
2,015
2
4
1
3,071
2
233
24
3
2
true
false
true
false
false
false
low
28,554,757
NullPointerException with Custom ArrayAdapter
<p>Sorry if I may sound stupid; I'm new to Android. I've checked other SO posts with similar problems, but nothing is helping me. I'm making a custom ArrayAdapter, but a NullPointerException is being thrown when the adapter is set to to the list. Here's the fragment XML layout (fragment_lines) with the list:</p> <pre>...
Sorry if I may sound stupid; I'm new to Android. I've checked other SO posts with similar problems, but nothing is helping me. I'm making a custom ArrayAdapter, but a NullPointerException is being thrown when the adapter is set to to the list. Here's the fragment XML layout (fragment_lines) with the list: [CODE] Here's...
java|android|nullpointerexception|android-arrayadapter
0
2015-02-17T04:42:37.727Z
2,015
2
4
1
88
2
716
45
4
4
true
false
false
false
false
false
zero
28,554,766
Custom progressbar for android
<p>Is it possible to make progress bar like following image.</p> <p><img src="https://i.stack.imgur.com/rKyZh.png" alt="enter image description here" /></p> <p>Star have to be filled up by giving percentage. Any help will be highly appreciable. Thanks.</p>
Is it possible to make progress bar like following image. Star have to be filled up by giving percentage. Any help will be highly appreciable. Thanks.
java|android|canvas|android-progressbar
3
2015-02-17T04:43:36.907Z
2,015
2
4
1
658
1
150
30
4
0
false
false
false
false
false
false
low
28,554,774
Android SQlite returning -1 with getColumnIndex when column obviously exists
<p>When inserting temporary values to all of the columns in my table, it appears to work. See method below and log below. But when I test if the column exists with my test method below, it returns a false that the column exists!!</p> <p>The first snippet of code shows from where the temporary values and the method f...
When inserting temporary values to all of the columns in my table, it appears to work. See method below and log below. But when I test if the column exists with my test method below, it returns a false that the column exists!! The first snippet of code shows from where the temporary values and the method for testing if...
android|sqlite
1
2015-02-17T04:44:33.037Z
2,015
2
4
1
1,109
2
618
76
2
5
true
false
false
false
false
false
low
28,554,841
How to sort multi dimentional JsonArray in android
<p>I have a JSONArray like the following and i need to sort it by id_cat tag in ascending order. </p> <pre><code>{ "item_cat": [ { "82": { "name": [ { "id_cat":"2", "name_cat": "red" } ...
I have a JSONArray like the following and i need to sort it by id_cat tag in ascending order. [CODE] I have succesfully parsed the JSON but the order is not apropriate. I have try to sorting it using collections.sort like the following json array discussed EDIT, here is my code: [CODE] the output from logcat: [CODE] ho...
android|json|sorting
0
2015-02-17T04:50:26.527Z
2,015
2
4
1
101
0
353
50
3
3
true
true
false
false
false
false
zero
28,554,845
How to store the location when an image is clicked?
<p>I am working on an application, where in i have to take some pictures from the android camera and i need to store both image and the location of that image where it was clicked in server through web services. So please help me in completing this task successfully. </p>
I am working on an application, where in i have to take some pictures from the android camera and i need to store both image and the location of that image where it was clicked in server through web services. So please help me in completing this task successfully.
android|camera|gps
0
2015-02-17T04:51:02.810Z
2,015
2
4
1
1,279
1
264
51
3
0
false
false
false
false
false
false
zero
28,554,858
Make a Android Jar?
<p>I am making a program that is going to utilize some of Androids coding in my Java project, but to use it I need an Android Jar file. How do I make a Android Jar for use in Eclipse?</p>
I am making a program that is going to utilize some of Androids coding in my Java project, but to use it I need an Android Jar file. How do I make a Android Jar for use in Eclipse?
java|android|eclipse
0
2015-02-17T04:52:17.677Z
2,015
2
4
1
77
1
180
19
3
0
false
false
false
false
false
false
zero
28,554,914
How to show url in android facebook share
<p>I need to share an image,text and url to facebook. I used the below code to share image and text and its work fine. How can i pass url? I tried with <code>param.putString("link", mylink);</code> but it is not working.</p> <pre><code> Session session = Session.getActiveSession(); final Uri uri = (Uri) mExtras....
I need to share an image,text and url to facebook. I used the below code to share image and text and its work fine. How can i pass url? I tried with param.putString("link", mylink); but it is not working. [CODE]
android|image|facebook-graph-api|url
1
2015-02-17T04:56:57.063Z
2,015
2
4
1
76
0
211
41
4
1
true
true
false
false
false
false
low
28,554,915
android eclipse an auto generate edittext when other edittexts have the given input
<p>i have 3 edittext, 1 input price, 1 the percentage and the last one for the result of them both.It works perfectly, but when i delete the input from 2nd edittext the app will crash .Any idea where did i do wrong?or a better way to implement this. I want it works either the edittext filled and emptied by the user.</p...
i have 3 edittext, 1 input price, 1 the percentage and the last one for the result of them both.It works perfectly, but when i delete the input from 2nd edittext the app will crash .Any idea where did i do wrong?or a better way to implement this. I want it works either the edittext filled and emptied by the user. Here ...
java|android|eclipse
1
2015-02-17T04:57:00.717Z
2,015
2
4
1
172
2
409
83
3
3
true
false
false
false
false
false
low
28,554,940
Equalizer resets when MediaPlayer class complete the current music
<p>I have made a music player and its custom equalizer. Equalizer changes the effects very beautifully. But when the <code>MediaPlayer</code> class complete one song and start another, my equalizer gets reset. </p> <p>I have created <code>Equalizer</code> object in this way:</p> <pre><code>private static MainActivity...
I have made a music player and its custom equalizer. Equalizer changes the effects very beautifully. But when the MediaPlayer class complete one song and start another, my equalizer gets reset. I have created Equalizer object in this way: [CODE] and in onCreate method I used this: [CODE] So which way I should proceed t...
android
1
2015-02-17T04:59:32.067Z
2,015
2
4
1
79
0
388
66
1
2
true
true
false
false
false
false
low
28,554,969
Picasso Android Only Load Images above a Certain Scale
<p>I am using the Picasso Library to load Images into a Listview form several different online sources. Some Images however are too small and end up looking blurred when applying them to the View. Is there a way to Check what size the Images are when loading them in using Picasso? Here is My Code:</p> <pre><code> Pica...
I am using the Picasso Library to load Images into a Listview form several different online sources. Some Images however are too small and end up looking blurred when applying them to the View. Is there a way to Check what size the Images are when loading them in using Picasso? Here is My Code: [CODE] And the Transform...
android|picasso
0
2015-02-17T05:02:26.320Z
2,015
2
5
1
142
1
496
54
2
2
true
false
false
false
false
false
zero
28,555,031
how to compare two times in android
<p>Two Dates are Comparing but Time is not comparing properly. This is my Code </p> <pre><code>final String setdate = cursor.getString(cursor.getColumnIndex(cursor.getColumnName(4))); final String settime = cursor.getString(cursor.getColumnIndex(cursor.getColumnName(5))); Calendar calendar1 = Calendar.getIns...
Two Dates are Comparing but Time is not comparing properly. This is my Code [CODE] How can I compare two times.In database date and time field are different.So help me please.
java|android
10
2015-02-17T05:07:58.370Z
2,015
2
5
1
36,238
6
175
35
2
1
true
false
true
true
true
false
medium
28,555,146
How to change activity of a screen with swipe? with some example
<p>I have 2 screens black with scroll View in it and then I would like to change these screen with a swipe. I am using Android Studio and want to have a simple example so that i could change all the screens from one to other using swipe view. I hope the best example from the all the best developers on opposite side. </...
I have 2 screens black with scroll View in it and then I would like to change these screen with a swipe. I am using Android Studio and want to have a simple example so that i could change all the screens from one to other using swipe view. I hope the best example from the all the best developers on opposite side. Thank...
android|android-activity|android-studio|android-fragmentactivity|swipe-gesture
-2
2015-02-17T05:17:45.933Z
2,015
2
5
1
685
1
322
64
5
0
false
false
false
false
false
true
negative
28,555,152
Android-Kernel: Is there any way to dump ftrace to a file when kernel panic occurs
<p>I write all my module's logs to ftrace., and could not get my log prior to kernel panic occurs. Is there any way/trick to dump the entire /d/tracing/trace into a file when kernel panic occurs? enabled all ftrace related configs and tried with,</p> <pre><code> "echo -n 0x1 &gt; /proc/sys/kernel/ftrace_dump_on_oops"...
I write all my module's logs to ftrace., and could not get my log prior to kernel panic occurs. Is there any way/trick to dump the entire /d/tracing/trace into a file when kernel panic occurs? enabled all ftrace related configs and tried with, [CODE] But didn't work. Can anyone please help?
linux-kernel|linux-device-driver|android-kernel
0
2015-02-17T05:18:17.187Z
2,015
2
5
1
640
1
291
82
3
1
true
false
false
false
false
false
zero
28,555,163
ListView class cast error using ViewHolder
<p>I am using a ViewHolder in order to display different background for each row of my listview. Basically the image from the background comes from a server and loads into an <code>ImageView</code>. I then set my <code>RelativeLayout</code> background to be that <code>ImageView</code>. However, in implementing the view...
I am using a ViewHolder in order to display different background for each row of my listview. Basically the image from the background comes from a server and loads into an ImageView . I then set my RelativeLayout background to be that ImageView . However, in implementing the viewHolder in order to achieve this i get a ...
android|android-listview
0
2015-02-17T05:19:20.187Z
2,015
2
5
1
1,983
2
494
42
2
3
true
false
false
false
false
false
zero
28,555,272
Google Spreadsheet to android
<p>I am having a spreadsheet in gmail. And now i need to get the details from spreadsheet and show it in android.If there is any way to achieve that programmatically. Thanks in advance</p>
I am having a spreadsheet in gmail. And now i need to get the details from spreadsheet and show it in android.If there is any way to achieve that programmatically. Thanks in advance
android|google-sheets
-1
2015-02-17T05:27:52.603Z
2,015
2
5
1
32
1
181
29
2
0
false
false
false
false
false
true
negative
28,555,276
App crashes on startup when using <uses-sdk> in manifest
<p>I have implemented <code>ViewFlipper</code> which runs fine when I do <b>not</b> use the <code>&lt;uses-sdk&gt;</code> lines in manifest.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.warde.loyal" android:versionCode=...
I have implemented ViewFlipper which runs fine when I do not use the <uses-sdk> lines in manifest. [CODE] The exception is generated in setContentView . See the logging [CODE] This is my code that implemented ViewFlipper . [CODE] I think, Perhaps I need to implement AsynkTask ? What should be changed in the code. ? Tha...
android|android-asynctask|android-manifest|viewflipper
-1
2015-02-17T05:28:03.467Z
2,015
2
5
1
129
1
358
56
4
4
true
false
false
false
false
true
negative
28,555,282
Android SelectableItemBackground not working
<p>XML Layout</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:minHeight="48dp" android:layout_height="48dp" android:background="?attr/selectableItemBackground" android:gravity="sta...
XML Layout [CODE] This is the layout for my rows in a recyclerview, I have used "?attr/selectableItemBackground" before and it worked great, but nothing is making this ripple effect work! Does anybody have any suggestions?
android|listview|android-recyclerview
3
2015-02-17T05:28:55.557Z
2,015
2
5
1
7,130
1
222
44
3
1
true
false
true
false
false
false
low
28,555,315
Get Access Token From Google Drive API by GoogleAuthUtil in Android
<p>I got a weird problem in using GoogleAuthUtil when accessing the Google Drive API.</p> <p>Following is my code,</p> <pre><code> @Override protected String doInBackground(String... params){ String accountName = params[0]; //String scopes = "oauth2:profile email"; // This can work ! St...
I got a weird problem in using GoogleAuthUtil when accessing the Google Drive API. Following is my code, [CODE] In my empirical test, I can acquire the access token for user's Google profile/email by setting the scopes as [CODE] However, when I want to access user's Google Drive, I followed the instructions in developm...
android|oauth-2.0|google-drive-android-api
1
2015-02-17T05:31:42.640Z
2,015
2
5
1
2,027
1
672
67
3
3
true
false
false
false
false
false
low
28,555,344
modify data/data/packagename/database without root permission in android programatically
<p>My phone has not root permission. I want to copy file from sdcard to data/data/packname/database folder programmatically. But file doesn't copy. copying operation doesn't give any exceptions. What's problem?</p>
My phone has not root permission. I want to copy file from sdcard to data/data/packname/database folder programmatically. But file doesn't copy. copying operation doesn't give any exceptions. What's problem?
android
1
2015-02-17T05:34:05.597Z
2,015
2
5
1
1,200
1
207
88
1
0
false
false
false
false
false
false
low
28,555,453
Android SDK not opeing in Eclipse after update
<blockquote> <p>Yesterday i updated my android SDK manager. while update it shows some waring but i haven't red that. after completing the update . i opened Eclipse that time it displays the Error like below image. </p> <p>i tried in net i cant find the solution can any one tell me to solve this problem. <img...
Yesterday i updated my android SDK manager. while update it shows some waring but i haven't red that. after completing the update . i opened Eclipse that time it displays the Error like below image. i tried in net i cant find the solution can any one tell me to solve this problem.
android|eclipse-plugin|android-emulator|android-sdk-tools
0
2015-02-17T05:43:24.310Z
2,015
2
5
1
841
1
281
46
4
0
false
false
false
false
false
false
zero
28,555,488
getActivityResult() method give null in Intent parameter
<p>good morning sir, I have used Navigation drawer and fragment. i'm using <code>ActionBarActivity</code> and in which i have called this Fragment. in my Fragment i capture image from camera so in <code>getActivityResult()</code> method not give me Intent values.</p> <pre><code>public class CameraDemo extends Fragment...
good morning sir, I have used Navigation drawer and fragment. i'm using ActionBarActivity and in which i have called this Fragment. in my Fragment i capture image from camera so in getActivityResult() method not give me Intent values. [CODE]
android|android-intent|android-fragments
-1
2015-02-17T05:45:21.077Z
2,015
2
5
1
91
3
241
56
3
1
true
false
false
false
false
true
negative
28,555,607
Any way to show an activity after recovering from process termination?
<p>Is there a way to launch an activity when returning to an application after it was terminated to free up memory? Android is attempting to start the previous activity, but some data I need has been cleaned up during termination. If I can push my home activity onto the stack when returning, my app will be able to fu...
Is there a way to launch an activity when returning to an application after it was terminated to free up memory? Android is attempting to start the previous activity, but some data I need has been cleaned up during termination. If I can push my home activity onto the stack when returning, my app will be able to functio...
android|android-activity|garbage-collection
0
2015-02-17T05:56:53.137Z
2,015
2
5
1
75
2
339
70
3
0
false
false
false
false
false
false
zero
28,555,610
How to find pinch zoom direction in android?
<p>I have implemented pinch to zoom in my app.Normal zoom in and zoom out are working fine. But if i zoom out while zooming in(without taking hands off from canvas) it is returning scale factor greater than 1 only. So i am not able to do he calculation properly.Is there any way to find out the zoom direction other than...
I have implemented pinch to zoom in my app.Normal zoom in and zoom out are working fine. But if i zoom out while zooming in(without taking hands off from canvas) it is returning scale factor greater than 1 only. So i am not able to do he calculation properly.Is there any way to find out the zoom direction other than ch...
android|zooming|gesture
1
2015-02-17T05:56:59.237Z
2,015
2
5
1
345
2
369
44
3
0
false
false
false
false
false
false
low
28,555,658
How pass params to my app when installed from local files or from Google Play?
<p>I am making an app that shows a personalized greeting message to users.</p> <p>For Example: If I send my app by bluetooth (or I send the app by email to be installed) to X person to congratulate him on the day of his birthday, once the person installed the app a message should appear saying "Congratulations X".</p>...
I am making an app that shows a personalized greeting message to users. For Example: If I send my app by bluetooth (or I send the app by email to be installed) to X person to congratulate him on the day of his birthday, once the person installed the app a message should appear saying "Congratulations X". Edit: I found ...
android|installation|customization|custom-installation
12
2015-02-17T06:01:00.663Z
2,015
2
6
1
955
2
1,305
78
4
0
false
false
false
false
true
false
medium
28,555,671
How to Android http post to Node.js
<p>I want to send a simple HTTP POST request from Android to a Node.js server. Can anyone tell me what I'm doing wrong? </p> <p>Android code: </p> <pre><code> HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://54.68.139.250/bscreateuser"); try { List&lt;Nam...
I want to send a simple HTTP POST request from Android to a Node.js server. Can anyone tell me what I'm doing wrong? Android code: [CODE] Node.js code: [CODE]
android|node.js|http|post
0
2015-02-17T06:01:56.543Z
2,015
2
6
1
4,142
2
158
35
4
2
true
false
true
false
false
false
zero
28,555,771
Using GCM service in android
<p><strong>What I am doing:</strong> </p> <ul> <li>I am using push notification to recieve notifications.</li> <li>I have used the code below</li> <li>I also have declared necessary permissions in manifest</li> </ul> <p><strong>What is happening:</strong> </p> <ul> <li>I am able to recieve the notification</li> <li>...
What I am doing: I am using push notification to recieve notifications. I have used the code below I also have declared necessary permissions in manifest What is happening: I am able to recieve the notification But when the new notification comes, old one is replaced What I am trying to do: Say first notification is re...
java|android|google-cloud-messaging
1
2015-02-17T06:11:20.087Z
2,015
2
6
1
314
3
495
28
3
2
true
false
false
false
false
false
low
28,555,790
Overlay a view on GLSurfaceView with transparent background
<p>Is it possible to overlay a view (i.e. button, text, etc.) on a transparent GLSurfaceView. I know that the only way to have a GLSurfaceView with a transparent background is by doing something like this: </p> <pre><code>mSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); mSurfaceView.getHolder().setFormat(PixelForm...
Is it possible to overlay a view (i.e. button, text, etc.) on a transparent GLSurfaceView. I know that the only way to have a GLSurfaceView with a transparent background is by doing something like this: [CODE] However, this will always make the GLSurfaceView on top of the window and I cannot draw anything on top of thi...
android|opengl-es|surfaceview|glsurfaceview
0
2015-02-17T06:13:32.217Z
2,015
2
6
1
1,030
0
386
59
4
1
true
true
false
false
false
false
zero
28,555,794
SQLite blob data type retrieve result not same native android and phonegap
<p>I developed 2 application for android. 1 of the application developed with phonegap another 1 is Android native. Both of the application have need to insert image. I used SQLite blob data type for image insert. Android Native application is not problem for me. Phonegap application retrieve result not same native . I...
I developed 2 application for android. 1 of the application developed with phonegap another 1 is Android native. Both of the application have need to insert image. I used SQLite blob data type for image insert. Android Native application is not problem for me. Phonegap application retrieve result not same native . I th...
android|sqlite|cordova|blob|phonegap-plugins
1
2015-02-17T06:14:04.613Z
2,015
2
6
1
485
0
657
74
5
1
true
true
false
false
false
false
low
28,555,821
How can I fix this android layout for different resolutions?
<p>Layout Image :</p> <p><a href="http://s18.postimg.org/kihvabse1/Capture.jpg" rel="nofollow">http://s18.postimg.org/kihvabse1/Capture.jpg</a></p> <p>given above is an android interface that I created When I change the emulator(phone model) the interface wont adjust according to the model I select how can I fix it.c...
Layout Image : http://s18.postimg.org/kihvabse1/Capture.jpg given above is an android interface that I created When I change the emulator(phone model) the interface wont adjust according to the model I select how can I fix it.currently I have designed for a phone of 1280x720 resolution. XML Code: [CODE]
android|layout
0
2015-02-17T06:15:59.903Z
2,015
2
6
1
84
1
304
60
2
1
true
false
false
false
false
false
zero
28,555,945
How to save custom objects to Parse cloud Android
<p>Right now I am trying to save a custom made object to the parse cloud. I am following this:</p> <p><a href="https://parse.com/docs/android_guide#objects" rel="nofollow">https://parse.com/docs/android_guide#objects</a></p> <p><a href="http://blog.parse.com/2013/05/30/parse-on-android-just-got-classier/" rel="nofoll...
Right now I am trying to save a custom made object to the parse cloud. I am following this: https://parse.com/docs/android_guide#objects http://blog.parse.com/2013/05/30/parse-on-android-just-got-classier/ Unfortunately, I get this error: [CODE] I guess it was caused by the custom object class I created: [CODE] and I a...
java|android|parse-platform
2
2015-02-17T06:27:39.023Z
2,015
2
6
1
2,115
1
419
49
3
3
true
false
false
false
false
false
low
28,555,960
Get the item index of a listview and delete it on the listview and on my database
<p>I'm now currently working on a project that lets the user view the list of a certain table and has the privilege of either editing or deleting it. There's no error, I just don't have any idea on what to do. Maybe anyone could help me on even just the delete feature? Giving a sample code would be so much helpful. Her...
I'm now currently working on a project that lets the user view the list of a certain table and has the privilege of either editing or deleting it. There's no error, I just don't have any idea on what to do. Maybe anyone could help me on even just the delete feature? Giving a sample code would be so much helpful. Here's...
android
0
2015-02-17T06:28:31.440Z
2,015
2
6
1
31
1
416
81
1
1
true
false
false
false
false
false
zero
28,555,964
Android Studio Project Import takes to new Tab
<p>I am new to <code>Android Studio</code>. Before that, I was developing Android apps using <code>Eclipse</code>. Now I am going to start development using <code>Android Studio</code>. But I am facing an issue. As in Eclipse, if we import more than one projects, they all stay in the same <code>workspace</code>. But in...
I am new to Android Studio . Before that, I was developing Android apps using Eclipse . Now I am going to start development using Android Studio . But I am facing an issue. As in Eclipse, if we import more than one projects, they all stay in the same workspace . But in Android Studio , if a project is opened, and when ...
java|android|eclipse|android-studio
0
2015-02-17T06:28:50.503Z
2,015
2
6
1
110
0
510
46
4
0
false
true
false
false
false
false
zero
28,556,121
TestNG Android Unit Tests, Stub! Exception
<p>I am getting "java.lang.RuntimeException: Stub!" and it is because android.jar contains only stub implementation of the classes. I will not be running the tests in an emulator. <a href="http://robolectric.org/" rel="nofollow">Robolectric</a> works with JUnit but it does not appear to work with TestNG. Is it possi...
I am getting "java.lang.RuntimeException: Stub!" and it is because android.jar contains only stub implementation of the classes. I will not be running the tests in an emulator. Robolectric works with JUnit but it does not appear to work with TestNG. Is it possible to run TestNG classes without an android emulator? All ...
android|unit-testing|junit|testng|robolectric
2
2015-02-17T06:41:23.190Z
2,015
2
6
1
571
1
414
42
5
0
false
false
false
false
false
false
low
28,556,155
Lollipop : Accept incoming call Programatically in android lollipop
<p>I'm using the below code to answer an incoming call from my app(BroadcastReceiver's <code>onReceive()</code>) , it is working in <strong>Kitkat</strong> . The same code is not working in <strong>Lollipop</strong>.</p> <pre><code>Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON); intent.putExtra(Intent.EXTRA_KE...
I'm using the below code to answer an incoming call from my app(BroadcastReceiver's onReceive() ) , it is working in Kitkat . The same code is not working in Lollipop . [CODE] Please let me know how can I answer a call in Lollipop . Thank you.
android|android-intent|android-broadcast
0
2015-02-17T06:44:24.757Z
2,015
2
6
1
3,492
2
243
67
3
1
true
false
true
false
false
false
zero
28,556,178
SearchView with OneClick to enter text
<p>In the android default search view, 2 clicks are required to input text for search as the first click is used to expand the editText view and another click is to set focus.</p> <p>It seems to be q redundant and i want to reduce the process to one click only. Is there any methods to do this?</p>
In the android default search view, 2 clicks are required to input text for search as the first click is used to expand the editText view and another click is to set focus. It seems to be q redundant and i want to reduce the process to one click only. Is there any methods to do this?
android|searchview
0
2015-02-17T06:45:53.973Z
2,015
2
6
1
318
2
284
38
2
0
false
false
false
false
false
false
zero
28,556,192
Screenshot using drawing cache and saving to file adds noise to image
<p>I have multiple activities that each one apply some visual effects on screen then save and send it's uri to another activity,but after each process(getDrawingCache + save + send)some noises appear on image,this is my code:</p> <pre><code> FrameLayout frame1=(FrameLayout) findViewById(R.id.finalview_new); ...
I have multiple activities that each one apply some visual effects on screen then save and send it's uri to another activity,but after each process(getDrawingCache + save + send)some noises appear on image,this is my code: [CODE]
android|file|save
0
2015-02-17T06:46:55.267Z
2,015
2
6
1
314
1
229
69
3
1
true
false
false
false
false
false
zero
28,556,277
java.lang.IllegalArgumentException: No view found for id 0x7f090047 ("project name":id/content) for fragment FmMenu
<p>Just wanted to share an issue that I have with a project that I am doing for a client.</p> <p>Whenever I enter to my <code>IntroActivity</code> and press the button to take me to <code>MenuActivity</code>, it crashes.</p> <p><strong>Here is the error log:</strong></p> <pre><code>02-16 18:49:49.393 1208-1208/co...
Just wanted to share an issue that I have with a project that I am doing for a client. Whenever I enter to my IntroActivity and press the button to take me to MenuActivity , it crashes. Here is the error log: [CODE] Here is my MenuActivity.java where the error is located (Nearly at the end starts with if (fragment != n...
java|android|xml|runtimeexception|illegalargumentexception
7
2015-02-17T06:53:13.240Z
2,015
2
6
1
27,989
1
589
115
5
7
true
false
true
true
false
false
medium
28,556,281
GridLayout columnCount does not work in non-Holo theme
<p>Code:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:padd...
Code: [CODE] This works fine when Theme is set to Holo both on the actual device (I'm on a Nexus 5 but I'm guessing this is not a device-specific issue) and on the eclipse preview. But when I set the activity's theme to anything else -- both on the eclipse preview and on the manifest, it looks bad. Screenshots below: N...
android|grid-layout
2
2015-02-17T06:53:28.120Z
2,015
2
6
1
550
1
861
54
2
1
true
false
false
false
false
false
low
28,556,294
How to store the client_secret in android
<p>I have an API which I will call from an android app. The authentication is with oauth2 and I have the <code>ressource owner password</code>-flow. So when I want to get an accesstoken I need username, password, clientId and clientSecret. </p> <p>My problem is: How can I store the clientSecret in my app? I read that...
I have an API which I will call from an android app. The authentication is with oauth2 and I have the ressource owner password -flow. So when I want to get an accesstoken I need username, password, clientId and clientSecret. My problem is: How can I store the clientSecret in my app? I read that someone stores it in byt...
android|oauth-2.0|signature
0
2015-02-17T06:54:38.670Z
2,015
2
6
1
169
0
515
41
3
1
true
true
false
false
false
false
zero
28,556,322
What is a good way to pan view a little more up when soft keyboard is shown
<p>I have a activity that has the "adjustPan" option set and it pans my view up just fine when a EditText receives focus and the soft keyboard is shown, but my problem is that there are UI elements below my EditText that needs to be visible also when the keyboard is shown and it is not on smaller screens. Can I some ho...
I have a activity that has the "adjustPan" option set and it pans my view up just fine when a EditText receives focus and the soft keyboard is shown, but my problem is that there are UI elements below my EditText that needs to be visible also when the keyboard is shown and it is not on smaller screens. Can I some how t...
android|android-layout
2
2015-02-17T06:56:40.790Z
2,015
2
6
1
573
2
548
75
2
0
false
false
false
false
false
false
low
28,556,328
Not able to set custom dimensions in a google analytics property for android app
<p>Please find the tracking code below,</p> <p><code> GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);<br/> Tracker t = analytics.newTracker(MY_PROPERTY_ID);<br/> t.send(new HitBuilders.AppViewBuilder().setCustomDimension(1, "testing custom dimension").build()); </code></p> <p>The above code is added to...
Please find the tracking code below, GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); Tracker t = analytics.newTracker(MY_PROPERTY_ID); t.send(new HitBuilders.AppViewBuilder().setCustomDimension(1, "testing custom dimension").build()); The above code is added to a click listener for an element in the UI. ...
java|android|android-studio|google-analytics-sdk
3
2015-02-17T06:57:10.147Z
2,015
2
6
1
1,441
1
1,065
80
4
0
false
false
false
false
false
false
low
28,556,331
How can I use FileProvider to share a Image file
<p>How can I use FileProvider to share a Image file. My app has a image file in the files/attach directory that I want to share the file. I am using a FileProvider to get Uri to share. However, I get a " java.lang.IllegalArgumentException".</p> <pre><code>private void shareNote() { Intent intent = new Intent()...
How can I use FileProvider to share a Image file. My app has a image file in the files/attach directory that I want to share the file. I am using a FileProvider to get Uri to share. However, I get a " java.lang.IllegalArgumentException". [CODE] AndroidManifest.xml [CODE] filepaths.xml [CODE] the share image file is at ...
android
1
2015-02-17T06:57:15.410Z
2,015
2
6
1
1,815
3
979
48
1
3
true
false
false
false
false
false
low
28,556,387
How to set center image bigger than other images in horizontallistview when scrolled horizontally?
<p>Right now i am working on getting center image larger than other images in horizontallistview with scrolling option. I should set only 5 images atfirst in display with center image larger than others, when user scrolls the list, the image which gets in center should be greater than other images. I am stuck with this...
Right now i am working on getting center image larger than other images in horizontallistview with scrolling option. I should set only 5 images atfirst in display with center image larger than others, when user scrolls the list, the image which gets in center should be greater than other images. I am stuck with this, c...
android|uiimageview|horizontalscrollview
0
2015-02-17T07:00:40.190Z
2,015
2
7
1
307
1
404
98
3
2
true
false
false
false
false
false
zero
28,556,401
After scrolling listview, listview items getting repeatedly in android
<p>In my project,While clicking on grid view items, i need to add that in list view, So it to be a dynamic one.But After adding 8 to 9 items list view showing items repeatedly on scroll. </p> <pre><code>public class ProductCartCustomAdapter extends BaseAdapter { private LayoutInflater inflater; private Context contex...
In my project,While clicking on grid view items, i need to add that in list view, So it to be a dynamic one.But After adding 8 to 9 items list view showing items repeatedly on scroll. [CODE] Thanks in advance.
android
-1
2015-02-17T07:01:57Z
-1
-1
-1
-1
252
3
209
70
1
1
true
false
false
false
false
true
negative
28,556,422
Push notification is not working with Android and iOS devices sending via Parse.com
<p>I am using Parse.com for backend and I am trying to send push notification to android and iOS devices at a same event creation.</p> <p>When I create event from Android app then it notifies only Android devices and same with iOS devices but not getting notification in both platform devices using same event at same t...
I am using Parse.com for backend and I am trying to send push notification to android and iOS devices at a same event creation. When I create event from Android app then it notifies only Android devices and same with iOS devices but not getting notification in both platform devices using same event at same time. Import...
android|ios|parse-platform|push-notification
0
2015-02-17T07:03:34.703Z
2,015
2
7
1
713
2
554
83
4
0
false
false
false
false
false
false
zero
28,556,469
SqlCipher - Android - password constant is visible when decompile the APK
<p>I have used SqlCipher for protect my application local database. I have stored my db password as constant like below,</p> <pre><code>private static final String dbPassword = "testing123"; </code></pre> <p>After export my application as signed APK, I have decompile the APK using decompilation tool. </p> <p>My pass...
I have used SqlCipher for protect my application local database. I have stored my db password as constant like below, [CODE] After export my application as signed APK, I have decompile the APK using decompilation tool. My password is visible in decompilation files. My question is, How we can store password phrase in cl...
android|sqlite|android-sqlite|sqlcipher
2
2015-02-17T07:06:26.597Z
2,015
2
7
1
865
0
704
73
4
1
true
true
false
false
false
false
low
28,556,477
CountDownTimer paused and cancel
<p>I have a countdown timer in the constructor of my view class. it seems to work out. but I cant do <code>.cancel()</code>. Do anyone please help me out on my codings? heres my code.</p> <pre><code>private CountDownTimer countTimer; public GameView(Context context) { super(context); new CountDownTimer...
I have a countdown timer in the constructor of my view class. it seems to work out. but I cant do .cancel() . Do anyone please help me out on my codings? heres my code. [CODE] the codes tells that the player will lose life whenever the time runs out then under my onTouch event [CODE] But whenever I come to this conditi...
android|eclipse|countdowntimer
0
2015-02-17T07:07:18.640Z
2,015
2
7
1
229
1
504
32
3
2
true
false
false
false
false
false
zero
28,556,538
Is there a simple way to import a MySQL file into a SQLite database through javascript?
<p>I am working on an Android Phonegap application and building an offline database in the app which will sync with a MySQL database file. I need to synchronize all data on onDeviceReady() function.</p>
I am working on an Android Phonegap application and building an offline database in the app which will sync with a MySQL database file. I need to synchronize all data on onDeviceReady() function.
javascript|android|mysql|sqlite|cordova
-1
2015-02-17T07:11:55.987Z
2,015
2
7
1
337
1
195
87
5
0
false
false
false
false
false
true
negative
28,556,546
Reduce install time to physical Android Wear device
<p>I'm attempting to develop an Android wear app, but it's becoming quite the headache. The build times aren't a problem, it is the rate at which the apk is uploaded and installed to the device. Each can take upwards of a couple minutes and the APK is &lt;2MB. I am debugging over Bluetooth but I know that BT is capable...
I'm attempting to develop an Android wear app, but it's becoming quite the headache. The build times aren't a problem, it is the rate at which the apk is uploaded and installed to the device. Each can take upwards of a couple minutes and the APK is <2MB. I am debugging over Bluetooth but I know that BT is capable of mu...
android|bluetooth|wear-os
0
2015-02-17T07:12:27.180Z
2,015
2
7
1
361
3
524
51
3
0
false
false
false
false
false
false
zero
28,556,567
How to add GraphView into a Scroll pane in android?
<p>I have a <code>jjoe64 GraphView</code>. I tried to add it into a <code>HorizontalScrollView</code>. In this scroll view I've added a <code>Relative Layout</code> and then <code>GraphView</code> in it. But It's cannot scrollable. Here is my xml,</p> <pre><code> &lt;HorizontalScrollView android:lay...
I have a jjoe64 GraphView . I tried to add it into a HorizontalScrollView . In this scroll view I've added a Relative Layout and then GraphView in it. But It's cannot scrollable. Here is my xml, [CODE] I ran the code and tried to scroll. But it cannot be scrolled. How can I fix this. Thanks in Advance!
java|android|android-graphview
1
2015-02-17T07:13:50.093Z
2,015
2
7
1
1,503
1
303
51
3
1
true
false
false
false
false
false
low
28,556,576
Rotatinga cube in imageview in y axis in android
<p>When I rotate a cube in image view , its rotating in circular direction in x-axis only. How can I change the direction of rotating path in y-axis I given the code like this </p> <p>XML</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;set xmlns:android="schemas.android.com/apk/res/android" ...
When I rotate a cube in image view , its rotating in circular direction in x-axis only. How can I change the direction of rotating path in y-axis I given the code like this XML [CODE] Java [CODE]
java|android
0
2015-02-17T07:14:34.520Z
2,015
2
7
1
237
0
195
48
2
2
true
true
false
false
false
false
zero
28,556,600
Android: Foreign Key (want every car have its own record to be save in SQLite)
<p>My android application is about car management. i will have list of cars and their management like (fuel, traveling, repair). suppose i have 2 cars in list i) Honda ABC 123. ii) Toyota ABC 298.</p> <p>What should i do to store the records in table (fuel, traveling, repair) of specific car? I tried foreign key in ...
My android application is about car management. i will have list of cars and their management like (fuel, traveling, repair). suppose i have 2 cars in list i) Honda ABC 123. ii) Toyota ABC 298. What should i do to store the records in table (fuel, traveling, repair) of specific car? I tried foreign key in fuel, traveli...
android|sqlite|foreign-keys
-3
2015-02-17T07:16:07.360Z
2,015
2
7
1
370
1
705
78
3
2
true
false
false
false
false
true
negative
28,556,608
Enable Safety assistance emergency mode
<p>Its a very interesting and new thing for me to implement and learn. There are some requirement of my application. For that I have searched a lot but couldn't find proper and valuable thing or links. So i am posting my question here. The functionality are :</p> <p>1) In Samsung device there is <code>Safety Assistanc...
Its a very interesting and new thing for me to implement and learn. There are some requirement of my application. For that I have searched a lot but couldn't find proper and valuable thing or links. So i am posting my question here. The functionality are : 1) In Samsung device there is Safety Assistance menu in which y...
android|image-capture
12
2015-02-17T07:16:38.653Z
2,015
2
7
1
962
2
1,070
39
2
0
false
false
false
false
true
false
medium
28,556,633
columns in expandable listview
<p>I have used this tutorial to do the expandable list view. <a href="http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/" rel="nofollow noreferrer">http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/</a>. But i want to make a small change as shown in the below image. I dnt...
I have used this tutorial to do the expandable list view. http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/ . But i want to make a small change as shown in the below image. I dnt know to implement the items underlined in red. Is it possible to have columns in the expandable list view? .xml file...
android|expandablelistview|multiple-columns
0
2015-02-17T07:18:42.870Z
2,015
2
7
1
1,517
1
388
30
3
1
true
false
false
false
false
false
zero
28,556,689
How to know that my current location is from a GPS or wifi
<p>I'm using Google API for retrieving current location, and I got the current location by set <code>PRIORITY_HIGH_ACCURACY</code>.</p> <p>In my app I want to know my location is from GPS or WIFI. How do I check that ? I've used <code>location.getProvider()</code>. But, I got only "fused". </p> <p>Is there any way to...
I'm using Google API for retrieving current location, and I got the current location by set PRIORITY_HIGH_ACCURACY . In my app I want to know my location is from GPS or WIFI. How do I check that ? I've used location.getProvider() . But, I got only "fused". Is there any way to check or I have to use getAccuracy ?
android|google-play-services
2
2015-02-17T07:22:43.157Z
2,015
2
7
1
85
1
313
58
2
0
false
false
false
false
false
false
low
28,556,702
Store Camera Preview After Every 1 Second Android
<p>I want to store the Camera Preview after every second. Problem is the frame rate cannot go below 20-24. </p> <p>Currently it stores around 170 images in 5 sec. <code>onPreviewFrame</code> is being called <strong>ULTRA</strong> frequently which i want to slow down to 1 preview per second. I used <code>Thread.sleep(...
I want to store the Camera Preview after every second. Problem is the frame rate cannot go below 20-24. Currently it stores around 170 images in 5 sec. onPreviewFrame is being called ULTRA frequently which i want to slow down to 1 preview per second. I used Thread.sleep() but i guess its not a nice of doing it. I want ...
java|android|android-camera|frame-rate
1
2015-02-17T07:23:49.523Z
2,015
2
7
1
531
1
372
49
4
0
false
false
false
false
false
false
low
28,556,765
app android - external resources implementation
<p>I'm developing an Android / iOS app for a local taxi service. What they ask is to also have trains, flights and ferries schedules implemented in the app. Unfortunately none of those is available via API restful / web service (Italy). So what I thought was to develop an hybrid html5 / javascript app (then have it bu...
I'm developing an Android / iOS app for a local taxi service. What they ask is to also have trains, flights and ferries schedules implemented in the app. Unfortunately none of those is available via API restful / web service (Italy). So what I thought was to develop an hybrid html5 / javascript app (then have it built ...
javascript|android|html|rest
1
2015-02-17T07:28:40.120Z
2,015
2
7
1
77
1
1,002
47
4
1
true
false
false
false
false
false
low
28,556,813
Is it possible to have content width set to 100% in the meta tag
<p>Is it possible to have content width set to 100% in the meta tag. For instance instead of a fixed with in pixels. I want to render my page on any screen including mobile devices. Any help would be greatly appreciated.</p> <p>Thank you</p>
Is it possible to have content width set to 100% in the meta tag. For instance instead of a fixed with in pixels. I want to render my page on any screen including mobile devices. Any help would be greatly appreciated. Thank you
android|html|css|width|meta
1
2015-02-17T07:32:01.737Z
2,015
2
7
1
422
1
227
64
5
0
false
false
false
false
false
false
low
28,556,928
How do you persist an object throughout an android application?
<p>When the application loads I do a request to a webservice that returns JSON which is converted to Plain Old Java Objects:</p> <p>Airports:</p> <pre><code>public class Airports { private List&lt;Airport&gt; airportList = new ArrayList&lt;Airport&gt;(); ...get and set... } </code></pre> <p>Airport:</p> <...
When the application loads I do a request to a webservice that returns JSON which is converted to Plain Old Java Objects: Airports: [CODE] Airport: [CODE] Now because doing a request everytime is costly, I would like this list of Airports (the airports object) to be accessible throughout the application. How can I acce...
java|android
0
2015-02-17T07:39:56.820Z
2,015
2
7
1
109
2
557
63
2
2
true
false
false
false
false
false
zero
28,556,969
TextView does not style with global style in ListView
<p>I have defined a global TextView style which extends from TextView and overrides all TextView colors white:</p> <pre><code>&lt;style name="TextViewTM_63" parent="android:Widget.TextView"&gt; &lt;item name="android:textColor"&gt;@android:color/white&lt;/item&gt; &lt;/style&gt; </code></pre> <p>It's also correct...
I have defined a global TextView style which extends from TextView and overrides all TextView colors white: [CODE] It's also correctly configured in my manifest - all TextViews that are NOT elements in a ListView are styled correctly. So this is the problem: this global style is NOT applied to elements that are inflate...
android|listview|android-listview|textview
0
2015-02-17T07:43:04.883Z
2,015
2
7
1
501
1
626
53
4
2
true
false
false
false
false
false
zero
28,557,016
Secure WebSocket with valid Namecheap Certificate - CertPathValidatorException: Trust anchor for certification path not found
<p>I bought a valid wildcard certificate from namecheap.com for my domain neelo.de. Now I try to connect via WSS from Android and I always get "javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.". But I can't know why. The certificate is no...
I bought a valid wildcard certificate from namecheap.com for my domain neelo.de. Now I try to connect via WSS from Android and I always get "javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.". But I can't know why. The certificate is not s...
java|android|websocket|ssl-certificate
0
2015-02-17T07:46:16.187Z
2,015
2
7
1
1,218
1
682
125
4
2
true
false
false
false
false
false
zero
28,557,036
How to the call the methods of an Activity from broadcast receiver once the app is quitted?
<p>I want to call the activity method from broadcast receiver onReceive method which will be called once the alarm gets triggered. </p> <p><strong>Below is my Home Activity code snippet</strong> </p> <pre><code> public class HomeActivity extends Activity{ public static HomeActivity mHomeActivity = null;...
I want to call the activity method from broadcast receiver onReceive method which will be called once the alarm gets triggered. Below is my Home Activity code snippet [CODE] Below Broadcast receiver will be triggered based on the alarm we configured [CODE] Please help me on this.
android|android-activity|broadcastreceiver|alarmmanager|static-members
0
2015-02-17T07:47:45.507Z
2,015
2
7
1
366
1
280
91
5
2
true
false
false
false
false
false
zero
28,557,111
Android ABS IcsSpinner doesn't show items popup
<p>I'm using ABS in my project and I'm trying to using <code>IcsSpinner</code> instead of <code>Spinner</code>, after define that in xml and set Adapter popup doesn't show popup or dialog after click on <code>IcsSpinner</code> and I have only see first item of array into <code>IcsSpinner</code> </p> <pre><code> &lt...
I'm using ABS in my project and I'm trying to using IcsSpinner instead of Spinner , after define that in xml and set Adapter popup doesn't show popup or dialog after click on IcsSpinner and I have only see first item of array into IcsSpinner [CODE] My code: [CODE] UPDATE: color for spinner is : [CODE] trying to use wra...
android|actionbarsherlock
0
2015-02-17T07:53:18.193Z
2,015
2
7
1
66
0
634
47
2
5
true
true
false
false
false
false
zero
28,557,120
Stripe integration in android and create token
<p>I want to integrate stripe in android and test the code with publishable key. I want to create token after successful transaction with the card params any suggested code.</p>
I want to integrate stripe in android and test the code with publishable key. I want to create token after successful transaction with the card params any suggested code.
android|stripe-payments
1
2015-02-17T07:53:36.820Z
2,015
2
7
1
9,670
4
170
46
2
0
false
false
true
false
false
false
low
28,557,133
Google sign-in in android app
<p>I have a very general question about the google login in android applications.</p> <p>Lets say I am using xxx@gmail.com as an account on my android device. I logged in through this account in an android application (com.test.app).</p> <p>Now, I removed the account from the device.</p> <p><strong>Question:</strong...
I have a very general question about the google login in android applications. Lets say I am using xxx@gmail.com as an account on my android device. I logged in through this account in an android application (com.test.app). Now, I removed the account from the device. Question: Should I get logged out from com.test.app ...
android|authentication|google-plus|google-signin
0
2015-02-17T07:54:24.340Z
2,015
2
7
1
204
1
428
29
4
0
false
false
false
false
false
false
zero
28,557,144
Screenrecord causing phone framerate to drop
<p>I have a nexus running Lollipop and I tried to use the new options available to screenrecord, </p> <p>I used </p> <pre><code>adb shell screenrecord --o raw-frames --bit-rate 4000000 /sdcard/output.raw </code></pre> <p>And the framerate went for a toss, the device became really sluggish, but If I use the default m...
I have a nexus running Lollipop and I tried to use the new options available to screenrecord, I used [CODE] And the framerate went for a toss, the device became really sluggish, but If I use the default mp4 format it's actually faster. Technically If I save the trouble of encoding shouldn't device performance be snappi...
android|adb|performance-testing
0
2015-02-17T07:54:55.243Z
2,015
2
7
1
476
1
351
44
3
1
true
false
false
false
false
false
zero
28,557,194
Libraries for Material Design
<p>Where can I get list of libraries/resources which help for incorporating Material Design in pre-lollipop devices? A link for a single library you are familiar with could help. I am familiar with the following</p> <ul> <li><a href="https://github.com/makovkastar/FloatingActionButton" rel="nofollow">https://github.co...
Where can I get list of libraries/resources which help for incorporating Material Design in pre-lollipop devices? A link for a single library you are familiar with could help. I am familiar with the following https://github.com/makovkastar/FloatingActionButton https://github.com/keithellis/MaterialWidget https://github...
android|material-design|reusability
-4
2015-02-17T07:58:50.237Z
2,015
2
7
1
425
2
443
29
3
0
false
false
false
false
false
true
negative
28,557,279
Email Templates not looking fine in Android when I switch to Landscape mode
<p>The email is confidential so I can't share much code ... Well I have created email template which works fine in browser mails (yahoo, outlook and gmail), Iphone (gmail and yahoo clients) and Android (yahoo client). The problem is <strong>ONLY</strong> with Android <strong>gmail</strong> client when I switch to <stro...
The email is confidential so I can't share much code ... Well I have created email template which works fine in browser mails (yahoo, outlook and gmail), Iphone (gmail and yahoo clients) and Android (yahoo client). The problem is ONLY with Android gmail client when I switch to landscape mode, else every where it is wor...
android|ios|email|email-templates
1
2015-02-17T08:04:26.313Z
2,015
2
8
1
71
1
489
75
4
0
false
false
false
false
false
false
low
28,557,306
What is "Resources" in BitmapDrawable constructor really?
<p>As the parameterless <code>BitmapDrawable</code>constructor is deprecated, we have to give resource id to the constructor.</p> <pre><code>BitmapDrawable bitmapDrawable = new BitmapDrawable(res, bmap); </code></pre> <p>Where <code>res</code> is generally <code>getResources()</code>.</p> <p>Why does the constructor...
As the parameterless BitmapDrawable constructor is deprecated, we have to give resource id to the constructor. [CODE] Where res is generally getResources() . Why does the constructor need it and how can we define that value if we are using a general image cache?
android|android-resources|android-drawable|android-bitmap|bitmapdrawable
9
2015-02-17T08:05:56.527Z
2,015
2
8
1
1,118
3
262
57
5
1
true
false
false
false
false
false
medium
28,557,313
Android: Eclipse : Project could not build due to cannot delete v-7appcompat
<p>I have created an Android application API 21 using Eclipse luna. I have only API 21 installed on my pc. Initially I faced error of "could not find resource......" for which I found that I got to add support library v7-appcompat. Tried various ways to add the jar, nothing worked. So finally I added the appcompat proj...
I have created an Android application API 21 using Eclipse luna. I have only API 21 installed on my pc. Initially I faced error of "could not find resource......" for which I found that I got to add support library v7-appcompat. Tried various ways to add the jar, nothing worked. So finally I added the appcompat project...
java|android|eclipse|jar|android-appcompat
0
2015-02-17T08:06:21.217Z
2,015
2
8
1
1,004
1
1,488
76
5
0
false
false
false
false
false
false
zero
28,557,370
create PDF in Android
<p>I've taken reference of this article for <a href="http://www.mysamplecode.com/2013/05/android-itext-pdf-bluetooth-printer.html" rel="nofollow">PDF creation</a>, I want to print <strong>first name</strong> and <strong>last name</strong> in PDF. After reference from article I've changed in code and provided my code be...
I've taken reference of this article for PDF creation , I want to print first name and last name in PDF. After reference from article I've changed in code and provided my code below. I'm getting these system error mostly. java.lang.RuntimeException : No message found for the.document.is.not.open at com.itextpdf.text.pd...
java|android
1
2015-02-17T08:11:26.657Z
2,015
2
8
1
813
1
515
21
2
2
true
false
false
false
false
false
low
28,557,372
Is there a way to use retrofit in a service (or something similar)?
<p>I rolled my own restful services and JSON parsing and am hoping to switch to Retrofit. Currently my activity sends an intent to a service to fetch the necessary data. The result is passed to a receiver which handles the parsing. I'm not sure how to do this with Retrofit, since services can't return complex object...
I rolled my own restful services and JSON parsing and am hoping to switch to Retrofit. Currently my activity sends an intent to a service to fetch the necessary data. The result is passed to a receiver which handles the parsing. I'm not sure how to do this with Retrofit, since services can't return complex objects. Of ...
android|android-service|retrofit
1
2015-02-17T08:11:29.890Z
2,015
2
8
1
996
1
612
67
3
0
false
false
false
false
false
false
low
28,557,445
Android: Proguard rules for dependencies and modules
<p>I have a project with a couple of modules, some jar dependencies in libs folder and some some other gradle dependencies. I am trying to build a release apk with proguard enabled but i am getting a lot of warnings during the build process for certain dependencies. e.g this: </p> <pre><code>Warning:org.codehaus.jacks...
I have a project with a couple of modules, some jar dependencies in libs folder and some some other gradle dependencies. I am trying to build a release apk with proguard enabled but i am getting a lot of warnings during the build process for certain dependencies. e.g this: [CODE] Would someone please refer a guide on h...
android|dependencies|proguard
4
2015-02-17T08:16:50.080Z
2,015
2
8
1
5,070
1
569
52
3
2
true
false
true
false
false
false
low
28,557,481
How to enable SSL certificate validation on SSLSocket created using SSLCertificateSocketFactory.getInsecure
<p>I am trying to create SSLSocket with the following properties:</p> <ol> <li>it should do SSL certificate validation.</li> <li>it should allow to set custom SNI (server name indication).</li> </ol> <p>From what I have understood:</p> <ol> <li><code>SSLCertificateSocketFactory.getDefault</code> does not do allow yo...
I am trying to create SSLSocket with the following properties: it should do SSL certificate validation. it should allow to set custom SNI (server name indication). From what I have understood: SSLCertificateSocketFactory.getDefault does not do allow you to set custom SNI and but does SSL cert validation. SSLCertificate...
java|android|ssl|sni|sslsocketfactory
0
2015-02-17T08:19:14.727Z
2,015
2
8
1
836
0
613
107
5
1
true
true
false
false
false
false
zero
28,557,533
My UI has Spinners,Edittext.The values entered disappears when screen turns off.How to keep the data?
<p>Even after the screen goes how to show the data in it.I read we can use shared preferences.But i have too many edittext and spinners in many screens.Also i use async class along with it, so it takes a lot of time to fetch data and come back.So when the screen goes off, the whole activity gets restarted again.The sel...
Even after the screen goes how to show the data in it.I read we can use shared preferences.But i have too many edittext and spinners in many screens.Also i use async class along with it, so it takes a lot of time to fetch data and come back.So when the screen goes off, the whole activity gets restarted again.The select...
android|spinner|screen-off
0
2015-02-17T08:22:55.400Z
2,015
2
8
1
61
1
610
101
3
1
true
false
false
false
false
false
zero
28,557,552
Retrieve all phone contacts regardless their group
<p>I'm having a problem retrieving all phone contacts.</p> <p>when using the following selection clause, I'm not getting contacts that not been saved in association to group (such google specific account group):</p> <pre><code> final static String SELECTION = (Utils.hasHoneycomb() ? Contacts.DISPLAY_NA...
I'm having a problem retrieving all phone contacts. when using the following selection clause, I'm not getting contacts that not been saved in association to group (such google specific account group): [CODE] got this snippet from one of the Google tutorials or demo projects. following the documentation, I realized tha...
android|android-sqlite|android-contacts|google-contacts-api
0
2015-02-17T08:24:24.973Z
2,015
2
8
1
107
1
824
50
4
2
true
false
false
false
false
false
zero
28,557,671
Interact (sending data) between android application and tizen application
<p>I want to send some data from application on my mobile (samsung S3 android kitkat) to an application on ( gear 2 neo tizen) like here I have a data like this on an andriod appliction {'id' = 1 , 'name' = 'mohamed' , 'id' = 2 , 'name'...
I want to send some data from application on my mobile (samsung S3 android kitkat) to an application on ( gear 2 neo tizen) like here I have a data like this on an andriod appliction {'id' = 1 , 'name' = 'mohamed' , 'id' = 2 , 'name' = 'ali'}; I want to send it to tizen application on my smart watch any suggestion appr...
android|tizen
0
2015-02-17T08:31:31.690Z
2,015
2
8
1
727
1
328
73
2
0
false
false
false
false
false
false
zero
28,557,696
How to use @ActivityInfo.ScreenOrientation
<p> I try to create a method which returns me the screenorientation dependend on wether the Device is a handheld or a tablet.</p> <pre class="lang-java prettyprint-override"><code>public int getScreenOrientation(boolean isTablet){ if(isTablet){ return ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; } else {...
I try to create a method which returns me the screenorientation dependend on wether the Device is a handheld or a tablet. [CODE] But when I use setRequestedOrientation(getScreenOrientation)); I get a lint-error Must be one of: ActivityInfo.SCREEN_ORIENTATION_......... which I can suppress, but that doesn't look like cl...
java|android|annotations
7
2015-02-17T08:33:31.967Z
2,015
2
8
1
1,768
2
627
42
3
2
true
false
false
false
false
false
medium
28,557,712
Use Google maps without publish
<p>One of my clients want use application without publishing it to google play store. This application use Google Maps. On some phone models map is working fine with debug apk, but on others map is blank. I thought that generation of signed apk and use new api key for signing keystore will solve the problem. But when I...
One of my clients want use application without publishing it to google play store. This application use Google Maps. On some phone models map is working fine with debug apk, but on others map is blank. I thought that generation of signed apk and use new api key for signing keystore will solve the problem. But when I'm ...
android|google-maps
0
2015-02-17T08:34:47.220Z
2,015
2
8
1
79
2
450
31
2
0
false
false
false
false
false
false
zero
28,557,766
How can i solve 'sdk.dir is missing' error when i build android project using ant
<p>When I create a build.xml in command-line in window, (android update project -p . -n myapp ), then "init" , "clean" and "build" target names are basically created in build.xml.</p> <p>But when creating a build.xml in ubuntu, </p> <h2>following build.xml code, sdk.dir is missing.</h2> <p> </p> <pre><code>&lt;!-- ...
When I create a build.xml in command-line in window, (android update project -p . -n myapp ), then "init" , "clean" and "build" target names are basically created in build.xml. But when creating a build.xml in ubuntu, following build.xml code, sdk.dir is missing. [CODE] Although 'command': 'ant clean' and 'ant release'...
android|ubuntu|ant|sdk|build.xml
3
2015-02-17T08:38:07.057Z
2,015
2
8
1
2,152
1
614
81
5
3
true
false
false
false
false
false
low
28,557,789
How to fetch one by one row from sqlite database and show in EditText Box
<p>I went through so many links and honestly made effort to get my answer but still messed. (May be its duplicate question) .I inserted few rows in Sqlitedatabase successfully. I need to show every row in EditText on <code>Next</code> and <code>Previous</code> button. below is my code</p> <pre><code>public List&lt;Co...
I went through so many links and honestly made effort to get my answer but still messed. (May be its duplicate question) .I inserted few rows in Sqlitedatabase successfully. I need to show every row in EditText on Next and Previous button. below is my code [CODE]
android
-2
2015-02-17T08:39:55.383Z
2,015
2
8
1
2,330
1
263
73
1
1
true
false
false
false
false
true
negative
28,557,814
Can't change Android app theme
<p>I want to change the base theme of my application but every time I try, the application is terminating. I used to read the first comment from <a href="https://stackoverflow.com/questions/19186235/how-to-change-app-default-theme-to-a-different-app-theme">this</a> question without any positive result. I'm attaching my...
I want to change the base theme of my application but every time I try, the application is terminating. I used to read the first comment from this question without any positive result. I'm attaching my AndroidManifest.xml and styles.xml. Android.xml [CODE] styles.xml [CODE]
android|xml
0
2015-02-17T08:41:58.197Z
2,015
2
8
1
753
1
274
30
2
2
true
false
false
false
false
false
zero
28,557,832
What does 'updates pending' in Google Developer Console means
<p>I was updating screenshots for my app on Developer Console but when I finished updating them and clicked 'Publish' it showed me message 'Update pending' disabling the 'Update App' button. Can anyone help me in this.</p>
I was updating screenshots for my app on Developer Console but when I finished updating them and clicked 'Publish' it showed me message 'Update pending' disabling the 'Update App' button. Can anyone help me in this.
android
24
2015-02-17T08:43:07.230Z
2,015
2
8
1
30,738
2
215
61
1
0
false
false
true
true
true
false
high
28,557,875
In Android how to prevent updating existing items on notifyDataSetChanged()
<p>I have chat app In custom array adapter. I set random colors to usernames for each message with this code:</p> <pre><code>String[] array = context.getResources().getStringArray(R.array.username_colors); randomColor = array[new Random().nextInt(array.length)]; nameTextView.setTextColor(Color.parseColor(randomColor))...
I have chat app In custom array adapter. I set random colors to usernames for each message with this code: [CODE] When new message arrive I add it to listview, and call adapter.notifyDataSetChanged(); This causes recoloring existing usernames in messages each time. How can I prevent recoloring existing items in listvie...
android|android-arrayadapter
0
2015-02-17T08:45:49.817Z
2,015
2
8
1
306
2
380
75
2
2
true
false
false
false
false
false
zero
28,557,911
Action on notification clicked
<p>I need to change a variable only when a user clicks on a notification. I tried to use SharedPreferences in the activity after the notification redirects to it and then retake this variable next time I need it, but I don't know why it doesn't work.</p> <p>Does anyone know where exactly does the onClick of the Notifi...
I need to change a variable only when a user clicks on a notification. I tried to use SharedPreferences in the activity after the notification redirects to it and then retake this variable next time I need it, but I don't know why it doesn't work. Does anyone know where exactly does the onClick of the Notification is t...
android|onclicklistener|android-notifications
0
2015-02-17T08:48:49.197Z
2,015
2
8
1
71
1
387
30
3
1
true
false
false
false
false
false
zero
28,557,915
Android, CMDTool, stdout redirect, "Fatal signal 11 (SIGSEGV)"
<h2>Use-case</h2> <p>Android C++ command-line tool lunching "/system/bin/getprop" and redirecting it's stdout to a socket</p> <h2>Problem</h2> <p>Lunching 'getprop' fails with "F/libc (20694): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20694 (getprop)", code &amp; logcat snippet follow.</p> <p>Why ...
Use-case Android C++ command-line tool lunching "/system/bin/getprop" and redirecting it's stdout to a socket Problem Lunching 'getprop' fails with "F/libc (20694): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20694 (getprop)", code & logcat snippet follow. Why do I get the SIGSEGV? Why does teh forked proc...
android|c++|linux|android-ndk|android-source
1
2015-02-17T08:49:00.717Z
2,015
2
8
1
926
1
366
62
5
2
true
false
false
false
false
false
low
28,557,940
Navigation drawer design same as google play store
<p>My requirement is wants to make the navigation drawer same as Google Play store application. </p> <p>In my project I should not use any third party library because I am facing copy right issue , and application APK getting more size. </p> <p>I tried using lots of libraries but they told me to remove the library fi...
My requirement is wants to make the navigation drawer same as Google Play store application. In my project I should not use any third party library because I am facing copy right issue , and application APK getting more size. I tried using lots of libraries but they told me to remove the library files is there any way ...
android|android-actionbar|navigation-drawer
1
2015-02-17T08:50:49.757Z
2,015
2
8
1
507
0
389
50
3
0
false
true
false
false
false
false
low
28,557,987
App is not supported on some devices on Google Play Unsupported (3446)
<p>I uploaded an app on goolge play with minimum sdk14 even galaxy tap is not supported</p> <p>aapt dump badging</p> <blockquote> <p>sdkVersion:'14' targetSdkVersion:'14' uses-permission: name='android.permission.CAMERA' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permis...
I uploaded an app on goolge play with minimum sdk14 even galaxy tap is not supported aapt dump badging sdkVersion:'14' targetSdkVersion:'14' uses-permission: name='android.permission.CAMERA' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.RECORD_AUDIO' uses-permission: name...
android|permissions|google-play|android-manifest
1
2015-02-17T08:53:47.697Z
2,015
2
8
1
442
0
1,998
70
4
0
false
true
false
false
false
false
low
28,557,988
XML not well formed
<p>I am trying to build my android app and it is throwing the error:</p> <pre><code>Error:(1) Error parsing XML: not well-formed (invalid token) </code></pre> <p>I did some research on Stack and people had a similiar probelm when they mixed xml and java. After looking at the error it is throwing it for an .png file I...
I am trying to build my android app and it is throwing the error: [CODE] I did some research on Stack and people had a similiar probelm when they mixed xml and java. After looking at the error it is throwing it for an .png file I am using which doesnt make much sense to me. Here is a some more of the error showing: [CO...
java|android|xml|android-layout
1
2015-02-17T08:53:50.953Z
2,015
2
8
1
386
1
323
19
4
2
true
false
false
false
false
false
low
28,557,995
Send message to special client in network
<p>I want send message to network with android. How can i send message to one of the client on network with socket programming in android?</p> <p>I search about socket programming and find it:</p> <pre><code> ServerSocket SVsocket=null; try { SVsocket=new ServerSocket(8080); ...
I want send message to network with android. How can i send message to one of the client on network with socket programming in android? I search about socket programming and find it: [CODE] I think it send for all of the client (listen to 8080 port),but I want send just one client with and ip address.
android|sockets
0
2015-02-17T08:54:17.170Z
2,015
2
8
1
75
1
302
41
2
1
true
false
false
false
false
false
zero
28,558,024
Android ViewPager setAdapter can't update views and fragments
<p>I have an FragmentActivity holding a entry button and a <strong>viewpager</strong>.<br> When the entry button clicked, it will set an image url to a new <strong>FragmentPagerAdapter</strong> and set the adapter to viewpager.<br> And the FragmentPagerAdpater is holding fragment that shows an image.<br> Then press ba...
I have an FragmentActivity holding a entry button and a viewpager . When the entry button clicked, it will set an image url to a new FragmentPagerAdapter and set the adapter to viewpager. And the FragmentPagerAdpater is holding fragment that shows an image. Then press back button, and click that entry button again. It ...
android|android-fragments|android-viewpager|fragmentstatepageradapter|android-pageradapter
1
2015-02-17T08:56:40.147Z
2,015
2
8
1
5,241
1
704
61
5
4
true
false
true
false
false
false
low
28,558,047
Get latest row from DB for a particular column
<p>From DB</p> <pre><code>+-----+---------+---------+ |user | place |timestamp| +-------------------------+ |Name3|Location2|11:12 | |Name1|Location1|11:13 | |Name2|Location2|11:15 | |Name3|Location3|11:16 | |Name1|Location2|11:17 | |Name4|Location1|11:18 | +-----+---------+---------+ </code></pre>...
From DB [CODE] I want to query last entry for particular user , for example query for Name3 should return Location2 . Is it possible to do it by sqlite query? Maybe it's easier to take all data to a List and then try to find last entry for particular user ?
java|sqlite|arraylist|collections|android-sqlite
0
2015-02-17T08:57:38.033Z
2,015
2
8
1
61
3
257
46
5
1
true
false
false
false
false
false
zero
28,558,048
Android, get Notifications Responses
<p>Does anybody know how to get Android Notifications quick responses?</p> <p>Example with image: </p> <p><img src="https://i.stack.imgur.com/jwvu9.jpg" alt="enter image description here"></p> <p>I'm Developing an app for sending notifications to a non Android Wear smartwatch (Qualcomm Toq), and I want to add those ...
Does anybody know how to get Android Notifications quick responses? Example with image: I'm Developing an app for sending notifications to a non Android Wear smartwatch (Qualcomm Toq), and I want to add those quick responses options. I get those notifications using NotificationListenerService, but I don't find those qu...
android|notifications
0
2015-02-17T08:57:38.343Z
2,015
2
8
1
522
2
372
36
2
0
false
false
false
false
false
false
zero
28,558,103
How to handle Notification Touch event launch Activity using BroadcastReceiver
<p>I have used <strong>broadcast receiver</strong> and <strong>alarm manager</strong>. Added the notification in particular date and time. The <strong>notification</strong> is showing fine. But when the user is <strong><em>touching the notificatio</strong>n</em> i want to <strong><em>launch myApplication</em></strong>....
I have used broadcast receiver and alarm manager . Added the notification in particular date and time. The notification is showing fine. But when the user is touching the notificatio n i want to launch myApplication . [CODE] NotificationPublisher class -BroadcastReciver [CODE] I referred this link . I hope your underst...
android|android-activity|android-notifications
0
2015-02-17T09:01:12.357Z
2,015
2
9
1
2,543
1
383
78
3
2
true
false
false
false
false
false
zero