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,791,206
How to just download the portion of rss
<p>How to just download the portion of rss?</p> <p>I need some approach to achieve this. I can understand the "page last modified" to prevent the downloading, but I want to know whether I can just download the new items in an RSS feed or not ?</p>
How to just download the portion of rss? I need some approach to achieve this. I can understand the "page last modified" to prevent the downloading, but I want to know whether I can just download the new items in an RSS feed or not ?
java|android|http|rss
0
2015-03-01T07:31:47.677Z
2,015
3
7
6
201
2
233
39
4
0
false
false
false
false
false
false
zero
28,791,216
Update Navigation Drawer content Value get Activity is not recognized
<p>I have Navigation drawer using recyclerview with some static text. I wish to update level value at end of the static text from SharedPreferences which holds a integer value. I'm using the recyclerview for my navigaton Drawer.</p> <p><strong>NavigationAdapter.java</strong></p> <pre><code>@Override public void o...
I have Navigation drawer using recyclerview with some static text. I wish to update level value at end of the static text from SharedPreferences which holds a integer value. I'm using the recyclerview for my navigaton Drawer. NavigationAdapter.java [CODE] SharedPreferences is not working and giving me error at "getActi...
android|android-fragments|sharedpreferences|navigation-drawer|android-recyclerview
0
2015-03-01T07:33:14.457Z
2,015
3
7
6
354
2
426
69
5
1
true
false
false
false
false
false
zero
28,791,247
image is not displaying in imageview of new pop window in android
<p>i am very new. trying to make a project which will show image and text in listview. up to this, it is ok. but when i click the image new window appeared without image. Please help me.<br> code is below:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code...
i am very new. trying to make a project which will show image and text in listview. up to this, it is ok. but when i click the image new window appeared without image. Please help me. code is below: [CODE]
android
0
2015-03-01T07:36:49.520Z
2,015
3
7
6
79
0
205
65
1
1
true
true
false
false
false
false
zero
28,791,248
Launch Google Play Games App using WEBINTENT plugin
<p>I want to open Google play games app on my mobile from my android phonegap build application using WEBINTENT plugin.</p> <pre><code>window.plugins.webintent.startActivity({ action: window.plugins.webintent.ACTION_VIEW, url: 'facebook://' }, function() {alert('success')}, function(errorMsg) {alert('Failed to st...
I want to open Google play games app on my mobile from my android phonegap build application using WEBINTENT plugin. [CODE] This code works well to open facebook. How to use it to open play games application.? Thanks.
android|facebook|cordova|phonegap-build|webintents
0
2015-03-01T07:36:52.197Z
2,015
3
7
6
637
1
217
51
5
1
true
false
false
false
false
false
zero
28,791,290
implement android google map in fragment
<p>I had implement <a href="http://about-android.blogspot.in/2010/03/sample-google-map-driving-direction.html" rel="nofollow">this</a> code for my app and it will be shown in fragment . I had change the all methods that use FragmentActivity to fragment . but when I run it and go to map fragment its give this error : ...
I had implement this code for my app and it will be shown in fragment . I had change the all methods that use FragmentActivity to fragment . but when I run it and go to map fragment its give this error : log file : [CODE] and my fragment code : [CODE] and another function that's i don't handle it's and like that refren...
java|android|google-maps|android-fragments|google-maps-android-api-2
-1
2015-03-01T07:43:09.870Z
2,015
3
7
6
1,209
1
382
40
5
5
true
false
false
false
false
true
negative
28,791,314
Not able to write acclerometer data onto a text file that I created - Android
<p>I have a simple app the I created. I want to write the accelerometer data onto a text file that I create. I've used the following code snippet, but when I check my file, I am not able to get the values writen inside it. I'm not sure what I'm doing wrong. Thank you in advance</p> <p>P.S I am new to Android</p> <pre...
I have a simple app the I created. I want to write the accelerometer data onto a text file that I create. I've used the following code snippet, but when I check my file, I am not able to get the values writen inside it. I'm not sure what I'm doing wrong. Thank you in advance P.S I am new to Android [CODE]
android|file-io
0
2015-03-01T07:49:20.147Z
2,015
3
7
6
293
1
306
77
2
1
true
false
false
false
false
false
zero
28,791,347
android MediaPlayer cannot play mp3 with 16kbps bit rate on Kitkat
<p>i am creating an application that in it i need to play some sounds with low bit rates such as <code>16kbps</code>.</p> <p>I use <code>MediaPlayer</code> with below code. but it cannot play and i get Error(100, 0) in <code>logcat</code>. when i replace audio with 48kbps <code>OGG</code> file or 128kbps <code>MP3</co...
i am creating an application that in it i need to play some sounds with low bit rates such as 16kbps . I use MediaPlayer with below code. but it cannot play and i get Error(100, 0) in logcat . when i replace audio with 48kbps OGG file or 128kbps MP3 file all thing is ok. How i can play audio with 16kbps bit rate? I hav...
android|audio|android-mediaplayer|android-4.4-kitkat|bitrate
0
2015-03-01T07:54:09.570Z
2,015
3
7
6
531
0
356
66
5
1
true
true
false
false
false
false
zero
28,791,363
how to get android studio project libs for eclips?
<p>i import a project into android studio but i want work with android studio and want work with eclipse . i don't have any problem with import into eclipse but i don't know how load libs into eclipse from Android Studio .</p> <p>in Gradle : </p> <pre><code>dependencies { compile 'com.android.support:appcompat-v7:21....
i import a project into android studio but i want work with android studio and want work with eclipse . i don't have any problem with import into eclipse but i don't know how load libs into eclipse from Android Studio . in Gradle : [CODE] how get this libs from android studio ?
java|android|eclipse
0
2015-03-01T07:57:09.890Z
2,015
3
7
6
102
2
278
50
3
1
true
false
false
false
false
false
zero
28,791,390
Setting a string value in a Checkbox using OnCheckedChangedListener returns a null value in Android
<p>I have a <code>Checkbox</code> that sets a <code>String</code>'s value when the <code>Checkbox</code> is checked or not checked. But my <code>String</code> is returning a null value. I have declared the string inside the <code>Public class</code> of the <code>Activity</code>. Why is it returning null?</p> <p>I want...
I have a Checkbox that sets a String 's value when the Checkbox is checked or not checked. But my String is returning a null value. I have declared the string inside the Public class of the Activity . Why is it returning null? I want the strings to be inserted to a database FYI. [CODE]
java|android|string|checkbox
0
2015-03-01T08:03:00.580Z
2,015
3
8
6
1,154
2
286
99
4
1
true
false
false
false
false
false
zero
28,791,391
"Application is not responding. Would you like to close it?" getting an error while running service in Android
<p>I have an Android application that has a button that starts the service.</p> <p>Here is the service:</p> <pre><code>public class SimpleService extends Service { @Override public int onStartCommand(Intent intent,int flags, int startId) { Toast.makeText(this,"Service Started",Toast.LENGTH_SHORT...
I have an Android application that has a button that starts the service. Here is the service: [CODE] When I clicked on the button, the service starts successfully, but after some while, in the emulator, I got an error like Application is not responding. Would you like to close it? Am I doing anything wrong in service i...
android|android-service
0
2015-03-01T08:03:10.690Z
2,015
3
8
6
1,216
2
523
110
2
1
true
false
false
false
false
false
zero
28,791,405
How to update ProgressBar with respect to downloaded data while downloading text data from web using Asynctask in android
<p>I want to show progressbar wrt to downloaded data from the web. Whether I have to create dynamically or have to reference by Id by creating it in xml.I am a little bit confused. Here is my code. Could you please tell me how?</p> <pre><code>package com.example.telugumovies; import java.io.BufferedReader; import jav...
I want to show progressbar wrt to downloaded data from the web. Whether I have to create dynamically or have to reference by Id by creating it in xml.I am a little bit confused. Here is my code. Could you please tell me how? [CODE] }
android|android-asynctask|android-progressbar
0
2015-03-01T08:06:16.017Z
2,015
3
8
6
129
2
233
121
3
1
true
false
false
false
false
false
zero
28,791,442
How to keep gridview (or ListView) item selected and not lose the selection because of recycling
<p>I have constantly run into the problem of having my selected items in a listView (currently a gridview) stay selected. I am using the BaseAdapter. I have a general idea of how the holder pattern works but I'm not too sure on how I should save the state of each specific view. That is the state of whether it is clicke...
I have constantly run into the problem of having my selected items in a listView (currently a gridview) stay selected. I am using the BaseAdapter. I have a general idea of how the holder pattern works but I'm not too sure on how I should save the state of each specific view. That is the state of whether it is clicked o...
android|listview|gridview
-1
2015-03-01T08:12:13.353Z
2,015
3
8
6
329
1
437
96
3
0
false
false
false
false
false
true
negative
28,791,461
IPackageStatsObserver cannot be resolved to a type (Android)
<p>I want to calculate the sum of all the cache memory utilizing the device. For this I am getting a compiled time error:</p> <pre><code>IPackageStatsObserver cannot be resolved to a type </code></pre> <p>I have mentioned this error 2 times in the code:</p> <pre><code>public long totalCacheSize(){ totalSize=0; ...
I want to calculate the sum of all the cache memory utilizing the device. For this I am getting a compiled time error: [CODE] I have mentioned this error 2 times in the code: [CODE] IPackageStatsObserver is not available in android SDK. Perhaps loading the Stub class using Class.forName() , finding the default construc...
java|android|sdk
6
2015-03-01T08:15:29.147Z
2,015
3
8
6
8,131
4
440
60
3
2
true
false
true
false
false
false
medium
28,791,529
Find Parse username using client Key or App ID for Android
<blockquote> <p>I forgot email address registered with parse account what I have is the Application ID and client Key. Is there any way to find out the username I used register?</p> </blockquote>
I forgot email address registered with parse account what I have is the Application ID and client Key. Is there any way to find out the username I used register?
android|parse-platform
1
2015-03-01T08:26:51.870Z
2,015
3
8
6
1,037
1
161
58
2
0
false
false
false
false
false
false
low
28,791,552
how can i get values from dynamically created radion groups in my Android activity
<p>I am creating an attendance list of student at run time from database and wants to create dynamically radio buttons in groups against each student and then take their attendance values on a submit button: my code looks like</p> <pre><code> Ll = new LinearLayout(this); rg = new RadioGroup(this); //cre...
I am creating an attendance list of student at run time from database and wants to create dynamically radio buttons in groups against each student and then take their attendance values on a submit button: my code looks like [CODE] how can i get values from dynamically created radion groups in my Android activity
android|radio-button
0
2015-03-01T08:29:32.663Z
2,015
3
8
6
746
1
313
82
2
1
true
false
false
false
false
false
zero
28,791,559
Unable to instantiate fragment com.google.android.gms.MapFragment
<p>I know this question is asked so many times. but not working in my case tried so many solution. so help please</p> <p>my mainActivity extends Activity within onCreate map generates this way.</p> <pre><code>private void initilizeMap() { if (googleMap == null) { googleMap = ((MapFragment) getFragmentMana...
I know this question is asked so many times. but not working in my case tried so many solution. so help please my mainActivity extends Activity within onCreate map generates this way. [CODE] and xml view is [CODE] support: [CODE] error em getting: [CODE] well. have imported google play lib from extras folder. why the c...
android|google-maps|android-fragments|fragment
1
2015-03-01T08:31:48.517Z
2,015
3
8
6
3,482
3
358
65
4
4
true
false
true
false
false
false
low
28,791,627
Phonegap app communicate with php server without using ip address
<p>Question: How can I get a phonegap application (using ajax) to communicate with a php server inside a local network without knowing the server's IP address? </p> <p>I tried using the hostname as the URL (<a href="http://hostname/" rel="nofollow">http://hostname/</a>) and it works on my computer's browser but it do...
Question: How can I get a phonegap application (using ajax) to communicate with a php server inside a local network without knowing the server's IP address? I tried using the hostname as the URL ( http://hostname/ ) and it works on my computer's browser but it doesn't work on android or in my application. Right now, th...
javascript|php|android|cordova|networking
0
2015-03-01T08:41:48.747Z
2,015
3
8
6
560
1
1,149
65
5
2
true
false
false
false
false
false
zero
28,791,654
How to update sdk in android
<p>HI I am doing project in andoroid using eclipse, and I am completly new to this stuffs just a day before I updated my AVD manger through this link <a href="http://dl-ssl.google.com/android/eclipse/" rel="nofollow">http://dl-ssl.google.com/android/eclipse/</a> but now I am not able to open my SDK. It's giving an erro...
HI I am doing project in andoroid using eclipse, and I am completly new to this stuffs just a day before I updated my AVD manger through this link http://dl-ssl.google.com/android/eclipse/ but now I am not able to open my SDK. It's giving an error message like this [2015-03-01 00:25:38 - DDMS] DDMS files not found: C:\...
android|eclipse
0
2015-03-01T08:45:59.530Z
2,015
3
8
6
49
1
450
28
2
0
false
false
false
false
false
false
zero
28,791,708
Action Bar Color not changing no matter what?
<p>I have tried every thing on stackoverflow to change my action bar color please help </p> <pre><code>&lt;!-- Base application theme. --&gt; &lt;style name="AppTheme" parent="Theme.AppCompat.Light"&gt; &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt; &lt;/style&gt; &lt;style name="MyA...
I have tried every thing on stackoverflow to change my action bar color please help [CODE]
android
1
2015-03-01T08:54:26.123Z
2,015
3
8
6
39
2
90
45
1
1
true
false
false
false
false
false
low
28,791,735
Read text from selected item when there are multiple items in a listview
<p>I have customized an adapter with a list view with four items in each list item:</p> <pre><code>TextView id = tid TextView id = tname TextView id = tgender TextView id = tage </code></pre> <p>Now on click, I want to get text from the textview of the item with the id 'tid'.</p> <pre><code>public class TeacherAdapt...
I have customized an adapter with a list view with four items in each list item: [CODE] Now on click, I want to get text from the textview of the item with the id 'tid'. [CODE] I have four items in a multiple listview: name, mobileno, department, id. All I want to do is getId from the list item when it is clicked.
java|android|android-layout|android-intent|android-activity
0
2015-03-01T08:59:01.647Z
2,015
3
8
6
73
5
315
72
5
2
true
false
false
false
false
false
zero
28,791,740
How can I logout from Facebook in my custom Android app?
<p>I am building an Android application where I am using Facebook login, and after Facebook login, I get access_token and session that are stored in shared preferences in private mode.</p> <p>I am using the Facebook login code below in an activity and I want the user to logout from Facebook from another fragment. How ...
I am building an Android application where I am using Facebook login, and after Facebook login, I get access_token and session that are stored in shared preferences in private mode. I am using the Facebook login code below in an activity and I want the user to logout from Facebook from another fragment. How do I code o...
android|facebook|logout
0
2015-03-01T08:59:42.510Z
2,015
3
8
6
494
3
434
56
3
1
true
false
false
false
false
false
zero
28,791,752
How to migrate to Android Studio?
<p>I have been trying to create apps and games for android.</p> <p>I started by learning the basics using eclipse.</p> <p>But instead downloading the bundled android studio package i downloaded the stand alone sdk tools from this link <a href="http://developer.android.com/sdk/index.html" rel="nofollow">http://develop...
I have been trying to create apps and games for android. I started by learning the basics using eclipse. But instead downloading the bundled android studio package i downloaded the stand alone sdk tools from this link http://developer.android.com/sdk/index.html Now many are saying that i should migrate to android studi...
android|eclipse
0
2015-03-01T09:00:43.413Z
2,015
3
9
6
68
1
534
33
2
0
false
false
false
false
false
false
zero
28,791,758
menu_main.xml preview does not synchronize ( Android Studio 1.1.0 )
<p>menu_main.xml preview does not synchronize.<br/> (Android Studio 1.1.0, and I have java 8.) <br/><br/> I synchronized the project, cleared it, and refreshed the preview.. but I still can't see any changes on the preview. <br/><br/> Other layouts previews are working fine, the problem is only with menu_main.xml previ...
menu_main.xml preview does not synchronize. (Android Studio 1.1.0, and I have java 8.) I synchronized the project, cleared it, and refreshed the preview.. but I still can't see any changes on the preview. Other layouts previews are working fine, the problem is only with menu_main.xml preview. UPDATE Everything is fine ...
java|android|android-layout|android-studio
1
2015-03-01T09:01:28.420Z
2,015
3
9
6
726
2
347
67
4
0
false
false
false
false
false
false
low
28,791,762
Where does doFetch reside?
<p>I'm going through the source code of OwnCloud Android Client and don't understand where doFetch gets called from. I tried using the Github search but I couldn't find it's definition. I tried checked a few of the deps as well but that failed. Here's where it gets called</p> <p><a href="https://github.com/irccloud/an...
I'm going through the source code of OwnCloud Android Client and don't understand where doFetch gets called from. I tried using the Github search but I couldn't find it's definition. I tried checked a few of the deps as well but that failed. Here's where it gets called https://github.com/irccloud/android/blob/082f45918...
android
0
2015-03-01T09:01:51.870Z
2,015
3
9
6
32
2
473
26
1
0
false
false
false
false
false
false
zero
28,791,775
How to change existing TextView style in action
<p>I have some intent with set of TextViews and a Button. If user clicks the button and there is some error I want to change look of one TextView. E.g. change the border to red and make font bold. I wrote a style for it but I have not found method setStyle on the TextView. After some self study I realized that <a href=...
I have some intent with set of TextViews and a Button. If user clicks the button and there is some error I want to change look of one TextView. E.g. change the border to red and make font bold. I wrote a style for it but I have not found method setStyle on the TextView. After some self study I realized that Android doe...
android|android-styles
1
2015-03-01T09:03:05.873Z
2,015
3
9
6
657
3
660
47
2
0
false
false
false
false
false
false
low
28,791,803
How to monitor app resource usage on Android
<p>I am building an android application using Cordova and Ionic Framework. How can I monitor my app's resource usage? Like the CPU, ram and other resources.</p>
I am building an android application using Cordova and Ionic Framework. How can I monitor my app's resource usage? Like the CPU, ram and other resources.
android|cordova
1
2015-03-01T09:05:47.137Z
2,015
3
9
6
1,856
1
153
44
2
0
false
false
false
false
false
false
low
28,791,817
Android Studio Gradle error "Multiple dex files define..."
<p>My Project was working fine, when I have added facebook sdk into my project I have an error like this, I have tried so many ways to fix this, but I didn't. What should I do?</p> <pre><code> Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. &gt; java.util.zip.ZipException: duplicate entry: b...
My Project was working fine, when I have added facebook sdk into my project I have an error like this, I have tried so many ways to fix this, but I didn't. What should I do? [CODE] My App gradle is below [CODE] And here is the facebook build.gradle [CODE]
android|android-studio|android-gradle-plugin|facebook-android-sdk
11
2015-03-01T09:08:19.263Z
2,015
3
9
6
13,936
5
255
58
4
3
true
false
true
true
true
false
medium
28,791,901
Sort files by date created before showing it in the app
<p>How do I sort files by date created before showing it in a listview within my own app?</p> <p>I used files.lastModified(), which I do not want to use, because renaming would jumble it up. Is there anyway I can instead sort it by date creation? I've also tried mapping file names to time and date, but that's too tedi...
How do I sort files by date created before showing it in a listview within my own app? I used files.lastModified(), which I do not want to use, because renaming would jumble it up. Is there anyway I can instead sort it by date creation? I've also tried mapping file names to time and date, but that's too tedious.
java|android
0
2015-03-01T09:19:05.860Z
2,015
3
9
6
91
1
313
55
2
0
false
false
false
false
false
false
zero
28,791,910
Setting layout by remote xml
<p>I was wondering if it was possible to set a view through a remote xml file. I had a look on the web and I found <a href="https://stackoverflow.com/questions/8846295/read-the-remote-xml-file-in-android">this post</a> here on stackoverflow. Reading the answers I got I can't do it. Why?</p>
I was wondering if it was possible to set a view through a remote xml file. I had a look on the web and I found this post here on stackoverflow. Reading the answers I got I can't do it. Why?
android|xml
1
2015-03-01T09:20:08.543Z
2,015
3
9
6
259
1
190
28
2
0
false
false
false
false
false
false
low
28,791,943
In the Dutch dates, the month has a period (".") after it
<p>my application support dutch dates , i have requested to remove to dot after the month in the date , how can i make sure that there is no dot after the month ?</p> <p>my code is :</p> <pre><code>Calendar time = Calendar.getInstance(); Locale local = new Locale("nl-NL"); String monthShortName = time.getDisplayName(...
my application support dutch dates , i have requested to remove to dot after the month in the date , how can i make sure that there is no dot after the month ? my code is : [CODE]
java|android
1
2015-03-01T09:24:43.713Z
2,015
3
9
6
472
1
179
57
2
1
true
false
false
false
false
false
low
28,791,991
viewPagerIndicator :Error:Artifact 'com.viewpagerindicator:library:2.4.1:library.aar' not found
<p>when I sync the gradle I have this error:</p> <p>Error:Artifact 'com.viewpagerindicator:library:2.4.1:library.aar' not found.</p> <p><strong>my gradle is :</strong></p> <pre><code>apply plugin: 'com.android.application' repositories { maven { url "http://dl.bintray.com/populov/maven" } mavenCentral() } ...
when I sync the gradle I have this error: Error:Artifact 'com.viewpagerindicator:library:2.4.1:library.aar' not found. my gradle is : [CODE] what do I have to do?!
android|maven|android-gradle-plugin|build.gradle
9
2015-03-01T09:30:36.600Z
2,015
3
9
6
2,818
2
163
95
4
1
true
false
true
false
false
false
medium
28,792,079
How to cast byte to enum?
<p>I have an Enum below</p> <pre><code>public enum PTIModel { USA_52((byte) 0), USA_54((byte) 0), USA_56((byte) 0), FOR_52((byte) 0), FOR_54((byte) 0), FOR_56((byte) 0), ALL_T5((byte) 0), SPC_T5((byte) 0), USA_AQ((byte) 0), FOR_AQ((byte) 0), ALL_CV((byte) 12), Pro2((byt...
I have an Enum below [CODE] Now, In .Net they casting the byte value to enum like below. [CODE] And in the same way i am also trying to cast the byte value to enum in java. But, not able to do the same. How to do this? Below is my code.. [CODE]
java|c#|android|enums
0
2015-03-01T09:44:09.827Z
2,015
3
9
6
1,544
1
244
25
4
3
true
false
false
false
false
false
zero
28,792,094
How to calculate sealevel pressure for given altitude and pressure
<p>I am writing a watch-face which displays the altitude. The altitude is calculated with <code>SensorManager.getAltitude(seaLevelPressure, currentPresure)</code>.</p> <p>But in order to initialize this I need the pressure at sea level. Unfortunately there is no <code>SensorManager.getSeaLevelPressure(currentPressure,...
I am writing a watch-face which displays the altitude. The altitude is calculated with SensorManager.getAltitude(seaLevelPressure, currentPresure) . But in order to initialize this I need the pressure at sea level. Unfortunately there is no SensorManager.getSeaLevelPressure(currentPressure,currentAltitude) . For doing ...
java|android|wear-os
5
2015-03-01T09:45:22.403Z
2,015
3
9
6
2,159
3
965
66
3
2
true
false
false
false
false
false
low
28,792,116
Notifications in Android Lollipop
<p>I used <code>NotificationCompat.BigTextStyle()</code> in previous android versions and everything was good. The same application in Lollipop makes me sad:</p> <p>Big Notification looks good: <a href="http://i.stack.imgur.com/YUjCx.png" rel="nofollow">http://i.stack.imgur.com/YUjCx.png</a></p> <p>And small is bad: ...
I used NotificationCompat.BigTextStyle() in previous android versions and everything was good. The same application in Lollipop makes me sad: Big Notification looks good: http://i.stack.imgur.com/YUjCx.png And small is bad: http://i.stack.imgur.com/dksJv.png Looks like layout's height equals big notification height and...
android|notifications|android-5.0-lollipop
0
2015-03-01T09:48:06.413Z
2,015
3
9
6
309
0
981
33
3
0
false
true
false
false
false
false
zero
28,792,134
id is missing in my R.java file when working with arcgis project
<p>I was developing arcgis project application by Android and everything was working properly until yesterday.whenever I create a new Android application project and check the R.java file <strong>id</strong> is there but when I create a new arcgis project for android the R.java is missing <strong>id</strong>.I don't th...
I was developing arcgis project application by Android and everything was working properly until yesterday.whenever I create a new Android application project and check the R.java file id is there but when I create a new arcgis project for android the R.java is missing id .I don't think it's my adb b/c this happens for...
android|arcgis
1
2015-03-01T09:50:12.097Z
2,015
3
9
6
66
1
366
64
2
0
false
false
false
false
false
false
low
28,792,194
Save and manage a volley queue in android
<p>I'm using a volley queue for HTTP requests. I was thinking about saving and managing the queue in a singleton (my API manager), but I was told that there is a risk that android destroys it or the data it holds (the queue) if its out of memory.</p> <p>Someone offered to use a fragment without a UI in order to use it...
I'm using a volley queue for HTTP requests. I was thinking about saving and managing the queue in a singleton (my API manager), but I was told that there is a risk that android destroys it or the data it holds (the queue) if its out of memory. Someone offered to use a fragment without a UI in order to use its "savedIns...
android|background|singleton|android-volley
1
2015-03-01T09:56:53.530Z
2,015
3
9
6
378
1
580
41
4
0
false
false
false
false
false
false
low
28,792,208
Xamarin Android Player hangs during startup
<p>My Android Player has stopped working. When I start one of my installed devices, the emulator window does not open. I can see it in the process bar, and there is a VBoxHeadless process running.</p> <p>I looked at the VirtualBox log for the device. The last line says "00:02:58.209802 NAT: DHCP offered IP address 10...
My Android Player has stopped working. When I start one of my installed devices, the emulator window does not open. I can see it in the process bar, and there is a VBoxHeadless process running. I looked at the VirtualBox log for the device. The last line says "00:02:58.209802 NAT: DHCP offered IP address 10.0.3.15". Th...
android|xamarin|virtualbox
3
2015-03-01T09:58:21.007Z
2,015
3
9
6
1,401
1
1,529
43
3
0
false
false
false
false
false
false
low
28,792,235
Stop popup warnings that cover my editor in Android Studio
<p>I want to turn off Android Studio's pop up warnings. The lightbulbs on the side of the screen are fine. THESE messages are covering entire lines of code. I can move my mouse cursor to make them disappear, but they reappear only a few keystrokes later. I never have more than one on the screen at a time. Mine are blue...
I want to turn off Android Studio's pop up warnings. The lightbulbs on the side of the screen are fine. THESE messages are covering entire lines of code. I can move my mouse cursor to make them disappear, but they reappear only a few keystrokes later. I never have more than one on the screen at a time. Mine are blue wi...
android-studio
6
2015-03-01T10:01:06.520Z
2,015
3
10
6
1,144
1
765
58
1
0
false
false
false
false
false
false
medium
28,792,263
Intent Android: click the button text is not transferred and show nothing
<p>I'm facing problem with Intents. I learn from YouTube (thenewboston), when I launch the app and click the button text is not transferred and show nothing.</p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout...
I'm facing problem with Intents. I learn from YouTube (thenewboston), when I launch the app and click the button text is not transferred and show nothing. [CODE] Xml layout: [CODE] BaconActivity: [CODE]
java|android|android-intent
0
2015-03-01T10:04:05.183Z
2,015
3
10
6
83
1
202
73
3
3
true
false
false
false
false
false
zero
28,792,372
Android Java time picker listener cannot retrieve hours and minutes for first try
<p>I'am having trouble from getting the minutes and hours that set by user for my android application. The problem is that when i try to set time in <code>public void onTimeSet...</code> function for the first time, my <code>btn(hour+":"+minutes)</code> shows 0:0 but if i try it for the 2nd time, the <code>btn</code> ...
I'am having trouble from getting the minutes and hours that set by user for my android application. The problem is that when i try to set time in public void onTimeSet... function for the first time, my btn(hour+":"+minutes) shows 0:0 but if i try it for the 2nd time, the btn able to show the time. I not sure what is t...
java|android|timepicker
0
2015-03-01T10:15:14.893Z
2,015
3
10
6
348
1
491
81
3
1
true
false
false
false
false
false
zero
28,792,398
Android App + Library conflicts with appcompat versions
<p>I am developing an app <code>App</code> with a library (Android Module) <code>Lib</code>. They had no problems when not interacting: after importing the library Android Studio messed up the <code>build.gradle</code> settings and I am not able to recover.</p> <p>I must target Android 4.4 - and nothing else. The appc...
I am developing an app App with a library (Android Module) Lib . They had no problems when not interacting: after importing the library Android Studio messed up the build.gradle settings and I am not able to recover. I must target Android 4.4 - and nothing else. The appcompat library is installed and the dependency on ...
android|android-appcompat|android-library
3
2015-03-01T10:18:00.260Z
2,015
3
10
6
814
1
1,130
55
3
4
true
false
false
false
false
false
low
28,792,409
using usb camera with opencv on android
<p>I am trying to use a UVC camera with opencv for real time detection, similar to the sample from <a href="http://romanhosek.cz/android-eye-detection-updated-for-opencv-2-4-6/.however" rel="nofollow">http://romanhosek.cz/android-eye-detection-updated-for-opencv-2-4-6/.however</a>, i found a problem that opencv need th...
I am trying to use a UVC camera with opencv for real time detection, similar to the sample from http://romanhosek.cz/android-eye-detection-updated-for-opencv-2-4-6/.however , i found a problem that opencv need the CameraBridgeViewBase class to interact with camera. i tried to use the setCameraIndex to set the UVC cam, ...
android|opencv|camera
2
2015-03-01T10:19:56.643Z
2,015
3
10
6
2,388
1
832
39
3
0
false
false
false
false
false
false
low
28,792,442
TabviewPager fragement id is not found if version is below 17
<p>I created a Tabviewpager with fragments in it.I am passing getchildfragmentmanager so that when navigating back , tabviewpager fragment appears.At the time of clicking on an listitem :(listview fragment is one of the fragment of ViewPager)</p> <ol> <li><p>It goes to next tab fragment ( when android version is equal...
I created a Tabviewpager with fragments in it.I am passing getchildfragmentmanager so that when navigating back , tabviewpager fragment appears.At the time of clicking on an listitem :(listview fragment is one of the fragment of ViewPager) It goes to next tab fragment ( when android version is equal to or above 17) ( i...
android|android-fragments|android-viewpager
0
2015-03-01T10:23:12.433Z
2,015
3
10
6
43
0
1,464
61
3
0
false
true
false
false
false
false
zero
28,792,496
Parsing data from local JSON file to java android
<p>After following a number of examples online, I've got confused so rather hope someone can explain to me what I do next and point me in the right direction.</p> <p>Within my app, I've created a function to load my JSON file, which is in my assets folder.</p> <pre><code>public String loadJSONFromAsset() { String...
After following a number of examples online, I've got confused so rather hope someone can explain to me what I do next and point me in the right direction. Within my app, I've created a function to load my JSON file, which is in my assets folder. [CODE] So then in onCreate, I have the following line [CODE] I'm quite co...
java|android|json
0
2015-03-01T10:29:54.240Z
2,015
3
10
6
1,885
2
599
49
3
3
true
false
false
false
false
false
zero
28,792,497
Include/package external libraries with my library
<p>I am creating my own Android library, let's call it MyLibrary.jar My library is referencing volley.jar (and several others). Now in order to use my library clients have to add volley.jar to their APK project together with MyLibrary.jar</p> <p>How can I package my library together with volley.jar, so that my users d...
I am creating my own Android library, let's call it MyLibrary.jar My library is referencing volley.jar (and several others). Now in order to use my library clients have to add volley.jar to their APK project together with MyLibrary.jar How can I package my library together with volley.jar, so that my users do not bothe...
android|eclipse|jar|android-volley
2
2015-03-01T10:29:59.097Z
2,015
3
10
6
55
1
498
50
4
0
false
false
false
false
false
false
low
28,792,518
Arguments bundle not getting populated in my fragment Android
<p>I have a fragments, each containing a single control, and a textview, and they get stacked on top of each other. This works fine. What isn't working is that each of these fragments gets created with the newInstance method so that I can pass so data to it (questionID and question Text). The question text is meant to ...
I have a fragments, each containing a single control, and a textview, and they get stacked on top of each other. This works fine. What isn't working is that each of these fragments gets created with the newInstance method so that I can pass so data to it (questionID and question Text). The question text is meant to dis...
android|android-fragments
0
2015-03-01T10:32:13.570Z
2,015
3
10
6
712
1
583
61
2
2
true
false
false
false
false
false
zero
28,792,532
Compiling android-ndk module with different STL than defined in Application.mk
<p>I'm writing an android-ndk program that relies on <code>APP_STL := c++_static</code></p> <p>However, a particular module that builds a static library, doesn't compile unless <code>gnustl_static</code> is used instead.</p> <p>Even if I manually added the necessary paths, e.g.:</p> <pre><code>-isystem $(NDK_ROOT)/s...
I'm writing an android-ndk program that relies on APP_STL := c++_static However, a particular module that builds a static library, doesn't compile unless gnustl_static is used instead. Even if I manually added the necessary paths, e.g.: [CODE] The compilation fails, because the ndk-build system prepends the stl-library...
android|c++|stl|android-ndk
1
2015-03-01T10:33:47.760Z
2,015
3
10
6
1,021
1
575
78
4
2
true
false
false
false
false
false
low
28,792,563
How to return a message upon receiving it
<p>I have a method called Receive , which starts a thread to receive message from a socket . as long as the socket is open I would like it to receive messages and return it to whoever called the method</p> <pre><code>public Message Receive(int numBytes) { Thread receive =new Thread(new ReceiveMessage(numBytes)); ...
I have a method called Receive , which starts a thread to receive message from a socket . as long as the socket is open I would like it to receive messages and return it to whoever called the method [CODE] The received message is handled with a handler . my problem is that this method returns null all the time until a ...
java|android|inputstream
0
2015-03-01T10:36:56.887Z
2,015
3
10
6
42
0
496
41
3
1
true
true
false
false
false
false
zero
28,792,643
add views to list view in navigation drawer
<p>So I'm trying to add the navigation drawer to my app so as a beginning I created a sample project with the android navigation drawer example. </p> <p>From what I see, they use the list adapter to add items to the navigation drawer.</p> <p>I want to add a few more things to it:</p> <ul> <li><p>A text View in the h...
So I'm trying to add the navigation drawer to my app so as a beginning I created a sample project with the android navigation drawer example. From what I see, they use the list adapter to add items to the navigation drawer. I want to add a few more things to it: A text View in the header. A button A bunch of items sepa...
android|listview|navigation-drawer
2
2015-03-01T10:45:01.373Z
2,015
3
10
6
7,437
2
580
43
3
0
false
false
true
false
false
false
low
28,792,683
Launch webview from listactivity
<p>I'm trying to implement OnItemClickListener to launch a webview for my listview. Each feed item has a different url(parsed from json) and I want this url loaded in the webview. Also, I get an error that "TextView cannot be resolved to a type" in MainActivity. Content view for MainActivity is activity_main.xml, while...
I'm trying to implement OnItemClickListener to launch a webview for my listview. Each feed item has a different url(parsed from json) and I want this url loaded in the webview. Also, I get an error that "TextView cannot be resolved to a type" in MainActivity. Content view for MainActivity is activity_main.xml, while I ...
android|webview
0
2015-03-01T10:50:18.780Z
2,015
3
10
6
123
3
496
32
2
3
true
false
false
false
false
false
zero
28,792,708
Custom View in Android shows up as a black box
<p>I'm trying to create a pie chart-like view, but I'm fairly new to Android, so it isn't always going according to my plans. For now, I would be happy if I actually get something other than a black box in my activity :) Can you help?</p> <p>Here's my code:</p> <p><strong>activity_main.xml</strong></p> <pre><code>&l...
I'm trying to create a pie chart-like view, but I'm fairly new to Android, so it isn't always going according to my plans. For now, I would be happy if I actually get something other than a black box in my activity :) Can you help? Here's my code: activity_main.xml [CODE] MainActivity.java [CODE] PieHolder.java [CODE] ...
java|android|android-custom-view
0
2015-03-01T10:53:00.460Z
2,015
3
10
6
335
2
339
46
3
4
true
false
false
false
false
false
zero
28,792,731
Gradle retrofit failed to resolve
<p>This is my first time trying to use gradle with an android project. I would like to add retrofit to my project but it keeps telling me.</p> <blockquote> <p>Failed to resolve: com.squareup.retrofit:retrofit:1.9.0</p> <p>Failed to resolve: com.squareup.okhttp:2.2.0</p> </blockquote> <p>However google play services wor...
This is my first time trying to use gradle with an android project. I would like to add retrofit to my project but it keeps telling me. Failed to resolve: com.squareup.retrofit:retrofit:1.9.0 Failed to resolve: com.squareup.okhttp:2.2.0 However google play services works perfectly. My gradle file is as follows: [CODE] ...
android|android-studio|gradle|build.gradle
5
2015-03-01T10:55:30.433Z
2,015
3
10
6
5,664
3
365
33
4
1
true
false
true
false
false
false
low
28,792,770
Android, How to check wheather IntentService running in command?
<p>My app has several Activities and Services and one intent service, when I use</p> <pre><code>dumpsys activity | grep My.App.Name </code></pre> <p>I can see my others services and activity in the terminal but I can't see my IntentService even it is already running in my app.</p> <pre><code> public class My...
My app has several Activities and Services and one intent service, when I use [CODE] I can see my others services and activity in the terminal but I can't see my IntentService even it is already running in my app. [CODE] In my Manifest file it is defined as: [CODE] I want to check if this IntentService is running or no...
android|terminal|command|intentservice|dumpsys
1
2015-03-01T10:59:50.773Z
2,015
3
10
6
888
0
352
64
5
3
true
true
false
false
false
false
low
28,792,798
Transparent actionbar
<p>Hi guys new Android developer here.</p> <p>I'm currently trying to make my action bar transparent/translucent. I've already changed the background of my view to see if I'm doing this properly.</p> <p>I've seen the numerous threads here but none of it is working for me.</p> <p>I've tried making a custom style for ...
Hi guys new Android developer here. I'm currently trying to make my action bar transparent/translucent. I've already changed the background of my view to see if I'm doing this properly. I've seen the numerous threads here but none of it is working for me. I've tried making a custom style for my action bar and using: <i...
android|android-actionbar
0
2015-03-01T11:03:25.447Z
2,015
3
11
6
744
3
812
21
2
2
true
false
false
false
false
false
zero
28,792,843
Mobile live synchronization (eg Trello): sockets?
<p>I was wondering how live synchronization mechanisms such as the one used by Trello work.</p> <p>For example when I move a card from the website, the board is immediately refreshed on the iPhone too. As Push Notifications are not reliable, I suppose a sort of open connection/socket stream is used under the hood.</p>...
I was wondering how live synchronization mechanisms such as the one used by Trello work. For example when I move a card from the website, the board is immediately refreshed on the iPhone too. As Push Notifications are not reliable, I suppose a sort of open connection/socket stream is used under the hood. socket.io quot...
android|ios|sockets|sync|trello
0
2015-03-01T11:09:52.757Z
2,015
3
11
6
315
2
427
49
5
0
false
false
false
false
false
false
zero
28,792,889
adb tap and show touch at the same time
<p>I want to make tutorials for my app in different languages. Therefore I write some batch files that use adb to execute a predefined user input.</p> <p>I enable the show touch feature in the developer settings and this gives some visual feedback if I manually click on the screen but it does not give any feedback if ...
I want to make tutorials for my app in different languages. Therefore I write some batch files that use adb to execute a predefined user input. I enable the show touch feature in the developer settings and this gives some visual feedback if I manually click on the screen but it does not give any feedback if I create th...
android|touch|settings|adb
1
2015-03-01T11:16:17.100Z
2,015
3
11
6
1,244
0
465
39
4
1
true
true
false
false
false
false
low
28,792,920
View.Layout() for adding Views
<p>I am confused on how to create views (programmatically) inside a RelativeLayout. Currently I am using .layout to position views (created in java) inside the RelativeLayout but if I try to add a view using LayoutParams to position the view &amp; without using .layout, those views aren't added to the relativelayout. W...
I am confused on how to create views (programmatically) inside a RelativeLayout. Currently I am using .layout to position views (created in java) inside the RelativeLayout but if I try to add a view using LayoutParams to position the view & without using .layout, those views aren't added to the relativelayout. Why is t...
android|android-layout|views|android-custom-view
0
2015-03-01T11:20:09.103Z
2,015
3
11
6
141
1
416
30
4
1
true
false
false
false
false
false
zero
28,792,958
Android : Compare two dates with different time zones
<p>I would like to compare two dates, which can have different time zones.</p> <p>I explain, I receive data from my server (JSON) and I want to compare this data who contains date to my device local date, like Facebook (There are 2 minutes, There are 1 week, There are 3 years).</p> <p>Server response : date:'2013-10-...
I would like to compare two dates, which can have different time zones. I explain, I receive data from my server (JSON) and I want to compare this data who contains date to my device local date, like Facebook (There are 2 minutes, There are 1 week, There are 3 years). Server response : date:'2013-10-09T00:52:20+02:00' ...
java|android|date|timezone|compare
1
2015-03-01T11:24:11.803Z
2,015
3
11
6
45
0
365
53
5
0
false
true
false
false
false
false
low
28,792,989
webview date picker works in android emulator but not on device?
<p>I've used the code example posted here <a href="https://stackoverflow.com/questions/10328117/display-android-datepicker-on-click-of-a-button-in-javascript/28792514#28792514">calling date picker from javascript</a> and this works fine in the android emulator. When I click on the date input box in web view, the androi...
I've used the code example posted here calling date picker from javascript and this works fine in the android emulator. When I click on the date input box in web view, the android date picker appears and I can select it. However, when I test this on my device, I just get a standard text input field it is as though the ...
javascript|android|jquery|datepicker|android-webview
0
2015-03-01T11:27:13.677Z
2,015
3
11
6
1,836
1
452
64
5
2
true
false
false
false
false
false
zero
28,793,032
Add a marker to a dynamic Google Map
<p>I am develoeping an app that shows a map with specified LatLng values. The map fragment is dynamic (Not R.id.map)</p> <p>When i'm trying to add a marker to the specified location (That i'm getting from Google Places API JSON request) i'm getting a null pointer exepction.</p> <p>this is the code:</p> <pre><code> ...
I am develoeping an app that shows a map with specified LatLng values. The map fragment is dynamic (Not R.id.map) When i'm trying to add a marker to the specified location (That i'm getting from Google Places API JSON request) i'm getting a null pointer exepction. this is the code: [CODE] GoogleMapFragment Class = [COD...
android|google-maps|google-play-services|marker|supportmapfragment
1
2015-03-01T11:32:17.360Z
2,015
3
11
6
2,827
1
343
36
5
3
true
false
true
false
false
false
low
28,793,073
ExifInterface returns 0
<p>I'm trying to get the image orientation using ExifInterface class but i always get 0.</p> <p>Snippet:</p> <pre><code>ExifInterface ei; try { ei = new ExifInterface("/storage/sdcard0/etp_images/31_demo2@gmail.com.jpg"); int orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIEN...
I'm trying to get the image orientation using ExifInterface class but i always get 0. Snippet: [CODE] I was looking many answers about this question but none has result me. Thanks in advance.
android|image|attributes|exif
1
2015-03-01T11:35:49.317Z
2,015
3
11
6
238
1
191
23
4
1
true
false
false
false
false
false
low
28,793,089
Unable to open cordova project in eclipse
<p><img src="https://i.stack.imgur.com/VR166.jpg" alt="enter image description here"></p> <p>I try to import my cordova ionic project to eclipse as an existing android application but it was undetectable? Any idea why? I could run my app in android phnoe using 'ionic run android' but why it can be imported to eclipse?...
I try to import my cordova ionic project to eclipse as an existing android application but it was undetectable? Any idea why? I could run my app in android phnoe using 'ionic run android' but why it can be imported to eclipse? I also installed android studio and it has the same problem. I don't have a clue why is this ...
android|eclipse|cordova|android-studio
3
2015-03-01T11:37:59.750Z
2,015
3
11
6
1,645
3
329
41
4
0
false
false
false
false
false
false
low
28,793,108
Creating an oval shape with a size relative to the display size
<p>I need a custom shape which should look like this:</p> <p><img src="https://i.stack.imgur.com/eyqlA.png" alt="enter image description here"></p> <p>The style of the shape is stroke so the orange part of that example is the border of the circle. The white part here is not part of the shape! it is the color of the l...
I need a custom shape which should look like this: The style of the shape is stroke so the orange part of that example is the border of the circle. The white part here is not part of the shape! it is the color of the layout under the shape. I hope you understand what i mean. The shape should not draw the white circle i...
android
1
2015-03-01T11:40:36.753Z
2,015
3
11
6
1,539
2
976
63
1
1
true
false
false
false
false
false
low
28,793,157
How to create a PHP web page which smart phone users can upload files
<p>input type="file" name="userfile" id="userfile" </p> <p>This works fine in desktop Browser , but cant upload files from some smart phone Browsers. How do i resolve this issue? How do i create a web page which smart phone users can upload files? </p>
input type="file" name="userfile" id="userfile" This works fine in desktop Browser , but cant upload files from some smart phone Browsers. How do i resolve this issue? How do i create a web page which smart phone users can upload files?
php|android|file-upload|upload
1
2015-03-01T11:46:37.857Z
2,015
3
11
6
112
0
236
69
4
0
false
true
false
false
false
false
low
28,793,197
Monitoring Genymotion player process in bash script
<p>I need to boot some Genymotion emulators from a bash script; here is my script:</p> <pre><code>#!/bin/bash -x ######################### # Booting the emulators # ######################### #Wait for ADB to get reliable NUM_ELEM_ADB=$(adb devices -l | wc -l) ((NUM_ELEM_ADB-=2)) while [[ $NUM_ELEM_ADB -gt 0 ]]; do ...
I need to boot some Genymotion emulators from a bash script; here is my script: [CODE] for sure I am not using bash best practices, but I would improve the quality of the code once I get a working version. The script works, but, could happen that one of the emulator get stuck, the Genymotion player process does not sta...
android|bash|shell|background-process|genymotion
0
2015-03-01T11:51:30.593Z
2,015
3
11
6
214
0
838
51
5
1
true
true
false
false
false
false
zero
28,793,237
Android onItemClick giving Incorrect id
<p>I am trying to get the details for a clicked item in a ListView by querying the SQLite database. I am passing the long id value from onItemClick as the primary key. However, the long id does not match with the actual primary key in the Table. I found out the actual primary key by querying for the primary keys of all...
I am trying to get the details for a clicked item in a ListView by querying the SQLite database. I am passing the long id value from onItemClick as the primary key. However, the long id does not match with the actual primary key in the Table. I found out the actual primary key by querying for the primary keys of all th...
android|sqlite|android-listview|onitemclick
2
2015-03-01T11:55:39.223Z
2,015
3
11
6
534
2
637
39
4
1
true
false
false
false
false
false
low
28,793,241
ArrayList cannot resolve symbol, after implent XML
<p>My problem is that I declared my Array name in arrays.xml, but Android Studio still not recognize it, and gives me red for the array name, here's the code.</p> <p>arrays.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;string-array name="myArray"&gt; &lt;item name="...
My problem is that I declared my Array name in arrays.xml, but Android Studio still not recognize it, and gives me red for the array name, here's the code. arrays.xml [CODE] In my main Activity the R.array.myArray gives me "cannot resolve symbol "myArray" ", what to do? I resynchronized my project, reloaded it, and res...
android
0
2015-03-01T11:56:06.287Z
2,015
3
11
6
444
5
570
50
1
2
true
false
false
false
false
false
zero
28,793,270
Android Canvas drawLine not drawing on MainActivity
<p>I want to draw a line on the Main Activity using Canvas. The problem is, it is not drawing anything. I have the following code:</p> <pre><code> Bitmap bitmap = Bitmap.createBitmap(1920, 1080, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); Paint paint = new Paint(); paint.setColor(Color.BLACK); paint...
I want to draw a line on the Main Activity using Canvas. The problem is, it is not drawing anything. I have the following code: [CODE]
java|android|android-activity|canvas|draw
2
2015-03-01T11:59:54.307Z
2,015
3
11
6
3,673
2
134
51
5
1
true
false
true
false
false
false
low
28,793,272
ArrayList<>/List<> vs using String array and conerting it to ArrayList<>
<p>I'm currently taking an Android development course by Google on Udacity.</p> <p>I've seen a code example which I do not completely understand (just a basic Java question):</p> <pre><code>String strarrWeek [] = { "Sunday", "Monday", "Tuesday", "Wednesday", ...
I'm currently taking an Android development course by Google on Udacity. I've seen a code example which I do not completely understand (just a basic Java question): [CODE] What's the reason to do this conversion if you can just: [CODE] Am I missing something? Thanks. +edit: Is there a way to use a only the List<> / Arr...
java|android|list|arraylist
0
2015-03-01T12:00:14.540Z
2,015
3
12
6
105
5
417
72
4
2
true
false
false
false
false
false
zero
28,793,280
Place Autocomplete in Android
<p>I have asked question two days ago at <a href="https://stackoverflow.com/questions/28759527/android-map-places-autocomplete?noredirect=1#comment45799274_28759527">here</a></p> <p>I didnt get any solution. Now I have tried one another example. MainActivity.java</p> <pre><code>public class MainActivity extends Activ...
I have asked question two days ago at here I didnt get any solution. Now I have tried one another example. MainActivity.java [CODE] and JSONParser.java [CODE] Running above example does not give me any suggestion. here I am pasting my LogCat trace [CODE] I want immediate help as I am stucked at this point from last 4 d...
android|json|google-maps|autocomplete
0
2015-03-01T12:01:00.717Z
2,015
3
12
6
1,657
1
323
29
4
3
true
false
false
false
false
false
zero
28,793,316
Android application which gives out location based suggestions for hotels, restaurants, mode of transport available
<p>I am planning to build an Android application which gives out location based suggestions for hotels, restaurants, mode of transport available for that particular city. Are there any free services available or any APIs maybe that could help me build the same?</p>
I am planning to build an Android application which gives out location based suggestions for hotels, restaurants, mode of transport available for that particular city. Are there any free services available or any APIs maybe that could help me build the same?
android
-1
2015-03-01T12:05:27.887Z
2,015
3
12
6
44
1
258
115
1
0
false
false
false
false
false
true
negative
28,793,325
How to link the "lame" mp3 encoder shared object to an Android studio project
<p>I am trying to write an Android app that uses the Lame mp3 encoder. My development environment is Android Studio 1.1.</p> <p>Following the hints under <a href="https://stackoverflow.com/questions/8632835/lame-mp3-encoder-compile-for-android">Lame MP3 Encoder compile for Android</a> I managed to install the Android ...
I am trying to write an Android app that uses the Lame mp3 encoder. My development environment is Android Studio 1.1. Following the hints under Lame MP3 Encoder compile for Android I managed to install the Android NDK and compile Lame. Under /app/src/main/libs/armeabi I obtained the shared object "libmp3lame.so", with ...
android|android-studio|android-ndk|shared-libraries|lame
1
2015-03-01T12:06:16.197Z
2,015
3
12
6
2,626
2
1,262
77
5
5
true
false
true
false
false
false
low
28,793,350
Current Working Directory is not Cordova-based project
<p>Below is the exact command I did but not sure why I was unable to add android platform using the command 'cordova platform add android'</p> <p><img src="https://i.stack.imgur.com/OUA9w.jpg" alt="enter image description here"></p>
Below is the exact command I did but not sure why I was unable to add android platform using the command 'cordova platform add android'
android|node.js|cordova
0
2015-03-01T12:08:35.433Z
2,015
3
12
6
1,534
1
135
54
3
0
false
false
false
false
false
false
zero
28,793,353
Java/Android: SealedObject throws StreamCorruptedException
<p>I want to encrypt and decrypt Objects which where previously encrypted in a SealedObject with a generated AES key, which is persisted and encrypted as well in a SealedObject but with RSA.</p> <h2>Code</h2> <p>Stack is part of my project library and Serializable. Every Object named xxxStack is a subclass of Stack.<...
I want to encrypt and decrypt Objects which where previously encrypted in a SealedObject with a generated AES key, which is persisted and encrypted as well in a SealedObject but with RSA. Code Stack is part of my project library and Serializable. Every Object named xxxStack is a subclass of Stack. Excerpt from chat.pro...
java|android|encryption|cryptography
0
2015-03-01T12:09:03.720Z
2,015
3
12
6
333
1
1,175
58
4
6
true
false
false
false
false
false
zero
28,793,363
Sometimes Android BroadcastReceiver does not work
<p>After reading a lot of topics on SOF &amp; blog post, I have got the BroadcastReceiver working. But I have noticed sometime it does not work, specially when I am on call. I just want to know, does BroadcastReceiver work if I get SMS in-between the call ? or there is something is wrong in the code. </p> <p><strong>S...
After reading a lot of topics on SOF & blog post, I have got the BroadcastReceiver working. But I have noticed sometime it does not work, specially when I am on call. I just want to know, does BroadcastReceiver work if I get SMS in-between the call ? or there is something is wrong in the code. SmsReceiver.java [CODE] A...
java|android
2
2015-03-01T12:10:16.967Z
2,015
3
12
6
1,630
1
847
49
2
2
true
false
false
false
false
false
low
28,793,442
Use of setComponent() when including extras with your intent in onReceive
<p>I want to pass extras with my pending intent when I set an alarm to be picked up by my receiver in onReceive and then passed on as extras in my receive intent to be picked up by my scheduling service to be included in my notification.</p> <p>E.g. set an alarm to remind me to take a medicine with name 'x' in 'y' amo...
I want to pass extras with my pending intent when I set an alarm to be picked up by my receiver in onReceive and then passed on as extras in my receive intent to be picked up by my scheduling service to be included in my notification. E.g. set an alarm to remind me to take a medicine with name 'x' in 'y' amount of time...
android|android-intent|broadcastreceiver|alarmmanager|android-pendingintent
0
2015-03-01T12:17:55.623Z
2,015
3
12
6
1,173
1
909
73
5
1
true
false
false
false
false
false
zero
28,793,464
Android Dropbox Core API implementation
<p>I am trying to implement the CORE API at my Android application.</p> <p>I am following the Dropbox tutorial for this.</p> <p><a href="https://www.dropbox.com/developers/core/start/android" rel="nofollow">https://www.dropbox.com/developers/core/start/android</a></p> <pre><code>final static private String APP_KEY ...
I am trying to implement the CORE API at my Android application. I am following the Dropbox tutorial for this. https://www.dropbox.com/developers/core/start/android [CODE] But, i don't know where to put this line of code? [CODE] When i put it within the Oncreate() function i get a endless loop of authenticating the acc...
android|dropbox
0
2015-03-01T12:21:04.667Z
2,015
3
12
6
201
1
616
39
2
2
true
false
false
false
false
false
zero
28,793,542
Google Cloud Messaging on a non-PlayStore App
<p>Working on a device-owner application (installed at provision time with NFC), so far <a href="https://stackoverflow.com/q/28777354/1720332">I did not find</a> any way to provision devices directly with a PlayStore-based-App, that is why I keep using a private distribution mode for my apk, directly downloaded from a ...
Working on a device-owner application (installed at provision time with NFC), so far I did not find any way to provision devices directly with a PlayStore-based-App, that is why I keep using a private distribution mode for my apk, directly downloaded from a private server... In this context here is my question: is ther...
android|android-5.0-lollipop|google-cloud-messaging|device-owner
2
2015-03-01T12:29:59.650Z
2,015
3
12
6
382
1
399
45
4
0
false
false
false
false
false
false
low
28,793,544
Issue with my game Joystick
<p>I'm working in a spaceship first person view game. I have a joystick, and when i move the joystick i can move all the objects (asteroids) of the screen simulating that the spaceship is being moved with the joystick.</p> <p>The game works fine, but now i have a problem. If you are pressing the joystick in the max le...
I'm working in a spaceship first person view game. I have a joystick, and when i move the joystick i can move all the objects (asteroids) of the screen simulating that the spaceship is being moved with the joystick. The game works fine, but now i have a problem. If you are pressing the joystick in the max left position...
java|android|game-engine|game-physics|joystick
-4
2015-03-01T12:30:17.487Z
2,015
3
12
6
204
1
1,498
27
5
2
true
false
false
false
false
true
negative
28,793,547
How to use a Relation column in Parse.com for Android
<p>I'm wondering on how to use the Relation column in Parse, I have been looking for this and I didn't find much information about this, I found the link below : <a href="https://parse.com/docs/relations_guide" rel="nofollow">Parse Relations Developer Guide</a></p> <p>But I didn't find helpful information, anyway I ha...
I'm wondering on how to use the Relation column in Parse, I have been looking for this and I didn't find much information about this, I found the link below : Parse Relations Developer Guide But I didn't find helpful information, anyway I have a Publications Class et a Comments Class, each publication has different com...
android|parse-platform|relation
2
2015-03-01T12:30:47.923Z
2,015
3
12
6
1,883
1
448
53
3
0
false
false
false
false
false
false
low
28,793,561
Android - Executing Asynctask in Activity
<p>I have my login. The user types his username and password in EditText and press onClick login button.</p> <pre><code>public void onClick(View v) { String username = ((EditText) findViewById(R.id.typeUsername)).getText().toString(); String password = ((EditText) findViewById(R.id.typePassword)).getText().to...
I have my login. The user types his username and password in EditText and press onClick login button. [CODE] Now when the login button is clicked. It executes LoginTask in the same class. In the LoginTask when the login button is clicked a dialog should show, and in the background the user input is checked with the SQL...
android|android-asynctask|static-methods
1
2015-03-01T12:32:05.397Z
2,015
3
12
6
328
3
709
41
3
1
true
false
false
false
false
false
low
28,793,569
How to use Image Mask with ListView
<p>I have an activity that list data with listView with their row's images.</p> <pre><code> String[] from = {"subject","img","description","id"}; int[] to = {R.id.tv_subject,R.id.iv_pic, R.id.tv_details, R.id.hide_id}; SimpleAdapter adapter = new SimpleAdapter(ListViewActivity.this,searchResult,R.l...
I have an activity that list data with listView with their row's images. [CODE] My ListView.xml is : [CODE] now I have a part of code that display image with mask: [CODE] I wish to display each image in listview with mask(each image is in a row if listview)
android|listview|mask
0
2015-03-01T12:32:56.977Z
2,015
3
12
6
321
1
257
35
3
3
true
false
false
false
false
false
zero
28,793,573
Unable to Share from Latest ShareButton CodenameOne api
<p>I have imported the Facebook Demo into netbeans and followed the guidelines as mentioned in the developer guide and as well as set required facebook permissions. But I'm failing to share the text on to the wall, where as am able to retrieve friends list, profile info and news feed. </p> <pre><code>final ShareButton...
I have imported the Facebook Demo into netbeans and followed the guidelines as mentioned in the developer guide and as well as set required facebook permissions. But I'm failing to share the text on to the wall, where as am able to retrieve friends list, profile info and news feed. [CODE] Is there anything which im mis...
android|facebook|java-me|codenameone
0
2015-03-01T12:33:05.393Z
2,015
3
12
6
224
1
372
55
4
1
true
false
false
false
false
false
zero
28,793,625
Implement Android Tabs without actionBar.newTab()
<p>I am new to Android Development, and I am implementing some basic programs. My minimum SDK is KitKat.</p> <p>I want to create an App which has multiple tabs. I am using the following approach:</p> <pre><code>ActionBar actionBar = getActionBar(); actionBar.newTab().setText("Tab1"); actionBar.newTab().setText("Tab2"...
I am new to Android Development, and I am implementing some basic programs. My minimum SDK is KitKat. I want to create an App which has multiple tabs. I am using the following approach: [CODE] But these methods are deprecated in Android Studio now. How do I get the exact implementation of this code according to new met...
android|android-tabs
3
2015-03-01T12:39:26.617Z
2,015
3
12
6
2,236
3
405
49
2
1
true
false
false
false
false
false
low
28,793,627
How to add image to a framelayout in android app ?
<p>I am building a left slide menu in my app, in which I am using a framelayout. And a listview is called inside this framelayout. </p> <p>In this frame layout, I want to call a imageView which will display user profile picture. </p> <p>Here is the code for my navigation drawer, where I am initializing framelayout an...
I am building a left slide menu in my app, in which I am using a framelayout. And a listview is called inside this framelayout. In this frame layout, I want to call a imageView which will display user profile picture. Here is the code for my navigation drawer, where I am initializing framelayout and calling its listvie...
android|listview|imageview|navigation-drawer|android-framelayout
0
2015-03-01T12:40:00.003Z
2,015
3
12
6
2,110
2
482
50
5
3
true
false
false
false
false
false
zero
28,793,649
android-couldn't play video via MediaPlayer
<p>this is my code:</p> <pre><code> MediaPlayer mMediaPlayer; SurfaceView mSurfaceView; SurfaceHolder holder; MediaController mcontroller; Handler handler; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.firs...
this is my code: [CODE] The movie url is correct . in the log cat it says "MediaPlayer was not created".This error comes from this surfaceCreated() , there is a condition that says if mMediaPlayer was null, show this error . Why is it null ? Where am I doing wrong ? Thanks
android
0
2015-03-01T12:42:14.227Z
2,015
3
12
6
124
1
273
43
1
1
true
false
false
false
false
false
zero
28,793,761
Does not scroll smooth when fastScrollEnabled is used in ListView
<p>I am using a listview in my app. I made a custom adapter and used viewholder design pattern. The problem is when I scroll the listview by swiping its scroll smoothly but when I scroll it by dragging the fastscroll thumb it lags too much. It freezes for some moment frequently. I have checked other application in my p...
I am using a listview in my app. I made a custom adapter and used viewholder design pattern. The problem is when I scroll the listview by swiping its scroll smoothly but when I scroll it by dragging the fastscroll thumb it lags too much. It freezes for some moment frequently. I have checked other application in my phon...
android|listview|baseadapter|android-viewholder
0
2015-03-01T12:53:44.187Z
2,015
3
12
6
579
2
563
65
4
3
true
false
false
false
false
false
zero
28,793,762
Google Maps Android API v2 only shows tiles when I touch the screen
<p><strong>Problem</strong></p> <p>When application starts, it shows a white Google Map (I can see the Google logo), and even waiting for minutes with a good internet connection it doesn't load tiles.</p> <p>However, if I touch the screen, tiles start appearing (One tile per touch).</p> <p>I tested with 3 physical p...
Problem When application starts, it shows a white Google Map (I can see the Google logo), and even waiting for minutes with a good internet connection it doesn't load tiles. However, if I touch the screen, tiles start appearing (One tile per touch). I tested with 3 physical phones, getting the same results. MapActivity...
android|google-maps-android-api-2
1
2015-03-01T12:53:45.910Z
2,015
3
12
6
934
5
369
67
2
4
true
false
false
false
false
false
low
28,793,765
ACTION_IMAGE_CAPTURE not working for Android 4.2.2
<p>I'm developing an app that needs to take a picture and save it, and show it in the app. It works for Android 4.0 but not for Android 4.2.2 (and I guess for later versions neither).</p> <p>Here is the code:</p> <pre><code>Button photoBtn = (Button) inflated.findViewById(R.id.btn_photo); photoBtn.setOnClickListener(...
I'm developing an app that needs to take a picture and save it, and show it in the app. It works for Android 4.0 but not for Android 4.2.2 (and I guess for later versions neither). Here is the code: [CODE] Well, as I said before, this code is working on my HTC Desire C. But I have tried it in two different phones runni...
android|android-intent|android-camera
0
2015-03-01T12:53:55.913Z
2,015
3
12
6
1,084
1
1,130
50
3
1
true
false
false
false
false
false
zero
28,793,788
SwipeRefreshLayout with Tabs and fragments per page has premature pull to refresh functionality
<p>I have setup an app with slidingTabs nested in a swipeRefreshLayout where I have fragments for the pages which have recyclerView lists in them. It works fine but when I scroll down the list and go to scroll back to the top it pulls down the refresh icon before reaching the top again, Im lost as to why...</p> <pre><...
I have setup an app with slidingTabs nested in a swipeRefreshLayout where I have fragments for the pages which have recyclerView lists in them. It works fine but when I scroll down the list and go to scroll back to the top it pulls down the refresh icon before reaching the top again, Im lost as to why... [CODE] I have ...
android|android-recyclerview|swiperefreshlayout
0
2015-03-01T12:56:28.840Z
2,015
3
12
6
1,603
1
410
95
3
1
true
false
false
false
false
false
zero
28,793,875
Android: Switch loses focus after click
<p>Hey Hey currently I am developing an application that contains a form, with some edittext fields, some checkboxes and a switch at the end. The layout looks like this:</p> <pre><code>&lt;RelativeLayout&gt; &lt;ScrollView&gt; &lt;LinearLayout&gt; &lt;LinearLayout&gt; &lt;TextView&gt;&lt;/TextVie...
Hey Hey currently I am developing an application that contains a form, with some edittext fields, some checkboxes and a switch at the end. The layout looks like this: [CODE] So now, if I click the switch, the switch looses its focus and the scrollview scrolls to the first form element, the checkbox. I already tried to ...
android|forms|onclick|focus|android-linearlayout
0
2015-03-01T13:06:08.803Z
2,015
3
13
6
587
1
491
39
5
1
true
false
false
false
false
false
zero
28,793,899
how to make android WebView indistinguishable with desktop firefox?
<p>i want show a captcha in my webView, this captcha is loaded by java script code that run in the WebView, every thing is ok and the captcha image is loaded fine, but the captcha image is very different from the one that is loaded in opera browser(android) or firefox(desktop) while the script that load the captcha is ...
i want show a captcha in my webView, this captcha is loaded by java script code that run in the WebView, every thing is ok and the captcha image is loaded fine, but the captcha image is very different from the one that is loaded in opera browser(android) or firefox(desktop) while the script that load the captcha is sam...
javascript|android|webview
2
2015-03-01T13:08:25.713Z
2,015
3
13
6
176
0
677
67
3
1
true
true
false
false
false
false
low
28,793,946
How to cancel outgoing call in android dev.?
<p>I just want to know if how to cancel outgoing call in android dev.? Is it possible in the simplest way of coding?</p>
I just want to know if how to cancel outgoing call in android dev.? Is it possible in the simplest way of coding?
android|call
0
2015-03-01T13:13:08.140Z
2,015
3
13
6
2,259
2
113
44
2
0
false
false
false
false
false
false
zero
28,794,058
Error report from Google Play, Database import error
<p>If I understand correctly something is wrong on the splash, something with importing database. What could it be? It works fine on some of the devices. I tried to delete importing database at the splash but then no data from database is shown later in app.</p> <p>I got this error on my google play error report:</p> ...
If I understand correctly something is wrong on the splash, something with importing database. What could it be? It works fine on some of the devices. I tried to delete importing database at the splash but then no data from database is shown later in app. I got this error on my google play error report: [CODE] Here is ...
android|database|runtime-error
0
2015-03-01T13:26:36.230Z
2,015
3
13
6
42
0
347
52
3
2
true
true
false
false
false
false
zero
28,794,068
cursor is not displaying data in second activity
<p>I have a list of items, the data are stored in the SQLite. The problem occurred when I wanted to get detailed view of the item, it doesn't display any data. This is activity that displays all rows from the database in a listview, works great.</p> <pre><code>public class List extends Activity { public final sta...
I have a list of items, the data are stored in the SQLite. The problem occurred when I wanted to get detailed view of the item, it doesn't display any data. This is activity that displays all rows from the database in a listview, works great. [CODE] From the List.class after clicking on item from the list the user can ...
android|database|sqlite|cursor
0
2015-03-01T13:28:00.177Z
2,015
3
13
6
96
1
688
48
4
3
true
false
false
false
false
false
zero
28,794,073
Gson parsing varied data into an object
<p>I have a varied data type that is served as json which I am fetching through retrofit. Here is how it looks, when the message type is an image</p> <pre><code>{ "_id": ObjectId("54cd78c79ce8756749a8e38c"), "data": { "image_name": "10347646_865379743494769_4408387832275449094_n.png", "image_ur...
I have a varied data type that is served as json which I am fetching through retrofit. Here is how it looks, when the message type is an image [CODE] The message type can vary, which can either be a video, an image or text. For video, the data looks like this: [CODE] A message type is specified in the json, which tells...
java|android|json|gson|retrofit
2
2015-03-01T13:29:24.530Z
2,015
3
13
6
225
1
810
39
5
4
true
false
false
false
false
false
low
28,794,097
Card view scale animation
<p>In my app i have a cardview which contains a text view and a button and the button is initially hidden and when the card view is clicked the button is shown. I don't know how to animate it into view when the button is shown. Can anyone suggest a good reference or tutorial to do this, either in code or in xml. Here i...
In my app i have a cardview which contains a text view and a button and the button is initially hidden and when the card view is clicked the button is shown. I don't know how to animate it into view when the button is shown. Can anyone suggest a good reference or tutorial to do this, either in code or in xml. Here is m...
android|android-cardview
2
2015-03-01T13:31:50.527Z
2,015
3
13
6
7,206
1
424
25
2
3
true
false
true
false
false
false
low
28,794,167
android asus zenfone 5 not detected on ubuntu os
<p>I have an asus zenfone 5, i want to develop android application on it and i am currently use ubuntu as my only OS, </p> <p>what im already did was :</p> <ol> <li>enabled usb debugging but still not detected in my computer</li> <li>when i type lsusb on terminal the phone detected as Bus 002 Device 006: ID 18d1:d002...
I have an asus zenfone 5, i want to develop android application on it and i am currently use ubuntu as my only OS, what im already did was : enabled usb debugging but still not detected in my computer when i type lsusb on terminal the phone detected as Bus 002 Device 006: ID 18d1:d002 Google Inc. these are my detail in...
android|ubuntu
1
2015-03-01T13:39:43.153Z
2,015
3
13
6
2,119
1
484
48
2
0
false
false
false
false
false
false
low
28,794,172
Android Mediaplayer cuts beginning of file
<p>I am trying to play an audio file in my actvity. </p> <p>The file should play in loop but the first time it plays it gets cut in the beginning for almost a second. The other times it plays correctly. I simply do the following. I also tried with prepare and onpreparedlistener but the result is the same. Any Help?</p...
I am trying to play an audio file in my actvity. The file should play in loop but the first time it plays it gets cut in the beginning for almost a second. The other times it plays correctly. I simply do the following. I also tried with prepare and onpreparedlistener but the result is the same. Any Help? [CODE]
android|android-mediaplayer
0
2015-03-01T13:39:53.780Z
2,015
3
13
6
110
2
312
42
2
1
true
false
false
false
false
false
zero
28,794,202
Android:elevation not working
<p>I'm have to develop an android wear application, and Android:elevation in activity not showing a shadow.</p> <p>XML Code of activity - </p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_par...
I'm have to develop an android wear application, and Android:elevation in activity not showing a shadow. XML Code of activity - [CODE] In the preview shadow displayed, in the emulator no shadows
android|xml|android-elevation
1
2015-03-01T13:42:39.993Z
2,015
3
13
6
830
0
194
29
3
1
true
true
false
false
false
false
low