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,599,585 | I want to use android-circlebutton library in my eclipse project | <p>I would like to know how can I use this great <a href="https://github.com/markushi/android-circlebutton/" rel="nofollow">library</a> in my eclipse project.</p> | I would like to know how can I use this great library in my eclipse project. | android|eclipse|gradle | -2 | 2015-02-19T06:00:50.237Z | 2,015 | 2 | 6 | 3 | 140 | 1 | 76 | 64 | 3 | 0 | false | false | false | false | false | true | negative |
28,599,590 | How can I call a Method of an activity from background service? | <p>I want to update my <code>ChatMessageAdapter</code> by received new data from background service so that I want to call <code>UpdateAdapter</code> method from background to update adapter.</p>
<p>here is my <code>ServiceClass</code>:</p>
<pre><code>public class MyService extends Service{
private String loginUserI... | I want to update my ChatMessageAdapter by received new data from background service so that I want to call UpdateAdapter method from background to update adapter. here is my ServiceClass : [CODE] } and this is my MessageActivityList Class: [CODE] What to do for calling this UpdateAdapter method to update my ChatMessage... | android|android-service|android-actionbaractivity | -1 | 2015-02-19T06:00:56.157Z | 2,015 | 2 | 6 | 3 | 1,444 | 4 | 344 | 63 | 3 | 2 | true | false | false | false | false | true | negative |
28,599,621 | android refresh/restart activity with updated variables | <p>I'm making a quiz app and I'm looking to have my "practice questions" activity refresh itself with new questions with a previous/next button is pressed. The questions are in an array placed inside a singleton "Global" class.</p>
<p>I want to update/refresh the activity so that a new question and set of answers pop... | I'm making a quiz app and I'm looking to have my "practice questions" activity refresh itself with new questions with a previous/next button is pressed. The questions are in an array placed inside a singleton "Global" class. I want to update/refresh the activity so that a new question and set of answers pops up (ie. a ... | java|android|android-activity|refresh|updates | 1 | 2015-02-19T06:03:20.677Z | 2,015 | 2 | 6 | 3 | 985 | 1 | 865 | 55 | 5 | 0 | false | false | false | false | false | false | low |
28,599,692 | Quickly switch to layout editor in Android Studio | <p>Is there a commmand or shortcut for quickly jump from code editor to graphical layout editor?
For example I am editing MyActivity.java and it's layout is in activity_layout.xml.</p>
<p>In layout editor there is a button for jumping to code, I just need reverse.</p> | Is there a commmand or shortcut for quickly jump from code editor to graphical layout editor? For example I am editing MyActivity.java and it's layout is in activity_layout.xml. In layout editor there is a button for jumping to code, I just need reverse. | intellij-idea|android-studio | 0 | 2015-02-19T06:09:27.147Z | 2,015 | 2 | 6 | 3 | 54 | 1 | 254 | 49 | 2 | 0 | false | false | false | false | false | false | zero |
28,599,737 | android get listview item by contextmenu | <p>In my application I'm register ContextMenu on <code>Listview</code> and I want to get clicked <code>Listview</code> item by context menu. For example if I have two row in list view with this structure:</p>
<pre><code>public class StructReceiveSms{
public int userID;
public String username;
}
</code></... | In my application I'm register ContextMenu on Listview and I want to get clicked Listview item by context menu. For example if I have two row in list view with this structure: [CODE] my adapter can be show username in listview. now i'm in below code can define conext menu on list view: [CODE] Now after click on context... | android|listview | 2 | 2015-02-19T06:13:15.553Z | 2,015 | 2 | 6 | 3 | 2,008 | 1 | 575 | 40 | 2 | 2 | true | false | false | false | false | false | low |
28,599,750 | How to display C2DM message as a push notification (recived on onMessage() function of GCMIntentService class) | <p>Hi all i implemented C@DM in my app based on the tutorial provided by
<a href="http://avilyne.com/?p=267.It" rel="nofollow">http://avilyne.com/?p=267.It</a> works but my problem is i only getting the message in my activity that set on a text view.But i want it out side the app even if app is not working and when i ... | Hi all i implemented C@DM in my app based on the tutorial provided by http://avilyne.com/?p=267.It works but my problem is i only getting the message in my activity that set on a text view.But i want it out side the app even if app is not working and when i click this i want to extract a number from this and want to La... | android|android-intent|push-notification|google-cloud-messaging|android-c2dm | -1 | 2015-02-19T06:14:03.923Z | 2,015 | 2 | 6 | 3 | 454 | 1 | 732 | 110 | 5 | 2 | true | false | false | false | false | true | negative |
28,599,774 | How to prase tree structure JSON and display in UI in android | <p>I am very new to Android and I don't have a lot of knowledge about JSON parsing.
I have tree structure JSON but am unable to parse and store it in class and I'm confused how to display on the UI.</p>
<p><strong>Note: I have trying JSON Parsing Mannually, any libary for this, give me hints. ::: unable to fetching... | I am very new to Android and I don't have a lot of knowledge about JSON parsing. I have tree structure JSON but am unable to parse and store it in class and I'm confused how to display on the UI. Note: I have trying JSON Parsing Mannually, any libary for this, give me hints. ::: unable to fetching in ui , I want to fet... | java|android|json | 2 | 2015-02-19T06:15:20.140Z | 2,015 | 2 | 6 | 3 | 1,577 | 1 | 1,292 | 61 | 3 | 1 | true | false | false | false | false | false | low |
28,599,780 | An error occured while checking mobile data state | <p>I want to check the mobile data state on/off in android.
I have written the below code in button clicking code..</p>
<pre><code>@SuppressWarnings("rawtypes")
public void check_mobile_data(View view) { // this is my button clicking event.
Context context = null;
boolean mobileDataEnabled = false; // Assume ... | I want to check the mobile data state on/off in android. I have written the below code in button clicking code.. [CODE] The below error is showed by the logcat [CODE] Please give me reply at your best. | java|android | -1 | 2015-02-19T06:16:02.747Z | 2,015 | 2 | 6 | 3 | 2,177 | 1 | 201 | 49 | 2 | 2 | true | false | false | false | false | true | negative |
28,599,805 | How do you reliably stop activity recognition after it was started? | <p>I have an alarm that starts activity recognition using a pending intent and an intent service. Starting works without problem, but I cannot stop the client to listen to updates. I ran ActivityRecognitionApi.removeActivityUpdates, I disconnected the activity recognition client and set it to null, set the intent to nu... | I have an alarm that starts activity recognition using a pending intent and an intent service. Starting works without problem, but I cannot stop the client to listen to updates. I ran ActivityRecognitionApi.removeActivityUpdates, I disconnected the activity recognition client and set it to null, set the intent to null,... | android|google-play-services|activity-recognition | 1 | 2015-02-19T06:17:58.130Z | 2,015 | 2 | 6 | 3 | 250 | 0 | 494 | 67 | 3 | 0 | false | true | false | false | false | false | low |
28,599,821 | Android executes task sequentially or not? | <p>I am getting a very interesting behavior by Android Studio in my project. The calls to different activities are not executing sequentially!</p>
<p>I am building a project where in the calls are like this:</p>
<pre><code>button.setOnClickListener()
{
(1) call to cusom camera acivity
(2) call to activity sho... | I am getting a very interesting behavior by Android Studio in my project. The calls to different activities are not executing sequentially! I am building a project where in the calls are like this: [CODE] But when executed, the actual flow is: [CODE] The custom camera activity handles all the necessary SurfaceHolder an... | android|android-activity|call|callstack | 0 | 2015-02-19T06:19:10.643Z | 2,015 | 2 | 6 | 3 | 1,170 | 4 | 864 | 42 | 4 | 5 | true | false | false | false | false | false | zero |
28,599,828 | What is @ in "@+id/idname" format mean in android? | <p><a href="https://developer.android.com/training/basics/firstapp/building-ui.html#LinearLayout" rel="nofollow">official link here</a></p>
<p>They say:</p>
<blockquote>
<p>The at sign (@) is required when you're referring to any resource object from XML. It is followed by the resource type (id in this case), a sla... | official link here They say: The at sign (@) is required when you're referring to any resource object from XML. It is followed by the resource type (id in this case), a slash, then the resource name (edit_message). I'm not quite understand what @ mean, who can give a more specific explanation? | android | 1 | 2015-02-19T06:19:36.357Z | 2,015 | 2 | 6 | 3 | 721 | 4 | 294 | 50 | 1 | 0 | false | false | false | false | false | false | low |
28,599,950 | How to change the color according to user input? | <p>I want to create an app which has 2 text views and 2 edit texts. Here the logic is, when input is <=30, background color of textview turns blue. If input is <=60, turns red. if inut is more than 60,turns green.</p>
<p>So according to the inputs given in the both edit texts at a time, the background color of ... | I want to create an app which has 2 text views and 2 edit texts. Here the logic is, when input is <=30, background color of textview turns blue. If input is <=60, turns red. if inut is more than 60,turns green. So according to the inputs given in the both edit texts at a time, the background color of the text view shou... | android|colors|textview | -1 | 2015-02-19T06:28:53.670Z | 2,015 | 2 | 6 | 3 | 1,730 | 2 | 454 | 48 | 3 | 1 | true | false | false | false | false | true | negative |
28,599,958 | Android Camera2 Sample | <p>I am trying to find a camera sample for android because I would love to mess with it and see what I can do. I am using the sample code from "Import an android code sample" and using Camera2. I somewhat get how it works however I would want to try it on my phone which is android 4.4 and 5.0 is the only required versi... | I am trying to find a camera sample for android because I would love to mess with it and see what I can do. I am using the sample code from "Import an android code sample" and using Camera2. I somewhat get how it works however I would want to try it on my phone which is android 4.4 and 5.0 is the only required version.... | android|android-camera | 1 | 2015-02-19T06:29:41.133Z | 2,015 | 2 | 6 | 3 | 6,131 | 1 | 963 | 22 | 2 | 1 | true | false | true | false | false | false | low |
28,599,963 | Editable Spinner is not working properly in Android Programatically? | <p>Please find the scrren shot below</p>
<p><img src="https://i.stack.imgur.com/BglLJ.png" alt="enter image description here"></p>
<p>Here, I have Spinner with EditText. User can choose spinner item or else can enter custom data (like 100 enterd by user in EditText). So i can able to get Spinner selected data based o... | Please find the scrren shot below Here, I have Spinner with EditText. User can choose spinner item or else can enter custom data (like 100 enterd by user in EditText). So i can able to get Spinner selected data based on position. But, when i'm trying to enter any data in edittext that is in spinner its automatically cu... | android|android-spinner | 0 | 2015-02-19T06:29:46.483Z | 2,015 | 2 | 6 | 3 | 1,210 | 2 | 493 | 68 | 2 | 2 | true | false | false | false | false | false | zero |
28,599,999 | Admob Banner Crush My App | <p>Java:</p>
<pre><code>AdView mAdView = (AdView)findViewById(R.id.adView);
AdRequest adRequest1 = new AdRequest.Builder().build();
mAdView.loadAd(adRequest1);
</code></pre>
<p>XML:</p>
<pre><code><com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
... | Java: [CODE] XML: [CODE] Lgcat : [CODE] | android|admob | 0 | 2015-02-19T06:32:53.797Z | 2,015 | 2 | 6 | 3 | 212 | 0 | 39 | 25 | 2 | 3 | true | true | false | false | false | false | zero |
28,600,003 | Return array of Mat from jni to java | <p>First i am a new user to Stackoverflow I am SORY for any mistake in this question. I have done my best but havent solved my problem please guide.</p>
<p>I have searched a lot before asking this question but havent found the answer. I have a c++ code where i do some image processing and get 2 2d-arrays and 1 1d-arra... | First i am a new user to Stackoverflow I am SORY for any mistake in this question. I have done my best but havent solved my problem please guide. I have searched a lot before asking this question but havent found the answer. I have a c++ code where i do some image processing and get 2 2d-arrays and 1 1d-array on output... | opencv|android-ndk|java-native-interface | 1 | 2015-02-19T06:33:11.717Z | 2,015 | 2 | 6 | 3 | 1,949 | 2 | 1,037 | 36 | 3 | 1 | true | false | false | false | false | false | low |
28,600,012 | setBackgroundColor(Color.WHITE) works in one part of the code, but setBackgroundColor(Color.RED) doesn't | <p>I was trying to have an imageView change colors programmatically, but it looked like only setBackgroundColor(Color.WHITE) was executing and setBackgroundColor(RED) was not.</p>
<p>ANSWER: The ImageView in my RelativeLayout file was being covered up by another element.</p>
<p>When I call happybirthdayimage.setBackg... | I was trying to have an imageView change colors programmatically, but it looked like only setBackgroundColor(Color.WHITE) was executing and setBackgroundColor(RED) was not. ANSWER: The ImageView in my RelativeLayout file was being covered up by another element. When I call happybirthdayimage.setBackgroundColor(Color.RE... | colors|android-imageview | -1 | 2015-02-19T06:33:51.513Z | 2,015 | 2 | 6 | 3 | 216 | 1 | 1,296 | 104 | 2 | 6 | true | false | false | false | false | true | negative |
28,600,083 | Android Alpha APK published, but still shows up as missing | <p>I have published my application as an alpha release, initially English(US) only, but eventually added "Rest of World". The application says published (No more pending updates) and provides a link "<a href="https://play.google.com/apps/testing/" rel="nofollow">https://play.google.com/apps/testing/</a>{app name}". N... | I have published my application as an alpha release, initially English(US) only, but eventually added "Rest of World". The application says published (No more pending updates) and provides a link " https://play.google.com/apps/testing/ {app name}". Navigating there, even if I log in with the user logged in that has bee... | android|google-play|apk|android-install-apk | 1 | 2015-02-19T06:38:37.463Z | 2,015 | 2 | 6 | 3 | 965 | 1 | 385 | 58 | 4 | 0 | false | false | false | false | false | false | low |
28,600,165 | can't open file chooser in WebView Android 4.4.2 using WebChromeClient | <p>In my webview by clicking <strong>"Choose File"</strong> button In samsung 7 inch tablet I want to open a File Browser, but I can't open this in <strong><em>Android Version 4.4.2</em></strong>.
So can u plz help me for this?
Here is my Code.</p>
<p><strong>WebViewDemo.java</strong></p>
<pre><code>package com.examp... | In my webview by clicking "Choose File" button In samsung 7 inch tablet I want to open a File Browser, but I can't open this in Android Version 4.4.2 . So can u plz help me for this? Here is my Code. WebViewDemo.java [CODE] Inside assets/select.html [CODE] | android|android-4.4-kitkat|webviewclient|webchromeclient|android-afilechooser | 4 | 2015-02-19T06:45:09.163Z | 2,015 | 2 | 6 | 3 | 19,528 | 4 | 256 | 70 | 5 | 2 | true | false | true | true | false | false | low |
28,600,301 | How can I detect when a Cordova app has been removed from the recents menu, from within an Android plugin? | <p>This may seem like a strange requirement, so I will just describe what I am trying to do, and why I think I need to know when the task is removed.</p>
<p>Essentially, I am trying to record the location in the background. I found a rough example of how to do so with a <code>BroadcastReceiver</code>, <a href="http://... | This may seem like a strange requirement, so I will just describe what I am trying to do, and why I think I need to know when the task is removed. Essentially, I am trying to record the location in the background. I found a rough example of how to do so with a BroadcastReceiver , here , and I managed to implement it. I... | android|cordova|phonegap-plugins|cordova-plugins | 1 | 2015-02-19T06:55:35.347Z | 2,015 | 2 | 6 | 3 | 1,077 | 1 | 900 | 106 | 4 | 0 | false | false | false | false | false | false | low |
28,600,361 | How can I make my PreferenceActivity material designed on Lollipop devices? | <p>I have a few really simple <code>PreferenceActivity</code>s that I'd like to material designed but I'm not quite sure how.</p>
<p>My activity doesn't use any custom styles or themes so I was under the impression that it would automatically adopt the material-design look and feel, but it didn't.</p>
<p>How can I ac... | I have a few really simple PreferenceActivity s that I'd like to material designed but I'm not quite sure how. My activity doesn't use any custom styles or themes so I was under the impression that it would automatically adopt the material-design look and feel, but it didn't. How can I achieve this? Do I need to add a ... | java|android|android-theme|material-design|preferenceactivity | 2 | 2015-02-19T06:59:38.257Z | 2,015 | 2 | 6 | 3 | 3,084 | 2 | 339 | 75 | 5 | 0 | false | false | true | false | false | false | low |
28,600,387 | How Google estimate my location without GPS? | <p>I was wondering how Google done this. </p>
<p>Locate me with a good accuracy when my GPS is disabled.</p>
<p>First I thought Google taking information from the cell tower, then i came to know that Google is not taking my cell tower and GPS to show my accurate location. </p>
<p>Does any one know how that works ?</... | I was wondering how Google done this. Locate me with a good accuracy when my GPS is disabled. First I thought Google taking information from the cell tower, then i came to know that Google is not taking my cell tower and GPS to show my accurate location. Does any one know how that works ? | android|google-maps|geolocation|location | 4 | 2015-02-19T07:01:11.573Z | 2,015 | 2 | 7 | 3 | 3,536 | 2 | 289 | 44 | 4 | 0 | false | false | true | false | false | false | low |
28,600,411 | Android datatables | <p>To put is simply my app requires up to date data from a database.</p>
<p>The app will download a JSON of the data on a few conditions:</p>
<ul>
<li>First run</li>
<li>App notified of data change</li>
<li>Data is more then a 5 min old(Sometimes change notifications don't go though)</li>
</ul>
<p>Data size isn't re... | To put is simply my app requires up to date data from a database. The app will download a JSON of the data on a few conditions: First run App notified of data change Data is more then a 5 min old(Sometimes change notifications don't go though) Data size isn't really an issue, largest database we have is around 300KB(30... | java|android | 0 | 2015-02-19T07:02:49.420Z | 2,015 | 2 | 7 | 3 | 746 | 1 | 1,075 | 18 | 2 | 0 | false | false | false | false | false | false | zero |
28,600,412 | How can one use ViewPropertyAnimator to set Width to a specific value | <p>How can I use ViewPropertyAnimator to set my view width?</p>
<p>I can scale or translate (see below) but I can't set to a specific width.</p>
<pre><code>frame_1.animate().scaleX(5).scaleY(5).start();
</code></pre>
<p>but there is no</p>
<pre><code>frame_1.animate().width(1024).height(768).start();
</code></pre> | How can I use ViewPropertyAnimator to set my view width? I can scale or translate (see below) but I can't set to a specific width. [CODE] but there is no [CODE] | android|animation|android-4.4-kitkat | 5 | 2015-02-19T07:02:52.173Z | 2,015 | 2 | 7 | 3 | 1,540 | 2 | 160 | 69 | 3 | 2 | true | false | false | false | false | false | low |
28,600,433 | How to add a fragment over a fragment? | <p>I want to create a functionality.. like;</p>
<p>There will be a fragment in the behind a fragment; the fragment in the front will be transparent.</p>
<ol>
<li><p><strong>Fragment_front</strong> in the front will be static ie the fragment will either be minimized to a title or it will show its contents.</p></li>
<l... | I want to create a functionality.. like; There will be a fragment in the behind a fragment; the fragment in the front will be transparent. Fragment_front in the front will be static ie the fragment will either be minimized to a title or it will show its contents. Fragment_back will be behind the fragment_front, when th... | android|android-fragments | 0 | 2015-02-19T07:04:49.597Z | 2,015 | 2 | 7 | 3 | 64 | 1 | 558 | 38 | 2 | 0 | false | false | false | false | false | false | zero |
28,600,497 | How can I commit a local git repo to existing remote repo on github through Android Studio? | <p>I have a local project which I imported from a remote git repo to Android Studio and I am wondering how I can commit this project into my remote repo through android studio?</p>
<p>For what I have done;
I have been able to create a local git repo through Android Studio.</p>
<p>P.S: I am new to version control and ... | I have a local project which I imported from a remote git repo to Android Studio and I am wondering how I can commit this project into my remote repo through android studio? For what I have done; I have been able to create a local git repo through Android Studio. P.S: I am new to version control and I understand my que... | git|github|android-studio|repository | 0 | 2015-02-19T07:09:45.020Z | 2,015 | 2 | 7 | 3 | 422 | 1 | 490 | 91 | 4 | 0 | false | false | false | false | false | false | zero |
28,600,557 | Location pointing in google map android | <p>I have displayed the google map and pointed the required location by giving the latitude and longitude. There is no issue in that. But while loading the map it shows some other place and i am supposed to drag to find my pin pointed location. Is there any way to directly display the pointed location on screen instead... | I have displayed the google map and pointed the required location by giving the latitude and longitude. There is no issue in that. But while loading the map it shows some other place and i am supposed to drag to find my pin pointed location. Is there any way to directly display the pointed location on screen instead of... | android|google-maps|marker | 2 | 2015-02-19T07:14:04.957Z | 2,015 | 2 | 7 | 3 | 259 | 3 | 338 | 39 | 3 | 0 | false | false | false | false | false | false | low |
28,600,635 | Lock Icon on Android Studio files | <p>I have just added a jar in android studio by pasting it in the libs folder and adding it as a library. Moreover it does show the jar added in build.gradle file and I am able to import the files however I am not able to edit those files as they have a lock icon on those files. I have tried setting permissions to that... | I have just added a jar in android studio by pasting it in the libs folder and adding it as a library. Moreover it does show the jar added in build.gradle file and I am able to import the files however I am not able to edit those files as they have a lock icon on those files. I have tried setting permissions to that fo... | java|android|android-studio | 3 | 2015-02-19T07:20:07.663Z | 2,015 | 2 | 7 | 3 | 10,294 | 2 | 495 | 33 | 3 | 0 | false | false | true | false | false | false | low |
28,600,660 | Android : Custom object can't preserve resource ID | <p>App shows images in a Gridview. In the adapter of GridView, I generate # of images reqd randomly from the resources available. A new <code>Integer[] imageIDs</code> is created & those resource IDs are saved in this new array. I also want to store this resourceID in an <code>ArrayList</code> of custom object <co... | App shows images in a Gridview. In the adapter of GridView, I generate # of images reqd randomly from the resources available. A new Integer[] imageIDs is created & those resource IDs are saved in this new array. I also want to store this resourceID in an ArrayList of custom object ImageSourceObject that extends ImageV... | java|android|gridview|android-resources|resource-id | 1 | 2015-02-19T07:22:12.853Z | 2,015 | 2 | 7 | 3 | 375 | 4 | 1,152 | 50 | 5 | 3 | true | false | false | false | false | false | low |
28,600,674 | how to take/parse url of image? JSON / Volley library | <p>As you can see in the picture I have <strong>JSON object 'multimedia'</strong> which has information about picture in 4 different formats. I need url only on of them. Lets say which had standard format (75x75). I use <strong>volley library</strong> in my android application. I am confused about <strong>how to take/... | As you can see in the picture I have JSON object 'multimedia' which has information about picture in 4 different formats. I need url only on of them. Lets say which had standard format (75x75). I use volley library in my android application. I am confused about how to take/parse url (in string format is enough) of imag... | android|json|android-fragments|android-volley|android-json | 0 | 2015-02-19T07:23:15.980Z | 2,015 | 2 | 7 | 3 | 2,759 | 2 | 435 | 53 | 5 | 2 | true | false | true | false | false | false | zero |
28,600,673 | how to hide android app downloaded files outside the app users | <p>My android app download several files from app server. Users have to buy these files. So, i need to hide and encrypt these files, so that users cannot play/view these files, or they cannot delete/transfer these files. What are my options here?</p> | My android app download several files from app server. Users have to buy these files. So, i need to hide and encrypt these files, so that users cannot play/view these files, or they cannot delete/transfer these files. What are my options here? | android | 2 | 2015-02-19T07:23:16.087Z | 2,015 | 2 | 7 | 3 | 589 | 2 | 243 | 62 | 1 | 0 | false | false | false | false | false | false | low |
28,600,806 | How get all drawables res IDs from Animation-list? | <p>If I have an animation drawable xml file (animation-list) which I can reference using <code>R.drawable.anim</code>, Is there a way I can get the all the <code>Drawable</code>s IDs in an array?</p>
<p>Basically I don't want to somehow load the xml file and get a list of all the <code>Drawable</code>s involved in tha... | If I have an animation drawable xml file (animation-list) which I can reference using R.drawable.anim , Is there a way I can get the all the Drawable s IDs in an array? Basically I don't want to somehow load the xml file and get a list of all the Drawable s involved in that animation. Here is the animation xml I am usi... | android|android-drawable | 4 | 2015-02-19T07:33:02.353Z | 2,015 | 2 | 7 | 3 | 652 | 1 | 329 | 50 | 2 | 1 | true | false | false | false | false | false | low |
28,600,812 | Android Proguard - Build fails with proguard-android-optimize.txt | <p>I am trying to build a project with proguard enabled. It works fine if i use "proguard-android.txt" as the default rules file but fails with proguard-android-optimize.txt" which is understandable but i just dont understand the error that i am getting : </p>
<pre><code> Error:Execution failed for task ':app:dexDe... | I am trying to build a project with proguard enabled. It works fine if i use "proguard-android.txt" as the default rules file but fails with proguard-android-optimize.txt" which is understandable but i just dont understand the error that i am getting : [CODE] and then there is a long description which exceeds the SO li... | android|proguard|android-multidex | 2 | 2015-02-19T07:33:21.733Z | 2,015 | 2 | 7 | 3 | 1,932 | 0 | 539 | 65 | 3 | 5 | true | true | false | false | false | false | low |
28,600,911 | converting fingerprint template on android | <p>I have a finger print scanner connected to an arduino which transmits data to android device through BT,the FPS has only a built in limited capacity of 200 fingerprints and i need a much higher capacity.Is there a way I can transform the fingerprint templates provided by the FPS directly on an android device to a st... | I have a finger print scanner connected to an arduino which transmits data to android device through BT,the FPS has only a built in limited capacity of 200 fingerprints and i need a much higher capacity.Is there a way I can transform the fingerprint templates provided by the FPS directly on an android device to a strin... | android|arduino|fingerprint | 0 | 2015-02-19T07:40:15.623Z | 2,015 | 2 | 7 | 3 | 1,604 | 1 | 340 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
28,601,025 | How to programmatically create ListView based off SQLite query? | <p>I have some code that allows the user to perform a search by selecting a few checkboxes. A sql query is then created based on what checkboxes are checked. (Up to 5 checkboxes)</p>
<p>The data is then queried against a sqlite data. </p>
<p>The issue is now how do i populate the data into a listview (not knowing how... | I have some code that allows the user to perform a search by selecting a few checkboxes. A sql query is then created based on what checkboxes are checked. (Up to 5 checkboxes) The data is then queried against a sqlite data. The issue is now how do i populate the data into a listview (not knowing how many columns there ... | android-listview|android-sqlite | -1 | 2015-02-19T07:48:02.060Z | 2,015 | 2 | 7 | 3 | 42 | 1 | 498 | 63 | 2 | 0 | false | false | false | false | false | true | negative |
28,601,049 | Attempt to invoke virtual method '..' on a null object reference | <p>Trying to return The toolbar opacity back to normal, when I go back to the previous activity. And i took the advice of implementig this in my onResume method:</p>
<pre><code>mActionBarBackgroundDrawable.setAlpha(255);
mToolbar.setBackground(mActionBarBackgroundDrawable);
</code></pre>
<p>but it gives me an err... | Trying to return The toolbar opacity back to normal, when I go back to the previous activity. And i took the advice of implementig this in my onResume method: [CODE] but it gives me an error: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.support.v7.widget.Toolbar.getBackground()' on a nul... | android|onresume|android-toolbar | 1 | 2015-02-19T07:49:48.047Z | 2,015 | 2 | 7 | 3 | 1,906 | 0 | 574 | 64 | 3 | 3 | true | true | false | false | false | false | low |
28,601,080 | changing font size and text size of listview | <p>In my application I have a list view that has an image-button and a text-view.
I want to change font size and font size of my list view by choice of user.
My list view extends from ArrayAdapter.
here ARE my code:</p>
<pre><code>public class ListAdapter extends ArrayAdapter<String> {
customButtonListener cus... | In my application I have a list view that has an image-button and a text-view. I want to change font size and font size of my list view by choice of user. My list view extends from ArrayAdapter. here ARE my code: [CODE] and my main activity: [CODE] how i can do this? any suggestion? | java|android | 1 | 2015-02-19T07:52:19Z | -1 | -1 | -1 | -1 | 2,418 | 4 | 283 | 44 | 2 | 2 | true | false | false | false | false | false | low |
28,601,159 | Navigating through a fragment | <p>I have a fragment inside my main activity. I want to update the contents of the fragment dynamically a run time. Specifically, I want to populate the contents of fragment with new data on button back press. Please help me out in the same and suggest me how to achieve such a functionality.</p>
<pre><code>//main_acti... | I have a fragment inside my main activity. I want to update the contents of the fragment dynamically a run time. Specifically, I want to populate the contents of fragment with new data on button back press. Please help me out in the same and suggest me how to achieve such a functionality. [CODE] The first fragment is t... | android | 0 | 2015-02-19T07:58:34.677Z | 2,015 | 2 | 7 | 3 | 51 | 2 | 351 | 29 | 1 | 1 | true | false | false | false | false | false | zero |
28,601,252 | Saving GPS Image Direction tag in android | <p>How do I save GPS_IMG_DIRECTION tag to an image in android?
I have check the following exifinterface link, but it does not seem to have GPS_IMG_DIRECTION. </p>
<p><a href="http://developer.android.com/reference/android/media/ExifInterface.html" rel="nofollow">http://developer.android.com/reference/android/media/Exi... | How do I save GPS_IMG_DIRECTION tag to an image in android? I have check the following exifinterface link, but it does not seem to have GPS_IMG_DIRECTION. http://developer.android.com/reference/android/media/ExifInterface.html I have tried to add customtag by using this: [CODE] But this doesn't seem to work. I also tri... | android|exif | 1 | 2015-02-19T08:04:27.203Z | 2,015 | 2 | 8 | 3 | 862 | 2 | 420 | 41 | 2 | 2 | true | false | false | false | false | false | low |
28,601,275 | Google Play Games Service (GPGS) Realtime Multiplayer (RTMP) never matches on Android (iOS works) | <p>We are trying to implement GPGS RTMP C++ and running into a strange issue. We are following the default example used in ButtonClicker and actually have it working just fine between iOS devices. However when we try the same code using two Android devices quick match never fully completes. </p>
<p>Using the Androi... | We are trying to implement GPGS RTMP C++ and running into a strange issue. We are following the default example used in ButtonClicker and actually have it working just fine between iOS devices. However when we try the same code using two Android devices quick match never fully completes. Using the Android build we can ... | android|c++|ios|android-ndk|google-play-games | 0 | 2015-02-19T08:06:00.747Z | 2,015 | 2 | 8 | 3 | 657 | 1 | 1,892 | 97 | 5 | 2 | true | false | false | false | false | false | zero |
28,601,318 | Android check if a View has a tag | <p>Is there any way to check if a view has a tag?</p>
<p>I have two views to differentiate from and currently I'm using the tag. I have checked <a href="http://developer.android.com/reference/android/view/View.html" rel="nofollow">http://developer.android.com/reference/android/view/View.html</a> for all methods involv... | Is there any way to check if a view has a tag? I have two views to differentiate from and currently I'm using the tag. I have checked http://developer.android.com/reference/android/view/View.html for all methods involving tags and have not found any way to check if a tag exists. So currently I'm using : [CODE] But I tr... | java|android|android-view | 3 | 2015-02-19T08:09:34.423Z | 2,015 | 2 | 8 | 3 | 2,736 | 2 | 556 | 33 | 3 | 1 | true | false | true | false | false | false | low |
28,601,363 | Fade in animation blinks the view | <p>I want to make three text views fade in one after another. I am trying to do this with start animation after finishing first and so on. But it not works for me. Please help</p>
<pre><code> text_1.setVisibility(View.INVISIBLE);
text_2.setVisibility(View.INVISIBLE);
text_3.setVisibi... | I want to make three text views fade in one after another. I am trying to do this with start animation after finishing first and so on. But it not works for me. Please help [CODE] | android|animation | 0 | 2015-02-19T08:12:55.843Z | 2,015 | 2 | 8 | 3 | 169 | 1 | 179 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
28,601,418 | Gson deserializer with Retrofit converter: just need inner JSON for all responses | <p>I am working with an API that always responds like so:</p>
<pre><code>{
"stuff_i_need": [
{
"title": "Hello"
},
{
"title": "World!"
}
],
"status": "success"
}
</code></pre>
<p>and</p>
<pre><code>{
"other_things_key":
{
"version": "208"
},
"status": "success"
}
</cod... | I am working with an API that always responds like so: [CODE] and [CODE] There are always two elements, and I just need the one that is not "status." I want to do this with one GsonBuilder, as well. I tried: [CODE] but I don't think that is right, and it doens't satisfy the broader conditions. | android|gson|retrofit | 4 | 2015-02-19T08:16:43.167Z | 2,015 | 2 | 8 | 3 | 9,478 | 2 | 294 | 81 | 3 | 3 | true | false | true | false | false | false | low |
28,601,476 | java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference | <p>I'm trying to put together a shopping list app, based on input fields, <code>ArrayList</code>, and <code>ListView</code>. The app will be based on <code>Fragments</code>. However, I have encountered a problem and I do not know how to solve it.</p>
<p>I looked around on both Google and StackOverflow and I have found ... | I'm trying to put together a shopping list app, based on input fields, ArrayList , and ListView . The app will be based on Fragments . However, I have encountered a problem and I do not know how to solve it. I looked around on both Google and StackOverflow and I have found some information. However, I have not got it t... | android|android-layout|android-fragments|android-listview | 167 | 2015-02-19T08:21:05.357Z | 2,015 | 2 | 8 | 3 | 253,981 | 5 | 558 | 146 | 4 | 7 | true | false | true | true | true | false | high |
28,601,540 | Android - ListView - if i filter list having checkboxes it gets me different values in array | <p>I have a ListView which has around 7 items and 2 are checked like this:</p>
<p><img src="https://i.stack.imgur.com/oPNWS.png" alt="enter image description here"></p>
<p>I'll check one more item in the list which is filtered:</p>
<p><img src="https://i.stack.imgur.com/GsI2M.png" alt="enter image description here">... | I have a ListView which has around 7 items and 2 are checked like this: I'll check one more item in the list which is filtered: Now i'll clear the filter and the result will be something like this: But when I add these items to array it stores wrong values due to filter option. Can anyone help me for this? EDIT : HERE ... | android|listview|checkbox|filter | 1 | 2015-02-19T08:24:53.513Z | 2,015 | 2 | 8 | 3 | 1,941 | 1 | 666 | 92 | 4 | 1 | true | false | false | false | false | false | low |
28,601,577 | ViewSwitcher very slow on first view | <p>I have a ViewSwitcher that displays views. When the ViewSwitcher starts the initial view does not scroll.</p>
<pre><code> final ViewSwitcher vs = (ViewSwitcher)getView().findViewById(R.id.view_switcherz);
mEventResource = new AlternateEventResource();
mViewFactory = new AlternateDayViewFactory(vs, mEve... | I have a ViewSwitcher that displays views. When the ViewSwitcher starts the initial view does not scroll. [CODE] I have an application that uses a ViewSwitcher . When initialising the ViewSwitcher , the view that is first displayed when scrolled causes a motion event that calls the onFling() method. However the onFling... | android|viewswitcher | 1 | 2015-02-19T08:27:07.410Z | 2,015 | 2 | 8 | 3 | 314 | 0 | 727 | 36 | 2 | 2 | true | true | false | false | false | false | low |
28,601,593 | how to show Date from DatePicker on click of EditText and set selected date on it. EditText is in every listView item in array Adapter | <p>I have customized listView using ArrayAdapter. In ArrayAdapter i have EditText which should pop up Datepicker. On date set i want that date to set on perticular row of listView. Here is my code</p>
<p>CustomReminder.java</p>
<pre><code> public class CustomSetRem extends ArrayAdapter<String>
{
Co... | I have customized listView using ArrayAdapter. In ArrayAdapter i have EditText which should pop up Datepicker. On date set i want that date to set on perticular row of listView. Here is my code CustomReminder.java [CODE] Problem is I am not understanding where to set date on EditText. It shows date picker onClick of Ed... | android|listview|datepicker|android-arrayadapter | 1 | 2015-02-19T08:27:57.243Z | 2,015 | 2 | 8 | 3 | 1,061 | 1 | 390 | 134 | 4 | 1 | true | false | false | false | false | false | low |
28,601,621 | SeekBar skipping values with no apparent reason | <p>So ,I have simple seekbar and when I move the thumb from the upper side to the down side, it skips values.</p>
<p>Any ideas how to fix this up?</p>
<p>Due to a confidentiality agreement,I cannot post more code than I posted here</p>
<p>If any other information but code is needed ,I'll try to answer asap.</p>
<pr... | So ,I have simple seekbar and when I move the thumb from the upper side to the down side, it skips values. Any ideas how to fix this up? Due to a confidentiality agreement,I cannot post more code than I posted here If any other information but code is needed ,I'll try to answer asap. [CODE] So, when I drag the thumb do... | android|seekbar | 1 | 2015-02-19T08:29:42.410Z | 2,015 | 2 | 8 | 3 | 207 | 1 | 381 | 47 | 2 | 1 | true | false | false | false | false | false | low |
28,601,663 | How to retrieve specific node from firebase database in android | <p>I am trying to use Firebase in my android application. I am following documentation for <a href="https://www.firebase.com/docs/android/guide/saving-data.html">Saving</a> and <a href="https://www.firebase.com/docs/android/guide/retrieving-data.html">retrieving</a>,
But the Sample database(Dragon) which is used in tut... | I am trying to use Firebase in my android application. I am following documentation for Saving and retrieving , But the Sample database(Dragon) which is used in tutorial has different structure than my database. This is my code for Pushing the data to firebase [CODE] which create database format like this [CODE] I want... | android|firebase|firebase-realtime-database | 16 | 2015-02-19T08:32:43.640Z | 2,015 | 2 | 8 | 3 | 51,306 | 4 | 718 | 63 | 3 | 4 | true | false | true | true | true | false | medium |
28,601,700 | Fire onItemClick event without the user do something | <p>So I have an <code>AutoCompleteTextview</code> which works fine, but I would like to know how to enforce a specific option.
The meaning is to use something like <code>setText()</code>, but <code>setText</code> is not good for me, because it doesn't activate the <code>onItemClick</code> event, and this is what I want... | So I have an AutoCompleteTextview which works fine, but I would like to know how to enforce a specific option. The meaning is to use something like setText() , but setText is not good for me, because it doesn't activate the onItemClick event, and this is what I want to activate. [CODE] Thanks for any help. | android | 0 | 2015-02-19T08:35:14.637Z | 2,015 | 2 | 8 | 3 | 395 | 1 | 307 | 52 | 1 | 1 | true | false | false | false | false | false | zero |
28,601,716 | How can I avoid the first item in a pure css pull-down menu to be auto-selected on Android | <p>I have a <a href="http://jsfiddle.net/nxq55ppr/10/" rel="nofollow noreferrer">pure css pull-down menu</a> that works fine on desktop, iPad and older Android browsers. </p>
<p>But Chrome on Android 5 has a problem: When I select the menu header ("First menu"), then the first item ("Lorem") is always automatically... | I have a pure css pull-down menu that works fine on desktop, iPad and older Android browsers. But Chrome on Android 5 has a problem: When I select the menu header ("First menu"), then the first item ("Lorem") is always automatically selected. How can I avoid that? I'm unable to reproduce this problem in other mobile br... | android|css|google-chrome|drop-down-menu | 0 | 2015-02-19T08:36:24.433Z | 2,015 | 2 | 8 | 3 | 291 | 1 | 408 | 90 | 4 | 2 | true | false | false | false | false | false | zero |
28,601,733 | How can I send message from HostApduService to an activity? | <p>I would like to pass a string to an Activity easily. Something like callback would be needed because when the string has to be passed then the Activity has to do something.</p>
<pre><code>public class MyHostApduService extends HostApduService {
@Override
public byte[] processCommandApdu(byte[] apdu, Bundle ... | I would like to pass a string to an Activity easily. Something like callback would be needed because when the string has to be passed then the Activity has to do something. [CODE] | android|android-activity|nfc|messaging|hce | 4 | 2015-02-19T08:37:40.977Z | 2,015 | 2 | 8 | 3 | 2,330 | 2 | 179 | 59 | 5 | 1 | true | false | false | false | false | false | low |
28,601,745 | Android sending http request as unicode not working | <p>Hi I am working with android .I am looking to send some data to a server but the data must me send in UNICODE. I searched in google and found "HTTP.UTF_8" method. But still it recieved in server as ASCII values.How can I send UNICODE data to server.Here is my code</p>
<pre><code> String message = "<ENVELOPE>"... | Hi I am working with android .I am looking to send some data to a server but the data must me send in UNICODE. I searched in google and found "HTTP.UTF_8" method. But still it recieved in server as ASCII values.How can I send UNICODE data to server.Here is my code [CODE] | android|http|unicode|ascii | 0 | 2015-02-19T08:38:28.210Z | 2,015 | 2 | 8 | 3 | 333 | 0 | 271 | 51 | 4 | 1 | true | true | false | false | false | false | zero |
28,601,780 | AS3 check if date belongs to the range? | <p>I want to check for, if the given date belongs to two given dates.
Dates are in string format like "2015-02-19"</p> | I want to check for, if the given date belongs to two given dates. Dates are in string format like "2015-02-19" | android|actionscript-3|air | 1 | 2015-02-19T08:40:26.253Z | 2,015 | 2 | 8 | 3 | 443 | 2 | 111 | 39 | 3 | 0 | false | false | false | false | false | false | low |
28,601,931 | Android sms app that incremets every time it receives an sms | <p>I have developed an app that can receive sms's, but actually what I wanted is to receive an sms from a certain number then the number of the sms's received increments by one everytime an sms is received</p>
<p>This is in my manifest</p>
<pre><code><receiver android:name = "SmsReceiver">
<intent-filter>... | I have developed an app that can receive sms's, but actually what I wanted is to receive an sms from a certain number then the number of the sms's received increments by one everytime an sms is received This is in my manifest [CODE] and this is what I have in my SmsReceiver class that extends BroadcastReceiver [CODE] | android|smsmanager | 0 | 2015-02-19T08:49:13.497Z | 2,015 | 2 | 8 | 3 | 59 | 1 | 318 | 60 | 2 | 2 | true | false | false | false | false | false | zero |
28,601,966 | Adding view to Toolbar removed title and subtitle | <p>Previously, I had a toolbar that had a Title and a Subtitle. What I want to do now is add a custom view to the right of the subtitle. However, when I add a view to the Toolbar, it removes the Title and the Subtitle. Is this intended behaviour?</p>
<pre><code> <android.support.v7.widget.Toolbar
android:... | Previously, I had a toolbar that had a Title and a Subtitle. What I want to do now is add a custom view to the right of the subtitle. However, when I add a view to the Toolbar, it removes the Title and the Subtitle. Is this intended behaviour? [CODE] | java|android|android-toolbar | 0 | 2015-02-19T08:50:37.680Z | 2,015 | 2 | 8 | 3 | 473 | 1 | 250 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
28,602,192 | Data transfer between application outside profile and inside profile in Android Lollipop | <p>Question related to <strong>Android for Work</strong>.
My application was a device Admin privileged app and now I have modified the code which creates a managed work profile and sets itself as the profile owner.</p>
<p>The question is, if I <em>upgrade</em> my application, it becomes a profile owner from device adm... | Question related to Android for Work . My application was a device Admin privileged app and now I have modified the code which creates a managed work profile and sets itself as the profile owner. The question is, if I upgrade my application, it becomes a profile owner from device admin. Now there will be two copies of ... | android|android-5.0-lollipop|mdm|data-transfer|android-for-work | 4 | 2015-02-19T09:03:01.990Z | 2,015 | 2 | 9 | 3 | 2,024 | 1 | 509 | 88 | 5 | 0 | false | false | false | false | false | false | low |
28,602,212 | libGDX transparent screen - Show Desktop/Home Screen | <p>I'm trying to port a game of mine to libGDX. The game currently uses <a href="https://stackoverflow.com/a/7061396/975959">this answer</a> in order to achieve that in Android.</p>
<p>I've looked but couldn't find a way to get the same effect (I saw <a href="https://stackoverflow.com/a/17984654/975959">this</a> answe... | I'm trying to port a game of mine to libGDX. The game currently uses this answer in order to achieve that in Android. I've looked but couldn't find a way to get the same effect (I saw this answer, but it's outdated and causes my app to crush, and also I would prefer to have something in the core of libGDX so I might be... | java|android|libgdx | 2 | 2015-02-19T09:03:54.923Z | 2,015 | 2 | 9 | 3 | 521 | 0 | 845 | 52 | 3 | 0 | false | true | false | false | false | false | low |
28,602,244 | Native AAC Streaming in Android | <p>the Android documentation says that certain formats of AAC are supported by the native MediaPlayer however I can't seem to be able to get it to work. </p>
<p>I'm attempting to stream audio via the MediaPlayer, my code works when the stream uses MP3 but not when it uses AAC.</p>
<p>Basically, the code that instanti... | the Android documentation says that certain formats of AAC are supported by the native MediaPlayer however I can't seem to be able to get it to work. I'm attempting to stream audio via the MediaPlayer, my code works when the stream uses MP3 but not when it uses AAC. Basically, the code that instantiates and opens the s... | java|android|stream|aac|icecast | 3 | 2015-02-19T09:05:10.983Z | 2,015 | 2 | 9 | 3 | 788 | 1 | 555 | 31 | 5 | 2 | true | false | false | false | false | false | low |
28,602,246 | Prevent Android Studio from changing log filter on run | <p>I have a few log filters in my Android Studio, and every time I run the project, the log filter changes to the default app: packagename. Is there any way to mantain one custom filter through executions? </p> | I have a few log filters in my Android Studio, and every time I run the project, the log filter changes to the default app: packagename. Is there any way to mantain one custom filter through executions? | android|android-studio | 5 | 2015-02-19T09:05:12.670Z | 2,015 | 2 | 9 | 3 | 45 | 0 | 202 | 54 | 2 | 0 | false | true | false | false | false | false | low |
28,602,260 | How to get breakpoint in NDK native code and debug native code in Android Studio? | <p>I am developing android app using NDK. I have two projects. One is for my native library which uses NDK and generates .so file.</p>
<p>I am using Android Studio but disabling auto build and enabled build using ndk-build. I am using Windows 7. </p>
<p>Now after generating .so file I copy those in my main applicatio... | I am developing android app using NDK. I have two projects. One is for my native library which uses NDK and generates .so file. I am using Android Studio but disabling auto build and enabled build using ndk-build. I am using Windows 7. Now after generating .so file I copy those in my main application project which also... | android|android-studio|android-ndk | 23 | 2015-02-19T09:05:57.733Z | 2,015 | 2 | 9 | 3 | 19,338 | 5 | 1,223 | 81 | 3 | 0 | false | false | true | true | true | false | high |
28,602,272 | How to set full screen video on button click in fragment | <p>I am using <a href="http://developer.android.com/reference/android/view/TextureView.html" rel="nofollow">TextureView</a> in <a href="http://developer.android.com/reference/android/app/Fragment.html" rel="nofollow">Fragment</a> and I am playing video in TextureView. I have a button in Fragment and want to play video ... | I am using TextureView in Fragment and I am playing video in TextureView. I have a button in Fragment and want to play video in full screen the button is clicked. It is possible in Fragment because I am using Fragment in an Activity. How can I achieve this? | android|android-layout|android-activity|android-fragments|android-video-player | 0 | 2015-02-19T09:06:28.197Z | 2,015 | 2 | 9 | 3 | 2,138 | 1 | 257 | 56 | 5 | 0 | false | false | false | false | false | false | zero |
28,602,346 | Android SEND_SMS permission not working on Blackberry 10.2.1 | <p>I have an android app that users the following permissions :</p>
<pre><code> <uses-permission
android:name="android.permission.SEND_SMS"
android:maxSdkVersion="21" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"
android:maxSdkVersion="21" />
</code>... | I have an android app that users the following permissions : [CODE] It works fine on all android devices, when I install it on a blackberry Z30, (from AMAZON app store, or local apk) with Blackberry OS 10.2.1 only the Location permission shows..and the app doesn't send SMS. Any idea why? thanks | android|permissions|sms|blackberry-10|blocked | -1 | 2015-02-19T09:09:59.517Z | 2,015 | 2 | 9 | 3 | 221 | 1 | 295 | 60 | 5 | 1 | true | false | false | false | false | true | negative |
28,602,423 | About the Android's Internal Storage and the external SD Card | <p>Is '/mnt/sdcard' the root folder of an Android device when we access the files and folders using Windows Explorer?</p>
<p>If so, this means '/mnt/sdcard' is the internal storage, right?</p>
<p>I tested several times and found this is true but I'm really confused between android's internal storage and external memo... | Is '/mnt/sdcard' the root folder of an Android device when we access the files and folders using Windows Explorer? If so, this means '/mnt/sdcard' is the internal storage, right? I tested several times and found this is true but I'm really confused between android's internal storage and external memory. 1. Why is the i... | android|memory|external|internal | 2 | 2015-02-19T09:13:44.520Z | 2,015 | 2 | 9 | 3 | 2,441 | 1 | 834 | 61 | 4 | 0 | false | false | false | false | false | false | low |
28,602,469 | input cannot be resolved : Using Scanner class and Array | <p>import java.util.Scanner;
class Arrayy
{</p>
<pre><code>public static void main(String a[])
{
Scanner sc = new Scanner (System.in);
double arr[] = new double[5];
for (int i = 1 ; i<arr.length; i++)
{
System.out.println("Enter The Stuff: ");
arr[i] = **input**.nextInt();
... | import java.util.Scanner; class Arrayy { [CODE] The place where i have marked bold shows an exception that "input cannot be resolved" can someone please help, although its very basic. | java|javascript|android | 0 | 2015-02-19T09:16:00.453Z | 2,015 | 2 | 9 | 3 | 1,425 | 1 | 183 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
28,602,528 | Is there any way to find all context holders of an Activity in runtime? | <p>If the only way to get context of a class was "getContextOfMe()" at least I could know which objects are trying to get the context.</p>
<p>So, I am curious if there is a way (somehow) to become the-man-in-the-middle and detect any interest of context for a specific object.</p>
<p>So, as a result, I could make a fu... | If the only way to get context of a class was "getContextOfMe()" at least I could know which objects are trying to get the context. So, I am curious if there is a way (somehow) to become the-man-in-the-middle and detect any interest of context for a specific object. So, as a result, I could make a function which had th... | android|reference|android-context | 0 | 2015-02-19T09:18:44.363Z | 2,015 | 2 | 9 | 3 | 76 | 1 | 530 | 71 | 3 | 0 | false | false | false | false | false | false | zero |
28,602,558 | How to show white border around text in android as image below pragrammatically? | <p>show white border around text in android as programmatically in which each letter corners should be white and the middle should be red and yellow.!</p>
<p><a href="http://i.stack.imgur.com/xKDAd.png" rel="nofollow">Exactly As in the Image</a></p> | show white border around text in android as programmatically in which each letter corners should be white and the middle should be red and yellow.! Exactly As in the Image | android | -1 | 2015-02-19T09:19:55.450Z | 2,015 | 2 | 9 | 3 | 84 | 2 | 171 | 80 | 1 | 0 | false | false | false | false | false | true | negative |
28,602,575 | Android Gridview Lastrow does not appear fully | <p>I have problem with my gridview, last row seems to be cut in the layout when there is only one column however when there are 3 columns the row is completely visible.
Kindly refer the below post which is similar to my problem
<a href="https://stackoverflow.com/questions/14286009/layout-issue-with-the-last-row-of-gri... | I have problem with my gridview, last row seems to be cut in the layout when there is only one column however when there are 3 columns the row is completely visible. Kindly refer the below post which is similar to my problem Layout Issue with the last row of GridView in Android . My gridview layout xml posted below, [C... | android|gridview | 1 | 2015-02-19T09:20:59.713Z | 2,015 | 2 | 9 | 3 | 858 | 0 | 476 | 46 | 2 | 1 | true | true | false | false | false | false | low |
28,602,672 | Android 5 static bluetooth MAC address for BLE advertising | <p>Android 5 introduces BLE MAC address rotating for increased privacy. Every time when calling BluetoothLeAdvertiser.startAdvertising(), the MAC-address is changed. </p>
<p>Is it possible to disable address rotating, and just use the same MAC address during the entire lifetime of BluetoothLeAdvertiser? </p> | Android 5 introduces BLE MAC address rotating for increased privacy. Every time when calling BluetoothLeAdvertiser.startAdvertising(), the MAC-address is changed. Is it possible to disable address rotating, and just use the same MAC address during the entire lifetime of BluetoothLeAdvertiser? | bluetooth|bluetooth-lowenergy|android-5.0-lollipop|ibeacon-android | 15 | 2015-02-19T09:26:13.317Z | 2,015 | 2 | 9 | 3 | 10,049 | 2 | 293 | 58 | 4 | 0 | false | false | true | false | true | false | medium |
28,602,680 | How to use part of image as button background in android? | <p>I have an .png image where i have formed some buttons in one image . now i want to use those figure on one drawing as background for different button. I am working on frame layout. How to proceed?
<img src="https://i.stack.imgur.com/ddFNT.png" alt="In this image i want to use all figures for different button. Like f... | I have an .png image where i have formed some buttons in one image . now i want to use those figure on one drawing as background for different button. I am working on frame layout. How to proceed? | android|button|png|android-framelayout | 0 | 2015-02-19T09:26:29.540Z | 2,015 | 2 | 9 | 3 | 90 | 1 | 196 | 57 | 4 | 0 | false | false | false | false | false | false | zero |
28,602,690 | I am trying to pass an value from one activity to another activity in android xamrin program | <p>I am trying to pass an value from one activity to another activity in android xamrin program </p>
<pre><code> string name1 = edit.Text.ToString ();
Intent intent = new Intent(this,typeof(Activity2));
intent.PutExtra("namepass",name1);
StartActivity(intent);
</c... | I am trying to pass an value from one activity to another activity in android xamrin program [CODE] In second activity I am receiving through get string extra [CODE] but name1 is showing as unknown identifier | c#|android|android-activity|xamarin | 0 | 2015-02-19T09:27:12.903Z | 2,015 | 2 | 9 | 3 | 242 | 1 | 208 | 92 | 4 | 2 | true | false | false | false | false | false | zero |
28,602,748 | Start Activity after put widget on screen | <p>I was stuck with a problem:
I want to start ChooseWidgetActivity after put widget on screen.</p>
<p>I coded onUpdate in WidgetProvider like that:</p>
<pre><code>@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
final int N = appWidgetIds.length;
for (... | I was stuck with a problem: I want to start ChooseWidgetActivity after put widget on screen. I coded onUpdate in WidgetProvider like that: [CODE] But only what I get is WidgetChooseActivity that starts immediately after choose widget from widgets screen. I can't put it on screen because my activity overshadowing androi... | android|android-appwidget | 0 | 2015-02-19T09:29:41.433Z | 2,015 | 2 | 9 | 3 | 704 | 2 | 395 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
28,602,854 | Android Lollipop Application Not Responding | <p>my App runs fine on Android 4.4 - 2.3. but I recently updated my Nexus 7 to Android 5.0.2 (Lollipop) and only here I get an Error / ANR. But I don't know why. I can't find anything related here or in the web.</p>
<p>The ANR appears, when I start an <code>AsyncTask</code>. It runs fine first and after 5 seconds, the... | my App runs fine on Android 4.4 - 2.3. but I recently updated my Nexus 7 to Android 5.0.2 (Lollipop) and only here I get an Error / ANR. But I don't know why. I can't find anything related here or in the web. The ANR appears, when I start an AsyncTask . It runs fine first and after 5 seconds, the UI Thread freezes and ... | android|android-asynctask|wait|android-5.0-lollipop|android-anr-dialog | 1 | 2015-02-19T09:35:06.563Z | 2,015 | 2 | 9 | 3 | 2,829 | 2 | 1,609 | 43 | 5 | 3 | true | false | true | false | false | false | low |
28,602,961 | Regularly update the ListView of a chatroom | <p>I develop an Android app with a chat and I would like to contact every 10 seconds my API to retrieve new messages and to display them in the ListView of my Activity.</p>
<p>If I use a service to retrieve messages, I can't update the ListView because the service and the activity are not in the same context, so the s... | I develop an Android app with a chat and I would like to contact every 10 seconds my API to retrieve new messages and to display them in the ListView of my Activity. If I use a service to retrieve messages, I can't update the ListView because the service and the activity are not in the same context, so the service can'... | android|web-services | 0 | 2015-02-19T09:40:15.070Z | 2,015 | 2 | 9 | 3 | 92 | 1 | 375 | 43 | 2 | 0 | false | false | false | false | false | false | zero |
28,603,086 | Custom UI for Android Wear Notifications | <p>Hii I want to create Custom UI for android wear notification, and not AW app.
Please suggest if there are any libraries or anything available for this.</p> | Hii I want to create Custom UI for android wear notification, and not AW app. Please suggest if there are any libraries or anything available for this. | android|android-ui|wear-os|android-wear-notification | 1 | 2015-02-19T09:45:56.697Z | 2,015 | 2 | 9 | 3 | 658 | 1 | 151 | 40 | 4 | 0 | false | false | false | false | false | false | low |
28,603,191 | how to add picasso library in android studio | <p>I am getting this error, please help me.</p>
<pre><code> Error:A problem occurred configuring project ':app'.
> Cannot evaluate module picasso-master : Configuration with name 'default' not found.
</code></pre>
<p>Done so far : </p>
<pre><code>1. download the picaso
2.unzip the zip folder
3.Under proje... | I am getting this error, please help me. [CODE] Done so far : [CODE] 7. [CODE] i add these lines in build gradle file too. but same error coming. what shall i do now. please help me. Could you please tell me how I add picasso library? | android|android-studio|picasso | 25 | 2015-02-19T09:50:41.713Z | 2,015 | 2 | 9 | 3 | 121,412 | 4 | 234 | 44 | 3 | 3 | true | false | true | true | true | false | high |
28,603,196 | android service high battery usage | <p>Have a nice day.
I also am running my application in 60 seconds with a service AlarmManager is.
My problem is this process consumes a lot of battery, how can I solve it?
Thank you in advance for your answers.</p>
<p><strong><em>Alarm manager code.</em></strong></p>
<pre><code>Intent myIntent = new Intent(MainActiv... | Have a nice day. I also am running my application in 60 seconds with a service AlarmManager is. My problem is this process consumes a lot of battery, how can I solve it? Thank you in advance for your answers. Alarm manager code. [CODE] AlarmService code. [CODE] } [CODE] Sorry for my bad english | android|android-service|alarmmanager|android-wake-lock|repeatingalarm | 0 | 2015-02-19T09:50:52.273Z | 2,015 | 2 | 9 | 3 | 284 | 0 | 295 | 34 | 5 | 3 | true | true | false | false | false | false | zero |
28,603,212 | how to implement button click when the button is not on main layout but in a new layout | <p>i am not an expert in android. i want to make an app in which swiping of different layouts is there. In the MainActivity.java file, I have used viewpager. and in the MainActivity I hv not declared any button since the main.xml file does not contain any UI component.My question is how to implement
button click where ... | i am not an expert in android. i want to make an app in which swiping of different layouts is there. In the MainActivity.java file, I have used viewpager. and in the MainActivity I hv not declared any button since the main.xml file does not contain any UI component.My question is how to implement button click where but... | android|android-viewpager|onclicklistener | 0 | 2015-02-19T09:51:48.793Z | 2,015 | 2 | 9 | 3 | 97 | 2 | 372 | 87 | 3 | 1 | true | false | false | false | false | false | zero |
28,603,235 | Linkify on TextView missing out on question mark | <p>I create a clickable link with </p>
<pre><code> Pattern pattern = Pattern.compile("Passwort vergessen?");
Linkify.addLinks(forgotPasswordTextView, pattern, "something://");
</code></pre>
<p>The link works, but the result looks like this: </p>
<p><img src="https://i.stack.imgur.com/gieyH.png" alt="enter ima... | I create a clickable link with [CODE] The link works, but the result looks like this: the question mark isn't linkified. I both tried putting the String Passwort vergessen? plain inside code/XML as well as within strings.xml , I laso tried replacing the ? with ? , to no avail. Anything I can do? | android|textview | 0 | 2015-02-19T09:53:05.090Z | 2,015 | 2 | 9 | 3 | 69 | 2 | 300 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
28,603,269 | "UnsatisfiedLinkError: Native method not found" but correct naming? | <p>My native method cannot be found and I cannot solve it.</p>
<p>java code:</p>
<pre><code>package org.cocos2dx.cppemptytest;
public class TestJNI {
static {
System.loadLibrary("cpp_empty_test");
}
public native String moveto();
}
</code></pre>
<p>native code:</p>
<pre><code>#include "AppDeleg... | My native method cannot be found and I cannot solve it. java code: [CODE] native code: [CODE] in Android.mk [CODE] Output gives unsatisfied link error, but my naming is correct I guess. Are there any other reasons why this error occurrs? [CODE] | java|android|android-ndk|java-native-interface|native-code | 0 | 2015-02-19T09:54:35.240Z | 2,015 | 2 | 9 | 3 | 542 | 1 | 244 | 67 | 5 | 4 | true | false | false | false | false | false | zero |
28,603,311 | Logcat not showing exception stack trace | <p>Logcat prints a single line with just the message and no exception stack trace. I am passing the exception <code>e</code> to the <code>Log.i</code> function. It used to work before. Now I can only see the stack trace using <code>e.printStackTrace()</code> which prints it to system.err.</p>
<pre><code>catch (final I... | Logcat prints a single line with just the message and no exception stack trace. I am passing the exception e to the Log.i function. It used to work before. Now I can only see the stack trace using e.printStackTrace() which prints it to system.err. [CODE] I think it may be because my current project is an Android Librar... | android|exception|logging|adt|logcat | 4 | 2015-02-19T09:56:50.707Z | 2,015 | 2 | 9 | 3 | 864 | 0 | 507 | 40 | 5 | 1 | true | true | false | false | false | false | low |
28,603,325 | get notification before connectivity changes | <p>I am working over a project. In this, I am running a background service, in this their is connection between device and server. I want when device is connected to internet the service gets started and connection gets builtup between server and device and when internet disconnected the connection between server and d... | I am working over a project. In this, I am running a background service, in this their is connection between device and server. I want when device is connected to internet the service gets started and connection gets builtup between server and device and when internet disconnected the connection between server and devi... | android | 0 | 2015-02-19T09:57:27.087Z | 2,015 | 2 | 9 | 3 | 80 | 0 | 783 | 44 | 1 | 1 | true | true | false | false | false | false | zero |
28,603,404 | Is it possible to use resource IDs instead of their values for xml preferences in Android? | <h1>The Goal</h1>
<p>In my <code>preferences.xml</code> I would like to store the ID of certain string elements (like) e.g. ...</p>
<pre><code><string-array name="preference_values">
<item>@string/nav_start</item>
<item>@string/nav_overview</item>
<item>@string/... | The Goal In my preferences.xml I would like to store the ID of certain string elements (like) e.g. ... [CODE] ... meanwhile in xml/pref_general.xml ... [CODE] ... where the different strings will be localized: [CODE] Since I don't want to store the localized strings (as those xml definitions do right now), but rather t... | java|android|xml|android-resources | 1 | 2015-02-19T10:01:36.547Z | 2,015 | 2 | 10 | 3 | 163 | 0 | 965 | 90 | 4 | 6 | true | true | false | false | false | false | low |
28,603,408 | Android Studio release build with proguard: can't find referenced field in program | <p>this is the newest hot issue for every android pro coder. Will you shine in the glory of wisdom?</p>
<p>I got a warning from proguard. The class Appirater cause this warning:</p>
<blockquote>
<p>can't find referenced field in program class de.xxx.xxx.R.$id</p>
</blockquote>
<p>From the proguard website
<a href=... | this is the newest hot issue for every android pro coder. Will you shine in the glory of wisdom? I got a warning from proguard. The class Appirater cause this warning: can't find referenced field in program class de.xxx.xxx.R.$id From the proguard website proguard troubleshooting A program class is referring to a field... | java|android|android-studio|proguard | 3 | 2015-02-19T10:01:55.920Z | 2,015 | 2 | 10 | 3 | 2,553 | 1 | 903 | 82 | 4 | 0 | false | false | false | false | false | false | low |
28,603,451 | R.java not showing image ID | <p>I copied 2 images to one of the drawable folder, but the id's not generated in R.java file. Is there any short cut to find the ID's?</p> | I copied 2 images to one of the drawable folder, but the id's not generated in R.java file. Is there any short cut to find the ID's? | android|android-drawable | 0 | 2015-02-19T10:04:13.927Z | 2,015 | 2 | 10 | 3 | 73 | 2 | 132 | 27 | 2 | 0 | false | false | false | false | false | false | zero |
28,603,476 | How to pause media player when skype call comes | <p>I've developed a music player app where i need to pause music when user gets a call through his skype app. I've tried AudioFocus and phone state listener concepts but it is not working for skype. Can somebody help me out on this.</p>
<p>Thanks in advance.</p> | I've developed a music player app where i need to pause music when user gets a call through his skype app. I've tried AudioFocus and phone state listener concepts but it is not working for skype. Can somebody help me out on this. Thanks in advance. | android|skype|android-music-player | 0 | 2015-02-19T10:05:11.693Z | 2,015 | 2 | 10 | 3 | 749 | 1 | 248 | 47 | 3 | 0 | false | false | false | false | false | false | zero |
28,603,514 | App is crashing on scrolling of list | <p>In my app I am displaying map and list of items. I am using google place api to fetch nearest places and showing on map as markers having name and vicinity and as well as list. Here is my code</p>
<p>GooglePlacesActivity.java</p>
<pre><code>import android.app.ActionBar;
import android.location.Location;
import and... | In my app I am displaying map and list of items. I am using google place api to fetch nearest places and showing on map as markers having name and vicinity and as well as list. Here is my code GooglePlacesActivity.java [CODE] PlaceAdapter.java [CODE] when i scroll my list, app is crashing and generating NullPointerExce... | android|listview|android-viewholder | 0 | 2015-02-19T10:06:37.680Z | 2,015 | 2 | 10 | 3 | 904 | 1 | 362 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
28,603,540 | Handling Call Waiting while in Offhook State | <p>I am making an app to monitor calls. The app works properly when I call or get a call (Outgoing and incoming) by identifying the current state and the previous state in PhoneStateListener.</p>
<p>For example when previous state is <code>TelephonyManager.CALL_STATE_IDLE</code> and the new state is <code>TelephonyMan... | I am making an app to monitor calls. The app works properly when I call or get a call (Outgoing and incoming) by identifying the current state and the previous state in PhoneStateListener. For example when previous state is TelephonyManager.CALL_STATE_IDLE and the new state is TelephonyManager.CALL_STATE_OFFHOOK , then... | android|phone-state-listener | 2 | 2015-02-19T10:07:42.410Z | 2,015 | 2 | 10 | 3 | 583 | 0 | 1,326 | 44 | 2 | 1 | true | true | false | false | false | false | low |
28,603,543 | Android - Playing mp3 directly from the input stream without writing into temp files | <p>I'm creating an input stream to buffer and stream a mp3 from cloud . </p>
<pre><code>URL url = new URL("http://xxxx.yyy.com/Demo.mp3");
InputStream inputStream = url.openStream();
</code></pre>
<p>Now how do i playback the mp3 from media player without using a temporary file to store it and read back from the sam... | I'm creating an input stream to buffer and stream a mp3 from cloud . [CODE] Now how do i playback the mp3 from media player without using a temporary file to store it and read back from the same ? I'm developing for Android Lollipop | android|android-mediaplayer | 8 | 2015-02-19T10:07:50.027Z | 2,015 | 2 | 10 | 3 | 5,161 | 3 | 232 | 84 | 2 | 1 | true | false | true | false | false | false | medium |
28,603,549 | android.support.v7 Toolbar & DrawerLayout- how to hide Hamburger icon | <p>I am implementing Toolbar along and Navigation drawer.I am customized my tool bar with my own views.I have my own menu(Hamburger) icon in my toolbar to open navigation drawer and I am showing badge count on my menu icon(Hamburger).So i would like to hide default Hamburger icon.</p>
<p>I have tried like this:</p>
<... | I am implementing Toolbar along and Navigation drawer.I am customized my tool bar with my own views.I have my own menu(Hamburger) icon in my toolbar to open navigation drawer and I am showing badge count on my menu icon(Hamburger).So i would like to hide default Hamburger icon. I have tried like this: [CODE] Please hel... | android|navigation-drawer|drawerlayout|android-toolbar|drawertoggle | 6 | 2015-02-19T10:08:11.907Z | 2,015 | 2 | 10 | 3 | 6,482 | 3 | 343 | 69 | 5 | 1 | true | false | true | false | false | false | medium |
28,603,580 | Creating multiple listview dynamically from json data | <p>I need to parse a <code>JSON</code> and with the help of that <code>JSON</code> I need to make dynamic listviews (it can be 2 or 3 or any). </p>
<pre><code>[
{
"Monday, Feb 16": [
{
"Time": "19-02-2015 12:00:00",
"Image": "India.png",
"Currency": " INR",
"Event": "WPI Fo... | I need to parse a JSON and with the help of that JSON I need to make dynamic listviews (it can be 2 or 3 or any). [CODE] Here "Monday,Feb 16" "Wednesday, Feb 18" "Friday, Feb 20" should be 3 headings and shows we need to make 3 listviews and others are items of listview. I parsed the json getting all keys and items. No... | android|json|listview|android-listview | 0 | 2015-02-19T10:09:43.770Z | 2,015 | 2 | 10 | 3 | 340 | 0 | 397 | 53 | 4 | 2 | true | true | false | false | false | false | zero |
28,603,598 | JSON Object creation is failing | <p>I have json file which i down from internet and saved to my app. Then i read this file and create json object . But i am not able to create json object .
This is the exception I am getting </p>
<p>org.json.JSONException: Expected literal value at character 3 of { \"resources\": { ..........</p>
<p>Below is my cod... | I have json file which i down from internet and saved to my app. Then i read this file and create json object . But i am not able to create json object . This is the exception I am getting org.json.JSONException: Expected literal value at character 3 of { \"resources\": { .......... Below is my code to read input strea... | java|android|json | -1 | 2015-02-19T10:10:18.060Z | 2,015 | 2 | 10 | 3 | 636 | 3 | 451 | 31 | 3 | 3 | true | false | false | false | false | true | negative |
28,603,645 | how to create google Developers console projects from the command line? | <p>Is it possible to create <em>Google Developers console</em> projects through the command line? i.e., to register new APIs and to create keys for those projects from the shell? I would like to make it part of an automated building process.</p>
<p>Has anyone written some web wrapper for that?</p> | Is it possible to create Google Developers console projects through the command line? i.e., to register new APIs and to create keys for those projects from the shell? I would like to make it part of an automated building process. Has anyone written some web wrapper for that? | android|command-line|build | 0 | 2015-02-19T10:12:41.037Z | 2,015 | 2 | 10 | 3 | 47 | 0 | 275 | 71 | 3 | 0 | false | true | false | false | false | false | zero |
28,603,664 | Android : Update Image in GridView on touch event in Adapter | <p>I have a <code>GridView</code> and attached adapter to it. Adapter populates images in the grid. I have set <code>setOnTouchLister</code> to <code>GridView</code> in my <code>Activity</code> and implemented in the adapter only. In adapter I have an <code>Integer[] imageIDs</code> that contains resource ids of all im... | I have a GridView and attached adapter to it. Adapter populates images in the grid. I have set setOnTouchLister to GridView in my Activity and implemented in the adapter only. In adapter I have an Integer[] imageIDs that contains resource ids of all images that are added & an ArrayList<ImageSourceObject> imgObjsArr tha... | java|android|image|gridview|invalidation | 1 | 2015-02-19T10:13:26.367Z | 2,015 | 2 | 10 | 3 | 2,513 | 2 | 1,424 | 60 | 5 | 4 | true | false | false | false | false | false | low |
28,603,749 | Set cookie in webview | <p>I have to set a cookie in a <code>WebView</code> in order to authenticate my user.
I've found a lot a code talking about that, but <code>CookieSyncManager</code> is deprecated.</p>
<p>And this code seems to not work :</p>
<pre><code>CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAccept... | I have to set a cookie in a WebView in order to authenticate my user. I've found a lot a code talking about that, but CookieSyncManager is deprecated. And this code seems to not work : [CODE] | android|android-webview|android-cookiemanager | 0 | 2015-02-19T10:17:52.447Z | 2,015 | 2 | 10 | 3 | 1,226 | 1 | 191 | 21 | 3 | 1 | true | false | false | false | false | false | zero |
28,603,797 | Android - EditText in actionbar | <p>I have an app and want to display an edittext field in the action bar at the top of the screen. Is it possible to do that? Please help.</p> | I have an app and want to display an edittext field in the action bar at the top of the screen. Is it possible to do that? Please help. | android|xml|android-actionbar|android-edittext|action | -1 | 2015-02-19T10:20:00.863Z | 2,015 | 2 | 10 | 3 | 504 | 2 | 135 | 31 | 5 | 0 | false | false | false | false | false | true | negative |
28,603,951 | Regex to match end of the word | <p>I need very simple regex that will remove ending 's' in the word</p>
<pre><code>String s = "javas";
s = s.replace("s$", "");
System.out.println(s);
</code></pre>
<p>surprisingly this does not work. ideas ?</p> | I need very simple regex that will remove ending 's' in the word [CODE] surprisingly this does not work. ideas ? | java|android|regex | 0 | 2015-02-19T10:28:02.113Z | 2,015 | 2 | 10 | 3 | 130 | 3 | 112 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
28,603,963 | screen record of android device for all version below to kitkat | <p>i want to screen record the android device for all version .
i have used the code for screen </p>
<pre><code>Process su;
su = Runtime.getRuntime().exec("su");
DataOutputStream outputStream = new DataOutputStream(su.getOutputStream());
outputStream.writeBytes("screenrecord --time-limit 10 /sdcard/MyVideo.mp4\n");
... | i want to screen record the android device for all version . i have used the code for screen [CODE] it record the screen but give the video size is null or 0kb in size and when play show message can't be played . please any one update . i have try many solution but not get perfect solution. thank in advance | java|android | 0 | 2015-02-19T10:28:42.550Z | 2,015 | 2 | 10 | 3 | 425 | 1 | 308 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
28,603,971 | How can i turn on MobileNetwork? | <p>I tried to turn on MobileNetwork by using code below,but it does not work and it throws **NoSuchMethodexception **. How can I turn on MOBILE NETWORK without NoSuchMethodException?</p>
<pre><code>public void setMobileDataEnabled(boolean enabled,Context ctx) {
try{
final ConnectivityManager cm = (Connecti... | I tried to turn on MobileNetwork by using code below,but it does not work and it throws **NoSuchMethodexception **. How can I turn on MOBILE NETWORK without NoSuchMethodException? [CODE] And this is permission I Added. "android.permission.CHANGE_NETWORK_STATE" | android | -1 | 2015-02-19T10:29:02.700Z | 2,015 | 2 | 10 | 3 | 92 | 1 | 260 | 32 | 1 | 1 | true | false | false | false | false | true | negative |
28,604,043 | What can makes android app exits/crashes even when catching all Exceptions | <p>I did caught all unHandled Exceptions in my android app like the common way:</p>
<pre><code>public class AppContext extends Application{
public static Context context;
public void onCreate(){
super.onCreate();
AppContext.context = getApplicationContext();
// Setup handler for unca... | I did caught all unHandled Exceptions in my android app like the common way: [CODE] But despite that, the app sometimes(a little times) exits without any notice, and the log doesn't provide any crash messages, I don't know what else than an Exception can lead to that. The app designed to be always running and not exiti... | java|android|exception|crash | 1 | 2015-02-19T10:32:55.477Z | 2,015 | 2 | 10 | 3 | 467 | 0 | 689 | 74 | 4 | 3 | true | true | 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.