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,713,385
Store Image in SD card and send to server
<p>I need a help. In my android application, I have adding image option.Each time I can choose or take images and send the image to server. here</p> <ol> <li>While sending the image ,I set the image to SD card and send it to server.</li> <li>after successfully send to server,I removed the image from SD card.</li> <li...
I need a help. In my android application, I have adding image option.Each time I can choose or take images and send the image to server. here While sending the image ,I set the image to SD card and send it to server. after successfully send to server,I removed the image from SD card. after adding i am showing images fr...
android|image|libraries
0
2015-02-25T07:23:14.043Z
2,015
2
7
2
93
0
739
41
3
0
false
true
false
false
false
false
zero
28,713,401
How to give WMS URL for Geoserver in worldwind Android?
<p>How to give geoserver url for Worldwind in Android?</p> <p>In desktop version I give</p> <blockquote> <p><a href="http://localhost:8090/geoserver/WorldWind/wms?service=WMS" rel="nofollow noreferrer">http://localhost:8090/geoserver/WorldWind/wms?service=WMS</a></p> </blockquote> <p>and it is working for me, but ...
How to give geoserver url for Worldwind in Android? In desktop version I give http://localhost:8090/geoserver/WorldWind/wms?service=WMS and it is working for me, but same url does not work in Qglobe Android Application code. As it is not showing list of getcapabilities in wms and shows error in WWXML class. It shows fo...
java|android|worldwind
0
2015-02-25T07:24:26.807Z
2,015
2
7
2
557
1
3,637
55
3
0
false
false
false
false
false
false
zero
28,713,415
How can improve application performance in S3
<p>The app is ready to be published. At this time i found a critical performance issue in S3 device only. The app is all about pager, swiping through pager and listing Calendar events by selecting date from our custom calendar. All is going smooth in other devices excepts Samsung Galaxy S3 and due to this after being s...
The app is ready to be published. At this time i found a critical performance issue in S3 device only. The app is all about pager, swiping through pager and listing Calendar events by selecting date from our custom calendar. All is going smooth in other devices excepts Samsung Galaxy S3 and due to this after being some...
android|performance|calendar|freeze|samsung-mobile
0
2015-02-25T07:25:21.133Z
2,015
2
7
2
85
1
619
45
5
0
false
false
false
false
false
false
zero
28,713,417
YouTube API Key in PhoneGap
<ol> <li><p>I am using a PhoneGap Android application which shows some content and then a playlist which shows some 20 videos.</p></li> <li><p>My file uses this : <a href="https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&amp;maxResults=50&amp;playlistId=" rel="nofollow">https://www.googleapis.com/youtub...
I am using a PhoneGap Android application which shows some content and then a playlist which shows some 20 videos. My file uses this : https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId= "+t+"&key=my_api_key_from_console" I have registered the application, and incorporated the API...
android|cordova|android-youtube-api
0
2015-02-25T07:25:23.420Z
2,015
2
7
2
238
0
930
27
3
0
false
true
false
false
false
false
zero
28,713,425
Android/python : is ttsSpeak non blocking?
<p>I have written a small app on Android using python (Qpython3) with voice synthesizer &amp; voice recognition.</p> <pre><code>droid = sl4a.Android() droid.ttsSpeak("hello") v = str(droid.recognizeSpeech() droid.ttsSpeak(v) </code></pre> <p>The synthesized voice is then saying a first "hello", and then once again it...
I have written a small app on Android using python (Qpython3) with voice synthesizer & voice recognition. [CODE] The synthesized voice is then saying a first "hello", and then once again it says "hello" as if it was auto-recording the first string - and I interpret this as ttsSpeak non blocking. Is there a way to wait ...
android|python|sl4a
0
2015-02-25T07:25:50.323Z
2,015
2
7
2
926
1
402
42
3
1
true
false
false
false
false
false
zero
28,713,474
Eclipse(Ubuntu) doesnt show one plus one device even if USB debugging is turned on
<p>I have tried installing my application into the oneplus one device but the eclipse(Ubuntu) doesn't recognize the device. How can this problem be solved? I have tried the link <a href="http://developer.android.com/tools/device.html" rel="nofollow">http://developer.android.com/tools/device.html</a> , but there is no r...
I have tried installing my application into the oneplus one device but the eclipse(Ubuntu) doesn't recognize the device. How can this problem be solved? I have tried the link http://developer.android.com/tools/device.html , but there is no rule for OnePlusOne devices. Please Help!
android|eclipse|oneplusone
0
2015-02-25T07:29:14.200Z
2,015
2
7
2
914
2
281
82
3
0
false
false
false
false
false
false
zero
28,713,485
How to move Camera in Rajawali Virtual Reality framework for android?
<p>This is the link of Rajawali VR example : </p> <p><a href="https://github.com/MasDennis/RajawaliVR" rel="nofollow">https://github.com/MasDennis/RajawaliVR</a></p> <p>I want to add a feature that the user can move the camera around in the scene just like a FPS game such as Counter-Strike.</p> <p>so,I write this co...
This is the link of Rajawali VR example : https://github.com/MasDennis/RajawaliVR I want to add a feature that the user can move the camera around in the scene just like a FPS game such as Counter-Strike. so,I write this code in the RajawaliVRExampleActivity's onCreate method : [CODE] I think it will move forward every...
android|opengl-es|rajawali|google-cardboard|virtual-reality
2
2015-02-25T07:29:42.273Z
2,015
2
7
2
900
1
471
69
5
1
true
false
false
false
false
false
low
28,713,507
Bundle are not found when created a new project in android studio
<p>When I create a new project in android studio the Bundle file are showing error. code is </p> <pre><code>public class MainActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } } </co...
When I create a new project in android studio the Bundle file are showing error. code is [CODE] this code Bundle are not finding and show error is -Cannot resolve symbol 'Bundle' and '@Override' is not applicable to method.. what is missing in my android studio i don't know any suggestion any one..What is error..
java|android|android-intent|android-activity|android-studio
0
2015-02-25T07:31:18.493Z
2,015
2
7
2
476
1
314
65
5
1
true
false
false
false
false
false
zero
28,713,515
Picasso Library: ImageView in ListView Shows loads image multiple time on fast Srcroll
<p>I am loading remote image into row of listView using picaso callback. But image changes multiple times when listView is scrolled very fast. I guess its due to row reuse. How can I correct it and show correct image without reloading of different images in imageView. </p> <p>I also setting null bitmap into ImageView....
I am loading remote image into row of listView using picaso callback. But image changes multiple times when listView is scrolled very fast. I guess its due to row reuse. How can I correct it and show correct image without reloading of different images in imageView. I also setting null bitmap into ImageView. So that it ...
android|image|android-listview|imageview|picasso
1
2015-02-25T07:31:38.180Z
2,015
2
7
2
1,360
1
417
86
5
2
true
false
false
false
false
false
low
28,713,641
Changing Padding of TextView in a ListView
<p>I have a listview with an arrayadapter that holds these views</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;CheckedTextView android:id="@android:id/text1" android:layout_w...
I have a listview with an arrayadapter that holds these views [CODE] I want to add X padding to the left of the textview when activated and remove that padding when not selected. The padding will not update. How do I manage this?
android|listview
0
2015-02-25T07:39:27.983Z
2,015
2
7
2
91
1
229
42
2
1
true
false
false
false
false
false
zero
28,713,689
Flurry age and gender Android
<p>Hi I am using flurry analytics in my app. I need to find out the age and gender of the person using the app. how can i do this. Although there is an option to set age and gender but from where i can get that as there is no information in my app about the person's age and gender.</p>
Hi I am using flurry analytics in my app. I need to find out the age and gender of the person using the app. how can i do this. Although there is an option to set age and gender but from where i can get that as there is no information in my app about the person's age and gender.
android|flurry-analytics
1
2015-02-25T07:41:46.450Z
2,015
2
7
2
401
1
279
29
2
0
false
false
false
false
false
false
low
28,713,691
How to make the a word in a string resource to display red color in android?
<p>I hope that the word "Click here" display red color, but the following code don't work, how can I do ? Thanks!</p> <pre><code>TextView mLink = (TextView) findViewById(R.id.tvMyLink); Spanned my=android.text.Html.fromHtml(getString(R.string.mylink)); mLink.setText(my); &lt;string name="mylink"&gt;&lt;span style...
I hope that the word "Click here" display red color, but the following code don't work, how can I do ? Thanks! [CODE]
android
0
2015-02-25T07:41:47.463Z
2,015
2
7
2
126
2
117
76
1
1
true
false
false
false
false
false
zero
28,713,714
Chromecast API - need help to hide volume bar when mute event applied
<p>I'm developing Chrome-cast application which will cast the media content from mobile to TV, I'm able to do that. But I have a feature like for some of the videos I need to apply mute/UN-mute events, even I'm able to apply the mute/UN-mute events. </p> <p>Whenever I apply mute/UN-mute events I observed that audio ic...
I'm developing Chrome-cast application which will cast the media content from mobile to TV, I'm able to do that. But I have a feature like for some of the videos I need to apply mute/UN-mute events, even I'm able to apply the mute/UN-mute events. Whenever I apply mute/UN-mute events I observed that audio icon and volum...
android|chromecast
-2
2015-02-25T07:43:43.933Z
2,015
2
7
2
204
1
522
69
2
0
false
false
false
false
false
true
negative
28,713,738
android TextView input to currency for multiple TextViews
<p>i have a function which will convert the input to currency format <code>example: 1000 to 1,000</code> i use this function to handle my edittext price input, it will convert automatically as we typing the numbers in the edittext. Now i am making another activity that has dozens of textview, its a table that will show...
i have a function which will convert the input to currency format example: 1000 to 1,000 i use this function to handle my edittext price input, it will convert automatically as we typing the numbers in the edittext. Now i am making another activity that has dozens of textview, its a table that will show some prices. Fo...
android
0
2015-02-25T07:46:20.713Z
2,015
2
7
2
288
1
683
57
1
2
true
false
false
false
false
false
zero
28,713,771
taking string after a particularword in android
<p>my problem is i have to add a search suggestion in my app. It is Supposed to work like this:<br></p> <p>if user writes "@" than the search box will show contacts.and if there is no contacts than it will store in the word after "@" shared preferences. if user presses "#" than it is supposed to show hash tags if i...
my problem is i have to add a search suggestion in my app. It is Supposed to work like this: if user writes "@" than the search box will show contacts.and if there is no contacts than it will store in the word after "@" shared preferences. if user presses "#" than it is supposed to show hash tags if it exists in my sq ...
android
0
2015-02-25T07:48:45.473Z
2,015
2
7
2
72
2
377
47
1
1
true
false
false
false
false
false
zero
28,713,829
Android Provider is not providing the current location
<p>I have developed an application in which we send the code from our friends mobile to our mobile.If the code matches with the saved one then it should send the currentlocation of the mobile to friends mobile as an sms. Here is my code</p> <pre><code> if (message.equals(locatecode)) { // Get t...
I have developed an application in which we send the code from our friends mobile to our mobile.If the code matches with the saved one then it should send the currentlocation of the mobile to friends mobile as an sms. Here is my code [CODE] } [CODE]
android|location
0
2015-02-25T07:52:09.357Z
2,015
2
7
2
98
1
249
54
2
2
true
false
false
false
false
false
zero
28,713,843
How to Validate fragment onSwipe?
<p>I am trying to validate fragment on swipe.</p> <p>but it gives me error on logcat- Exception dispatching input event. Exception in MessageQueue callback: handleReceiveCallback java.lang.NullPointerException</p> <p>Here is my activityclass</p> <pre><code>screen = this; // Initilization viewPa...
I am trying to validate fragment on swipe. but it gives me error on logcat- Exception dispatching input event. Exception in MessageQueue callback: handleReceiveCallback java.lang.NullPointerException Here is my activityclass [CODE] and here is my fragment [CODE] //Excuse me for text mistakes I have also googled ([like ...
android|tabs|android-edittext|fragment|swipe
0
2015-02-25T07:52:52.673Z
2,015
2
7
2
857
1
428
33
5
2
true
false
false
false
false
false
zero
28,713,866
After install ARM and gapps in Genymotion the Google Play doesn't show
<p>I've try every tutorial available to install GApps in genymotion and almost every combination but always I got the same issue, after install the ARM, the signed gapps and reboot the emulator doesn't show the Google Play. Any idea?</p> <p>Please help me. </p> <p>Regards.</p>
I've try every tutorial available to install GApps in genymotion and almost every combination but always I got the same issue, after install the ARM, the signed gapps and reboot the emulator doesn't show the Google Play. Any idea? Please help me. Regards.
android|genymotion
0
2015-02-25T07:54:21.983Z
2,015
2
7
2
214
0
255
70
2
0
false
true
false
false
false
false
zero
28,713,907
On replacing one list fragment with another, the new fragment overlaps the older one
<p>I have two list fragments. So basically when any list element is clicked on fragment 1. I need to replace the fragment with newer one. I am using fragment transactions to do this but what happens is the newer fragment overlaps with older one instead of replacing. My codes and XMLs:</p> <pre><code>package com.exampl...
I have two list fragments. So basically when any list element is clicked on fragment 1. I need to replace the fragment with newer one. I am using fragment transactions to do this but what happens is the newer fragment overlaps with older one instead of replacing. My codes and XMLs: [CODE] Another listfragment [CODE] Th...
android|android-fragments
0
2015-02-25T07:56:49.300Z
2,015
2
7
2
596
1
468
84
2
5
true
false
false
false
false
false
zero
28,713,958
android.database.sqlite.SQLiteException: near "-- " syntax error code 1
<p>When I run the below query on my database, it gives me the following error: </p> <pre><code>android.database.sqlite.SQLiteException: near "--,COUNT(*) FROM .. with syntax error code 1 </code></pre> <p>Here's my query:</p> <pre><code>SQLiteDatabase db = getReadableDatabase(); final String MY_QUERY="SELECT d.* FR...
When I run the below query on my database, it gives me the following error: [CODE] Here's my query: [CODE] Please tell me what I'm doing wrong.
android|sqlite|android-sqlite
-1
2015-02-25T07:59:51.640Z
2,015
2
7
2
747
2
143
71
3
2
true
false
false
false
false
true
negative
28,713,963
Generating Jar file in Android Studio
<p>I have a library project in Android Studio. I want to generate a .jar file for this library. I need the <code>jar file contain/include all the dependencies</code> this Library project has. </p> <p>The problem is I couldn't find a way of generating a jar file. Is there any way I can generate a jar file for my projec...
I have a library project in Android Studio. I want to generate a .jar file for this library. I need the jar file contain/include all the dependencies this Library project has. The problem is I couldn't find a way of generating a jar file. Is there any way I can generate a jar file for my project? Best Regards
android|jar|android-studio
6
2015-02-25T08:00:02.150Z
2,015
2
8
2
11,623
2
310
37
3
0
false
false
true
true
false
false
medium
28,713,974
How to write a plugin for Android Studio?
<p>How I can write a plugin for Android Studio?</p> <p>I've looked for documentation, but unfortunately there is very little or it's poor, so what articles can recommended?</p> <p>Can Eclipse or IntelliJ IDEA plugin work in Android Studio?</p>
How I can write a plugin for Android Studio? I've looked for documentation, but unfortunately there is very little or it's poor, so what articles can recommended? Can Eclipse or IntelliJ IDEA plugin work in Android Studio?
java|eclipse|intellij-idea|android-studio|eclipse-plugin
14
2015-02-25T08:01:01.660Z
2,015
2
8
2
13,865
3
222
41
5
0
false
false
true
true
true
false
medium
28,713,977
how do taplytics, mixpanel, optimizely or apptimize work?
<p>This is a mind bender for me, guys. Does anyone know how the four services in the title (and probably many more) do the things showcased in this video?:</p> <p><a href="https://www.youtube.com/watch?v=iZ_-4qM4P2U" rel="nofollow">https://www.youtube.com/watch?v=iZ_-4qM4P2U</a></p> <p><a href="https://www.youtube.co...
This is a mind bender for me, guys. Does anyone know how the four services in the title (and probably many more) do the things showcased in this video?: https://www.youtube.com/watch?v=iZ_-4qM4P2U https://www.youtube.com/watch?v=Lv9RCdYoak4 It seems they can somehow stream the Android/iOS device's screen to the browser...
android|ios|android-layout|taplytics
2
2015-02-25T08:01:20.160Z
2,015
2
8
2
698
3
592
57
4
0
false
false
false
false
false
false
low
28,714,062
Implementing both DataItem.DataListener interface and WearableListenerService
<p>In Android Wear application i've implemented <em>DataItem.DataListener</em> interface for an Activity. Since i already created <em>WearableListenerService</em> for some other usages. Now the situation is when i want <em>onDatachanged()</em> in <strong>MyActivity</strong> it will execute <em>onDatachanged()</em> of...
In Android Wear application i've implemented DataItem.DataListener interface for an Activity. Since i already created WearableListenerService for some other usages. Now the situation is when i want onDatachanged() in MyActivity it will execute onDatachanged() of WearablelistenerService . Also viceversa
wear-os|android-wear-data-api|moto-360
0
2015-02-25T08:07:16.803Z
2,015
2
8
2
239
1
303
77
3
0
false
false
false
false
false
false
zero
28,714,132
AlarmManager is not setting alarm in activity's oncreate
<p>I want to setup alarm on acitivty's <code>onCreate()</code> method to call a <code>Receiver</code> which starts a service to load data from website but the <code>AlarmManager</code> is not setting up the alarm and repeat that alarm for particular time interval Here is my code. This is <code>MainActivity</code> Code<...
I want to setup alarm on acitivty's onCreate() method to call a Receiver which starts a service to load data from website but the AlarmManager is not setting up the alarm and repeat that alarm for particular time interval Here is my code. This is MainActivity Code [CODE] This is AlarmReciever [CODE] And this is my Serv...
android
1
2015-02-25T08:12:21.917Z
2,015
2
8
2
248
1
330
56
1
3
true
false
false
false
false
false
low
28,714,146
Convert time from utc to local time in android in long value
<p>I receive time from server in seconds in UTC+0000 format.I have converted that time to milliseconds.How do I convert this long milliseconds time into my default timezone time format(in long itself) .I have seen posts that strictly say use Joda-Time Library.I there any way of doing this in native java way.I did try <...
I receive time from server in seconds in UTC+0000 format.I have converted that time to milliseconds.How do I convert this long milliseconds time into my default timezone time format(in long itself) .I have seen posts that strictly say use Joda-Time Library.I there any way of doing this in native java way.I did try [COD...
android|timezone|utc|timezone-offset
0
2015-02-25T08:13:57.017Z
2,015
2
8
2
757
1
455
60
4
1
true
false
false
false
false
false
zero
28,714,175
How to replace partial text on a TextView?
<p>I have a text in a textview which says "you have 60 seconds left in the final lap".I am planning to do a countdown starting from 60 and just want to replace the number portion of the textview without refreshing the entire thing.I know I will be using the CountDownTimer to achieve the countdown but how do I change th...
I have a text in a textview which says "you have 60 seconds left in the final lap".I am planning to do a countdown starting from 60 and just want to replace the number portion of the textview without refreshing the entire thing.I know I will be using the CountDownTimer to achieve the countdown but how do I change the t...
android
2
2015-02-25T08:16:01.143Z
2,015
2
8
2
874
1
501
42
1
0
false
false
false
false
false
false
low
28,714,225
auto rotate screen is not working android AVD
<p>I'm using android studio with AVD emulator but I'm wondering why Auto-rotate screen option is not working for the whole app.</p> <p><img src="https://i.stack.imgur.com/FSzvO.png" alt="enter image description here"></p>
I'm using android studio with AVD emulator but I'm wondering why Auto-rotate screen option is not working for the whole app.
android|mobile|screen-rotation
2
2015-02-25T08:18:48.353Z
2,015
2
8
2
468
1
124
45
3
0
false
false
false
false
false
false
low
28,714,262
Floating Action Button Oval not changing
<p>I'm trying to implement code for a Floating Action Button, but for some reason the oval is not replacing the current button. </p> <p><strong>activity_upcoming.xml:</strong></p> <pre><code>&lt;ImageButton android:id="@+id/add_button" android:layout_width="@dimen/diameter" android:layout_height="@dimen/d...
I'm trying to implement code for a Floating Action Button, but for some reason the oval is not replacing the current button. activity_upcoming.xml: [CODE] oval_ripple.xml: [CODE] Upcoming.java: [CODE] The button continues to stay rectangle shaped, and the colour does not change. I've verified the ripple code with sever...
android|android-5.0-lollipop|floating-action-button
0
2015-02-25T08:23:01.427Z
2,015
2
8
2
1,450
3
344
40
3
3
true
false
false
false
false
false
zero
28,714,307
Parameters via Activity change
<p>I want the new activity to receive data dependning on which button a user pressed. </p> <p>So for an example: User press button 2 -> Starts new Activity -> new Activity know which button was pressed.</p>
I want the new activity to receive data dependning on which button a user pressed. So for an example: User press button 2 -> Starts new Activity -> new Activity know which button was pressed.
android|android-activity
0
2015-02-25T08:26:08.023Z
2,015
2
8
2
24
1
191
30
2
0
false
false
false
false
false
false
zero
28,714,326
MvxAdapter binding items
<p>I have a MvxAdapter to show some images. The user can tap multiple images and the images get a selected-state.</p> <p>At this moment I call following code everytime the user taps an image in the list:</p> <pre><code>_adapter.NotifyDataSetChanged(); </code></pre> <p>This forces my MvxAdapter to reload the visible ...
I have a MvxAdapter to show some images. The user can tap multiple images and the images get a selected-state. At this moment I call following code everytime the user taps an image in the list: [CODE] This forces my MvxAdapter to reload the visible elements. My Adapter: [CODE] Everything works fine but I wonder if ther...
c#|binding|xamarin|xamarin.android|mvvmcross
0
2015-02-25T08:27:14.323Z
2,015
2
8
2
480
1
489
24
5
2
true
false
false
false
false
false
zero
28,714,340
Unable to get gziped InputSTream on Android device using DefaultHttpClient, HttpPost JSON
<p>I have JSON service exposed on http and https sites (same IIS server). Using this code, when calling http url I'm getting gziped response, but calling https response is not gziped. HTTPS is retutning gziped content and proper headers (in this case wanted header is Content-Encoding) on another apps that are consuming...
I have JSON service exposed on http and https sites (same IIS server). Using this code, when calling http url I'm getting gziped response, but calling https response is not gziped. HTTPS is retutning gziped content and proper headers (in this case wanted header is Content-Encoding) on another apps that are consuming sa...
java|android|json|web-services|content-encoding
1
2015-02-25T08:27:52.267Z
2,015
2
8
2
42
0
445
89
5
1
true
true
false
false
false
false
low
28,714,341
Cannot load a Webview inside a dialogfragment if previouse load didnt complete the javascript
<p>I am using a webview inside a dialog fragment. When I press a button the webview is loaded with an URL, than a javascript is run (the javascript takes about 2min, depending on the URL inside the webview). </p> <p>So far so good. However, if I backpress the dialogfragment while the javascript is running and than ope...
I am using a webview inside a dialog fragment. When I press a button the webview is loaded with an URL, than a javascript is run (the javascript takes about 2min, depending on the URL inside the webview). So far so good. However, if I backpress the dialogfragment while the javascript is running and than open the dialog...
android|webview
0
2015-02-25T08:27:52.373Z
2,015
2
8
2
1,006
1
2,074
93
2
4
true
false
false
false
false
false
zero
28,714,358
How to avoid Android wear notification background Zoomed in and Scrolling
<p>I just wanted to avoid the background scrolling in the notification.</p> <p>The <a href="http://developer.android.com/training/wearables/notifications/creating.html" rel="nofollow">documentation for Android Wear</a> specifies that the background should be 400 x 400 if it should not use parallax scrolling and a size...
I just wanted to avoid the background scrolling in the notification. The documentation for Android Wear specifies that the background should be 400 x 400 if it should not use parallax scrolling and a size of 640x400 if it should support parallax scrolling. The image should be put into the drawable-nodpi folder of your ...
android|android-notifications|wear-os
1
2015-02-25T08:28:37.957Z
2,015
2
8
2
79
0
467
73
3
0
false
true
false
false
false
false
low
28,714,392
OpenCV Android image processing on frame in AsyncTask
<p>Evening,</p> <p>I`m trying to create an Augmented Reality application by detecting markers in a scene. In order to do that, I need to do heavy processing on an image. I do that in onCameraFrame() method at every frame, but the image processing holds up the thread and camera feels laggy with low fps. So I try to put...
Evening, I`m trying to create an Augmented Reality application by detecting markers in a scene. In order to do that, I need to do heavy processing on an image. I do that in onCameraFrame() method at every frame, but the image processing holds up the thread and camera feels laggy with low fps. So I try to put image proc...
android|opencv|image-processing|android-asynctask
0
2015-02-25T08:31:00.070Z
2,015
2
8
2
1,059
0
989
53
4
2
true
true
false
false
false
false
zero
28,714,396
Android what is the canonical way of creating a layout for tabular data?
<p>I'm trying to design a layout for a table that looks like this:</p> <p><img src="https://i.stack.imgur.com/NBK5K.png" alt="enter image description here"></p> <p>The columns are fixed, and the rows can be dynamically added/removed.</p> <p>So I tried using TableLayout to design the "skeleton" of my table.</p> <pre...
I'm trying to design a layout for a table that looks like this: The columns are fixed, and the rows can be dynamically added/removed. So I tried using TableLayout to design the "skeleton" of my table. [CODE] And tried designing a custom tablerow layout for the dynamically added rows [CODE] And the major problem is that...
java|android|xml|layout
0
2015-02-25T08:31:20.810Z
2,015
2
8
2
86
2
694
72
4
2
true
false
false
false
false
false
zero
28,714,418
GPS location providers which does not use google play services
<p>I have an android device that have a GPS chip on it and I want to get location using it, but the device doesn't have google play service installed (it doesn't support google play service). So I'm not able to use android standard <code>LocationManager</code>.</p> <p>Does anyone have suggestions how to get location?<...
I have an android device that have a GPS chip on it and I want to get location using it, but the device doesn't have google play service installed (it doesn't support google play service). So I'm not able to use android standard LocationManager . Does anyone have suggestions how to get location?
android|gps|location-provider
0
2015-02-25T08:32:31.787Z
2,015
2
8
2
1,455
1
296
62
3
0
false
false
false
false
false
false
zero
28,714,446
Add opaque button over the surfaceview
<p>In my app, I want to implement a screen which should contain some buttons and as a background of the screen, I want a surface view which will show some animation. For this i have extended surface view which shows animation. The problem I am facing is, when i add some buttons, they are not fully opaque. They remain t...
In my app, I want to implement a screen which should contain some buttons and as a background of the screen, I want a surface view which will show some animation. For this i have extended surface view which shows animation. The problem I am facing is, when i add some buttons, they are not fully opaque. They remain tran...
android|surfaceview
1
2015-02-25T08:34:49.587Z
2,015
2
8
2
294
2
637
38
2
1
true
false
false
false
false
false
low
28,714,449
Android;communication between content provider and remote service
<p>I have a <strong>content provider</strong> and <strong>remote service</strong>.Clients query content provider to find user data and remote service tries to fetch data from web server.I know how to bind content provider to service,but I do not know how to return data from query method of content provider.These lines ...
I have a content provider and remote service .Clients query content provider to find user data and remote service tries to fetch data from web server.I know how to bind content provider to service,but I do not know how to return data from query method of content provider.These lines may explain my plan: 1- client query...
android|android-asynctask|android-service|android-contentprovider
0
2015-02-25T08:35:00.383Z
2,015
2
8
2
329
0
683
65
4
0
false
true
false
false
false
false
zero
28,714,459
IOException occur during playing song from mediaplayer
<p>I want to play a song from Android MediaStore. I know that id 1834 is absolutely correctly.. while debugging i found that at <code>mp.prepare();</code> <code>IOException occurs</code>. How can i solve this.</p> <pre><code>prevSong.setOnClickListener(new OnClickListener() { @Override ...
I want to play a song from Android MediaStore. I know that id 1834 is absolutely correctly.. while debugging i found that at mp.prepare(); IOException occurs . How can i solve this. [CODE]
android|android-mediaplayer|ioexception
0
2015-02-25T08:35:38.923Z
2,015
2
8
2
65
1
188
54
3
1
true
false
false
false
false
false
zero
28,714,495
Check whatsapp online status
<p>I've been asked to create a mobile application that checks the online status of selected whatsapp contacts, and notifies the user when the selected contact is online. I think this is possible, because it already exists another app that uses the same information and it works at least for someone:</p> <p><a href="htt...
I've been asked to create a mobile application that checks the online status of selected whatsapp contacts, and notifies the user when the selected contact is online. I think this is possible, because it already exists another app that uses the same information and it works at least for someone: https://play.google.com...
android|ios|whatsapp
8
2015-02-25T08:37:57.713Z
2,015
2
8
2
37,608
2
589
28
3
0
false
false
true
true
false
false
medium
28,714,545
How to change main menu icons in Android app
<p>I had an android app developed and I would like to change the main menu icons. I looked in android studio, but on the preview screen the icons do not appear, yet on the app they do. I have searched through the source folders but cannot find any of the icon images.</p> <p>Here is the screen of android studio with me...
I had an android app developed and I would like to change the main menu icons. I looked in android studio, but on the preview screen the icons do not appear, yet on the app they do. I have searched through the source folders but cannot find any of the icon images. Here is the screen of android studio with menu invisibl...
android|menu
-1
2015-02-25T08:40:48.130Z
2,015
2
8
2
2,061
1
473
44
2
0
false
false
false
false
false
true
negative
28,714,646
LogCat is missing the filters options
<p><img src="https://i.imgur.com/YTjSnbH.png" alt=""></p> <p>The filters are on the devices tab. But isn't this supposed to be in logcat?</p> <p>How do you reset them back?</p>
The filters are on the devices tab. But isn't this supposed to be in logcat? How do you reset them back?
android-studio
197
2015-02-25T08:47:32.990Z
2,015
2
8
2
40,906
21
104
37
1
0
false
false
true
true
true
false
high
28,714,719
Dropbox Sync API authentication within application?
<p>I have downloaded the Dropbox Sync API Android. I am using it to develop an application. My problem is that the first time when i install /run the apk file it requires an external authentication with the Dropbox account (either through dropbox app or website).</p> <p>I was wondering, can we achieve so that the f...
I have downloaded the Dropbox Sync API Android. I am using it to develop an application. My problem is that the first time when i install /run the apk file it requires an external authentication with the Dropbox account (either through dropbox app or website). I was wondering, can we achieve so that the first time auth...
android|dropbox
0
2015-02-25T08:51:01.923Z
2,015
2
8
2
176
1
683
51
2
0
false
false
false
false
false
false
zero
28,714,723
error after add relativelayout inside linearlayout?
<p>I want to display the video thumbnails in listview, I use images instead of thumbnails and add ImageView (image play button) on the front but failed my xml code like this</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" an...
I want to display the video thumbnails in listview, I use images instead of thumbnails and add ImageView (image play button) on the front but failed my xml code like this [CODE] my java code [CODE] everything work well before i add relative layout,I want to add image view center with other imageview but I get error log...
android|android-layout|android-relativelayout
0
2015-02-25T08:51:22.373Z
2,015
2
8
2
499
3
327
51
3
3
true
false
false
false
false
false
zero
28,714,727
Howto: broadcast location data to listening iOS/Android App?
<p>Want to build an app that broadcasts its location (master device) to all listening apps (slave devices) and let's them know where the device is.</p> <p>In a real world example it has to be used in a food truck that drives around a city. The driver of the truck has an iPad App that broadcasts it's location data for ...
Want to build an app that broadcasts its location (master device) to all listening apps (slave devices) and let's them know where the device is. In a real world example it has to be used in a food truck that drives around a city. The driver of the truck has an iPad App that broadcasts it's location data for example eve...
android|ios|geolocation|core-location
0
2015-02-25T08:51:40.290Z
2,015
2
8
2
274
1
714
60
4
0
false
false
false
false
false
false
zero
28,714,731
Up and hamburger icon issue with DrawerFragment and ActionBarDrawerToggle(v7)
<p>I've got an issue with dealing with ActionBarDrawerToggle(v7) and icons.</p> <p>Basically, i've got a classical Activity with a DrawerFragment and Fragments to be displayed and it works.</p> <p>My issue occurs when i try to replace a Fragment with another for detail view (List/Detail Fragments).</p> <p>I push my ...
I've got an issue with dealing with ActionBarDrawerToggle(v7) and icons. Basically, i've got a classical Activity with a DrawerFragment and Fragments to be displayed and it works. My issue occurs when i try to replace a Fragment with another for detail view (List/Detail Fragments). I push my new DetailFragment with: [C...
android|navigation-drawer|actionbardrawertoggle
1
2015-02-25T08:51:48.943Z
2,015
2
8
2
272
0
607
77
3
1
true
true
false
false
false
false
low
28,714,735
Calabash - Send app to background and come back (Android)
<p>I'm testing my android app with Calabash and everything is fine except for a small detail. I override onPause() and onResume() method to perform certain actions and I would like to test them. The problem is I'm not sure about how to do it with calabash.</p> <p>I read we can send the app to the background executing ...
I'm testing my android app with Calabash and everything is fine except for a small detail. I override onPause() and onResume() method to perform certain actions and I would like to test them. The problem is I'm not sure about how to do it with calabash. I read we can send the app to the background executing [CODE] Ref:...
android|calabash|calabash-android
0
2015-02-25T08:52:03.763Z
2,015
2
8
2
1,692
3
559
57
3
1
true
false
false
false
false
false
zero
28,714,738
CheckedTextView disappears when scroll in ListView
<p>I have custom ListView. I'm using array adapter to fill my ListViews rows. It worked perfectly. When I select the ListView row, my checkedtextview become visible. After scrolling my checked situation disapper. How can i remember my checks ? </p> <p>Thanks in helpings. </p> <p><strong>Here my Adapter</strong></p> ...
I have custom ListView. I'm using array adapter to fill my ListViews rows. It worked perfectly. When I select the ListView row, my checkedtextview become visible. After scrolling my checked situation disapper. How can i remember my checks ? Thanks in helpings. Here my Adapter [CODE] Here is my MainActivity; Let me expl...
android|android-listview|custom-adapter|checkedtextview
0
2015-02-25T08:52:05.993Z
2,015
2
8
2
1,128
3
446
50
4
2
true
false
false
false
false
false
zero
28,714,781
How to contribute to the Android API guide?
<p>How to correct errors in source examples, wording, etc. on the <a href="http://developer.android.com/guide/index.html" rel="nofollow">Android API guide</a>.</p> <p>I found the code repository but I did not find the documentation</p>
How to correct errors in source examples, wording, etc. on the Android API guide . I found the code repository but I did not find the documentation
android
1
2015-02-25T08:54:18.147Z
2,015
2
8
2
223
2
147
43
1
0
false
false
false
false
false
false
low
28,714,854
How do I get the NMEA data from a serial GPS connected to my android device?
<p>I am working on a project where I have to connect my android device to a GPS with usb. I can't figure out how I can get the data out of my GPS and I do not want to use the device it's internall GPS because I need to be pretty accurate. I have read the tutorial on the android website and I have tried to work with it ...
I am working on a project where I have to connect my android device to a GPS with usb. I can't figure out how I can get the data out of my GPS and I do not want to use the device it's internall GPS because I need to be pretty accurate. I have read the tutorial on the android website and I have tried to work with it but...
java|android|android-studio|gps|serial-port
0
2015-02-25T08:58:03.470Z
2,015
2
8
2
1,860
1
412
76
5
1
true
false
false
false
false
false
zero
28,714,911
Android: uncompress concatenated gzip-compressed files
<p><code>gzip</code> is <a href="http://linux.die.net/man/1/gzip" rel="nofollow">documented</a> to support concatenation of compressed files:</p> <pre><code>$ echo hello &gt;hhh $ echo world &gt;www $ cat hhh www hello world $ echo hello | gzip &gt;hhhh $ echo world | gzip &gt;wwww $ cat hhhh wwww | gunzip hello world...
gzip is documented to support concatenation of compressed files: [CODE] I can create a concatenated file with GZIPOutputStream , but unfortunately GZIPInputStream reads only the first portion of data ( gunzip run from the command line reads all.) I'm seeing this on both Android 4.1.2 and 4.4.2. How do I read the whole ...
java|android|gzip
2
2015-02-25T09:01:50.127Z
2,015
2
9
2
1,123
2
544
54
3
3
true
false
false
false
false
false
low
28,714,976
align multiline text at start and end in a textview android
<p>3 line text should display like this -</p> <p>ExclusiveLane Terracotta La-<br> ntern Handpainted Table lamp<br> From</p> <pre><code> &lt;TextView android:id="@+id/product_title_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" andro...
3 line text should display like this - ExclusiveLane Terracotta La- ntern Handpainted Table lamp From [CODE]
android
0
2015-02-25T09:06:28.053Z
2,015
2
9
2
387
0
108
59
1
1
true
true
false
false
false
false
zero
28,714,979
Check String is URL in android code?
<p>I allow user to input text string in my EditView. When I get Editview text, I want to validate if it is URL link or not? Can any one give Android code function? Thanks</p>
I allow user to input text string in my EditView. When I get Editview text, I want to validate if it is URL link or not? Can any one give Android code function? Thanks
java|android|url
1
2015-02-25T09:06:36.157Z
2,015
2
9
2
5,411
2
167
36
3
0
false
false
true
false
false
false
low
28,714,989
Android TextToSpeech.synthesizeToFile() file is not created
<p>I am trying to implement a pause and play function to some text using tts and MediaPlayer. However, I can't seem to be able to create a .wav file using the synthesizeToFile function.</p> <p>I already added the required permission to the xml file:</p> <pre><code>&lt;uses-permission android:name="android.permiss...
I am trying to implement a pause and play function to some text using tts and MediaPlayer. However, I can't seem to be able to create a .wav file using the synthesizeToFile function. I already added the required permission to the xml file: [CODE] This is the file creation method I am currently using: [CODE] This is how...
java|android|android-mediaplayer|text-to-speech
5
2015-02-25T09:07:19.310Z
2,015
2
9
2
5,389
1
364
59
4
3
true
false
true
false
false
false
low
28,715,000
Any way to close recent apps in code?
<p>I want to build upon my battery saving android app and add the functionality to close all apps excluding user-specified ones.</p> <p>Im not asking how to kill a process, I want to close the recent apps in the same way that you would by hitting your recent apps button and swiping them all away.</p> <p>Does anyone k...
I want to build upon my battery saving android app and add the functionality to close all apps excluding user-specified ones. Im not asking how to kill a process, I want to close the recent apps in the same way that you would by hitting your recent apps button and swiping them all away. Does anyone know of a way to do ...
java|android|task
0
2015-02-25T09:07:55.350Z
2,015
2
9
2
120
1
325
37
3
0
false
false
false
false
false
false
zero
28,715,032
How to enable/disable Android Studio from jumping to the first error after build
<p>I try to write some code... while at it the auto build kicks in (or I just manually build) since this action can take some time, I go on typing...</p> <p>As soon as the build is done, and when it finds errors it just opens the file of the first error and jumps to the error line where I go on typing there...</p> <p...
I try to write some code... while at it the auto build kicks in (or I just manually build) since this action can take some time, I go on typing... As soon as the build is done, and when it finds errors it just opens the file of the first error and jumps to the error line where I go on typing there... Where is the off s...
intellij-idea|android-studio
4
2015-02-25T09:10:08.120Z
2,015
2
9
2
782
2
351
80
2
0
false
false
false
false
false
false
low
28,715,036
Spinner with arrow in left
<p>I'm developing an app for RTL language and want to change the position of arrow to the left of Spinner ! Is there anyway to do this without creating a custom spinner ?</p>
I'm developing an app for RTL language and want to change the position of arrow to the left of Spinner ! Is there anyway to do this without creating a custom spinner ?
android|android-spinner|right-to-left
16
2015-02-25T09:10:21.713Z
2,015
2
9
2
10,029
7
167
26
3
0
false
false
true
false
true
false
medium
28,715,039
Error: This class should provide a default constructor (a public constructor with no arguments) (com.example.app.Dblogic) [Instantiatable]
<p>I am currently using Android studio 1.1.0.</p> <p>My project builds successfully. however, when i try to create signed APK, I see the following message: Error:Error: This class should provide a default constructor (a public constructor with no arguments) (com.example.app.Dblogic) [Instantiatable]</p> <p>I have see...
I am currently using Android studio 1.1.0. My project builds successfully. however, when i try to create signed APK, I see the following message: Error:Error: This class should provide a default constructor (a public constructor with no arguments) (com.example.app.Dblogic) [Instantiatable] I have seen many folks sugges...
java|android|sqlite|constructor
0
2015-02-25T09:10:23.017Z
2,015
2
9
2
1,336
1
638
138
4
1
true
false
false
false
false
false
zero
28,715,063
IllegalStateException on fragment replace with animation
<p>I'm using 3 fragments in a page, and when I click one of them, the other two replaces with another two. I guess it's not a good practice to use fragments like buttons but it was working for me. I use setCustomAnimations method to animate changes. My problem occurs when I click the button second time before the first...
I'm using 3 fragments in a page, and when I click one of them, the other two replaces with another two. I guess it's not a good practice to use fragments like buttons but it was working for me. I use setCustomAnimations method to animate changes. My problem occurs when I click the button second time before the first an...
android|android-fragments|fragmenttransaction
1
2015-02-25T09:12:10.550Z
2,015
2
9
2
777
1
516
56
3
3
true
false
false
false
false
false
low
28,715,091
Programatically close PreferenceScreen and its PreferenceActivity
<p>Here is the case: </p> <ol> <li>From my <code>MainActivity</code> I open the <code>PreferenceActivity</code> of my app;</li> <li><p>In <code>PreferenceActivity</code> I have two <code>PreferenceScreens</code> and also a <code>MenuItem</code>with an icon to start another <code>Activity</code> for result. If I enter...
Here is the case: From my MainActivity I open the PreferenceActivity of my app; In PreferenceActivity I have two PreferenceScreens and also a MenuItem with an icon to start another Activity for result. If I enter in any of the PreferenceScreens the icon is still visible so I also can start the new Activity from the cur...
android|preferenceactivity
0
2015-02-25T09:13:34.513Z
2,015
2
9
2
1,833
2
1,047
65
2
0
false
false
false
false
false
false
zero
28,715,120
Which is the best framework can be used for developing native android apps?
<p>Lets say we are building a online shopping app like amazon,flip-kart,etc .In this case implementing a framework while building app would be very good practice. I want to know famous frameworks developers uses nowadays to build such kind app. Lets assume back-end engine is developed by restful service.</p> <p>Please ...
Lets say we are building a online shopping app like amazon,flip-kart,etc .In this case implementing a framework while building app would be very good practice. I want to know famous frameworks developers uses nowadays to build such kind app. Lets assume back-end engine is developed by restful service. Please share your...
java|android|spring
-2
2015-02-25T09:14:55.220Z
2,015
2
9
2
399
1
365
75
3
0
false
false
false
false
false
true
negative
28,715,144
I can not send MMS in android
<p>I am developing the application, but I can not send MMS messages. I studied sample code. Does not solve my problem wants me to choose another application. I want to send MMS from my own application, but I can not. I would appreciate if you can help</p> <pre><code> Intent smsIntent = new Intent(android.content.Inten...
I am developing the application, but I can not send MMS messages. I studied sample code. Does not solve my problem wants me to choose another application. I want to send MMS from my own application, but I can not. I would appreciate if you can help [CODE] I do not call this code. It wants me to choose another applicati...
android|sms|sendmessage|mms|multimedia
1
2015-02-25T09:15:58.267Z
2,015
2
9
2
310
1
323
29
5
1
true
false
false
false
false
false
low
28,715,212
What is the best way to store string? SharedPreferences Set Collection or Files?
<p>I have to store some data (string) in my Android app and I'm a dilemma. What is better solution ? Use Set Collection and keep it at <code>SharedPreferences</code> or I should save data to <code>File</code> and when I need it I have to read data from file and put it for example on <code>ArrayList</code>.</p>
I have to store some data (string) in my Android app and I'm a dilemma. What is better solution ? Use Set Collection and keep it at SharedPreferences or I should save data to File and when I need it I have to read data from file and put it for example on ArrayList .
android|sharedpreferences
-1
2015-02-25T09:19:25.947Z
2,015
2
9
2
95
3
266
80
2
0
false
false
false
false
false
true
negative
28,715,238
Refresh ListView with custom adapter that extends BaseAdapter
<p>I'm using <code>ListView</code> which is populated by custom adapter that extends <code>BaseAdapter</code>. Data is fetched from external server with <code>AsyncTask</code> and onPostExecute method of <code>AsyncTask</code> calls a method on <code>ListActivity</code> that sets adapter to display data</p> <p><code>...
I'm using ListView which is populated by custom adapter that extends BaseAdapter . Data is fetched from external server with AsyncTask and onPostExecute method of AsyncTask calls a method on ListActivity that sets adapter to display data ListView also implements OnScrollListener to fetch data on scroll and add to botto...
android|android-listview|android-asynctask|baseadapter|onscrolllistener
1
2015-02-25T09:21:04.143Z
2,015
2
9
2
486
1
1,012
61
5
3
true
false
false
false
false
false
low
28,715,282
How to implement default searchview in action bar
<p>i am implementing searchview in actionbar but i am getting error, may i know where i am doing wrong. Please correct me</p> <pre><code> enter code here @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.overview_menu_with_search, menu); SearchManager searchManager ...
i am implementing searchview in actionbar but i am getting error, may i know where i am doing wrong. Please correct me [CODE] Here my error code.. [CODE]
java|android|android-actionbar
1
2015-02-25T09:23:10.127Z
2,015
2
9
2
35
0
153
49
3
2
true
true
false
false
false
false
low
28,715,320
setLayoutParams() returning null ptr
<p>I have an xml layout structure something like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:i...
I have an xml layout structure something like this: [CODE] I am trying to programatically increase the marginRight of the linear layout. In my Java code i have something like this: [CODE] I get an null ptr exception on the line ll.setLayoutParams(lp);
android|android-linearlayout
-1
2015-02-25T09:25:08.143Z
2,015
2
9
2
70
1
251
36
2
2
true
false
false
false
false
true
negative
28,715,326
Real time data update
<p>My app uses google map to show user's location in real time. Therefore I would like it to be updated with every data change on my Parse server.</p> <p>I've looked all over the net and as I see it I have 3 options:</p> <ol> <li><p>using syncAdapter - the problem is that everywhere it is written that it does not mea...
My app uses google map to show user's location in real time. Therefore I would like it to be updated with every data change on my Parse server. I've looked all over the net and as I see it I have 3 options: using syncAdapter - the problem is that everywhere it is written that it does not meant for real time data transf...
android|google-maps|android-asynctask|parse-platform|real-time
0
2015-02-25T09:25:21.297Z
2,015
2
9
2
1,144
1
698
21
5
0
false
false
false
false
false
false
zero
28,715,394
Best settings for efficient eclipse
<p>What are the best settings to ensure that eclipse is as fast and efficient as possible? I understand that eclipse requires a lot of memory and with the following it still is not that efficient</p> <pre><code>--launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requi...
What are the best settings to ensure that eclipse is as fast and efficient as possible? I understand that eclipse requires a lot of memory and with the following it still is not that efficient [CODE]
java|android|eclipse
1
2015-02-25T09:29:33.817Z
2,015
2
9
2
204
1
199
35
3
1
true
false
false
false
false
false
low
28,715,398
Android - Using a variable from another class?
<p>I'm making an Android application wherein a student logs in with his registration ID then can access services like view his grades, class schedule, etc. without entering his registration ID twice.</p> <p>My question here is, how can I get the registration ID he first entered during login and use it to access other ...
I'm making an Android application wherein a student logs in with his registration ID then can access services like view his grades, class schedule, etc. without entering his registration ID twice. My question here is, how can I get the registration ID he first entered during login and use it to access other activities ...
java|android
2
2015-02-25T09:29:50.083Z
2,015
2
9
2
882
5
902
46
2
4
true
false
false
false
false
false
low
28,715,415
How to load images from server into img folder in phonegap
<p>I have developed one game, it has more images so I am thinking load images from server for every game level complete in my phonegap game. I need to download the images from server to this location</p> <p><code>file:///android_asset/www/img</code> in phonegap game. </p> <p>how can I achieve this?</p> <p>I have go...
I have developed one game, it has more images so I am thinking load images from server for every game level complete in my phonegap game. I need to download the images from server to this location file:///android_asset/www/img in phonegap game. how can I achieve this? I have gone through the tutorial Code for displayin...
javascript|android|jquery|cordova|cordova-plugins
1
2015-02-25T09:30:34.367Z
2,015
2
9
2
1,094
1
946
58
5
1
true
false
false
false
false
false
low
28,715,457
RecyclerView Showing weird behavior on expanding CardView Android
<pre><code>&lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:p...
[CODE] this is my layout for card view and below is the code for RecyclerView Adapter package com.example.user_2.tcc_app.QuestionAnswer; [CODE] } I have 10 Items in the recyclerview. I want to show the textview with id textAnswer when textQuestion is clicked and every thing is working fine till now but when i scroll do...
android|android-recyclerview
0
2015-02-25T09:32:50.077Z
2,015
2
9
2
1,612
1
624
65
2
2
true
false
false
false
false
false
zero
28,715,516
ImageView visible in ListView on wrong position when scrolling fast, using AQuery
<p>I got the following getView in listView's adapter:</p> <pre><code> @Override public View getView(int position, View convertView, ViewGroup viewGroup) { View view = convertView; if (view == null) { view = LayoutInflater.from(context).inflate(R.layout.item_message, null); } final Message m...
I got the following getView in listView's adapter: [CODE] The method is actually a longer but this part contains everything related to that ImageView. So, as the title states, when scrolling really fast the ImageView, with "R.id.sent_photo", is visible for a position which doesn't have a photo and not for a fraction of...
android|android-listview
0
2015-02-25T09:35:45.140Z
2,015
2
9
2
192
3
406
81
2
1
true
false
false
false
false
false
zero
28,715,526
Android: Getting Application Runtime Metrics
<p>I have a Application which is hitting many Services through Asynctask. I want to calculate the amount of Memory + Bandwidth + Excecution Time based while sending the request and while parsing the response on Runtime in the device. </p> <p>As far i could find few commands like <strong>dumpsys meminfo, top</strong> a...
I have a Application which is hitting many Services through Asynctask. I want to calculate the amount of Memory + Bandwidth + Excecution Time based while sending the request and while parsing the response on Runtime in the device. As far i could find few commands like dumpsys meminfo, top and few others, but in that wh...
android|performance-testing
-2
2015-02-25T09:36:10.263Z
2,015
2
9
2
70
1
417
44
2
0
false
false
false
false
false
true
negative
28,715,546
OnCreateView not called in a dialogfragment from a fragment
<p>I have a fragment that executes or display a dialog fragment once a button is clicked. This dialog fragment displays a table generated by code, however when I try to click the button on this is displayed <img src="https://i.stack.imgur.com/h0IPv.png" alt="enter image description here"> </p> <p>And when I trace it ...
I have a fragment that executes or display a dialog fragment once a button is clicked. This dialog fragment displays a table generated by code, however when I try to click the button on this is displayed And when I trace it in the LogCat the dialog fragments onCreateView is not called. Can somebody help or explain this...
android|android-fragments|android-dialogfragment
2
2015-02-25T09:36:44.620Z
2,015
2
9
2
3,780
3
604
59
3
3
true
false
true
false
false
false
low
28,715,572
want to search name from database instead of last field in database
<p><strong>DBhelper Class</strong></p> <pre><code> public class DBHelper extends SQLiteOpenHelper{ private static final String DB_NAME_TWO = "Loan_TWO.db"; private static final int VERSION = 1; private SQLiteDatabase mDb; public DBHelper(Context context) { super(context, DB_NAME_TWO, null, VE...
DBhelper Class [CODE] SearchActivity class [CODE] Personal_Loan [CODE] I want to search name from database and filter the list according to name field which typed on edittext , the above code search the list by last field i.e Final Amount, but I want to search it by name not by Final Amount.
android
1
2015-02-25T09:38:04.737Z
2,015
2
9
2
73
4
292
67
1
3
true
false
false
false
false
false
low
28,715,580
Retrofit accessing multiple models in Json response
<p>I have some JSON below. Before I only had the <code>items</code> element in the JSON response and was using retrofit to access this with the following code. Which worked fine.</p> <p>But now I have added the recommendation section, I have created the recommendation model but how do I now access the data from the re...
I have some JSON below. Before I only had the items element in the JSON response and was using retrofit to access this with the following code. Which worked fine. But now I have added the recommendation section, I have created the recommendation model but how do I now access the data from the recommendation/items secti...
java|android|json|retrofit
0
2015-02-25T09:38:35.397Z
2,015
2
9
2
2,847
2
602
51
4
4
true
false
true
false
false
false
zero
28,715,583
403 Error on Google Task API
<p>I am trying to make a REST call to the Google Tasks API .But it alway return the following </p> <pre><code> { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. The API (Tasks API) is not enabled for your project. Please use the Go...
I am trying to make a REST call to the Google Tasks API .But it alway return the following [CODE] Here is my coding ,the scope is oauth2: https://www.googleapis.com/auth/tasks [CODE] Second Part,GoogleSync is a AsyncTask and call getTaskList() in the doInBackground [CODE] Here is my API console , com.kmconcept.googleta...
android|rest|google-tasks-api
0
2015-02-25T09:38:41.443Z
2,015
2
9
2
491
1
524
28
3
3
true
false
false
false
false
false
zero
28,715,636
Android provide/sync contacts from app
<p>I would like to save and sync contacts with the phone Contacts. The saved contacts from my app should appear under some syncaccount. If the app is uninstalled, then all these contacts should be removed.</p> <p>After reading the Android documentation, I have created a SyncAdapter and ContentProvider. The only thing ...
I would like to save and sync contacts with the phone Contacts. The saved contacts from my app should appear under some syncaccount. If the app is uninstalled, then all these contacts should be removed. After reading the Android documentation, I have created a SyncAdapter and ContentProvider. The only thing that these ...
android|android-contentprovider|android-syncadapter
1
2015-02-25T09:41:03.663Z
2,015
2
9
2
857
1
840
38
3
1
true
false
false
false
false
false
low
28,715,674
Android notification set to 1 hour
<p>I'm trying to display a push notification to remind the user to check something they choose (do dishes, go to work, etc). I'd like to set it to current time + 1 hour for starters.</p> <p>However I try the following code and it doesn't change anything (notification pops up immediately regardless of value I set)</p> ...
I'm trying to display a push notification to remind the user to check something they choose (do dishes, go to work, etc). I'd like to set it to current time + 1 hour for starters. However I try the following code and it doesn't change anything (notification pops up immediately regardless of value I set) [CODE] Here's t...
android|time|timer|notifications
0
2015-02-25T09:42:57.800Z
2,015
2
9
2
1,173
1
418
34
4
2
true
false
false
false
false
false
zero
28,715,687
Android Activity Life Cycle: OnRestart being called after OnDestroy
<p>I have come across an unusual problem. In my Android App, I log all the activity lifecycle events as a matter of routine. One of my activities should be finished when another one opens. However, occasionally I get bugs occurring because it has not closed. Upon investigation it seems that the activity is being destro...
I have come across an unusual problem. In my Android App, I log all the activity lifecycle events as a matter of routine. One of my activities should be finished when another one opens. However, occasionally I get bugs occurring because it has not closed. Upon investigation it seems that the activity is being destroyed...
android|android-activity|activity-lifecycle
0
2015-02-25T09:43:23.180Z
2,015
2
9
2
246
1
1,244
67
3
2
true
false
false
false
false
false
zero
28,715,737
Patching with Retrofit - ID property only
<p>I am making use of Retrofit in my app, it manages API calls well and supports GET and PATCH as I require.</p> <p>Given the following JSON:</p> <pre><code>"fruit_set": [ { "id": 2, "fruit": { "id": 1, "name": "Apple", "desc": "" }, "source"...
I am making use of Retrofit in my app, it manages API calls well and supports GET and PATCH as I require. Given the following JSON: [CODE] Ignoring names for a minute. I have setup a PoJo for both FruitSet and Fruit with the required getters/setters. FruitSet.Fruit is defined as List and is populated nicely with a GET ...
android|json|orm|retrofit
1
2015-02-25T09:46:09.467Z
2,015
2
9
2
227
1
701
41
4
2
true
false
false
false
false
false
low
28,715,744
Android: read html files from external folder and display in webview
<p>I want to display html files in webview. The html files are placed under this folder of my tab, "file manager/Device storage/Android/webpages. With this code I'm getting null pointer exception probably I am not passing the path correctly. And the second problem I am not getting how to load the webpage in webview.</...
I want to display html files in webview. The html files are placed under this folder of my tab, "file manager/Device storage/Android/webpages. With this code I'm getting null pointer exception probably I am not passing the path correctly. And the second problem I am not getting how to load the webpage in webview. [CODE...
android|html|file|webview
0
2015-02-25T09:46:37.853Z
2,015
2
9
2
1,305
1
321
68
4
1
true
false
false
false
false
false
zero
28,715,765
What is orderInCategory in ActionBar menu item & why it is use for..?
<p>Im working on action menu item and its over flow item this is my <code>main_menu.xml</code> </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"&gt; &lt;item android:id="@+id/menu_sea...
Im working on action menu item and its over flow item this is my main_menu.xml [CODE] I tried to construct a search item and a overflow item which you can see in the above code. I'm new to Action bar menu items so i tried to Google it and was able to make it work as I need. In this I have to know one more thing. 1. Wha...
android|android-actionbar|android-menu
58
2015-02-25T09:47:25.237Z
2,015
2
9
2
45,188
3
385
69
3
1
true
false
true
true
true
false
high
28,715,782
How do I write SQL queries in Android?
<p>Please let me know is this proper way of querying. I want to get all values of a row to edit the page. What changes should I make in the query below? All suggestions are welcome.</p> <pre><code>db = helper.getReadableDatabase(); Cursor cursor = db.query(SQLiteHelper.TABLE_NAME, new String[] {SQLiteHelper.U...
Please let me know is this proper way of querying. I want to get all values of a row to edit the page. What changes should I make in the query below? All suggestions are welcome. [CODE] I am getting value of null cursor. Is this due to incorrect query or something else? Cursor Manipulation Method: [CODE] LogCat: [CODE]
android|mysql
0
2015-02-25T09:48:08.870Z
2,015
2
9
2
611
3
320
38
2
3
true
false
false
false
false
false
zero
28,715,869
NullPointerException by called setAdapter in runnable in activity
<p>Note: This piece of code works on a fragment in my app.. Same adapter but has getActivity().getApplicationContext() instead of Activity.this.</p> <p>I'm trying to do the same thing in an activity but I keep getting a NPE on the setAdapter line. Assume the Arraylist item is populated by a different thread.</p> <pre...
Note: This piece of code works on a fragment in my app.. Same adapter but has getActivity().getApplicationContext() instead of Activity.this. I'm trying to do the same thing in an activity but I keep getting a NPE on the setAdapter line. Assume the Arraylist item is populated by a different thread. [CODE]
java|android
0
2015-02-25T09:52:49.177Z
2,015
2
9
2
128
3
306
65
2
1
true
false
false
false
false
false
zero
28,716,005
try ... catch is not catching IllegalArgumentException
<p>In an <a href="https://github.com/crazymaik/remoteyourcam-usb" rel="nofollow">open-source Camera App</a>, I have a crash at the following code</p> <pre><code>try { // crash happens in next line: PtpUsbConnection connection = new PtpUsbConnection(usbManager.openDevice(device), in, out, ...
In an open-source Camera App , I have a crash at the following code [CODE] The crash produces the following log [CODE] There is a reproducible sequence of events which causes the crash. Specifically: switching of the camera on the USB bus when the App (apparently) does not foresee the possibility. I was hoping to simpl...
java|android
2
2015-02-25T10:00:09.050Z
2,015
2
10
2
1,826
2
843
54
2
4
true
false
false
false
false
false
low
28,716,102
Access sqlite database from assets in phonegap
<p>i have a question about phonegap with sqlite database.I have prepopulated database in my assets folder "myDB.db" and my problem is i want to access database direct from assets folder into phonegap. I don't want to copy into sd card or don't use external database. Regards</p>
i have a question about phonegap with sqlite database.I have prepopulated database in my assets folder "myDB.db" and my problem is i want to access database direct from assets folder into phonegap. I don't want to copy into sd card or don't use external database. Regards
android|cordova|phonegap-plugins
2
2015-02-25T10:05:21.237Z
2,015
2
10
2
551
1
271
46
3
0
false
false
false
false
false
false
low
28,716,130
Android - Get object from AsyncTask result
<p>I want to create 10 Employee objects in an AsyncTask and return the result back to the MainActivity class to print it on a ListView with the 3 attributes of an Employee object.</p> <p>This is what i have so far, but it just crashes after running</p> <p>Menu class</p> <pre><code>public class Menu { public Emp...
I want to create 10 Employee objects in an AsyncTask and return the result back to the MainActivity class to print it on a ListView with the 3 attributes of an Employee object. This is what i have so far, but it just crashes after running Menu class [CODE] setEMPInfo class [CODE]
java|android|object
0
2015-02-25T10:06:41.527Z
2,015
2
10
2
1,337
5
280
42
3
2
true
false
false
false
false
false
zero
28,716,172
Quick Return Pattern for FAB and ListView
<p>I have a simple ListView inside a ViewPager and a Floating Action Bar at the bottom right corner of the screen.</p> <p>I want to implement the Quick Return pattern to it so that when I scroll the ListView the FAB goes down the screen and comes up on opposite scroll.</p> <p>Thanks in advance.</p> <p>EDIT:</p> <pr...
I have a simple ListView inside a ViewPager and a Floating Action Bar at the bottom right corner of the screen. I want to implement the Quick Return pattern to it so that when I scroll the ListView the FAB goes down the screen and comes up on opposite scroll. Thanks in advance. EDIT: [CODE] Then I am using quickReturnA...
android|android-layout|android-listview|android-5.0-lollipop
1
2015-02-25T10:08:28.537Z
2,015
2
10
2
857
2
374
41
4
1
true
false
false
false
false
false
low
28,716,208
android toolbar why do i get options menu instead of icons
<p>so i made my own toolbar with a menu and i am infalting it:</p> <pre><code>toolbarBottom.inflateMenu (R.menu.user_interaction); </code></pre> <p>and this is the menu</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:app="http://schemas.android.com/apk/res/android"&gt; &lt;item app:tit...
so i made my own toolbar with a menu and i am infalting it: [CODE] and this is the menu [CODE] what i get now is the 3 android option dots on the right side of my bar. If i press it my 3 menu´s appear. What i want is the 3 menu items to appear on the bar itself witht he 3 icon drawables. Where is my mistake? Did i forg...
android
0
2015-02-25T10:09:44.273Z
2,015
2
10
2
104
2
336
58
1
2
true
false
false
false
false
false
zero
28,716,218
Is sharedPreference cleared when an android app is reinstalled?
<p>When we run an app during development on a device is sharedPreference cleared when app is reinstalled ? </p>
When we run an app during development on a device is sharedPreference cleared when app is reinstalled ?
android|sqlite|sharedpreferences|android-sqlite|android-install-apk
4
2015-02-25T10:10:28.350Z
2,015
2
10
2
1,414
3
103
63
5
0
false
false
false
false
false
false
low
28,716,353
Javascript Canvas upscale very low FPS
<p>I have made a very simple game using canvas, i used 480x320 as my resolution, then i used CSS to scale things up to fit all sizes</p> <pre><code>canvas{height: 100% width:100%} html{height: 100% width:100%} </code></pre> <p>I am using the Intel XDK for development</p> <p>The game is very smooth on mobile phones a...
I have made a very simple game using canvas, i used 480x320 as my resolution, then i used CSS to scale things up to fit all sizes [CODE] I am using the Intel XDK for development The game is very smooth on mobile phones and tablets up to HD resolution, but it goes very slow in FullHD phones and tablets, Is there any way...
javascript|android|css|html|canvas
0
2015-02-25T10:16:23.610Z
2,015
2
10
2
284
0
459
38
5
1
true
true
false
false
false
false
zero
28,716,356
Android Media Recording fail on Nexus 5 (Lollipop)
<p>I have a working peace of code. It was written and tested on Samsung Android Camera EK-GC110 (Android 4.1.2) and it works great. </p> <p>Code initiates new Media Recorder instance and prepares it for video recording:</p> <ul> <li>5000 kbps bitrate</li> <li>20 fps</li> <li>time limited</li> <li>no audio</li> </ul> ...
I have a working peace of code. It was written and tested on Samsung Android Camera EK-GC110 (Android 4.1.2) and it works great. Code initiates new Media Recorder instance and prepares it for video recording: 5000 kbps bitrate 20 fps time limited no audio When I run the app on my Nexus 5 (Android 5.0.1) phone I get: st...
android|android-5.0-lollipop|mediarecorder|android-mediarecorder|video-recording
1
2015-02-25T10:16:28.983Z
2,015
2
10
2
719
2
394
50
5
2
true
false
false
false
false
false
low
28,716,755
More than one consumable items in Amazon in app purchase for android
<p>I'm implementing amazon in app purchase in my android application. I've downloaded their sdk and get sample project for in app purchase from that sdk. I've created two items to purchase in my amazon account and got json file from there. Now json file has two items in it. its json is like that json(I've removed some...
I'm implementing amazon in app purchase in my android application. I've downloaded their sdk and get sample project for in app purchase from that sdk. I've created two items to purchase in my amazon account and got json file from there. Now json file has two items in it. its json is like that json(I've removed some rea...
android|json|amazon-web-services|in-app-purchase
0
2015-02-25T10:35:05.897Z
2,015
2
10
2
79
1
643
68
4
1
true
false
false
false
false
false
zero
28,716,793
Android: Show AlertDialog as soon as internet is disconnected
<p>I have an application where internet connectivity is must. So, what I want, is that whenever user gets disconnected from Internet (Wifi or Mobile), the <code>Activity</code> should be able to detect the network state and should display an <code>AlertDialog</code> prompting user to check its connection. I have tried ...
I have an application where internet connectivity is must. So, what I want, is that whenever user gets disconnected from Internet (Wifi or Mobile), the Activity should be able to detect the network state and should display an AlertDialog prompting user to check its connection. I have tried implementing this using broad...
android|broadcastreceiver|android-alertdialog
0
2015-02-25T10:38:00.463Z
2,015
2
10
2
1,199
1
2,778
61
3
4
true
false
false
false
false
false
zero
28,716,800
RecyclerView as item of RecyclerView - performance wise
<p>I have a <code>RecyclerView</code> in my application and one of the row has to contain contact information like website addresses, phone numbers, etc. </p> <p>It is possible that user has many phone numbers or even none. The layout for presenting phone number would be the same as for presenting website addresses.</...
I have a RecyclerView in my application and one of the row has to contain contact information like website addresses, phone numbers, etc. It is possible that user has many phone numbers or even none. The layout for presenting phone number would be the same as for presenting website addresses. I am not sure what would b...
android|performance|listview|android-recyclerview
1
2015-02-25T10:38:29.580Z
2,015
2
10
2
175
0
685
55
4
0
false
true
false
false
false
false
low
28,716,833
How to add Note4 to compatible-screens in manifest
<p>I need to make the app. be displayed on Play Store for small, normal and large screens only. So I'm using the compatible-screens and supports-screens elements.</p> <p>Here's the manifest</p> <pre><code>&lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="tru...
I need to make the app. be displayed on Play Store for small, normal and large screens only. So I'm using the compatible-screens and supports-screens elements. Here's the manifest [CODE] Note4 is 2560x1440,515 ppi, 5.7 inch screen so I added [CODE] and it is still unsupported on Play Store
android|android-manifest
1
2015-02-25T10:40:27.997Z
2,015
2
10
2
698
1
290
50
2
2
true
false
false
false
false
false
low
28,716,882
How to detect button click in WebView Android?
<p>I was trying to detect the html button click of webview in java code.</p> <p>My HTML Code:</p> <pre><code>&lt;button id="fc_complete_order_button" class="fc_button" type="button" value="Complete Your Purchase" onclick="FC.checkout.validateAndSubmit()"&gt;Complete Your Purchase&lt;/button&gt; &lt;div id="fc_complet...
I was trying to detect the html button click of webview in java code. My HTML Code: [CODE] My Java Code is: [CODE] Can Anybody suggest where am doing wrong?
javascript|android|webview
2
2015-02-25T10:42:39.460Z
2,015
2
10
2
1,870
1
156
46
3
2
true
false
false
false
false
false
low
28,716,885
AdMob error when loading interstitial in emulator
<p>When I try to load an interstitial, I get the following error:</p> <pre><code>02-25 10:24:58.198 2310-2310/template.maintemplate E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: template.maintemplate, PID: 2310 java.lang.RuntimeException: Unable to start activity ComponentInfo{template.maintemplate/template.main...
When I try to load an interstitial, I get the following error: [CODE] The code I used to request an interstitial is directly beneath the code I use to request a banner (which works): [CODE] Line 97 is the last line in the example above. I've tried using interstitial.setAdUnitId(AdRequest.DEVICE_ID_EMULATOR) instead of ...
java|android|admob
1
2015-02-25T10:42:46.593Z
2,015
2
10
2
2,511
2
403
49
3
2
true
false
false
false
false
false
low