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,679,833 | How to check which editext textwatcher listener is called in dynamically created edittext | <p>I am able to add Textwatcher listener for dynamically created Edittext so basically I'll check the first editext ontextchanged if there is any value create another edittext and so on.How can check which edittext is called in the listener.</p>
<p>I have checked couple of links <a href="https://stackoverflow.com/que... | I am able to add Textwatcher listener for dynamically created Edittext so basically I'll check the first editext ontextchanged if there is any value create another edittext and so on.How can check which edittext is called in the listener. I have checked couple of links how-to-use-single-textwatcher-for-multiple-edittex... | android|android-edittext|android-custom-view | 0 | 2015-02-23T17:38:15.737Z | 2,015 | 2 | 17 | 0 | 1,618 | 1 | 371 | 89 | 3 | 1 | true | false | false | false | false | false | zero |
28,679,854 | SAPUI5 using cordova file to create config file | <p>I'm try to create a config file to keep some configurations of my app. I'm using SAPUI5 and cordova file.</p>
<p>The intention is create a conf.txt to keep the URL, PORT and LDAP data to access my system. However, these information can change, so I need to update the file.</p>
<p>In my app, I've made the function ... | I'm try to create a config file to keep some configurations of my app. I'm using SAPUI5 and cordova file. The intention is create a conf.txt to keep the URL, PORT and LDAP data to access my system. However, these information can change, so I need to update the file. In my app, I've made the function deviceready when th... | android|cordova|sapui5 | 0 | 2015-02-23T17:39:11.907Z | 2,015 | 2 | 17 | 0 | 774 | 1 | 729 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
28,679,922 | StartAR method Intel XDK | <p>I use augmented reality in practice to intel XDK and I need use StartAR() method in a agumented reality app, but, it's not found, still working this method?</p> | I use augmented reality in practice to intel XDK and I need use StartAR() method in a agumented reality app, but, it's not found, still working this method? | android|intel-xdk | 0 | 2015-02-23T17:42:46.620Z | 2,015 | 2 | 17 | 0 | 176 | 1 | 156 | 24 | 2 | 0 | false | false | false | false | false | false | zero |
28,679,951 | Obtain width and height of a Layout | <p>I have a FrameLayout, when I try to get its params like this:</p>
<pre><code>ViewGroup.LayoutParams params = cameraPreviewFrameLayout.getLayoutParams();
int layoutHeight = params.height;
int layoutWidth = params.width;
</code></pre>
<p>Here, layoutHeight is -2 and layoutWidth is -1. This is my XML:</p>
<pre><code... | I have a FrameLayout, when I try to get its params like this: [CODE] Here, layoutHeight is -2 and layoutWidth is -1. This is my XML: [CODE] I am performing this action from onCreate, but also I tried to to it through onStart(), with the same result. Obviously the height and width of this layout is not these values. How... | android|android-layout|layoutparams | 0 | 2015-02-23T17:44:14.473Z | 2,015 | 2 | 17 | 0 | 80 | 2 | 371 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
28,679,953 | Command line Logs in Android Studio | <p>I'm using Android Studio to build an Android app. Is there a windows to show up which adb command lines the Android Studio are currently using? For example, when the Android Studio is launching the app to the device or the emulator, the windows will show up the adb commands to launch the app.</p>
<p>I notice that t... | I'm using Android Studio to build an Android app. Is there a windows to show up which adb command lines the Android Studio are currently using? For example, when the Android Studio is launching the app to the device or the emulator, the windows will show up the adb commands to launch the app. I notice that there is an ... | android-studio|adb | 0 | 2015-02-23T17:44:16.333Z | 2,015 | 2 | 17 | 0 | 266 | 1 | 423 | 35 | 2 | 0 | false | false | false | false | false | false | zero |
28,680,034 | I have an issue with a Button in android xml layout | <p>Here is my layout </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ProgressBar
style="?android:attr/progressBarStyleLarge"
... | Here is my layout [CODE] I'm gettting a nullPointerException on android studio preview, If I remove the button called "btn_veterinaria_photo" the layout is displayed without problems. I'm using android studio 1.1 I,m stuck in this for days... anyhelp will be very appreciated I got this in android preview: [CODE] *** Wh... | android|xml|layout | 0 | 2015-02-23T17:48:02.563Z | 2,015 | 2 | 17 | 0 | 102 | 0 | 381 | 51 | 3 | 2 | true | true | false | false | false | false | zero |
28,680,072 | RenderScript No JNI_OnLoad found error | <p>I am using renderscript library in my project and I perfectly run my apk on Samsung S4 I9500. But when I tried this in other phones I get crash.</p>
<pre><code>No JNI_OnLoad found in /system/lib/libRSSupport.so 0x4185f0f0, skipping init
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ ERRO... | I am using renderscript library in my project and I perfectly run my apk on Samsung S4 I9500. But when I tried this in other phones I get crash. [CODE] Any help appreciated. Thanks. | android|crash|renderscript | 0 | 2015-02-23T17:49:19.443Z | 2,015 | 2 | 17 | 0 | 366 | 1 | 181 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
28,680,108 | How do i fix android activity in a stable position? | <p>I'm building a simple app for android that's taking input from the user via an EditText. But when the EditText is focused and the on screen keyboard appears it causes the whole layout to move a few dps so that the action bar slides under the statusbar. How can i fix the activity so that it doesn't move when the keyb... | I'm building a simple app for android that's taking input from the user via an EditText. But when the EditText is focused and the on screen keyboard appears it causes the whole layout to move a few dps so that the action bar slides under the statusbar. How can i fix the activity so that it doesn't move when the keyboar... | android|android-layout | -1 | 2015-02-23T17:51:28.243Z | 2,015 | 2 | 17 | 0 | 72 | 1 | 486 | 51 | 2 | 0 | false | false | false | false | false | true | negative |
28,680,145 | Drag shadow is square for a round floating action button | <p>I am on Android Lollipop (minSdk=21), and want to implement moving a Floating Action Button around with a dragging gesture. The button is a custom subclass of ImageButton, the code is described here so I won't repeat it: <a href="https://stackoverflow.com/questions/27890953/define-default-values-for-layout-width-and... | I am on Android Lollipop (minSdk=21), and want to implement moving a Floating Action Button around with a dragging gesture. The button is a custom subclass of ImageButton, the code is described here so I won't repeat it: Define default values for layout_width and layout_height properties for a subclass in a style For d... | android|floating-action-button | 0 | 2015-02-23T17:53:56.857Z | 2,015 | 2 | 17 | 0 | 1,531 | 2 | 647 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
28,680,180 | android app doesnt crash after installiation | <p>So I have very weird problem with android app that I developed that I really do not understand how to address.
Description of the problem: When I run the app in my emulator(and many other emulators) the app works perfectly, but when I list it on Google Play and some user download the app, it automatically crashes. s... | So I have very weird problem with android app that I developed that I really do not understand how to address. Description of the problem: When I run the app in my emulator(and many other emulators) the app works perfectly, but when I list it on Google Play and some user download the app, it automatically crashes. so I... | java|android | 1 | 2015-02-23T17:55:44.767Z | 2,015 | 2 | 17 | 0 | 46 | 1 | 431 | 44 | 2 | 1 | true | false | false | false | false | false | low |
28,680,206 | Buttons stop working | <p>I have several buttons. Each one plays a different sound when pressed.
After using the app for 2 or 3 minutes, the buttons stop playing any sound.
I'll simplify the code:</p>
<pre><code><Button
android:id="@+id/but"
android:layout_weight="1"
android:layout_width="0dp"
android:layo... | I have several buttons. Each one plays a different sound when pressed. After using the app for 2 or 3 minutes, the buttons stop playing any sound. I'll simplify the code: [CODE] | android|button|android-mediaplayer | 0 | 2015-02-23T17:57:08.913Z | 2,015 | 2 | 17 | 0 | 41 | 1 | 177 | 20 | 3 | 1 | true | false | false | false | false | false | zero |
28,680,278 | How to Change the font color of a listview | <p>This is the code for my list view how can I change the color of the listview</p>
<pre><code>public class eat extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_eat);
String ... | This is the code for my list view how can I change the color of the listview [CODE] | android|listview | 0 | 2015-02-23T18:02:00.393Z | 2,015 | 2 | 18 | 0 | 765 | 3 | 83 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
28,680,350 | Android app not finding my method for my button handler in my actiivity causing app crashing on phone | <p>I'm trying to write a basic app that counts the button taps. It will compile and load onto my phone but when I tap the button the app immediately crashes. My MainActivity class is standard. The code for my button handler is in another class classed FirstActivity which extends my MainActvity class.</p>
<p>Edit to ad... | I'm trying to write a basic app that counts the button taps. It will compile and load onto my phone but when I tap the button the app immediately crashes. My MainActivity class is standard. The code for my button handler is in another class classed FirstActivity which extends my MainActvity class. Edit to add: I change... | java|android | 0 | 2015-02-23T18:06:37.087Z | 2,015 | 2 | 18 | 0 | 102 | 2 | 566 | 101 | 2 | 3 | true | false | false | false | false | false | zero |
28,680,356 | android google map API key error | <p>I just started the android google map . I download <a href="http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/" rel="nofollow">this</a> example and change the API key and run it but it's give error . here is log cat output :
thank you for help .</p>
<pre><code>02-23 18:02:29.404: E/AndroidRun... | I just started the android google map . I download this example and change the API key and run it but it's give error . here is log cat output : thank you for help . [CODE] | java|android|google-maps|google-play-services|google-maps-api-2 | -1 | 2015-02-23T18:06:54.930Z | 2,015 | 2 | 18 | 0 | 304 | 1 | 172 | 32 | 5 | 1 | true | false | false | false | false | true | negative |
28,680,370 | Call an activity within a timer | <p>In my main activity I create an object internetCheck. My class checkInternet:</p>
<pre><code>public class internetCheck {
private Timer myTimer;
public void launchTime(final Context context){
myTimer = new Timer();
Handler handler = new Handler(context.getMainLooper());
myTimer.schedule(new TimerTask... | In my main activity I create an object internetCheck. My class checkInternet: [CODE] After creation I call the launchTime method which create a timer. I want to go back to my MainActivity when internet is down. Everything works fine but I can't go back to the MainActivity. I don't know why my startActivity(i) doesn't w... | android|android-activity | 0 | 2015-02-23T18:07:56.833Z | 2,015 | 2 | 18 | 0 | 103 | 1 | 344 | 31 | 2 | 1 | true | false | false | false | false | false | zero |
28,680,489 | ProgressBar dosen't load. Android App | <p>When I put <code>ProgressBar</code> in my android Application I have this:</p>
<p><img src="https://i.stack.imgur.com/1sp1o.png" alt="enter image description here"></p>
<p>Just a Loading animation, instead of the actual <code>ProgressBar</code>. </p>
<p>I added the bar like everyother element I have added before ... | When I put ProgressBar in my android Application I have this: Just a Loading animation, instead of the actual ProgressBar . I added the bar like everyother element I have added before (buttons, texts...) The only thing I specified was Max (=100) than in code I have these lines [CODE] and in onCreate() : [CODE] and in r... | android|android-studio | 0 | 2015-02-23T18:14:21.743Z | 2,015 | 2 | 18 | 0 | 36 | 2 | 430 | 37 | 2 | 3 | true | false | false | false | false | false | zero |
28,680,524 | Declaring UI elements in Java (android) efficiently | <p>Do I have to (in each function) declare a UI element again (Eg (button) button) or is there a simpler way to do it. (This is not the final code, its just to give an example of what I mean (there is a decrypt function and a simple clear button ). This is my first ever program written in Java so any hints/Improvements... | Do I have to (in each function) declare a UI element again (Eg (button) button) or is there a simpler way to do it. (This is not the final code, its just to give an example of what I mean (there is a decrypt function and a simple clear button ). This is my first ever program written in Java so any hints/Improvements wo... | java|android|user-interface | 0 | 2015-02-23T18:16:38.973Z | 2,015 | 2 | 18 | 0 | 105 | 1 | 392 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
28,680,558 | How to detect double click event for buttons in android | <p><strong>What i have:</strong> I have a set of buttons in horizontal scroll view</p>
<p><strong>What i want:</strong> I want to detect a event on double tapping the button </p>
<p><strong>Note</strong> Usually i deal with click events using <code>class implements Onclicklistener</code>. But now how can i achieve th... | What i have: I have a set of buttons in horizontal scroll view What i want: I want to detect a event on double tapping the button Note Usually i deal with click events using class implements Onclicklistener . But now how can i achieve the same for doubleclickevents. it will be helpful if there is any interface i can us... | android | 0 | 2015-02-23T18:18:22.913Z | 2,015 | 2 | 18 | 0 | 15,039 | 4 | 356 | 55 | 1 | 1 | true | false | true | true | false | false | zero |
28,680,573 | android Intent.FLAG_ACTIVITY_REORDER_TO_FRONT not working as intended | <p>I am having a weird problem with FLAG_ACTIVITY_REORDER_TO_FRONT. I have 2 activities, A and B. A has a button to move to B and B has a button to move to A. So here we go.</p>
<p>First scenario:</p>
<ol>
<li>The application starts with activity A</li>
<li>Then I click the button to go to B</li>
<li>I press the back... | I am having a weird problem with FLAG_ACTIVITY_REORDER_TO_FRONT. I have 2 activities, A and B. A has a button to move to B and B has a button to move to A. So here we go. First scenario: The application starts with activity A Then I click the button to go to B I press the back button. Activity A is displayed (works as ... | android|android-intent|android-activity | 2 | 2015-02-23T18:19:09.970Z | 2,015 | 2 | 18 | 0 | 5,048 | 1 | 960 | 69 | 3 | 1 | true | false | true | false | false | false | low |
28,680,607 | How to save GLSurfaceview render as obj file? | <p>I am making an application on Project Tango tablet using eclipse. I am unable to get how to save GLSurfaceview render as obj file so that I can use that obj file in 3DSMax or Maya.</p>
<p>I have tried to save as png or jpeg but its saving a black image which is of no use.</p> | I am making an application on Project Tango tablet using eclipse. I am unable to get how to save GLSurfaceview render as obj file so that I can use that obj file in 3DSMax or Maya. I have tried to save as png or jpeg but its saving a black image which is of no use. | android|opengl-es|glsurfaceview|google-project-tango | 0 | 2015-02-23T18:20:45.097Z | 2,015 | 2 | 18 | 0 | 234 | 0 | 265 | 45 | 4 | 0 | false | true | false | false | false | false | zero |
28,680,687 | Error while running Google maps API V2 example | <p>I'm trying to do the example here <a href="https://developers.google.com/maps/documentation/android/start" rel="nofollow">https://developers.google.com/maps/documentation/android/start</a></p>
<p>I'm working in Eclipse and there are no errors displayed in the code. I have linked the google-play-services-lib and set... | I'm trying to do the example here https://developers.google.com/maps/documentation/android/start I'm working in Eclipse and there are no errors displayed in the code. I have linked the google-play-services-lib and set the project build target as the most recent version of the Google API. I've entered my API key and hav... | android|eclipse|google-maps|google-maps-android-api-2 | 1 | 2015-02-23T18:24:07.333Z | 2,015 | 2 | 18 | 0 | 727 | 1 | 668 | 46 | 4 | 4 | true | false | false | false | false | false | low |
28,680,695 | How can I use lower and higher API calls in the same version? | <p>I am working on a simple application, it contains two functions. The first function needs some method from 3.0 API (or lower) and the second function needs the 4.4 API.</p>
<p>I would like to one version! If the running environment is a 4.4 Android, the application support the second option. Otherwise the applicati... | I am working on a simple application, it contains two functions. The first function needs some method from 3.0 API (or lower) and the second function needs the 4.4 API. I would like to one version! If the running environment is a 4.4 Android, the application support the second option. Otherwise the application doesn't ... | android | 0 | 2015-02-23T18:24:42.213Z | 2,015 | 2 | 18 | 0 | 580 | 2 | 407 | 61 | 1 | 0 | false | false | false | false | false | false | zero |
28,680,704 | When i checked one toggle button 5th toggle button get checked automatically in listview in android | <p>I have listview with toggle button .when i checked first toggle button the 5th toggle button get checked automatically. and when i checked 2nd toggle button 7th toggle button get checked .and when i unchecked that 5th toggle button it is toast the null value .</p>
<p>the below is my code</p>
<pre><code>public clas... | I have listview with toggle button .when i checked first toggle button the 5th toggle button get checked automatically. and when i checked 2nd toggle button 7th toggle button get checked .and when i unchecked that 5th toggle button it is toast the null value . the below is my code [CODE] please help me... and how to sa... | android|listview|state|togglebutton | 0 | 2015-02-23T18:24:59.067Z | 2,015 | 2 | 18 | 0 | 594 | 1 | 451 | 99 | 4 | 1 | true | false | false | false | false | false | zero |
28,680,726 | Memory leak with Timer | <p>I am using a timer that is canceled and restarted on a listener event. It all works fine except that the the timer thread leaks the whole outer class.</p>
<p>My timer implementation is as follows:</p>
<pre><code> if(timer != null) {
timer.cancel();
timer = null;
timer = n... | I am using a timer that is canceled and restarted on a listener event. It all works fine except that the the timer thread leaks the whole outer class. My timer implementation is as follows: [CODE] I used MAT Analyser to track down the problem and ended up there. I also commented out the line with the callback but the t... | java|android|multithreading|memory-leaks|timer | 3 | 2015-02-23T18:25:43.513Z | 2,015 | 2 | 18 | 0 | 8,751 | 2 | 1,028 | 22 | 5 | 2 | true | false | true | false | false | false | low |
28,680,767 | What method is used for generating the Android ID on ADB | <p>When I connect my device to Android Debug Bridge (ADB) over USB using this command:</p>
<pre><code>> adb device
</code></pre>
<p>then I get the following (encrypted) 16 characters: </p>
<pre><code>df23582e162esfd2 device
</code></pre>
<p>What are these characters? Are they generated by Windows or ADB? Are tho... | When I connect my device to Android Debug Bridge (ADB) over USB using this command: [CODE] then I get the following (encrypted) 16 characters: [CODE] What are these characters? Are they generated by Windows or ADB? Are those characters temporarily stored or shown anywhere else? | android|encryption|adb|android-debug|code-documentation | 2 | 2015-02-23T18:28:25.903Z | 2,015 | 2 | 18 | 0 | 657 | 2 | 278 | 56 | 5 | 2 | true | false | false | false | false | false | low |
28,680,796 | Image saved on sdcard appears bigger | <p>I am saving small image about width = 30px and height = 30px and file type is png on sdcard. After saving the image when I view it on my sdcard, the image appears bigger with low resolution. The original image however is crystal clear. Below is my code, please tell me how can I make the image quality better and also... | I am saving small image about width = 30px and height = 30px and file type is png on sdcard. After saving the image when I view it on my sdcard, the image appears bigger with low resolution. The original image however is crystal clear. Below is my code, please tell me how can I make the image quality better and also le... | android | 0 | 2015-02-23T18:30:51.300Z | 2,015 | 2 | 18 | 0 | 25 | 0 | 390 | 36 | 1 | 1 | true | true | false | false | false | false | zero |
28,680,803 | How do I create automatic actions in libgdx? (scene2d) | <p>I'm new to libgdx and android development. I'm writing my first game, a recreation the original "Simon" game for experience. I am using scene2d, using each button as an actor, each with ClickListeners in their constructors.</p>
<p>What I am really struggling on right now is how to "perform" the AI sequence, as in: ... | I'm new to libgdx and android development. I'm writing my first game, a recreation the original "Simon" game for experience. I am using scene2d, using each button as an actor, each with ClickListeners in their constructors. What I am really struggling on right now is how to "perform" the AI sequence, as in: I need to v... | java|android|libgdx|actor|scene2d | 0 | 2015-02-23T18:31:20.403Z | 2,015 | 2 | 18 | 0 | 942 | 1 | 1,586 | 54 | 5 | 3 | true | false | false | false | false | false | zero |
28,680,804 | read data from exising secret code | <p>I want to read data from existing secret code. there are plenty of secret code in android like <code>*#*#4636#*#*</code> to get phone info and <code>*#06#</code>to get IMEI. </p>
<p>so there any way in android to write a code by which we can fire these secret code and read the result back in our activity ? </p> | I want to read data from existing secret code. there are plenty of secret code in android like *#*#4636#*#* to get phone info and *#06# to get IMEI. so there any way in android to write a code by which we can fire these secret code and read the result back in our activity ? | android | 0 | 2015-02-23T18:31:21.870Z | 2,015 | 2 | 18 | 0 | 105 | 1 | 274 | 34 | 1 | 0 | false | false | false | false | false | false | zero |
28,680,865 | Android - Send data using shared preference not working | <p>I am new to android programming and i am just trying to send some data from one activity to another using Shared Preference but my code doesn't works.</p>
<p>This is the activity i am entering data in.</p>
<pre><code>public class MainActivity extends ActionBarActivity {
private Button BTN;
private EditT... | I am new to android programming and i am just trying to send some data from one activity to another using Shared Preference but my code doesn't works. This is the activity i am entering data in. [CODE] This is the activity i want to pass data in. [CODE] | android | 0 | 2015-02-23T18:35:16.740Z | 2,015 | 2 | 18 | 0 | 32 | 2 | 253 | 55 | 1 | 2 | true | false | false | false | false | false | zero |
28,680,925 | Fatal error (use theme.appcompat), even though I am using the AppCompat theme | <p>I've recently upgraded my application to a material theme. However, I'm encountering crashes on a 4.2.2 Samsung tablet. The stacktrace (posted below) tells me that I am not using a descendant of Theme.AppCompat, even though I believe I am. The app seems to run fine on 4.4 and 5.0. </p>
<p>Here is the stacktrace fro... | I've recently upgraded my application to a material theme. However, I'm encountering crashes on a 4.2.2 Samsung tablet. The stacktrace (posted below) tells me that I am not using a descendant of Theme.AppCompat, even though I believe I am. The app seems to run fine on 4.4 and 5.0. Here is the stacktrace from the Samsun... | android|material-design | 1 | 2015-02-23T18:38:15.533Z | 2,015 | 2 | 18 | 0 | 1,735 | 2 | 999 | 77 | 2 | 3 | true | false | false | false | false | false | low |
28,680,986 | How can I put the updated phone number into the field I picked for my Android app? | <p>How can I put the updated phone number into the field I picked? I have the picker returning the phone number but in the wrong field.</p>
<p><img src="https://i.stack.imgur.com/Brgtj.png" alt="enter image description here"></p>
<p>After picking a contact the phone number is placed in the wrong field.</p>
<p><img s... | How can I put the updated phone number into the field I picked? I have the picker returning the phone number but in the wrong field. After picking a contact the phone number is placed in the wrong field. My fragment responsible for this contact picker logic is in my repo https://github.com/jackygrahamez/MayDay/blob/gra... | android|android-fragments|android-contacts|android-fragmentactivity | 1 | 2015-02-23T18:41:56.183Z | 2,015 | 2 | 18 | 0 | 300 | 1 | 654 | 82 | 4 | 1 | true | false | false | false | false | false | low |
28,681,003 | How do I add my app's notification sound to the notification sound list? | <p>I want the user to be able to choose a notification sound for my app so I use the code below:</p>
<pre><code>Intent ringtoneIntent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
ringtoneIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false);
ringtoneIntent.putExtra(RingtoneManager.EXTRA_RINGTONE... | I want the user to be able to choose a notification sound for my app so I use the code below: [CODE] Unfortunately, my app's own notification sound isn't in the list. Google Hangouts, Calendar, and Facebook are in the list. I assume these programs have done something to register with android, but I cannot find any docu... | android|android-intent|notifications|ringtone | 6 | 2015-02-23T18:42:35.257Z | 2,015 | 2 | 18 | 0 | 951 | 2 | 348 | 72 | 4 | 1 | true | false | false | false | false | false | medium |
28,681,019 | GoogleDrive Android API Compile error: | <p>I am getting a compile error when I try to run the code shown below:</p>
<pre><code>package com.example.dude.googleapi;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import com.google.android.gms.common.ConnectionResult;
import c... | I am getting a compile error when I try to run the code shown below: [CODE] These are the dependencies I have added into the Gradle file: [CODE] And, the node in the Manifest file: [CODE] and, this is the only compile error I am getting: [CODE] could someone help in resolving this issue? | java|android|android-studio|google-api|google-drive-android-api | 1 | 2015-02-23T18:43:20.410Z | 2,015 | 2 | 18 | 0 | 682 | 0 | 288 | 38 | 5 | 4 | true | true | false | false | false | false | low |
28,681,052 | Android 5.0 Lollipop UsbDevice missing interfaces | <p>I wrote an android utility that talks to a few custom device over USB using the android UsbHost API. This works fine in 4.4, but in 5.0 some of the devices are missing their interfaces (getInterfaceCount() == 0).</p>
<p>I've been using them on a Galaxy Note 3 with CM11 and they've been working fine, but since this... | I wrote an android utility that talks to a few custom device over USB using the android UsbHost API. This works fine in 4.4, but in 5.0 some of the devices are missing their interfaces (getInterfaceCount() == 0). I've been using them on a Galaxy Note 3 with CM11 and they've been working fine, but since this version of ... | android|usb|android-5.0-lollipop | 5 | 2015-02-23T18:45:09.350Z | 2,015 | 2 | 18 | 0 | 1,920 | 1 | 1,157 | 49 | 3 | 1 | true | false | false | false | false | false | low |
28,681,057 | Exception: Package android does not belong to 2000 | <p>I have my Android device connected to my laptop and When I try to run:</p>
<pre><code>adb shell pm set-install-location 2
</code></pre>
<p>I am getting this error:</p>
<pre><code>"Package android does not belong to 2000"
</code></pre>
<p>What does it means?</p>
<p>How can I fix it?</p> | I have my Android device connected to my laptop and When I try to run: [CODE] I am getting this error: [CODE] What does it means? How can I fix it? | android|adb | 21 | 2015-02-23T18:45:32.140Z | 2,015 | 2 | 18 | 0 | 50,811 | 2 | 147 | 50 | 2 | 2 | true | false | true | true | true | false | high |
28,681,066 | Is the 'netstat' command generically available on Android? | <p>I currently use the following code to obtain some information on active network sockets. So far I've confirmed that this works on Nexus 4 (Jellybeans), Nexus 5 (Jellybeans, KitKat and Lollipop) and a Sony Xperia device (Jellybeans).</p>
<pre><code>Process process = Runtime.getRuntime().exec("netstat -n");
process.g... | I currently use the following code to obtain some information on active network sockets. So far I've confirmed that this works on Nexus 4 (Jellybeans), Nexus 5 (Jellybeans, KitKat and Lollipop) and a Sony Xperia device (Jellybeans). [CODE] Can I rely on the the above code to function properly on the majority of real-wo... | android|netstat | 1 | 2015-02-23T18:46:22.920Z | 2,015 | 2 | 18 | 0 | 14,368 | 1 | 350 | 58 | 2 | 1 | true | false | true | true | false | false | low |
28,681,271 | Android Studio and Eclipse | <p>All the people that I work with use Eclipse for creating android apps. However, I recently found out that Android is no longer supporting Eclipse and they are moving to Android Studio. All that apps that I am working on have been complied and created with Eclipse.</p>
<p>I'm thinking if the code and the programming... | All the people that I work with use Eclipse for creating android apps. However, I recently found out that Android is no longer supporting Eclipse and they are moving to Android Studio. All that apps that I am working on have been complied and created with Eclipse. I'm thinking if the code and the programming language i... | java|android|eclipse|android-studio|compatibility | 0 | 2015-02-23T18:57:15.303Z | 2,015 | 2 | 18 | 0 | 132 | 2 | 534 | 26 | 5 | 0 | false | false | false | false | false | false | zero |
28,681,272 | Retrieving Details of connected accounts of a contact in android | <p>I am making a contact app in android. I am able to retrieve contact name,number, Emailid of a contact using "Cursor".
When i click on contact it shows name,phone number and email id of that contact but i also want to show all connected accounts for that contact like "Gmail" and "Whatsapp" ,"Facebook","Yahoo" in it.... | I am making a contact app in android. I am able to retrieve contact name,number, Emailid of a contact using "Cursor". When i click on contact it shows name,phone number and email id of that contact but i also want to show all connected accounts for that contact like "Gmail" and "Whatsapp" ,"Facebook","Yahoo" in it. Is ... | android-contacts|android-account | 2 | 2015-02-23T18:57:15.587Z | 2,015 | 2 | 18 | 0 | 79 | 0 | 414 | 64 | 2 | 0 | false | true | false | false | false | false | low |
28,681,286 | TextView doesn't show in RelativeLayout | <p>I have a <code>TextView</code> which work normally but if I try to show <code>TextView</code> in <code>RelativeLayout</code> it doesn't show.("//this section begin and end")</p>
<p>My <code>XML</code> file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.a... | I have a TextView which work normally but if I try to show TextView in RelativeLayout it doesn't show.("//this section begin and end") My XML file: [CODE] if i want this code work, i must define more space for width and height of RelativeLayout , but i don't want. i want my RelativeLayout as the same width and height a... | android|xml|textview|android-relativelayout | 0 | 2015-02-23T18:58:03.463Z | 2,015 | 2 | 18 | 0 | 1,249 | 2 | 342 | 39 | 4 | 1 | true | false | false | false | false | false | zero |
28,681,310 | GCM send message from one device to other without any third part server | <p>I am trying to send messages from device to device, without the use of any third part server(Well I do use it for some other parts).
I am using HTTP request to send it to gcm server directly from device.</p>
<p>Heres what I have done.</p>
<pre><code> try {
HttpPost httppost;
try {
ht... | I am trying to send messages from device to device, without the use of any third part server(Well I do use it for some other parts). I am using HTTP request to send it to gcm server directly from device. Heres what I have done. [CODE] This returns [CODE] So it looks like authentication error for https . DO I need to se... | java|android|google-cloud-messaging | 0 | 2015-02-23T18:59:14.823Z | 2,015 | 2 | 18 | 0 | 88 | 0 | 468 | 71 | 3 | 2 | true | true | false | false | false | false | zero |
28,681,353 | How to access .java files from a directory outside of a package in android-studio? | <p>I try to solve this problem for hours now and didn't find a solution on the internet.
my project looks like this:</p>
<p><img src="https://i.stack.imgur.com/zV2qB.png" alt="project">
I want to access the files in the marked directory in the <code>de.MayerhoferSimon.Vertretungsplan</code> package. (yes, I know packa... | I try to solve this problem for hours now and didn't find a solution on the internet. my project looks like this: I want to access the files in the marked directory in the de.MayerhoferSimon.Vertretungsplan package. (yes, I know packages should be lowercase.) Is this possible and when yes, how? I tried some things with... | android|android-studio|gradle|build.gradle | 0 | 2015-02-23T19:01:49.747Z | 2,015 | 2 | 19 | 0 | 2,221 | 1 | 396 | 82 | 4 | 0 | false | false | false | false | false | false | zero |
28,681,365 | how to run code openCV | <p>I am beginner in programming i show this class </p>
<p><a href="http://www.magicandlove.com/blog/2014/03/06/people-detection-in-processing-with-opencv/" rel="nofollow">http://www.magicandlove.com/blog/2014/03/06/people-detection-in-processing-with-opencv/</a>
& i want to run it in net beans but main method is ... | I am beginner in programming i show this class http://www.magicandlove.com/blog/2014/03/06/people-detection-in-processing-with-opencv/ & i want to run it in net beans but main method is missed & some errors appears like can not find PImage also , size ,background can you help me how to run it & what should classes must... | java|android|opencv | -2 | 2015-02-23T19:02:11.517Z | 2,015 | 2 | 19 | 0 | 50 | 1 | 336 | 22 | 3 | 1 | true | false | false | false | false | true | negative |
28,681,423 | Volley org.json.JSONException when parsing valid JSON | <p>I am trying to parse the API: <a href="http://api.devnews.today" rel="nofollow">http://api.devnews.today</a>, which is valid JSON as verified here: <a href="http://jsonlint.com/" rel="nofollow">http://jsonlint.com/</a> and parsed on a web front-end here: <a href="http://devnews.today" rel="nofollow">http://devnews.t... | I am trying to parse the API: http://api.devnews.today , which is valid JSON as verified here: http://jsonlint.com/ and parsed on a web front-end here: http://devnews.today . I am building an Android client to also parse this data using Volley. The code below throws the Error.Listener, but returns part of the expected ... | java|android|json|android-volley | 0 | 2015-02-23T19:05:31.857Z | 2,015 | 2 | 19 | 0 | 1,111 | 1 | 346 | 53 | 4 | 2 | true | false | false | false | false | false | zero |
28,681,445 | Sharing the DataBase between Two Activities in Android | <p>I have a DataBaseAdapter class, which basically creates the database, table and some methods to manipulate the data in it. </p>
<p>It looks like this- </p>
<pre><code>import ...
public class DataBaseAdapter {
DataBaseForApp dataBaseForApp;
//Constructor for DataBaseAdapter
public DataBaseAdapter(Con... | I have a DataBaseAdapter class, which basically creates the database, table and some methods to manipulate the data in it. It looks like this- [CODE] Then I did this in my First Activity- [CODE] After this, A database has been created and the methods in DataBaseAdapter are available to me for manipulation. So far, It i... | android|sqlite | 1 | 2015-02-23T19:06:48.900Z | 2,015 | 2 | 19 | 0 | 1,839 | 2 | 608 | 54 | 2 | 3 | true | false | false | false | false | false | low |
28,681,493 | Listview populated from Strings.xml, how to theme it? | <p>so I have a list view setup the following way, not using an ArrayAdapter - how can i control how it looks?</p>
<p>the java file:</p>
<pre><code>// Get ListView object from xml
listView = (ListView) findViewById(R.id.list);
</code></pre>
<p>the xml:
</p>
<pre><code><ListView
android:id="@+id/list"
android:... | so I have a list view setup the following way, not using an ArrayAdapter - how can i control how it looks? the java file: [CODE] the xml: [CODE] | java|android|android-listview | 0 | 2015-02-23T19:08:52.313Z | 2,015 | 2 | 19 | 0 | 35 | 0 | 144 | 53 | 3 | 2 | true | true | false | false | false | false | zero |
28,681,521 | Design Guidelines - Sizing doesn't add up | <p>I'm currently wading myself through the <a href="http://www.google.com/design/" rel="nofollow noreferrer">Google Design Guidelines</a> and I'm struggling to implement parts of it in my application. </p>
<p>Following example: <a href="http://www.google.com/design/spec/components/lists.html#lists-specs" rel="nofoll... | I'm currently wading myself through the Google Design Guidelines and I'm struggling to implement parts of it in my application. Following example: Lists (Multiline) - Avatar with text Sizes: Primary text font: Roboto Regular 16sp Secondary text font: Roboto Regular 14sp Tile height: 72dp Left avatar padding: 16dp Text ... | android|android-layout|material-design | 4 | 2015-02-23T19:10:23.287Z | 2,015 | 2 | 19 | 0 | 431 | 1 | 1,026 | 41 | 3 | 1 | true | false | false | false | false | false | low |
28,681,559 | Scale TextView size according to dpi and resolution | <p>How can I choose text size so that it looks the same on every device? I find it to be an impossible task, probably you will say that I should make different values for each dpi but that doesn't solve the problem, because there are phones with the same dpi but different screen resolution, and in the end it doesn't lo... | How can I choose text size so that it looks the same on every device? I find it to be an impossible task, probably you will say that I should make different values for each dpi but that doesn't solve the problem, because there are phones with the same dpi but different screen resolution, and in the end it doesn't look ... | android|layout|textview|size | 1 | 2015-02-23T19:13:38.900Z | 2,015 | 2 | 19 | 0 | 956 | 2 | 354 | 51 | 4 | 0 | false | false | false | false | false | false | low |
28,681,590 | text renders over solid rect, but doesnt render over gradient | <p>I'm new to Android development, and trying to render a button to a Canvas object in an onDraw method, basically text over a backfield. It's a good way to get my feet wet with some of the rendering commands.</p>
<p>I am able to fill a solid rectangle and then draw centered text over it, but when I try to fill a gra... | I'm new to Android development, and trying to render a button to a Canvas object in an onDraw method, basically text over a backfield. It's a good way to get my feet wet with some of the rendering commands. I am able to fill a solid rectangle and then draw centered text over it, but when I try to fill a gradient rectan... | java|android | 4 | 2015-02-23T19:16:22.190Z | 2,015 | 2 | 19 | 0 | 67 | 1 | 865 | 61 | 2 | 1 | true | false | false | false | false | false | low |
28,681,624 | cannot create a new Fragment in custom FragmentStatePagerAdapter | <p>I'm trying to pre-populate a FragmentStatePagerAdapter with a list of objects but I cannot instantiate a new fragment. </p>
<p><strong>Background:</strong></p>
<p>My PagerAdapter consists of an ArrayList of Msg objects (<strong>mMsgConvoList)</strong>.
MsgConvoList is an ArrayList of all messages from a given thre... | I'm trying to pre-populate a FragmentStatePagerAdapter with a list of objects but I cannot instantiate a new fragment. Background: My PagerAdapter consists of an ArrayList of Msg objects ( mMsgConvoList) . MsgConvoList is an ArrayList of all messages from a given thread. The partitioning of mMsgConvoList creates sublis... | android|android-viewpager|fragmentstatepageradapter | 0 | 2015-02-23T19:18:11.417Z | 2,015 | 2 | 19 | 0 | 165 | 0 | 1,501 | 64 | 3 | 3 | true | true | false | false | false | false | zero |
28,681,635 | Open a file from SD card in android | <p>To open a file from android application asset folder I used below code: </p>
<pre><code>InputStream fis = getApplicationContext().getAssets().open(filename);
</code></pre>
<p>Same thing I want to open a file from SDcard... How to do?</p> | To open a file from android application asset folder I used below code: [CODE] Same thing I want to open a file from SDcard... How to do? | android|android-sdcard|ioexception | -2 | 2015-02-23T19:18:43.603Z | 2,015 | 2 | 19 | 0 | 1,636 | 1 | 137 | 35 | 3 | 1 | true | false | false | false | false | true | negative |
28,681,744 | Saving a canvas in Android does not work every time | <p>I'm having this code:</p>
<pre><code>public void saveimage() {
Bitmap bitmap = Bitmap.createBitmap(colorGFX.getWidth(),
colorGFX.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
canvas.drawColor(Color.WHITE);
canvas = colorGFX.canvas;
canvas.setBitmap(bitmap... | I'm having this code: [CODE] colorGFX object extends a SurfaceView. saveBitmap actually writes the image on the file. The problem is that most of the times a WHITE image is saved, other times the correct image is saved. Did I missed something, or why does the image saves only let's say 1/5 of the times? | android|canvas|surfaceview | 0 | 2015-02-23T19:26:19.127Z | 2,015 | 2 | 19 | 0 | 144 | 2 | 304 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
28,681,749 | How to setup gradle in Android Studio to provide two flavors with different minimum SDK versions? | <p>Problem: I want two product flavors, a FREE version with ads and a PRO version without ads.
Ads require Google Play with a min SDK of 9 so I set that for FREE but I want my pro version to have a min SDK of 8. </p>
<p>The build of the FREE version works but the build of PRO does not.</p>
<p>I am using (stable) And... | Problem: I want two product flavors, a FREE version with ads and a PRO version without ads. Ads require Google Play with a min SDK of 9 so I set that for FREE but I want my pro version to have a min SDK of 8. The build of the FREE version works but the build of PRO does not. I am using (stable) Android Studio 1.1.0. I ... | android|android-studio|gradle|android-productflavors | 4 | 2015-02-23T19:26:54.427Z | 2,015 | 2 | 19 | 0 | 872 | 1 | 876 | 97 | 4 | 3 | true | false | false | false | false | false | low |
28,681,754 | Android App is crashed on returning from an app like Google Map/GPS settings | <p>I am calling Google Maps/GPS settings from my activity via intent. Goolge Maps appliation/GPS settings runs smoothly but when I press back button, my app is crashed.</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}... | I am calling Google Maps/GPS settings from my activity via intent. Goolge Maps appliation/GPS settings runs smoothly but when I press back button, my app is crashed. [CODE] | android-intent|android-actionbar | 0 | 2015-02-23T19:27:13.420Z | 2,015 | 2 | 19 | 0 | 106 | 1 | 172 | 76 | 2 | 1 | true | false | false | false | false | false | zero |
28,681,798 | Error inflating class com.tokenautocomplete.ContactsCompletionView | <p>I am trying to encorporate this <a href="https://github.com/splitwise/TokenAutoComplete" rel="nofollow">plugin</a> into a fragment of mine. I like the dependencie in my gradle file:</p>
<pre><code>compile "com.splitwise:tokenautocomplete:1.3.1@aar"
</code></pre>
<p>My fragments onCreateView looks like:</p>
<pre><... | I am trying to encorporate this plugin into a fragment of mine. I like the dependencie in my gradle file: [CODE] My fragments onCreateView looks like: [CODE] And then I extend a ContactsCompletionView like so: [CODE] And finally in my fragment_tutor_setup.xml: [CODE] **EDIT STACK ** [CODE] I know I have came across thi... | java|android|android-fragments|tokenautocomplete | 0 | 2015-02-23T19:30:12.623Z | 2,015 | 2 | 19 | 0 | 548 | 1 | 465 | 66 | 4 | 5 | true | false | false | false | false | false | zero |
28,681,831 | How do you get ripple effect to extend past view bounds? | <p>The touch ripple effect here expands past its bounds. How is this done?</p>
<p><img src="https://i.stack.imgur.com/pwUbN.png" alt="enter image description here"></p>
<p>EDIT: I am okay with this working on 5.0+ only.</p> | The touch ripple effect here expands past its bounds. How is this done? EDIT: I am okay with this working on 5.0+ only. | android|android-layout|android-imageview|android-view | 11 | 2015-02-23T19:31:44.860Z | 2,015 | 2 | 19 | 0 | 4,193 | 3 | 119 | 56 | 4 | 0 | false | false | true | false | true | false | medium |
28,681,838 | Code not working. Notification that should go off once a day | <p>So I don't know why this code is not working. I wanted to make an "alarm" notification that would go off once a day. Just wanted to say im new to android. Thanks. </p>
<p><em>Edit</em>: Changed up the code a bit. Alarm method executes and the notification does too, but I get this error message: </p>
<blockquote>
... | So I don't know why this code is not working. I wanted to make an "alarm" notification that would go off once a day. Just wanted to say im new to android. Thanks. Edit : Changed up the code a bit. Alarm method executes and the notification does too, but I get this error message: -248/? D/PowerManagerService﹕ releaseWak... | java|android|xml | -1 | 2015-02-23T19:32:07.913Z | 2,015 | 2 | 19 | 0 | 80 | 2 | 672 | 60 | 3 | 1 | true | false | false | false | false | true | negative |
28,681,840 | Google Maps v2 in the Android Studio. Not found GeoPoint | <p>I am working on a code that was made in the Eclipse and i am migrating to Android Studio, however i am having a problem to the to import
<br/>
<code>com.google.android.maps.GeoPoint;</code>
<br/>
but i can import
<br/>
<code>com.google.android.gms.maps.GoogleMap;</code>
<br/><br/>
I've tried to add in my Gradle file... | I am working on a code that was made in the Eclipse and i am migrating to Android Studio, however i am having a problem to the to import com.google.android.maps.GeoPoint; but i can import com.google.android.gms.maps.GoogleMap; I've tried to add in my Gradle file compile 'com.google.android.gms:play-services:6.5.87' and... | java|android|google-maps | 6 | 2015-02-23T19:32:10.690Z | 2,015 | 2 | 19 | 0 | 9,637 | 2 | 578 | 56 | 3 | 0 | false | false | true | false | false | false | medium |
28,681,843 | Cancelling an Async Task In Android | <p>i am trying to cancel an async task after a period of time. i have searched and found a lot of questions about this and all having the same answer like what i am doing below.</p>
<p>problem: after calling cancel, the webservice does not seem to cancel because it never reaches the onPostExecute.
please any help will... | i am trying to cancel an async task after a period of time. i have searched and found a lot of questions about this and all having the same answer like what i am doing below. problem: after calling cancel, the webservice does not seem to cancel because it never reaches the onPostExecute. please any help will be appreci... | android|android-asynctask | 2 | 2015-02-23T19:32:16.583Z | 2,015 | 2 | 19 | 0 | 95 | 2 | 496 | 35 | 2 | 2 | true | false | false | false | false | false | low |
28,681,849 | Googlemap Marker from GeoPoint | <p>I have a Jar with geopoints, I use this bit of code to find the nearest city : </p>
<pre><code>GetNService gn = new GetNService();
NGeoPoint nearest = gn.getN(lat, lon);
GeoPoint city = nearest.getPoint();
</code></pre>
<p>I would like to add a marker, but I don't know how to add with Geopoint.</p>
<p>Thanks</p> | I have a Jar with geopoints, I use this bit of code to find the nearest city : [CODE] I would like to add a marker, but I don't know how to add with Geopoint. Thanks | android|google-maps-markers|google-maps-android-api-2 | 0 | 2015-02-23T19:32:28.407Z | 2,015 | 2 | 19 | 0 | 451 | 1 | 165 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
28,681,877 | Android how to update (UI thread) from other classes (really?) | <p>you may know about <a href="https://developer.android.com/google/gcm/client.html" rel="nofollow">Google Cloud Messaging</a> </p>
<p>The problem is that when a gcm message triggers by the server, my application receives a bundle from google play services, this happen at <code>GcmBroadcastReceiver.java</code>. Here i... | you may know about Google Cloud Messaging The problem is that when a gcm message triggers by the server, my application receives a bundle from google play services, this happen at GcmBroadcastReceiver.java . Here i can send this data to other classes in order to append some info from the server.. well. I got stuck when... | java|android|android-asynctask|google-cloud-messaging | 0 | 2015-02-23T19:33:28.943Z | 2,015 | 2 | 19 | 0 | 1,724 | 2 | 1,104 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
28,681,896 | Indeterminate Progress Bar won't disappear (Android) | <p>I am executing an ASync task that is in charge of:</p>
<ol>
<li><p>Displaying the indeterminate progress bar.</p></li>
<li><p>Loading a state from memory. </p></li>
<li><p>Removing the indeterminate progress bar. </p></li>
<li><p>Starting a new activity. </p></li>
</ol>
<p>It is able to complete steps 1, 2, and 4 ... | I am executing an ASync task that is in charge of: Displaying the indeterminate progress bar. Loading a state from memory. Removing the indeterminate progress bar. Starting a new activity. It is able to complete steps 1, 2, and 4 just fine, however when I use the back button to return from the activity started in step ... | android|android-progressbar | 0 | 2015-02-23T19:34:59.683Z | 2,015 | 2 | 19 | 0 | 302 | 1 | 876 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
28,681,908 | NoClassFoundDef error for FileBody | <p>So i want to send an image through HttpPost and i found a source code which does just that. The problem is that it's getting me a ClassNotFoundDef for FileBody. I already set the dependencies in the Gradle file and imported the httpmime-4.4.jar to the libs folder. So i don't know why I keep getting this error.</p>
... | So i want to send an image through HttpPost and i found a source code which does just that. The problem is that it's getting me a ClassNotFoundDef for FileBody. I already set the dependencies in the Gradle file and imported the httpmime-4.4.jar to the libs folder. So i don't know why I keep getting this error. Exportar... | java|android | 0 | 2015-02-23T19:35:57.243Z | 2,015 | 2 | 19 | 0 | 1,407 | 1 | 508 | 34 | 2 | 3 | true | false | false | false | false | false | zero |
28,681,975 | How to add picker to insert amount? | <p>i need to add a picker in my activity that allows to insert a double value, with minimum 0,2 and step 0,01. Something like this:</p>
<p><img src="https://i.stack.imgur.com/ZLBnp.png" alt="enter image description here"></p>
<p>I tried to search on Android documentation and i found these:</p>
<p><img src="https://i... | i need to add a picker in my activity that allows to insert a double value, with minimum 0,2 and step 0,01. Something like this: I tried to search on Android documentation and i found these: Is it possible to suit Android picker to my purpose? Does exist anything better? | android|insert|selection|picker | 0 | 2015-02-23T19:39:55.227Z | 2,015 | 2 | 19 | 0 | 69 | 1 | 271 | 35 | 4 | 0 | false | false | false | false | false | false | zero |
28,682,011 | android ImageView setContentDescription with ListAdapter | <p>I have a news list. I use this;</p>
<pre><code>ListAdapter adapter = new SimpleAdapter(this, getXmlData(URL,KEY_ITEM,KEY_COLUMN),
R.layout.news_list,
new String[] { KEY_COLUMN[1],KEY_COLUMN[0] }, new int[] {
R.id.name,R.id.list_image});
</code></pre>
<p>KEY_COLUMN[1] is caption.
KEY... | I have a news list. I use this; [CODE] KEY_COLUMN[1] is caption. KEY_COLUMN[0] is id value. It must be hidden. My problem is R.id.list_image. I can set KEY_COLUMN[0] to src of R.id.list_image. But i want to set KEY_COLUMN[0] to contentDescription of R.id.list_image. Can you help? I don't use lazyadaptor etc. EDİT: i ha... | java|android|listview | 0 | 2015-02-23T19:42:49.103Z | 2,015 | 2 | 19 | 0 | 654 | 1 | 495 | 56 | 3 | 2 | true | false | false | false | false | false | zero |
28,682,075 | How to align setError when fitSystemWindows is true | <p>I'm using translucent toolbars in my app and have applied the following settings:</p>
<pre><code> <item name="android:windowTranslucentStatus">true</item>
<item name="android:fitsSystemWindows">true</item>
</code></pre>
<p>This works as expected, however when I display any error mess... | I'm using translucent toolbars in my app and have applied the following settings: [CODE] This works as expected, however when I display any error messages on my EditTexts via setError, the error message is not aligned properly. For example, here is an error message when fitsSystemWindows is true: Here is an error messa... | android | 1 | 2015-02-23T19:46:01.977Z | 2,015 | 2 | 19 | 0 | 256 | 0 | 430 | 51 | 1 | 1 | true | true | false | false | false | false | low |
28,682,217 | Android: getting Null Pointer Exception when inserting in Array | <p>I'm getting the error <strong><em>"java.lang.NullPointerException: Attempt to write to null array"</em></strong> when, after getting some data from database I have to put that data in a ArrayAdapter.</p>
<pre><code>DatabaseHelper databaseHelper = new DatabaseHelper(this.getApplicationContext());
List <G... | I'm getting the error "java.lang.NullPointerException: Attempt to write to null array" when, after getting some data from database I have to put that data in a ArrayAdapter. [CODE] Can you please tell me how can I solve this error? | java|android | 2 | 2015-02-23T19:53:42.513Z | 2,015 | 2 | 19 | 0 | 8,310 | 2 | 231 | 63 | 2 | 1 | true | false | true | false | false | false | low |
28,682,232 | angular.js - set templateUrl dynamically by language (app.config stateprovider) | <p>I'm developing a mobile app using Ionic framework and I have a big problem to handle the multilanguage functionality for help page.</p>
<p>I have 2 languages (en + de) and I want to load help_en.html or help_de.html depending on the language. </p>
<p>I have set in the main controller the default language and the c... | I'm developing a mobile app using Ionic framework and I have a big problem to handle the multilanguage functionality for help page. I have 2 languages (en + de) and I want to load help_en.html or help_de.html depending on the language. I have set in the main controller the default language and the changeLanguage functi... | android|angularjs|angular-ui-router|ionic-framework | 0 | 2015-02-23T19:54:33.637Z | 2,015 | 2 | 19 | 0 | 913 | 1 | 725 | 79 | 4 | 3 | true | false | false | false | false | false | zero |
28,682,255 | Theme.AppCompat.Light actionbaractivity vs activity | <p>If I want to use <code>Theme.AppCompat.Light</code> and target minSDK 15, do I have to use ActionBarActivity or can I use Activity if I want to have the Action Bar?</p> | If I want to use Theme.AppCompat.Light and target minSDK 15, do I have to use ActionBarActivity or can I use Activity if I want to have the Action Bar? | android|android-actionbar|android-appcompat | 0 | 2015-02-23T19:55:55.347Z | 2,015 | 2 | 19 | 0 | 288 | 1 | 151 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
28,682,342 | Format String with date to other format | <p>How can I format string with date: <code>2015-02-17T12:12:17+01:00</code> to <code>17.02.2015, 12:12</code>? This is possible? I read about SimpleDateFormat, but I don't know How can I write format for this example.</p> | How can I format string with date: 2015-02-17T12:12:17+01:00 to 17.02.2015, 12:12 ? This is possible? I read about SimpleDateFormat, but I don't know How can I write format for this example. | android | 0 | 2015-02-23T20:00:04.977Z | 2,015 | 2 | 20 | 0 | 79 | 1 | 190 | 39 | 1 | 0 | false | false | false | false | false | false | zero |
28,682,370 | Interstitial dfp ads not filling full screen on Android tablets | <p>We are attempting to serve full page ads via DFP and AdMob to our Android app. We cannot get ads to fill the screen, ads will only appear in the predefined interstitial sizes, 320x480 for the 7inch device and 768x1024 for the 10inch device. How do we get the DFP SDK to accurately detect the device screen resolution ... | We are attempting to serve full page ads via DFP and AdMob to our Android app. We cannot get ads to fill the screen, ads will only appear in the predefined interstitial sizes, 320x480 for the 7inch device and 768x1024 for the 10inch device. How do we get the DFP SDK to accurately detect the device screen resolution and... | android|admob|ads|interstitial|google-dfp | 4 | 2015-02-23T20:01:43.183Z | 2,015 | 2 | 20 | 0 | 708 | 1 | 353 | 63 | 5 | 0 | false | false | false | false | false | false | low |
28,682,408 | Android toolbar filling entire screen | <p>So I am attempting to implement a navigation drawer using the appcompat library. I am using a toolbar as my action bar. My issue is that my toolbar is filling the entire screen.</p>
<p><a href="http://imgur.com/9fPbWua" rel="nofollow">This being the problem</a></p>
<p>Here is my toolbar.</p>
<pre><code> <andro... | So I am attempting to implement a navigation drawer using the appcompat library. I am using a toolbar as my action bar. My issue is that my toolbar is filling the entire screen. This being the problem Here is my toolbar. [CODE] And my main activity. [CODE] And finally my source. [CODE] EDIT: If I move the toolbar inclu... | android|android-5.0-lollipop|android-appcompat|android-toolbar | 4 | 2015-02-23T20:03:40.947Z | 2,015 | 2 | 20 | 0 | 3,345 | 1 | 425 | 37 | 4 | 3 | true | false | true | false | false | false | low |
28,682,429 | Getting an SQLite working within Android and accessing data | <p>I am trying to get an SQLite database to work in Android and have a few questions!</p>
<p>I have put the following in the <code>onCreate</code> method of my database class, which extends <code>SQLiteOpenHelper</code>.</p>
<pre><code>db.execSQL("CREATE TABLE IF NOT EXISTS `challenge` (`id` INTEGER PRIMARY KEY AUTOI... | I am trying to get an SQLite database to work in Android and have a few questions! I have put the following in the onCreate method of my database class, which extends SQLiteOpenHelper . [CODE] I then have the following method. [CODE] And the following would grab the challenge added above back. [CODE] My issue is that t... | android|sqlite | 0 | 2015-02-23T20:05:14.633Z | 2,015 | 2 | 20 | 0 | 23 | 1 | 549 | 59 | 2 | 4 | true | false | false | false | false | false | zero |
28,682,461 | how to make the items of expandable listview check/uncheckable | <p>I have an expandablelistview that works fine. Now I want to export the data of expandable listview and I want the user to be able to choose (or check like there be a checkbox or something) which items of listview to export. How can I do that? Can anyone give me a solution please? I have searched the net but didn't f... | I have an expandablelistview that works fine. Now I want to export the data of expandable listview and I want the user to be able to choose (or check like there be a checkbox or something) which items of listview to export. How can I do that? Can anyone give me a solution please? I have searched the net but didn't find... | android|listview|checkbox|android-listview|expandablelistview | 0 | 2015-02-23T20:06:45.533Z | 2,015 | 2 | 20 | 0 | 477 | 1 | 453 | 62 | 5 | 0 | false | false | false | false | false | false | zero |
28,682,492 | How to reuse SupportMapFragment inside other Fragment | <p>I just switched to the newest version of android-maps-extensions (2.2.0) together with newest Play Services (6.5.87) and support library (21.0.3).
And now I can't reuse my MapFragment.</p>
<p>I have MainActivity with NavigationDrawer. One of the fragments is fragment with GoogleMap fragment inside. When I switch be... | I just switched to the newest version of android-maps-extensions (2.2.0) together with newest Play Services (6.5.87) and support library (21.0.3). And now I can't reuse my MapFragment. I have MainActivity with NavigationDrawer. One of the fragments is fragment with GoogleMap fragment inside. When I switch between fragm... | android-maps-v2|android-maps|android-maps-extensions | 4 | 2015-02-23T20:08:34.883Z | 2,015 | 2 | 20 | 0 | 1,294 | 1 | 847 | 53 | 3 | 2 | true | false | false | false | false | false | low |
28,682,494 | Pass a method through/as a parameter - ANDROID | <p>I have 2 classes: </p>
<p>TelaCadastroRestaurante (extends Activity) and Metodos (doesn't extends Activity).</p>
<p>On my first class i have this: <a href="http://i.imgur.com/N0jrjc1.png" rel="nofollow">http://i.imgur.com/N0jrjc1.png</a></p>
<p>On my second class i have this: <a href="http://i.imgur.com/PimEoxr.p... | I have 2 classes: TelaCadastroRestaurante (extends Activity) and Metodos (doesn't extends Activity). On my first class i have this: http://i.imgur.com/N0jrjc1.png On my second class i have this: http://i.imgur.com/PimEoxr.png So, What do i want to? In my method caixaCerteza(), i want pass the method mandarNuvem() throu... | java|android | 0 | 2015-02-23T20:08:48.083Z | 2,015 | 2 | 20 | 0 | 45 | 1 | 433 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
28,682,527 | how add some data inside sqlite database | <p>I want to add some data inside my database .. i want to add the "admin" as default username and password for my program .. so that no need to register on first run of my program when i input username and password to my Edittext it will continue to go inside the admin activity.. </p>
<p>this my coding to add some d... | I want to add some data inside my database .. i want to add the "admin" as default username and password for my program .. so that no need to register on first run of my program when i input username and password to my Edittext it will continue to go inside the admin activity.. this my coding to add some data [CODE] th... | android|sqlite | 0 | 2015-02-23T20:11:20.690Z | 2,015 | 2 | 20 | 0 | 652 | 0 | 422 | 40 | 2 | 2 | true | true | false | false | false | false | zero |
28,682,565 | Android Listview / item / textview / shape | <p>here you see the end of my items/groupitems of a listview/expandablelistview.</p>
<p>There are a textview with a Background shape.</p>
<p><img src="https://i.stack.imgur.com/fsUOP.jpg" alt="enter image description here"></p>
<p>I would like to make the textview clickable but ... it is too small ...</p>
<p>Now I ... | here you see the end of my items/groupitems of a listview/expandablelistview. There are a textview with a Background shape. I would like to make the textview clickable but ... it is too small ... Now I would like to span the shape over the whole Background (height) top to bottom but how to? [CODE] | android|listview | 1 | 2015-02-23T20:13:24.120Z | 2,015 | 2 | 20 | 0 | 151 | 2 | 298 | 42 | 2 | 1 | true | false | false | false | false | false | low |
28,682,672 | How to update ListView when data fetched from Server | <p>This is how my <code>ListFragment</code> looks </p>
<pre><code>public class TransactionListFragment extends ListFragment {
private List<Transaction> mTransactions;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getActivity().setTi... | This is how my ListFragment looks [CODE] and Transactions.get(getActivity()).getTransactionsFromServer(); looks like [CODE] Given that the task will happen asynchronously, the ListView would be empty initially. Question How do I indicate from my Transactions that reload the listView once I am done getting the results? ... | android|listview | 0 | 2015-02-23T20:19:47.673Z | 2,015 | 2 | 20 | 0 | 326 | 3 | 417 | 52 | 2 | 3 | true | false | false | false | false | false | zero |
28,682,680 | Add android project classes to Android Studio project | <p>Seasoned iOS developer, new Android developer here..</p>
<p>I saw this java class on git hub that I wanted to use.
<a href="https://github.com/CardinalNow/Android-CircleProgressIndicator" rel="nofollow">https://github.com/CardinalNow/Android-CircleProgressIndicator</a>
My question is very simple yet I could not fi... | Seasoned iOS developer, new Android developer here.. I saw this java class on git hub that I wanted to use. https://github.com/CardinalNow/Android-CircleProgressIndicator My question is very simple yet I could not find help on it anywhere (perhaps a lack of phrasing on my part), but how do i get the circular progress c... | java|android|git|github|android-studio | 0 | 2015-02-23T20:20:38.340Z | 2,015 | 2 | 20 | 0 | 1,135 | 1 | 649 | 53 | 5 | 0 | false | false | false | false | false | false | zero |
28,682,699 | Programmatically saving a file on an Android device | <p>I'm writing some UI tests, and I need to be able to have those tests programmatically take screenshots of my application at certain points. I wasn't really sure how to even take a screenshot from inside a UI test, but I've figured that out and have slightly modified some code I found online to work for my purposes. ... | I'm writing some UI tests, and I need to be able to have those tests programmatically take screenshots of my application at certain points. I wasn't really sure how to even take a screenshot from inside a UI test, but I've figured that out and have slightly modified some code I found online to work for my purposes. As ... | android|file|save|screenshot | 0 | 2015-02-23T20:21:37.297Z | 2,015 | 2 | 20 | 0 | 4,601 | 1 | 1,790 | 51 | 4 | 3 | true | false | true | false | false | false | zero |
28,682,726 | Android uper.android.view.inflate exception | <p>I have problem in android list activity .</p>
<p>Here is my class :</p>
<pre><code> package com.zheek.story;
import java.util.ArrayList;
import android.app.ListActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import andr... | I have problem in android list activity . Here is my class : [CODE] And this is my layout : [CODE] And this is custom layout for each row : [CODE] This activity doesn't run on API 19 and uper .I run It on API 16 And run correctly . [CODE] | android|listview|android-actionbar | 1 | 2015-02-23T20:23:20.307Z | 2,015 | 2 | 20 | 0 | 273 | 5 | 238 | 43 | 3 | 4 | true | false | false | false | false | false | low |
28,682,765 | Creating a scrollable game map in Android Studio | <p>I'm trying to make a TBS game app. The basic premise is that each player has a bunch of stars that are laid out on a 2D map and your goal is to conquer half the total stars.</p>
<p>I'm trying to figure out the best way to set up this game board. I want the board to be bigger than the device's screen (meaning the us... | I'm trying to make a TBS game app. The basic premise is that each player has a bunch of stars that are laid out on a 2D map and your goal is to conquer half the total stars. I'm trying to figure out the best way to set up this game board. I want the board to be bigger than the device's screen (meaning the user will scr... | android|android-layout|android-view | 0 | 2015-02-23T20:25:05.440Z | 2,015 | 2 | 20 | 0 | 1,071 | 0 | 563 | 48 | 3 | 0 | false | true | false | false | false | false | zero |
28,682,777 | Android Animation - View Not Refreshing | <p>This is probably a pretty simple question, I have a fragment that is added dynamically. The fragment has a button with a click event that animates the view +50 on the x-axis and +50 on the y-axis. </p>
<p>The animation works fine but the problem is when I click on the button after the animation it doesn't work but ... | This is probably a pretty simple question, I have a fragment that is added dynamically. The fragment has a button with a click event that animates the view +50 on the x-axis and +50 on the y-axis. The animation works fine but the problem is when I click on the button after the animation it doesn't work but the click ev... | android|animation | 0 | 2015-02-23T20:25:56.743Z | 2,015 | 2 | 20 | 0 | 96 | 1 | 581 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
28,682,862 | Android/Java sequence of serially executed tasks | <p>How can I have a sequence of tasks that run one after another (Serially). I'm not using <code>AsyncTasks</code>, but the <code>loopj AsyncHttpClient</code>, but the question applies to other tasks as well.</p>
<p>The way it's structured is: Application has main method that performs multiple async calls. These calls... | How can I have a sequence of tasks that run one after another (Serially). I'm not using AsyncTasks , but the loopj AsyncHttpClient , but the question applies to other tasks as well. The way it's structured is: Application has main method that performs multiple async calls. These calls are mutually serial, one must be r... | java|android|asynchronous|concurrency|android-asynctask | 0 | 2015-02-23T20:30:11.537Z | 2,015 | 2 | 20 | 0 | 458 | 2 | 1,039 | 48 | 5 | 0 | false | false | false | false | false | false | zero |
28,682,897 | Viewpager adapter in android | <p>Why does my pager adapter doesn't want to start from my first item. When I start ContainerIspiti activity, and show first fragment, the view pager dones't show the right element. Insted of first, view pager shows the second element, and I can't to swipe to first element of my array list. Does anybody have solution.
... | Why does my pager adapter doesn't want to start from my first item. When I start ContainerIspiti activity, and show first fragment, the view pager dones't show the right element. Insted of first, view pager shows the second element, and I can't to swipe to first element of my array list. Does anybody have solution. Her... | android|android-activity|android-fragments|android-viewpager|viewpagerindicator | 0 | 2015-02-23T20:32:24.640Z | 2,015 | 2 | 20 | 0 | 205 | 1 | 437 | 28 | 5 | 2 | true | false | false | false | false | false | zero |
28,682,961 | Android Lollipop MediaSessionCompat missing setMediaButtonReceiver(PendingIntent) | <p>For lollipop we are told to replace </p>
<p><code>registerMediaButtonEventReceiver()</code> </p>
<p>with </p>
<p><code>setMediaButtonReceiver(PendingIntent)</code>. </p>
<p>This works in <strong>api21</strong> as MediaSession supports it. </p>
<p>My app goes <strong>api16-21</strong> so i try to use <code>Medi... | For lollipop we are told to replace registerMediaButtonEventReceiver() with setMediaButtonReceiver(PendingIntent) . This works in api21 as MediaSession supports it. My app goes api16-21 so i try to use MediaSessionCompat . Sadly it does not support the suggested call change. I am trying to write friendly code without a... | android|android-5.0-lollipop | 2 | 2015-02-23T20:36:28.930Z | 2,015 | 2 | 20 | 0 | 763 | 1 | 373 | 81 | 2 | 0 | false | false | false | false | false | false | low |
28,682,968 | Drawer navigation with Tabs | <p>Googling for three days. Can't help myself. I have navigation drawer and fragment and everything works perfect except tabs in fragment. This is part of MainActiviti Class...</p>
<pre><code>case R.id.linearLayoutHome:
fragment = new HomeFragment();
break; //this one works well
case R.id.linearLayout... | Googling for three days. Can't help myself. I have navigation drawer and fragment and everything works perfect except tabs in fragment. This is part of MainActiviti Class... [CODE] Calling fragment... [CODE] Home fragment which works perfect: [CODE] CategoryFragment which doesn't work. I think this is because of fragme... | java|android|android-fragments|tabs|navigation-drawer | 0 | 2015-02-23T20:37:10.300Z | 2,015 | 2 | 20 | 0 | 88 | 1 | 379 | 27 | 5 | 4 | true | false | false | false | false | false | zero |
28,683,001 | Libgdx preferences doesn't save properly | <p>So I'm having this problem with libgdx and using preferences. Preferences is supposed to save the float "value" and it does too, but when I kill my app from Android task manager or restart my Android system, the float is back on its default value. I have read that this may be caused by the static value of the float,... | So I'm having this problem with libgdx and using preferences. Preferences is supposed to save the float "value" and it does too, but when I kill my app from Android task manager or restart my Android system, the float is back on its default value. I have read that this may be caused by the static value of the float, bu... | java|android|libgdx|preferences | 0 | 2015-02-23T20:39:26.043Z | 2,015 | 2 | 20 | 0 | 502 | 1 | 637 | 40 | 4 | 2 | true | false | false | false | false | false | zero |
28,683,029 | "Order" of values in Bundle | <p>If I put several items in Bundle, can I rely that I'll get them out in the same order when I for-each the keys of the bundle?</p>
<p>For example:</p>
<pre><code>Bundle bundle = new Bundle();
bundle.putString("key1", "A");
bundle.putString("key2", "B");
bundle.putString("key3", "C");
</code></pre>
<p>Can I rely th... | If I put several items in Bundle, can I rely that I'll get them out in the same order when I for-each the keys of the bundle? For example: [CODE] Can I rely that after the following code [CODE] the value of concat will be "ABC" ? | java|android | 4 | 2015-02-23T20:41:03.020Z | 2,015 | 2 | 20 | 0 | 480 | 2 | 229 | 27 | 2 | 2 | true | false | false | false | false | false | low |
28,683,034 | How set padding (or margin) to android.support.v4.widget.DrawerLayout, but | <p>I have a list with many elements, and this list - in DrawerLayout.
Here <a href="http://www.google.com/design/spec/patterns/navigation-drawer.html" rel="nofollow">http://www.google.com/design/spec/patterns/navigation-drawer.html</a> -
Vertical spacing - 8dp, that what me need.</p>
<p>How set padding or margin (8dp... | I have a list with many elements, and this list - in DrawerLayout. Here http://www.google.com/design/spec/patterns/navigation-drawer.html - Vertical spacing - 8dp, that what me need. How set padding or margin (8dp) to DrawerLayout, that after scroll down my list , this padding or margin be scrolled along with the list.... | android|drawerlayout | 1 | 2015-02-23T20:41:27.573Z | 2,015 | 2 | 20 | 0 | 898 | 1 | 420 | 74 | 2 | 0 | false | false | false | false | false | false | low |
28,683,056 | Table layout with textviews | <p>I have a table layout with 3 columns, and I have 3 string arrays. I want that every column have a textview per cell from the string array.
My code so far:</p>
<pre><code>TableLayout prices = (TableLayout)findViewById(R.id.table);
prices.setStretchAllColumns(true);
prices.bringToFront();
table = getRes... | I have a table layout with 3 columns, and I have 3 string arrays. I want that every column have a textview per cell from the string array. My code so far: [CODE] It looks like this: My string arrays: [CODE] I want to every column display numbers from the right string array. How can I do that? Thanks in advance. | android|textview|android-tablelayout | 0 | 2015-02-23T20:43:05.110Z | 2,015 | 2 | 20 | 0 | 442 | 3 | 312 | 27 | 3 | 2 | true | false | false | false | false | false | zero |
28,683,178 | Integrate Rest API Into Android Application | <p>I am creating an Android application that will need to get data from a Web API. I am running a MVC Web API application on localhost with a SQL Server Database. I want to retrieve the data and output to TextViews in my application. I am new to API calls and im not sure if am I doing it correctly. Source code below</p... | I am creating an Android application that will need to get data from a Web API. I am running a MVC Web API application on localhost with a SQL Server Database. I want to retrieve the data and output to TextViews in my application. I am new to API calls and im not sure if am I doing it correctly. Source code below fragm... | android|sql|api|model-view-controller|textview | 0 | 2015-02-23T20:50:26.470Z | 2,015 | 2 | 20 | 0 | 764 | 1 | 364 | 43 | 5 | 2 | true | false | false | false | false | false | zero |
28,683,233 | Dealy in wallpaperManager.setBitmap (bitmap) | <p>I am trying to change wallpaper using a widget.
I use the code below to achieve that:
But there is an certain delay every time the code is executed.</p>
<p>Is there any way to <strong>avoid this delay</strong>. </p>
<pre><code>...
WallpaperManager wallpaperManager = WallpaperManager.getInstance (context);
Bitmap b... | I am trying to change wallpaper using a widget. I use the code below to achieve that: But there is an certain delay every time the code is executed. Is there any way to avoid this delay . [CODE] | android|bitmapfactory|android-bitmap|android-wallpaper | 1 | 2015-02-23T20:54:19.183Z | 2,015 | 2 | 20 | 0 | 746 | 1 | 194 | 44 | 4 | 1 | true | false | false | false | false | false | low |
28,683,245 | Android - Embed Custom Map | <p>I want to embed a custom map inside android app. It is possible? And if yes - how?</p>
<p>The goal is to show specific places around you.
I can create a map and put markers on it (client-side/java) with coordinates I get from my server.
But, I would like, if possible, Google's MapFragment to handle this task and up... | I want to embed a custom map inside android app. It is possible? And if yes - how? The goal is to show specific places around you. I can create a map and put markers on it (client-side/java) with coordinates I get from my server. But, I would like, if possible, Google's MapFragment to handle this task and update the ma... | java|android|google-maps|maps | 0 | 2015-02-23T20:54:55.210Z | 2,015 | 2 | 20 | 0 | 122 | 1 | 424 | 26 | 4 | 0 | false | false | false | false | false | false | zero |
28,683,276 | How to deliver and persist changes to the UI from an asynchronous task hosted by a retained fragment? | <p>Using a retained fragment to host asynchronous tasks is not a new idea (see Alex Lockwood's excellent <a href="http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html" rel="nofollow noreferrer">blog post</a> on the topic)</p>
<p>But after using this I've come up against issues when... | Using a retained fragment to host asynchronous tasks is not a new idea (see Alex Lockwood's excellent blog post on the topic) But after using this I've come up against issues when delivering content back to my activity from the AsyncTask callbacks. Specifically, I found that trying to dismiss a dialog could result in a... | android|android-fragments|asynchronous|android-asynctask|android-lifecycle | 2 | 2015-02-23T20:56:30.243Z | 2,015 | 2 | 20 | 0 | 443 | 2 | 2,489 | 101 | 5 | 2 | true | false | false | false | false | false | low |
28,683,327 | How to check if Gradle dependency has new version? | <p>In Android Studio when I use a <code>+</code> in the version number like:<br />
<code>com.android.support:recyclerview-v7:21.+</code><br />
I get a "Avoid using + in version numbers" warning.</p>
<p>But when I use a specific version number I can't always use the latest version. I have a lot of dependencies... | In Android Studio when I use a + in the version number like: com.android.support:recyclerview-v7:21.+ I get a "Avoid using + in version numbers" warning. But when I use a specific version number I can't always use the latest version. I have a lot of dependencies in my project. How do I check if a dependency h... | android-studio|gradle|version | 270 | 2015-02-23T20:59:16.320Z | 2,015 | 2 | 20 | 0 | 113,929 | 10 | 609 | 50 | 3 | 0 | false | false | true | true | true | false | high |
28,683,413 | Error Uploading app to android market | <p>if you work with cordova please help me to solve this error from google play :</p>
<blockquote>
<p>Upload failed You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.
You uploaded an APK that was signed
in debug mode. You need to sign your... | if you work with cordova please help me to solve this error from google play : Upload failed You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode. You need... | android|cordova | 1 | 2015-02-23T21:04:41.650Z | 2,015 | 2 | 21 | 0 | 2,134 | 3 | 417 | 37 | 2 | 0 | false | false | false | false | false | false | low |
28,683,620 | android - Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1) error | <p>I am developing a video recording app. Press the Home button, I tried to run it again. However, sometimes I did not get an error , but eventually I get an error...I do not know what is the problem. Please help me.</p>
<p>public class CameraActivity2 extends ActionBarActivity {</p>
<pre><code>private boolean isReco... | I am developing a video recording app. Press the Home button, I tried to run it again. However, sometimes I did not get an error , but eventually I get an error...I do not know what is the problem. Please help me. public class CameraActivity2 extends ActionBarActivity { [CODE] } And This is My LogCat. [CODE] | android|camera|fatal-error|segmentation-fault | 0 | 2015-02-23T21:17:10.420Z | 2,015 | 2 | 21 | 0 | 1,123 | 0 | 309 | 64 | 4 | 2 | true | true | false | false | false | false | zero |
28,683,656 | How to read a JSON file from Assests folder instead of URL in Volley | <p>I have a JSON file in the <code>assets</code> folder. I'd like to read this file and do something with the data. How can I use Volley for this? I can't find anything like this. I don't want to use more libraries like gson or jackson.</p>
<p>Can I handle it with just Volley?</p>
<p>Thanks a Lot.</p> | I have a JSON file in the assets folder. I'd like to read this file and do something with the data. How can I use Volley for this? I can't find anything like this. I don't want to use more libraries like gson or jackson. Can I handle it with just Volley? Thanks a Lot. | java|android|json|parsing|android-volley | 0 | 2015-02-23T21:19:37.230Z | 2,015 | 2 | 21 | 0 | 1,086 | 2 | 268 | 68 | 5 | 0 | false | false | false | false | false | false | zero |
28,683,679 | libstreaming - how to rotate streames video? | <p>libstreaming works fine - in landscape mode. Unfortunately, my app will have to run in portrait mode. No problem for the preview window - I can set it upright with </p>
<p>session.setPreviewOrientation(90);</p>
<p>But the receiver of the stream will still have the video sideways. Is there a solution for that?</p>
... | libstreaming works fine - in landscape mode. Unfortunately, my app will have to run in portrait mode. No problem for the preview window - I can set it upright with session.setPreviewOrientation(90); But the receiver of the stream will still have the video sideways. Is there a solution for that? In Android's Mediarecord... | android|video|stream|rotation|libstreaming | 2 | 2015-02-23T21:20:45.793Z | 2,015 | 2 | 21 | 0 | 1,239 | 2 | 476 | 44 | 5 | 0 | false | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.