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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,975,748 | Android Thread Classes | <p>I am trying to implement a simple client server app using Android Studio. I understood the Android limits concerning the main UI thread not being able to handle the network code and the thread not being able to reference the main thread. </p>
<p>However, i am not sure which method to use to run network related comm... | I am trying to implement a simple client server app using Android Studio. I understood the Android limits concerning the main UI thread not being able to handle the network code and the thread not being able to reference the main thread. However, i am not sure which method to use to run network related commands (ie sen... | android|multithreading|android-asynctask|runnable | 0 | 2016-06-22T18:31:17.660Z | 2,016 | 6 | 18 | 2 | 57 | 2 | 518 | 22 | 4 | 0 | false | false | false | false | false | false | zero |
37,755,007 | How can I secure my Endpoints API without user login | <p>I'm developing an android app and I want to restrict access to my API to my website and mobile application. I'm not interested in having the user login into my app, rather, registering the client. </p>
<p>I've refrenced these resources for this task:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/186162... | I'm developing an android app and I want to restrict access to my API to my website and mobile application. I'm not interested in having the user login into my app, rather, registering the client. I've refrenced these resources for this task: how to make google endpoints inaccessible from the web? How do I protect my A... | android|google-app-engine | 1 | 2016-06-10T18:29:37.453Z | 2,016 | 6 | 18 | 4 | 1,849 | 2 | 1,810 | 52 | 2 | 1 | true | false | false | false | false | false | low |
37,796,366 | Android mipmap for app icons only | <p>Does the mipmap for the application luancher icons only, for example if I'm using an image for a button, should this image go to the mipmap directory too, or to the drawble folders ?</p>
<p>In other words: Does mipmap replace the drawble dir ? Or we should keep in both (mipmap for app launcher icons, and drawble fo... | Does the mipmap for the application luancher icons only, for example if I'm using an image for a button, should this image go to the mipmap directory too, or to the drawble folders ? In other words: Does mipmap replace the drawble dir ? Or we should keep in both (mipmap for app launcher icons, and drawble for the rest ... | android|android-studio | 3 | 2016-06-13T18:03:36.593Z | 2,016 | 6 | 18 | 0 | 314 | 2 | 347 | 33 | 2 | 0 | false | false | false | false | false | false | low |
37,849,228 | Android studio 2.2 EditText Border | <p>I upgraded Android Studio 2.2 preview 3 recently but the EditText style changed, In preView:
<a href="https://i.stack.imgur.com/95LDR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/95LDR.png" alt="enter image description here"></a></p>
<p>But run on my phone, It like this:
<a href="https://i.sta... | I upgraded Android Studio 2.2 preview 3 recently but the EditText style changed, In preView: But run on my phone, It like this: [CODE] styles.xml: [CODE] Why? How to deal with it? | android-edittext|android-studio-2.2 | 1 | 2016-06-16T03:08:19.583Z | 2,016 | 6 | 3 | 3 | 314 | 2 | 179 | 34 | 2 | 2 | true | false | false | false | false | false | low |
38,010,389 | Smooth GCM to FCM transition | <p>Anyone have experience with it? I'm investigating migrating, but as we already have the app released with GCM, with thousands of users and thousands of notifications daily, I'm reluctant for fear of disrupting existing service. Did anyone manage a smooth transition?</p>
<p>Specifically, in the tutorial (<a href="ht... | Anyone have experience with it? I'm investigating migrating, but as we already have the app released with GCM, with thousands of users and thousands of notifications daily, I'm reluctant for fear of disrupting existing service. Did anyone manage a smooth transition? Specifically, in the tutorial ( https://developers.go... | android|google-cloud-messaging|firebase-cloud-messaging | 3 | 2016-06-24T09:47:02.670Z | 2,016 | 6 | 9 | 4 | 1,082 | 2 | 636 | 28 | 3 | 0 | false | false | false | false | false | false | low |
38,034,766 | Do I need a new google-services.json for each productFlavor? | <p>So, I'm building a set of applications from a single code base, and I'm using productFlavors to customize each app.</p>
<p>Each flavor will need to have its own tracking ID for Google Analytics, so I started generating a new google-services.json for each flavor, and I found out that there's a limit at the Google De... | So, I'm building a set of applications from a single code base, and I'm using productFlavors to customize each app. Each flavor will need to have its own tracking ID for Google Analytics, so I started generating a new google-services.json for each flavor, and I found out that there's a limit at the Google Developer Con... | android|google-analytics|android-productflavors|google-developers-console | 1 | 2016-06-26T02:40:20.883Z | 2,016 | 6 | 2 | 6 | 1,082 | 2 | 738 | 60 | 4 | 0 | false | false | false | false | false | false | low |
37,881,764 | Recycler View with Collapsing toolbar on scroll up toolbar does not collapse | <p>I have an activity with a FrameLayout in which i add or replace several fragments. That activity uses CollapsingToolbarLayout.</p>
<p>In the first scenario I add a fragment with a NestedScrollView, a LinearLayout, a CardView and TextViews. Everything works fine, the scrolling and collapse / expand of toolbar.</p>
... | I have an activity with a FrameLayout in which i add or replace several fragments. That activity uses CollapsingToolbarLayout. In the first scenario I add a fragment with a NestedScrollView, a LinearLayout, a CardView and TextViews. Everything works fine, the scrolling and collapse / expand of toolbar. In the second sc... | android|android-layout|android-fragments | 1 | 2016-06-17T12:36:49.760Z | 2,016 | 6 | 12 | 4 | 2,618 | 2 | 615 | 76 | 3 | 3 | true | false | true | false | false | false | low |
37,743,206 | VolleyError: java.lang.IllegalArgumentException: timeout < 0 | <p>I am using [Jobqueue] library using sync request with Volley. Everything is ok, but after a long time or performing a lot of requests after an undetermined time, I am getting this error:</p>
<pre><code> Caused by: com.android.volley.VolleyError: java.lang.IllegalArgumentException: timeout < 0
at com.androi... | I am using [Jobqueue] library using sync request with Volley. Everything is ok, but after a long time or performing a lot of requests after an undetermined time, I am getting this error: [CODE] This bug is very weird because once I get this error, requests are not working anymore. I have tried a lot of things such as h... | android|android-volley|job-queue | 4 | 2016-06-10T08:13:16.610Z | 2,016 | 6 | 8 | 4 | 3,386 | 2 | 660 | 60 | 3 | 2 | true | false | true | false | false | false | low |
37,604,250 | Android Studio main activity menu missing | <p>menu folder and menu_main.xml is missing from android studio? can anyone help how i can add this to android studio or why its missing and the possible solutions. Please check attached image for reference. Thanks in advance.
<a href="http://i.stack.imgur.com/musc3.png" rel="nofollow">MISSING MENU IMAGE</a></p> | menu folder and menu_main.xml is missing from android studio? can anyone help how i can add this to android studio or why its missing and the possible solutions. Please check attached image for reference. Thanks in advance. MISSING MENU IMAGE | android|android-studio|menu | 1 | 2016-06-03T00:41:13.900Z | 2,016 | 6 | 0 | 4 | 3,642 | 2 | 242 | 41 | 3 | 0 | false | false | true | false | false | false | low |
37,962,724 | Cannot get private birthday from Google Plus account although explicit request | <p>I am trying to get the user's information, including gender and age, from its Google Plus account. Since these fields may be private, I thought that requesting them explicitly would solve the problem. However, although the sign in dialog states explicitly that the app requests to <code>View your complete date of bir... | I am trying to get the user's information, including gender and age, from its Google Plus account. Since these fields may be private, I thought that requesting them explicitly would solve the problem. However, although the sign in dialog states explicitly that the app requests to View your complete date of birth , I fa... | android|google-play-services|google-plus|google-signin|google-plus-signin | 5 | 2016-06-22T08:37:51.053Z | 2,016 | 6 | 8 | 2 | 3,898 | 2 | 830 | 78 | 5 | 2 | true | false | true | false | false | false | low |
37,885,583 | Some questions about Gradle for Android Development | <p>I have some questions about Gradle. </p>
<ol>
<li>What is the difference between <code>buildscript.dependencies</code> and
<code>dependencies</code> ?</li>
<li>What is the difference between <code>classpath</code> and <code>compile</code>?</li>
<li>What does <code>apply plugin:</code> mean?</li>
</ol> | I have some questions about Gradle. What is the difference between buildscript.dependencies and dependencies ? What is the difference between classpath and compile ? What does apply plugin: mean? | java|android|gradle|android-gradle-plugin | 4 | 2016-06-17T15:45:37.730Z | 2,016 | 6 | 15 | 4 | 59 | 2 | 195 | 51 | 4 | 0 | false | false | false | false | false | false | low |
37,979,516 | Google Cloud Messaging with Android (How to often to register user) | <p>I am very pleased to have gotten the Google Cloud Messaging working. Now, I am wondering how often do I need to register the user to get the registrationID? Is it possible that the registrationID will ever change?</p>
<p>Any help is much appreciated.</p>
<p>Thank you</p> | I am very pleased to have gotten the Google Cloud Messaging working. Now, I am wondering how often do I need to register the user to get the registrationID? Is it possible that the registrationID will ever change? Any help is much appreciated. Thank you | android|google-cloud-messaging | 0 | 2016-06-22T22:53:07.540Z | 2,016 | 6 | 22 | 2 | 59 | 2 | 253 | 67 | 2 | 0 | false | false | false | false | false | false | zero |
38,003,239 | Restoring instances of activities in a list? | <p>I was wondering if it is possible to save multiple instances of activities in a list as in when a user selects an item in a listView it opens up its corresponding activity that was activated earlier.</p>
<p>To give you a sense of where I am coming from here is the concept of the app I am making.</p>
<p>In Main Act... | I was wondering if it is possible to save multiple instances of activities in a list as in when a user selects an item in a listView it opens up its corresponding activity that was activated earlier. To give you a sense of where I am coming from here is the concept of the app I am making. In Main Activity there is: A b... | android | 3 | 2016-06-23T22:59:41.643Z | 2,016 | 6 | 22 | 3 | 59 | 2 | 1,108 | 44 | 1 | 0 | false | false | false | false | false | false | low |
37,861,078 | Android Job Scheduler: Perform the job whenever data network is there | <p>I'm scheduling a job using job Scheduler Service. Condition for my job to be start is availability of any <code>network(setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY))</code>.
First time, i'm scheduling a job from user input (say:Clicking a button), so when user click the button, once network is available, my jo... | I'm scheduling a job using job Scheduler Service. Condition for my job to be start is availability of any network(setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY)) . First time, i'm scheduling a job from user input (say:Clicking a button), so when user click the button, once network is available, my job will be started... | android|android-jobscheduler | 1 | 2016-06-16T13:43:16.997Z | 2,016 | 6 | 13 | 3 | 1,084 | 2 | 550 | 69 | 2 | 0 | false | false | false | false | false | false | low |
38,013,793 | update position listview json | <p>Good morning , I'm having problems in updating the position of a listview that receives data via json . I'm able to filter the information , but at the time of passing information from one list item to another activity he simply passes the item of the position that was before filtering. </p>
<p>This is my class tha... | Good morning , I'm having problems in updating the position of a listview that receives data via json . I'm able to filter the information , but at the time of passing information from one list item to another activity he simply passes the item of the position that was before filtering. This is my class that receives t... | android|json|listview|position | 0 | 2016-06-24T12:45:56.943Z | 2,016 | 6 | 12 | 4 | 61 | 2 | 423 | 29 | 4 | 2 | true | false | false | false | false | false | zero |
37,995,831 | why images are duplicated (Picasso) | <p>In my code I am using recylcer view trying to show some data.</p>
<p>It's always images are messed up after scrolling. </p>
<p>Here some of my code. </p>
<pre><code>public class LeaderBoardAdapter extends UltimateViewAdapter<RecyclerView.ViewHolder> {
private List<Profile> mProfilesList;
priv... | In my code I am using recylcer view trying to show some data. It's always images are messed up after scrolling. Here some of my code. [CODE] WHat is wrong here could anyone tell me that ? | android|android-layout|android-imageview|picasso | 2 | 2016-06-23T15:24:39.553Z | 2,016 | 6 | 15 | 3 | 573 | 2 | 187 | 35 | 4 | 1 | true | false | false | false | false | false | low |
37,872,554 | How to make condition if sim card is absent then show dialog if not do something in android? | <p>I have an app in which I have to check whether sim card is inserted in device or not and make some condition if sim is not inserted then show dialog else do something ,how can I do that</p> | I have an app in which I have to check whether sim card is inserted in device or not and make some condition if sim is not inserted then show dialog else do something ,how can I do that | android | -3 | 2016-06-17T03:19:37.900Z | 2,016 | 6 | 3 | 4 | 829 | 2 | 185 | 92 | 1 | 0 | false | false | false | false | false | true | negative |
37,897,415 | Converted ArrayList of custom objects to JSON using gson library, ClassCastException when retrieving back those custom objects | <p>I have used the Google's GSON library to convert an <code>ArrayList</code> of my custom objects to JSON in order to store it into <code>SharedPreferences</code>. The class of the objects stored in the ArrayList is like this:</p>
<pre><code>class CustomObject {
String name;
Map<String, Long> topGrades;
... | I have used the Google's GSON library to convert an ArrayList of my custom objects to JSON in order to store it into SharedPreferences . The class of the objects stored in the ArrayList is like this: [CODE] I saved an ArrayList of objects of CustomObject to SharedPreferences like: [CODE] The I retrieved the List from t... | android|json|gson|classcastexception | 1 | 2016-06-18T13:19:11.983Z | 2,016 | 6 | 13 | 5 | 2,621 | 2 | 627 | 126 | 4 | 5 | true | false | true | false | false | false | low |
37,923,613 | What is the difference between 2 code of Listview adapter getView method | <p>I know recycle view is new but I want to know what is difference in 2 codes in list view. I have already tried to search a lot but not get specific answer. I know First one is more faster then the second because of memory consumption but why second code is slow then the first one what is the internal process can any... | I know recycle view is new but I want to know what is difference in 2 codes in list view. I have already tried to search a lot but not get specific answer. I know First one is more faster then the second because of memory consumption but why second code is slow then the first one what is the internal process can any on... | android|listview | -1 | 2016-06-20T13:16:49.823Z | 2,016 | 6 | 13 | 0 | 62 | 2 | 394 | 72 | 2 | 2 | true | false | false | false | false | true | negative |
37,938,899 | How to create layout similar to the image provided in the link in android | <p>I'm new to Android development. I want to create layout similar to the image i have provided below in the link.</p>
<p>Layout image that i want to create in my android application, click on below link to view.</p>
<p><a href="http://i.stack.imgur.com/nv2TH.gif" rel="nofollow">http://i.stack.imgur.com/nv2TH.gif</a>... | I'm new to Android development. I want to create layout similar to the image i have provided below in the link. Layout image that i want to create in my android application, click on below link to view. http://i.stack.imgur.com/nv2TH.gif This is the layout i wrote which is not yet meeting the standard in the image prov... | android|android-layout | 0 | 2016-06-21T08:10:24.677Z | 2,016 | 6 | 8 | 1 | 62 | 2 | 421 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
37,877,718 | is using an intent to show the map cost money? | <p>Sorry if the question is so basic I am new to android and programming.
I am going to make an app, in this app I need to show locations or maybe even directions in map lots of time. It is very likely, an interested user see the map more than 20 times in a row in just one time lunching the app.<br>
I choose to use goo... | Sorry if the question is so basic I am new to android and programming. I am going to make an app, in this app I need to show locations or maybe even directions in map lots of time. It is very likely, an interested user see the map more than 20 times in a row in just one time lunching the app. I choose to use google map... | android|google-maps|android-intent | 1 | 2016-06-17T09:18:38.293Z | 2,016 | 6 | 9 | 4 | 318 | 2 | 1,187 | 46 | 3 | 0 | false | false | false | false | false | false | low |
37,933,701 | Installing compile samples 4.0 failed nvidia | <p>While installing NVidia Android CodeWorks I have received an error at the very end of the installation process saying :</p>
<pre><code>installing compile samples 4.0 failed nvidia
Return Code: 2Compile Samples failed. Please check the /home/user/NVPACK//_installer/compile.log. You can send it to TegraDeveloperPack-... | While installing NVidia Android CodeWorks I have received an error at the very end of the installation process saying : [CODE] Does anyone know how to solve this problem please | android|linux|64-bit|nvidia | 0 | 2016-06-21T00:10:03.303Z | 2,016 | 6 | 0 | 1 | 574 | 2 | 176 | 44 | 4 | 1 | true | false | false | false | false | false | zero |
37,883,079 | Toolbar Spinner doesn't show a text | <p><strong>UPDATED</strong><br>
I need to make a <code>Spinner</code> in the <code>Toolbar</code>. Below <code>AppBarLayout</code> xml:</p>
<pre><code><android.support.design.widget.AppBarLayout
android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="w... | UPDATED I need to make a Spinner in the Toolbar . Below AppBarLayout xml: [CODE] App style: [CODE] Dropdown title xml: [CODE] Dropdown item: [CODE] Here current result ( Spinner doesn't show a text). What do I doing wrong? Adapter [CODE] ADDED I understood my bug. Method public View getView(final int position, View vie... | android|android-spinner|android-toolbar | 0 | 2016-06-17T13:38:32.700Z | 2,016 | 6 | 13 | 4 | 830 | 2 | 458 | 35 | 3 | 5 | true | false | false | false | false | false | zero |
37,941,746 | Android Wifi Roaming through AP with same SSID | <p>I saw that Android system has a bad behavior with Wifi roaming.
We have a Wifi centralized network with many AP with a signle SSID.
The Adroid Phones wont roams seamlessly.
An Android Phone tries to stay connected to an AP until the signal reaches zero even if there are others AP (with the same SSID) with a good sig... | I saw that Android system has a bad behavior with Wifi roaming. We have a Wifi centralized network with many AP with a signle SSID. The Adroid Phones wont roams seamlessly. An Android Phone tries to stay connected to an AP until the signal reaches zero even if there are others AP (with the same SSID) with a good signal... | android|wifi|access-point|roaming | 4 | 2016-06-21T10:19:12.553Z | 2,016 | 6 | 10 | 1 | 4,414 | 2 | 1,069 | 46 | 4 | 0 | false | false | true | false | false | false | low |
37,612,287 | Running Android emulator via Cordova - AVD Manager missing from Android Studio | <p>I have spent a 2 days trying to set up a Cordova App and to run it in an android emulator following the instructions on this page (<a href="https://cordova.apache.org/docs/en/latest/guide/cli/index.html" rel="nofollow noreferrer">https://cordova.apache.org/docs/en/latest/guide/cli/index.html</a>) and relating pages.... | I have spent a 2 days trying to set up a Cordova App and to run it in an android emulator following the instructions on this page ( https://cordova.apache.org/docs/en/latest/guide/cli/index.html ) and relating pages. I have encountered countless issues, the latest one being that the android emulator wont run. When I ru... | android|cordova|android-studio | 3 | 2016-06-03T10:43:45.990Z | 2,016 | 6 | 10 | 4 | 5,950 | 2 | 973 | 78 | 3 | 2 | true | false | true | false | false | false | low |
37,784,868 | how to create closed circular Recyclerview with custom Recycler adapter? | <p>this might be a possible duplicate , but proper answer is still not available.
I referred to <a href="https://stackoverflow.com/questions/2332847/how-to-create-a-closed-circular-listview/4940073#4940073">this</a> and <a href="https://stackoverflow.com/questions/28492359/circular-recyclerview">this</a> and <a href="... | this might be a possible duplicate , but proper answer is still not available. I referred to this and this and this As stated in the links I wish to implement a recyclerview which is circular ie [view 1]-[view 2]....-[view N-1]-[view N]-[view 1].....and so on Since there are no override methods to get View and get Item... | java|android|android-recyclerview | 6 | 2016-06-13T08:21:52.277Z | 2,016 | 6 | 8 | 0 | 7,998 | 2 | 425 | 72 | 3 | 1 | true | false | true | false | false | false | medium |
37,649,013 | Multiple CASE in a SQL QUERY | <p>I have a product table with a default price.</p>
<p>TABLE: products</p>
<pre><code>id|product|price|
</code></pre>
<p>I have another table for promotions</p>
<p>TABLE: promotions</p>
<pre><code>id|description|
</code></pre>
<p>And have another table with the prices for promotions</p>
<p>TABLE: prices</p>
<pr... | I have a product table with a default price. TABLE: products [CODE] I have another table for promotions TABLE: promotions [CODE] And have another table with the prices for promotions TABLE: prices [CODE] What i am trying to do is: Get the product, verify if there is price in the prices table with the promotion code "1"... | android|sql|case | 0 | 2016-06-06T03:06:04.930Z | 2,016 | 6 | 3 | 0 | 63 | 2 | 790 | 28 | 3 | 4 | true | false | false | false | false | false | zero |
38,039,539 | cloud based App as Restful Services with backend in Java and frontend in Android | <p>The goal is to build a complete mobile app with REST API and a powerful backend (in java) running in the cloud(amazon).I know the basics of all involved technologies in project like jEE,Gradle,Android,Amazon,Sprint MVC and Tomcat. I have learned all these technologies individually.What I do not know, how all these t... | The goal is to build a complete mobile app with REST API and a powerful backend (in java) running in the cloud(amazon).I know the basics of all involved technologies in project like jEE,Gradle,Android,Amazon,Sprint MVC and Tomcat. I have learned all these technologies individually.What I do not know, how all these tech... | java|android|rest|tomcat|gradle | 0 | 2016-06-26T14:33:11.793Z | 2,016 | 6 | 14 | 6 | 319 | 2 | 392 | 80 | 5 | 0 | false | false | false | false | false | false | zero |
37,698,589 | how to decrease size of res bundle android | <p>I have an application in which i need to use some large model pictures. I put these images in drawable folder corresponding to the densities i.e. drawable-mdpi, drawable-hdpi etc and these images are increasing size of my apk. What is the best way to use these drawable so that i can downsize my apk. Should i use si... | I have an application in which i need to use some large model pictures. I put these images in drawable folder corresponding to the densities i.e. drawable-mdpi, drawable-hdpi etc and these images are increasing size of my apk. What is the best way to use these drawable so that i can downsize my apk. Should i use single... | android|android-drawable | 0 | 2016-06-08T09:30:50.060Z | 2,016 | 6 | 9 | 2 | 64 | 2 | 635 | 42 | 2 | 0 | false | false | false | false | false | false | zero |
37,836,064 | Realm.io [java] search by combined field | <p>I have User model with Name and Surname properties, and I need query to search by name.
This code is now:</p>
<pre><code>query
.beginGroup()
.contains("name", search, Case.INSENSITIVE)
.or()
.contains("surname", search, Case.INSENSITIVE)
.endGroup()
.findAll();
</code></pre>
<p>But, if i want to search... | I have User model with Name and Surname properties, and I need query to search by name. This code is now: [CODE] But, if i want to search Jerry Smith, i'll write "jerry smi" and won't get what i want, obviously because there's or. How should i do this? I'm going to create and maintain fullname field, setting it on sett... | java|android|realm | 0 | 2016-06-15T12:53:25.780Z | 2,016 | 6 | 12 | 2 | 64 | 2 | 374 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
37,842,032 | Not performing all code in For Loop | <p>I am trying to cycle through all parts of a <code>HashMap</code> using a for loop. The problem however is, that inside the body of the for loop, the code is not being fully performed. That is , it is happening only to a certain point and is then stopping.My code is:</p>
<pre><code>public static void printCombinatio... | I am trying to cycle through all parts of a HashMap using a for loop. The problem however is, that inside the body of the for loop, the code is not being fully performed. That is , it is happening only to a certain point and is then stopping.My code is: [CODE] It is not logging lines: [CODE] | java|android | -1 | 2016-06-15T17:30:26.043Z | 2,016 | 6 | 17 | 2 | 64 | 2 | 292 | 35 | 2 | 2 | true | false | false | false | false | true | negative |
37,965,230 | Android Changing Toolbar Based on Navigation View Selection | <p>I have an activity named as <b>MainActivity.java </b>, in this I have implemented a navigation view based on <b> DrawerLayout </b></p>
<p>Here is the <code>XML</code> code of it</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schem... | I have an activity named as MainActivity.java , in this I have implemented a navigation view based on DrawerLayout Here is the XML code of it [CODE] In the navigation view I have 4 options. Following is the output of the page Now following are things I need to do 1. Instead of the word MainActivity I need to show an Im... | android|android-toolbar|drawerlayout | 1 | 2016-06-22T10:24:26.717Z | 2,016 | 6 | 10 | 2 | 320 | 2 | 680 | 59 | 3 | 1 | true | false | false | false | false | false | low |
38,038,663 | I can't build or run my project | <p>I tried to build and run my program. but I saw this message. what can I do?</p>
<blockquote>
<p>Rishe is app name</p>
</blockquote>
<p><strong>Error 1 :</strong></p>
<p><a href="https://i.stack.imgur.com/TEVVq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TEVVq.png" alt="enter image description ... | I tried to build and run my program. but I saw this message. what can I do? Rishe is app name Error 1 : Error 2 : Thanks in advance ! | android|android-studio | -2 | 2016-06-26T12:52:00.537Z | 2,016 | 6 | 12 | 6 | 320 | 2 | 133 | 31 | 2 | 0 | false | false | false | false | false | true | negative |
37,709,883 | Android Development - GestureDetector.OnGestureListener or GestureDetector.SimpleOnGestureListener | <p>I'm working on simple code to detect all the gesture like fling, scroll, etc and was going to implement the interface <code>GestureDetector.OnGestureListener</code> for overriding its methods but I got to know that same could be done with <code>GestureDetector.SimpleOnGestureListener</code>. As far as I know the <co... | I'm working on simple code to detect all the gesture like fling, scroll, etc and was going to implement the interface GestureDetector.OnGestureListener for overriding its methods but I got to know that same could be done with GestureDetector.SimpleOnGestureListener . As far as I know the SimpleOnGestureListener is a cl... | java|android-studio|android-event|android-gesture | 3 | 2016-06-08T18:11:03.080Z | 2,016 | 6 | 18 | 2 | 1,344 | 2 | 1,296 | 98 | 4 | 0 | false | false | false | false | false | false | low |
37,959,156 | MPAndroidChart - Button click in MarkerView | <p>Currently I have a Button in a layout, however an assigned OnClickListener never calls back to the onClick method.</p>
<p>Is it possible to intercept the click of a Button in a layout assigned to a MarkerView?</p> | Currently I have a Button in a layout, however an assigned OnClickListener never calls back to the onClick method. Is it possible to intercept the click of a Button in a layout assigned to a MarkerView? | android|mpandroidchart | 1 | 2016-06-22T05:21:23.800Z | 2,016 | 6 | 5 | 2 | 2,624 | 2 | 202 | 43 | 2 | 0 | false | false | true | false | false | false | low |
37,758,209 | ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView? | <p>I'm trying to type cast data but when I write <code>TextView clickData=(TextView) view</code> under onItemClick(...) logcat shows msg:</p>
<blockquote>
<p>java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView</p>
</blockquote>
<p>I don't know why.</p>
<p>This belo... | I'm trying to type cast data but when I write TextView clickData=(TextView) view under onItemClick(...) logcat shows msg: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView I don't know why. This belongs from main activity: [CODE] This is xml with ListView: [CODE] This... | java|android | 2 | 2016-06-10T22:59:21.123Z | 2,016 | 6 | 22 | 4 | 5,440 | 2 | 361 | 92 | 2 | 3 | true | false | true | false | false | false | low |
37,647,557 | SharedPreferences STRANGE BEHAVIOUR | <p>I am beginner at android developing and i am making very simple app that has a content inside and you can edit the font type and size of the content using settings fragment .
a problem is facing me which when i set my fonts settings it saved well. i close the app and get back to the content activity and it works ver... | I am beginner at android developing and i am making very simple app that has a content inside and you can edit the font type and size of the content using settings fragment . a problem is facing me which when i set my fonts settings it saved well. i close the app and get back to the content activity and it works very w... | android|android-fragments|sharedpreferences|typeface | 0 | 2016-06-05T22:50:38.013Z | 2,016 | 6 | 22 | 6 | 65 | 2 | 519 | 35 | 4 | 1 | true | false | false | false | false | false | zero |
37,683,581 | Error inflating EditText but weirdly after commenting it in my layout the app starts and works fine | <p>This is my layout for launcher activity </p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:theme="@s... | This is my layout for launcher activity [CODE] and LoginActivity [CODE] When i launch the app on my emulator i get java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.symptoma/com.android.symptoma.LoginActivity}: android.view.InflateException: Binary XML file line #28: Binary XML file line #2... | java|android|android-layout | -1 | 2016-06-07T15:32:00.027Z | 2,016 | 6 | 15 | 1 | 65 | 2 | 464 | 99 | 3 | 2 | true | false | false | false | false | true | negative |
37,913,818 | Google Cloud Messaging with Android | <p>For Google Cloud Messaging, does the app that is supposed to recieve notifications have to be running in the foreground or background in order to process a push notification message?</p> | For Google Cloud Messaging, does the app that is supposed to recieve notifications have to be running in the foreground or background in order to process a push notification message? | android|google-cloud-messaging | 0 | 2016-06-20T02:17:36.370Z | 2,016 | 6 | 2 | 0 | 65 | 2 | 182 | 35 | 2 | 0 | false | false | false | false | false | false | zero |
37,611,175 | Connect Memu emulator to eclipse DDMS | <p>Is there a way to connect other emulators like Memu to eclipse DDMS for appium testing? so far I've only found ways for Bluestakcs.</p> | Is there a way to connect other emulators like Memu to eclipse DDMS for appium testing? so far I've only found ways for Bluestakcs. | java|android|android-studio|appium | 0 | 2016-06-03T09:51:50.557Z | 2,016 | 6 | 9 | 4 | 1,345 | 2 | 131 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
37,974,443 | How to check whether textView is being ellipsized Android | <p>I want to know how to check if my textView is being ellipsized..</p>
<p>That's my code snippet:</p>
<pre><code>if(txtDescription.equals("")) {
txtDescription.setVisibility(View.GONE);
} else if(txtDescription.getLayout().getEllipsisCount(1) > 0){ // this line is giving java.lang.NullPointerException
t... | I want to know how to check if my textView is being ellipsized.. That's my code snippet: [CODE] But I always get a java.lang.NullPointerException and I think it comes from getLayout() method.. That's the TextView's XML: [CODE] | android|nullpointerexception|textview | 0 | 2016-06-22T17:13:00.450Z | 2,016 | 6 | 17 | 2 | 1,345 | 2 | 226 | 57 | 3 | 2 | true | false | false | false | false | false | zero |
37,685,388 | Getting an Interstitial Ad to Display from a Fragment | <p>i've been searching for hours now, and i can't get a simple interstitial ad to display. the layout is within a fragment and i'm sure that's part of the problem, but i can't find a work around. any help is greatly appreciated - most of what i see is displaying the ad within an activity. </p>
<p>I want the interst... | i've been searching for hours now, and i can't get a simple interstitial ad to display. the layout is within a fragment and i'm sure that's part of the problem, but i can't find a work around. any help is greatly appreciated - most of what i see is displaying the ad within an activity. I want the interstitial to appear... | android|android-fragments|interstitial | -1 | 2016-06-07T17:13:43.697Z | 2,016 | 6 | 17 | 1 | 4,929 | 2 | 438 | 53 | 3 | 1 | true | false | true | false | false | true | negative |
37,843,693 | listview item changed color when code run listview1.setSelection(3) color item changed | <p>in android programing... </p>
<p>how item of listview Automatically changed color when run code
\n
listview1.setSelection(3) color item changed?</p>
<p>listname2=(ListView)findViewById(R.id.left_drawer2);
listname2.setAdapter(adapter5);</p>
<p>when</p>
<p>run this ( listview1.setSelection(3)) </p>
<p>autom... | in android programing... how item of listview Automatically changed color when run code \n listview1.setSelection(3) color item changed? listname2=(ListView)findViewById(R.id.left_drawer2); listname2.setAdapter(adapter5); when run this ( listview1.setSelection(3)) automatically color change tanks help me... | android | 0 | 2016-06-15T18:58:33.593Z | 2,016 | 6 | 18 | 2 | 66 | 2 | 308 | 86 | 1 | 0 | false | false | false | false | false | false | zero |
38,003,461 | private static class and CursorLoader | <p>The below copied from the book <code>The Bid nerd ranch</code> , my question is about <code>private static class</code> shown below, Can I change <code>private static class RunCursorAdapter</code> to <code>public class RunCursorAdapter</code> and move it to another file? will that cause any <em>memory</em> issue whe... | The below copied from the book The Bid nerd ranch , my question is about private static class shown below, Can I change private static class RunCursorAdapter to public class RunCursorAdapter and move it to another file? will that cause any memory issue when the loader reload when loader re-run for any reason? [CODE] } | java|android | 2 | 2016-06-23T23:28:26.810Z | 2,016 | 6 | 23 | 3 | 66 | 2 | 319 | 37 | 2 | 1 | true | false | false | false | false | false | low |
37,728,702 | How to use selectableButtonBackground on Anko? | <p>How do I use <code>selectableButtonBackground</code> attribute on a custom View that uses Anko's <code>apply()</code> method inside its constructor like the following structure?</p>
<pre><code>class XPTO(context: Context) : CardView(context) {
init {
this.apply {
// I'd like to invoke sel... | How do I use selectableButtonBackground attribute on a custom View that uses Anko's apply() method inside its constructor like the following structure? [CODE] I've tried to do context.obtainStyledAttributes(arrayOf(R.attr.selectableItemBackground).toIntArray()).getDrawable(0) but with no success. | android|kotlin|anko | 2 | 2016-06-09T14:24:24.080Z | 2,016 | 6 | 14 | 3 | 578 | 2 | 297 | 46 | 3 | 1 | true | false | false | false | false | false | low |
37,669,635 | How grouping module in the Android Studio | <p>The structure of my android project:</p>
<blockquote>
<p>project-</p>
<blockquote>
<p>|-moduleA</p>
<p>|-moduleB</p>
<p>|-moduleC</p>
<p>|-moduleD</p>
</blockquote>
</blockquote>
<p>how to organize modules in groups like this:</p>
<blockquote>
<p>project-</p>
<blockq... | The structure of my android project: project- |-moduleA |-moduleB |-moduleC |-moduleD how to organize modules in groups like this: project- |-group1 |-moduleA1 |-moduleA2 |-moduleA |-group2 |-moduleB1 |-moduleB2 |-moduleB3 move modules to directory, but compile error any one can help me? thanks! | android|android-studio|module | 4 | 2016-06-07T02:36:54.927Z | 2,016 | 6 | 2 | 1 | 1,858 | 2 | 296 | 41 | 3 | 0 | false | false | false | false | false | false | low |
37,651,997 | Android studio error after changing sdk path | <p>Hi I have just changed my sdk path and got the following error:</p>
<p><strong>Error:Already created an SDK Loader with different SDK Path</strong></p>
<p>Previously it worked fine, the problem showed up after I have copied the sdk folder to my D drive. I am using 64 bit Windows 10 pro. I have changed the path in ... | Hi I have just changed my sdk path and got the following error: Error:Already created an SDK Loader with different SDK Path Previously it worked fine, the problem showed up after I have copied the sdk folder to my D drive. I am using 64 bit Windows 10 pro. I have changed the path in the local.properties file to exactly... | android|android-studio | 1 | 2016-06-06T07:40:37.450Z | 2,016 | 6 | 7 | 0 | 2,626 | 2 | 421 | 44 | 2 | 0 | false | false | true | false | false | false | low |
37,946,435 | android.process.acore has stopped working | <p>I am having issues with my Lollipop (5.0.2) Android. </p>
<p>Basically every 1-2 seconds a message saying that "android.process.acore has stopped working" pops up and prevents me from using my phone normally.
This error started showing up when I tried to add a reddit account to "Reddit is fun" app but it also used ... | I am having issues with my Lollipop (5.0.2) Android. Basically every 1-2 seconds a message saying that "android.process.acore has stopped working" pops up and prevents me from using my phone normally. This error started showing up when I tried to add a reddit account to "Reddit is fun" app but it also used to happen in... | android|android-5.0-lollipop | 6 | 2016-06-21T13:55:30.143Z | 2,016 | 6 | 13 | 1 | 2,626 | 2 | 839 | 41 | 2 | 1 | true | false | true | false | false | false | medium |
37,642,869 | RecyclerView GridLayoutManager with full width header | <p>I'm using a very helpful example <a href="http://blog.sqisland.com/2014/12/recyclerview-grid-with-header.html" rel="noreferrer">here</a> to show a RecyclerView and a GridLayoutManager to show a grid with a header.</p>
<p>It looks pretty good, but my graphic designer wants the header item to take up the full width o... | I'm using a very helpful example here to show a RecyclerView and a GridLayoutManager to show a grid with a header. It looks pretty good, but my graphic designer wants the header item to take up the full width of the RecyclerView. Right now there is padding. When I set up the GridLayoutManager I add in padding (which I ... | android|android-recyclerview|gridlayoutmanager | 38 | 2016-06-05T14:11:42.217Z | 2,016 | 6 | 14 | 6 | 18,242 | 2 | 497 | 53 | 3 | 1 | true | false | true | true | true | false | high |
37,609,127 | Inverted Commas are not replaced by spaces and not showing in listview | <p>I develop an SMS Application in which when a SMS is received it is saved in the listview of my application. Now the problem is that if the message contains inverted commas then it is not saving in the database and thus not showing in listview. However i tried different methods available on net but none of them work.... | I develop an SMS Application in which when a SMS is received it is saved in the listview of my application. Now the problem is that if the message contains inverted commas then it is not saving in the database and thus not showing in listview. However i tried different methods available on net but none of them work. I ... | android|listview|broadcastreceiver|sms | 0 | 2016-06-03T08:04:08.823Z | 2,016 | 6 | 8 | 4 | 67 | 2 | 707 | 70 | 4 | 3 | true | false | false | false | false | false | zero |
37,752,932 | Android - Button icon loads after function call instead of before | <p>I have this code:</p>
<pre><code>fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(!clicked){
clicked = true;
fab.setImageResource(R.drawable.ic_media_stop);
char[] userInput = et.getText().toString().toLowerCase().toC... | I have this code: [CODE] When the floating action button is clicked, I want it to change to a stop symbol and then execute the function afterwards. What is happening is that the code is being executed before the image on the button changes. The image only changes once all of the code has been executed from the compareT... | android | 1 | 2016-06-10T16:20:00.943Z | 2,016 | 6 | 16 | 4 | 67 | 2 | 646 | 65 | 1 | 1 | true | false | false | false | false | false | low |
38,009,135 | Android Common height and width for all resolutions | <p>i am using this below code for getting drawable its works perfectly but the Height and width differ in all screen how can i get common height(size = 34) and width (size = 34) for all device ..</p>
<pre><code>public Drawable getDrawable(String source) {
int height = 34,
width = 34;
Le... | i am using this below code for getting drawable its works perfectly but the Height and width differ in all screen how can i get common height(size = 34) and width (size = 34) for all device .. [CODE] | android | 0 | 2016-06-24T08:44:15.810Z | 2,016 | 6 | 8 | 4 | 67 | 2 | 199 | 51 | 1 | 1 | true | false | false | false | false | false | zero |
37,844,370 | GCM Notification Receiver/Token Registration | <p>EDIT: Figured it out -- see answer below</p>
<p>I'm attempting to generate registration tokens, store them in a server, and then use the tokens to send push notifications. At this point, I've successfully sent and stored registration tokens and am sending notifications from a web API, but they aren't arriving to my... | EDIT: Figured it out -- see answer below I'm attempting to generate registration tokens, store them in a server, and then use the tokens to send push notifications. At this point, I've successfully sent and stored registration tokens and am sending notifications from a web API, but they aren't arriving to my device. I ... | java|android|amazon-web-services|push-notification|google-cloud-messaging | 1 | 2016-06-15T19:40:39.470Z | 2,016 | 6 | 19 | 2 | 323 | 2 | 646 | 44 | 5 | 3 | true | false | false | false | false | false | low |
37,805,745 | Use of the 'compileOnly' scope in Android projects? | <p>I'm using Gradle 2.12 (or newer) with an appropriate version of the Android Gradle plugin in my project. Gradle 2.12 introduced the <code>compileOnly</code> configuration, so why do I get an error when I try to use it?</p>
<blockquote>
<p>Could not find method compileOnly() for arguments</p>
</blockquote> | I'm using Gradle 2.12 (or newer) with an appropriate version of the Android Gradle plugin in my project. Gradle 2.12 introduced the compileOnly configuration, so why do I get an error when I try to use it? Could not find method compileOnly() for arguments | gradle|android-gradle-plugin | 10 | 2016-06-14T07:34:54.903Z | 2,016 | 6 | 7 | 1 | 4,163 | 2 | 255 | 51 | 2 | 0 | false | false | true | false | true | false | medium |
37,983,788 | Is it possible to develop 2D games in Android Studio? | <p>I have searched in the web and found very few material on this question. I've heard of Unity 3D and know that there are other tools. But I would like to know if it is possible to develop games in Android Studio? I'm learning Android development and Java, therefore don't want to jump into other language and platforms... | I have searched in the web and found very few material on this question. I've heard of Unity 3D and know that there are other tools. But I would like to know if it is possible to develop games in Android Studio? I'm learning Android development and Java, therefore don't want to jump into other language and platforms. H... | android|android-studio|2d-games | 5 | 2016-06-23T06:26:54.430Z | 2,016 | 6 | 6 | 3 | 27,715 | 2 | 403 | 53 | 3 | 0 | false | false | true | true | false | false | low |
37,648,210 | Unexpected NullpointExpection inside a setter | <p>I'm trying to do a simple operation: click a button and show a custom DialogFragment, but I'm getting a NullPointExpection and I can't figure out why.</p>
<p><strong>mAlertDialog.java:</strong></p>
<pre><code>public class mAlertDialog extends DialogFragment {
TextView title;
@Nullable
@Override
p... | I'm trying to do a simple operation: click a button and show a custom DialogFragment, but I'm getting a NullPointExpection and I can't figure out why. mAlertDialog.java: [CODE] Showing mAlertDialog: [CODE] Error message: [CODE] | java|android|nullpointerexception | -4 | 2016-06-06T00:47:26.973Z | 2,016 | 6 | 0 | 0 | 68 | 2 | 227 | 45 | 3 | 3 | true | false | false | false | false | true | negative |
37,719,309 | onclick of one button calling functions of two other buttons simultaneously in android | <pre><code>REDLED.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
byte[] convertedBytes = convertingTobyteArray(
IMM_MID_ALERT1);
BluetoothLeService
.writeCharacteristicNoresponse(
gattCharacterist... | [CODE] I am doing a project to blink LED.I use two LEDs(RED,GREEN).REDLED button is used to blink Red LED and GREENLED button to blink Green LED.I want to work the two functions simultaneously by clicking TWOLED button. But according to my coding [CODE] How to make "GREENLED.callOnClick(); and REDLED.callOnClick();work... | android | 1 | 2016-06-09T07:20:53.513Z | 2,016 | 6 | 7 | 3 | 68 | 2 | 364 | 86 | 1 | 2 | true | false | false | false | false | false | low |
37,764,504 | Android intent getting data error | <p>I have a problem with android intent, it work and open a new window but when take data from mainactivity all of this is 0 but when i check it have the correct value.
How it's possible?</p>
<p>This is the main code:</p>
<pre><code>nst = Integer.parseInt(ConfMat[1][1]);
nrt = Integer.parseInt(ConfMat[2][2]);
ndx = I... | I have a problem with android intent, it work and open a new window but when take data from mainactivity all of this is 0 but when i check it have the correct value. How it's possible? This is the main code: [CODE] The log result is : STOP 1 ,rt 1 ,dsx 1 ,sx 1 then i get the data in the intent: [CODE] Now the Log retur... | android|android-intent | 0 | 2016-06-11T13:49:54.913Z | 2,016 | 6 | 13 | 5 | 68 | 2 | 375 | 33 | 2 | 2 | true | false | false | false | false | false | zero |
37,835,243 | Navigation Drawer each menu item with different background color | <p>Hi Hello greeting to everyone,I am new to android and i just started learning android.So i implemented navigation drawer in my app but in my navigation drawer i have added menu using menu.xml </p> | Hi Hello greeting to everyone,I am new to android and i just started learning android.So i implemented navigation drawer in my app but in my navigation drawer i have added menu using menu.xml | android|navigation-drawer | 0 | 2016-06-15T12:17:30.013Z | 2,016 | 6 | 12 | 2 | 836 | 2 | 191 | 64 | 2 | 0 | false | false | false | false | false | false | zero |
38,006,210 | How do I make my Fragment layout fit under the tabs created in main Activity? | <p>I have a problem which seems to have a different solution everytime it is asked, and causing me great distress. I have tried to use the solutions in other SO questions, but none worked.
I have an Activity from which initializes a ViewPager, a toolbar and a TabLayout. There are two tabs, both of which are implemented... | I have a problem which seems to have a different solution everytime it is asked, and causing me great distress. I have tried to use the solutions in other SO questions, but none worked. I have an Activity from which initializes a ViewPager, a toolbar and a TabLayout. There are two tabs, both of which are implemented us... | android|android-layout | 1 | 2016-06-24T05:32:23.233Z | 2,016 | 6 | 5 | 4 | 1,092 | 2 | 862 | 77 | 2 | 2 | true | false | false | false | false | false | low |
37,677,785 | Pass context to enum. Is my solution correct? | <p>I want to populate a spinner with enum using string resource (for localization).
Here my testing solution :</p>
<p>MyEnum.java:</p>
<pre><code>enum MyEnum {
FRENCH(R.string.french, new double[] {0.1, 0.2, 0.3}, "French"),
ENGLISH(R.string.english, new double[] {0.2, 0.3, 0.1}, "English"),
SPANISH(R.str... | I want to populate a spinner with enum using string resource (for localization). Here my testing solution : MyEnum.java: [CODE] MainActivity.java : [CODE] strings.xml: [CODE] fr/strings.xml: [CODE] After several tests, it seems to work as expected. Is my solution correct and without memory leaks as you can find with ot... | android|enums | 1 | 2016-06-07T11:11:41.843Z | 2,016 | 6 | 11 | 1 | 2,116 | 2 | 343 | 45 | 2 | 4 | true | false | false | false | false | false | low |
37,663,271 | Migrate my E-commercial website on mobile phone platform using PhoneGap | <p>I have just created a website based on prestahsop template (PHP + SMARTY), and I have made it work online.</p>
<p>Now I want to migrate the project on mobiles. I searched for several means of doing that, finally I am about to use PhoneGap for my solution.</p>
<p>But I have no idea if that can encapsulate the whole... | I have just created a website based on prestahsop template (PHP + SMARTY), and I have made it work online. Now I want to migrate the project on mobiles. I searched for several means of doing that, finally I am about to use PhoneGap for my solution. But I have no idea if that can encapsulate the whole project on the mob... | android|ios|jquery-mobile|prestashop|phonegap-desktop-app | 0 | 2016-06-06T17:15:05.023Z | 2,016 | 6 | 17 | 0 | 69 | 2 | 496 | 71 | 5 | 0 | false | false | false | false | false | false | zero |
38,016,284 | Android game programming - onDraw() stuttering | <p>I am creating an animation, and basically a ball is moving on the screen. However, I am experiencing stuttering, making the game less playable. Please have a look at my code, any pointing in the right direction is very welcome!</p>
<p>GameActivity.java -> starts the game loop, and handles updating.</p>
<pre><code>... | I am creating an animation, and basically a ball is moving on the screen. However, I am experiencing stuttering, making the game less playable. Please have a look at my code, any pointing in the right direction is very welcome! GameActivity.java -> starts the game loop, and handles updating. [CODE] GameBall.java -> han... | java|android|android-canvas|surfaceview|game-physics | -1 | 2016-06-24T14:51:59.980Z | 2,016 | 6 | 14 | 4 | 325 | 2 | 461 | 46 | 5 | 4 | true | false | false | false | false | true | negative |
37,721,896 | How to update Viewholder class after volley response | <p>I am beginner in android development. I am creating an Application in which there is recycleView with CardView. inside cardview I am using one TextView and One Switch button. when i change the button value to server it is updated there.</p>
<p>I want to know how to update my ViewHolder Class for every volley Respon... | I am beginner in android development. I am creating an Application in which there is recycleView with CardView. inside cardview I am using one TextView and One Switch button. when i change the button value to server it is updated there. I want to know how to update my ViewHolder Class for every volley Response. because... | android|android-recyclerview|android-cardview|android-json|android-switch | 0 | 2016-06-09T09:25:18.773Z | 2,016 | 6 | 9 | 3 | 2,117 | 2 | 471 | 52 | 5 | 2 | true | false | false | false | false | false | zero |
37,662,171 | What is the difference between `@Bind` and `@BindView` in butterknife? | <p>I Just started using butterknife.<br>
In the project, colleagues using butterknife, version is 7.0.0. </p>
<p>I saw him write <code>@Bind(R.id.tv_name)</code>.<br>
But I see butterknife official website butterknife version is 8.0.1, syntax is <code>@BindView(R.id.tv_name)</code> </p>
<p>Is syntax changed ? or bo... | I Just started using butterknife. In the project, colleagues using butterknife, version is 7.0.0. I saw him write @Bind(R.id.tv_name) . But I see butterknife official website butterknife version is 8.0.1, syntax is @BindView(R.id.tv_name) Is syntax changed ? or both can be used ? or something else ? What is the differe... | android|inject|butterknife | 9 | 2016-06-06T16:12:23.883Z | 2,016 | 6 | 16 | 0 | 8,261 | 2 | 406 | 70 | 3 | 0 | false | false | true | false | false | false | medium |
37,790,427 | Show progress value for volley file download | <p>I need to show the progress of file download in percentage.</p>
<p>Currently I am using <strong>Volley</strong> library. I use <code>InputStreamVolleyRequest</code> class to make the download request and <code>BufferedOutputStream</code> to read/write the file.</p>
<p>How can I show the progress update in the most... | I need to show the progress of file download in percentage. Currently I am using Volley library. I use InputStreamVolleyRequest class to make the download request and BufferedOutputStream to read/write the file. How can I show the progress update in the most efficient manner? | android|download|android-volley | 9 | 2016-06-13T12:55:47.217Z | 2,016 | 6 | 12 | 0 | 9,285 | 2 | 276 | 44 | 3 | 0 | false | false | true | false | false | false | medium |
37,618,986 | Imported code from another developer: <No resource identifier found for attribute 'ProgressColor' in package...> error in one of my .xml files | <p>This is the .xml file</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:seekarc="http://schemas.android.com/apk/res/com.pelkinsoft.enpower"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</... | This is the .xml file [CODE] The errors occur at: [CODE] I am new to Android and this is keeping me from being able to effectively work on this app. Any help would be much appreciated. | android|xml | 1 | 2016-06-03T16:07:36.857Z | 2,016 | 6 | 16 | 4 | 70 | 2 | 184 | 142 | 2 | 2 | true | false | false | false | false | false | low |
37,771,367 | use variable from js function, and use it other functions | <p>I'm new to JS and I'm trying to build a web app with PhoneGap that takes GPS coordinates from an Android device and uses them in some JS functions, but I'm having trouble. How should I pass 'lat' and 'lon' to use them in 'coords'</p>
<pre class="lang-js prettyprint-override"><code>document.addEventListener("devicer... | I'm new to JS and I'm trying to build a web app with PhoneGap that takes GPS coordinates from an Android device and uses them in some JS functions, but I'm having trouble. How should I pass 'lat' and 'lon' to use them in 'coords' [CODE] | javascript|android | 0 | 2016-06-12T06:29:11.017Z | 2,016 | 6 | 6 | 6 | 70 | 2 | 236 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
37,795,284 | Parse-Android ; Unable to receive 'action' in custom ParseBroadcastReceiver | <p>Im sending a push message with a custom <code>action</code> but in the <code>onPushReceive</code> the action that I get is <code>com.parse.push.intent.RECEIVE</code> instead of <code>com.hellboy.beat.STATUS_DONE</code></p>
<p><strong>Manifest.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>... | Im sending a push message with a custom action but in the onPushReceive the action that I get is com.parse.push.intent.RECEIVE instead of com.hellboy.beat.STATUS_DONE Manifest.xml [CODE] PushRec.java [CODE] Sending-Push: [CODE] NOTE: My understanding is I'm making a mistake in the Manfiest since the notification arrive... | android|parse-platform|push-notification | 0 | 2016-06-13T16:57:20.217Z | 2,016 | 6 | 16 | 0 | 70 | 2 | 353 | 75 | 3 | 3 | true | false | false | false | false | false | zero |
38,058,109 | Android CacheResponse: get file path? | <p>Is there a way to retrieve the file path of an Android <code>CacheResponse</code>? Sure, one can get an <code>InputStream</code>, but in cases where some API (e.g. NDK code) expects a file path that does not help. Sure one can use this stream to produce another file, but that's more time and space.</p> | Is there a way to retrieve the file path of an Android CacheResponse ? Sure, one can get an InputStream , but in cases where some API (e.g. NDK code) expects a file path that does not help. Sure one can use this stream to produce another file, but that's more time and space. | android|httpresponsecache|responsecache | 1 | 2016-06-27T15:41:42.713Z | 2,016 | 6 | 15 | 0 | 70 | 2 | 275 | 37 | 3 | 0 | false | false | false | false | false | false | low |
38,041,927 | Layout weight in Gridview | <p>I want the cards to fill the entire screen when it comes to various screen dimensions. I would like to use the weights or any other option that can do the same.
</p>
<pre><code> <!--Card 1-->
<android.support.v7.widget.CardView
android:id="@+id/cardView1"
and... | I want the cards to fill the entire screen when it comes to various screen dimensions. I would like to use the weights or any other option that can do the same. [CODE] | android | 0 | 2016-06-26T18:43:55.813Z | 2,016 | 6 | 18 | 6 | 1,606 | 2 | 167 | 25 | 1 | 1 | true | false | false | false | false | false | zero |
37,966,573 | Can Firebase Console send data payload? | <p>Is it possible to send data payload through Firebase Console that we can receive in <code>onMessageReceived()</code> while our app is in background/killed? </p>
<p><a href="https://i.stack.imgur.com/fi8Te.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fi8Te.png" alt="Image."></a></p> | Is it possible to send data payload through Firebase Console that we can receive in onMessageReceived() while our app is in background/killed? | android|firebase|firebase-cloud-messaging|firebase-notifications | 12 | 2016-06-22T11:22:38.997Z | 2,016 | 6 | 11 | 2 | 5,446 | 2 | 142 | 39 | 4 | 0 | false | false | true | false | true | false | medium |
37,750,077 | Design for hierarchical content in android app | <p>Well I am new to android and it is my first app so thought I should take a simple project.
The app is a book. You see a list of titles and you select one then the text for that title appears.
I wanted the design to be in a way that when I add a new title I add its name at most at one place in the code.
My first idea... | Well I am new to android and it is my first app so thought I should take a simple project. The app is a book. You see a list of titles and you select one then the text for that title appears. I wanted the design to be in a way that when I add a new title I add its name at most at one place in the code. My first idea wa... | android|android-layout|design-patterns|android-resources | 0 | 2016-06-10T13:53:41.943Z | 2,016 | 6 | 13 | 4 | 71 | 2 | 1,136 | 46 | 4 | 0 | false | false | false | false | false | false | zero |
38,003,838 | Preference key always return null | <p>I have a Preference Screen in my android app which contains a call to the system settings via an inner Preference and some Switches options as below:</p>
<p>
</p>
<pre><code><PreferenceCategory
android:title="@string/preferences_activity_supervisor_settings_title">
<Preference
android... | I have a Preference Screen in my android app which contains a call to the system settings via an inner Preference and some Switches options as below: [CODE] ... ... My class extends PreferenceFragment and I added the resources using addPreferencesFromResource(). It works without problems. However, the method onPreferen... | android | 0 | 2016-06-24T00:14:22.053Z | 2,016 | 6 | 0 | 4 | 327 | 2 | 606 | 33 | 1 | 1 | true | false | false | false | false | false | zero |
37,841,615 | Security alert about libpng in my google play console | <p>I received a security alert in my google play console about 2 applications ( games made by buildbox ) , the alert said that my application uses a version of libpng which presents a security flaw , I can't find this lib in my project , any solution please ?
they gives me this link also <a href="https://support.google... | I received a security alert in my google play console about 2 applications ( games made by buildbox ) , the alert said that my application uses a version of libpng which presents a security flaw , I can't find this lib in my project , any solution please ? they gives me this link also https://support.google.com/faqs/an... | android|libpng|android-security | 8 | 2016-06-15T17:05:51.373Z | 2,016 | 6 | 17 | 2 | 2,119 | 2 | 332 | 53 | 3 | 0 | false | false | false | false | false | false | medium |
37,649,567 | How to disable Dates in Android Material Calender | <p>I'm using Material <code>CalendarView</code> and based <code>array</code> of dates <code>CalenderView</code> highlighting dates. So I want to disable the dates except Array of Dates.</p>
<pre><code> datePickerDialog = new Dialog(MainActivity.getInstance());
datePickerDialog.show();
... | I'm using Material CalendarView and based array of dates CalenderView highlighting dates. So I want to disable the dates except Array of Dates. [CODE] | android | 2 | 2016-06-06T04:31:32.393Z | 2,016 | 6 | 4 | 0 | 7,239 | 2 | 150 | 49 | 1 | 1 | true | false | true | false | false | false | low |
37,814,431 | send tdata frame to a socket | <p>byte[] demande=new byte[2];
Let's suppose that demande is a data frame which will be send to a socket.
What should be byte[0] and byte[1] if I want send 200. I try to write byte[0]=1 and byte[1]=-56 ( 1*256 - 56)=200 but it don't work. How can I do?</p> | byte[] demande=new byte[2]; Let's suppose that demande is a data frame which will be send to a socket. What should be byte[0] and byte[1] if I want send 200. I try to write byte[0]=1 and byte[1]=-56 ( 1*256 - 56)=200 but it don't work. How can I do? | java|android|byte|frame | 0 | 2016-06-14T14:09:09.573Z | 2,016 | 6 | 14 | 1 | 72 | 2 | 249 | 28 | 4 | 0 | false | false | false | false | false | false | zero |
37,951,782 | Remove default Android padding from HTML emails | <p>I have a responsive email layout where some elements stretch the entire width of the viewport, whatever that may be. </p>
<p>In Android (native mail and Gmail app on 4.4 at least) There appears to be a ~10px padding on either side. Is there any property or trick for negating this?</p>
<p>(I feel like this question... | I have a responsive email layout where some elements stretch the entire width of the viewport, whatever that may be. In Android (native mail and Gmail app on 4.4 at least) There appears to be a ~10px padding on either side. Is there any property or trick for negating this? (I feel like this question should have been as... | android|html|css|email | 6 | 2016-06-21T18:19:05.660Z | 2,016 | 6 | 18 | 1 | 4,168 | 2 | 1,244 | 47 | 4 | 1 | true | false | true | false | false | false | medium |
37,633,899 | Confused with MainActivity.java in android studio | <p>I'm fairly new to java and android studio in general,and I'm trying to follow a tutorial on YouTube on how to make a simple android calculator by Andy York. I made it to part 2 of 2 until he started coding in MainActivity.java, when I noticed that ours were different and that I have stuff like "FloatingActionButton"... | I'm fairly new to java and android studio in general,and I'm trying to follow a tutorial on YouTube on how to make a simple android calculator by Andy York. I made it to part 2 of 2 until he started coding in MainActivity.java, when I noticed that ours were different and that I have stuff like "FloatingActionButton"and... | android|android-studio | -2 | 2016-06-04T18:57:57.807Z | 2,016 | 6 | 18 | 5 | 73 | 2 | 651 | 49 | 2 | 0 | false | false | false | false | false | true | negative |
37,961,361 | How to represent e^z in android studio as a text? | <p>I am not able to represent <code>e^(z)</code> in android studio.
Also to represent <code>z^(2)</code>. </p>
<p>How can I use these as a text inside text view?
Please help..</p> | I am not able to represent e^(z) in android studio. Also to represent z^(2) . How can I use these as a text inside text view? Please help.. | android|android-studio | 1 | 2016-06-22T07:31:12.577Z | 2,016 | 6 | 7 | 2 | 73 | 2 | 139 | 49 | 2 | 0 | false | false | false | false | false | false | low |
37,765,990 | How to register and unregister BroadcastReceiver programmatically? | <p>I have a Broadcast Receiver in my app:</p>
<pre><code>public class Ringmodechange extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
}
}
</code></pre>
<p>My <strong>AndroidManifest.xml</strong>:</p>
<pre><code><receiver
android:name=".Ringmodechange"
... | I have a Broadcast Receiver in my app: [CODE] My AndroidManifest.xml : [CODE] Is it possible to register and unregister a BroadcastReceiver with java code? This receiver is working in the background. Actually, I want to register and unregister the receiver everytime a user clicks a button. | android|broadcastreceiver | 1 | 2016-06-11T16:23:39.340Z | 2,016 | 6 | 16 | 5 | 841 | 2 | 290 | 66 | 2 | 2 | true | false | false | false | false | false | low |
37,740,106 | Prompt users to enable physical web in supporting browsers | <p>Is there a way to prompt users to enable physical web (and therefore BlueTooth) with <code>JavaScript</code> in a similar way to APIs like <code>getUserMedia()</code>?</p>
<p><strong>EDIT:</strong> I know this is relatively early stage tech and not widely supported, so the best option will probably be to help users... | Is there a way to prompt users to enable physical web (and therefore BlueTooth) with JavaScript in a similar way to APIs like getUserMedia() ? EDIT: I know this is relatively early stage tech and not widely supported, so the best option will probably be to help users turn this feature on at Settings > Privacy > Physica... | javascript|bluetooth|ibeacon|ibeacon-android | -1 | 2016-06-10T04:48:06.190Z | 2,016 | 6 | 4 | 4 | 74 | 2 | 328 | 58 | 4 | 0 | false | false | false | false | false | true | negative |
37,784,477 | Text Align in Android Text View | <p>I am trying to show base 64 Decode string in the above format in text view But it shows as plain text. If according to my app requirement, we save this decode sting in Shared preference when again rendered this string from shared preference it so well. But this only show when if my app close and run again.</p>
<bl... | I am trying to show base 64 Decode string in the above format in text view But it shows as plain text. If according to my app requirement, we save this decode sting in Shared preference when again rendered this string from shared preference it so well. But this only show when if my app close and run again. Lorem ipsum ... | android|base64|sharedpreferences|textview | 0 | 2016-06-13T07:59:15.560Z | 2,016 | 6 | 7 | 0 | 74 | 2 | 1,944 | 31 | 4 | 0 | false | false | false | false | false | false | zero |
37,657,802 | Android Java ArrayList the largest size possible | <p>I have class model:</p>
<pre><code> class MySongs {
private int song_id;
private int song_likes;
private int song_plays;
private String song_artist;
private String song_title;
private String song_lyric
private String song_info;
private String song_mp3_link;
pri... | I have class model: [CODE] now, I want more in 2000 MySongs object add to the List<MySongs> : [CODE] Is there a limit to the number of data? (For memory) for 2000 or 3000 or data in arrayList. Approximately how much of the memory space occupied? Or at all, the number of data is normal? | java|android|arrays|memory|arraylist | 1 | 2016-06-06T12:43:06.070Z | 2,016 | 6 | 12 | 0 | 330 | 2 | 286 | 48 | 5 | 2 | true | false | false | false | false | false | low |
37,766,518 | Navigation drawer open after popping fragment backstack | <p>So I have an activity with a fragment in it, the fragment has a navigation drawer and the page's content. When I open the drawer and click an item the fragment is replaced with a new fragment. When I press the back button I call popBackStack on the fragment manager and it goes back to the first fragment but the navi... | So I have an activity with a fragment in it, the fragment has a navigation drawer and the page's content. When I open the drawer and click an item the fragment is replaced with a new fragment. When I press the back button I call popBackStack on the fragment manager and it goes back to the first fragment but the navigat... | android|android-layout|android-fragments|navigation-drawer|drawerlayout | 2 | 2016-06-11T17:18:10.867Z | 2,016 | 6 | 17 | 5 | 330 | 2 | 849 | 55 | 5 | 2 | true | false | false | false | false | false | low |
37,868,649 | Webview not opening link in Android? | <p>I am trying to open any link, like facebook.com for instance, but the link is not opening. What am I missing? </p>
<p><strong>MainActivity:</strong></p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
... | I am trying to open any link, like facebook.com for instance, but the link is not opening. What am I missing? MainActivity: [CODE] | android|webview | 0 | 2016-06-16T20:18:16.490Z | 2,016 | 6 | 20 | 3 | 75 | 2 | 130 | 36 | 2 | 1 | true | false | false | false | false | false | zero |
37,987,798 | TextView not retaining the value I give it | <p>In my app, I'm getting JSON data from a php script. When I get the data, I have an <code>onClick()</code> method in my Fragment which changes a <code>TextView</code> to the parsed JSON.</p>
<p>However, when I swipe to a different fragment(it's a swipe/tabbed activity) my <code>TextView</code> does not retain the va... | In my app, I'm getting JSON data from a php script. When I get the data, I have an onClick() method in my Fragment which changes a TextView to the parsed JSON. However, when I swipe to a different fragment(it's a swipe/tabbed activity) my TextView does not retain the value I gave it, it changes to the original value. I... | java|android|json|android-fragments|view | 0 | 2016-06-23T09:38:21.197Z | 2,016 | 6 | 9 | 3 | 75 | 2 | 468 | 42 | 5 | 2 | true | false | false | false | false | false | zero |
37,760,559 | Android N Notification Direct Reply | <p>Recently I read new Article about <a href="https://developer.android.com/preview/features/notification-updates.html" rel="nofollow">Android N notification Updates</a> where google has mentioned about <strong>Direct Reply</strong> I have tried my best to learn from this article but I am not getting exactly how to rep... | Recently I read new Article about Android N notification Updates where google has mentioned about Direct Reply I have tried my best to learn from this article but I am not getting exactly how to reply directly from notification. If any one can guide me for this then I would be very much thankful. I want to implement li... | android|notifications | 0 | 2016-06-11T06:08:23.877Z | 2,016 | 6 | 6 | 5 | 2,891 | 2 | 322 | 35 | 2 | 0 | false | false | true | false | false | false | zero |
37,608,383 | Showing FAB only after complete load | <p>I created a basic webview app...
It has a Progress Bar which hides after the page has loaded completely,
On top of it I created a FAB without library i.e. by using ImageButton...
I want to Show the FAB only after page load & not everytime (e.g Like when Offline)
how to achieve that?
here's the Code pic...
<a hre... | I created a basic webview app... It has a Progress Bar which hides after the page has loaded completely, On top of it I created a FAB without library i.e. by using ImageButton... I want to Show the FAB only after page load & not everytime (e.g Like when Offline) how to achieve that? here's the Code pic... | android|webview | 0 | 2016-06-03T07:25:13.863Z | 2,016 | 6 | 7 | 4 | 76 | 2 | 306 | 36 | 2 | 0 | false | false | false | false | false | false | zero |
37,630,200 | Android how to use animation after an animator | <p>Can anyone help me with my code? What i'm trying to do is when imageView get touched it will run animator and move the view to the center of the screen. After the animator finish the imageView will set another onTouch to run an animation for scaling from 0.0 - 1.0.But the animation will not start from the new positi... | Can anyone help me with my code? What i'm trying to do is when imageView get touched it will run animator and move the view to the center of the screen. After the animator finish the imageView will set another onTouch to run an animation for scaling from 0.0 - 1.0.But the animation will not start from the new position ... | java|android | 0 | 2016-06-04T12:25:17.963Z | 2,016 | 6 | 12 | 5 | 76 | 2 | 558 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
37,774,989 | how to delete row with where clause? | <p>i want to delete row but when i write query in deleteContact() and execute nothing happen with my database.plese help</p>
<p>this is my code:</p>
<pre><code> public class ContactDatabase extends SQLiteOpenHelper {
SQLiteDatabase db;
public static final String DATABASE_NAME="totalContact.db";
... | i want to delete row but when i write query in deleteContact() and execute nothing happen with my database.plese help this is my code: [CODE] | android|sql|sqlite | 0 | 2016-06-12T13:48:44.087Z | 2,016 | 6 | 13 | 6 | 76 | 2 | 141 | 36 | 3 | 1 | true | false | false | false | false | false | zero |
38,046,621 | How to get result back to the parent activity | <p>I am having the below set of Activities : </p>
<p>Activity 1 -> Activity 2 -> Activity 3</p>
<p>I have launched Activity 2 from Activity 1 using startActivityForResult and after some work in Activity 2, I finished Activity 2 and started Activity 3 from Activity 2 using same startActivityForResult.</p>
<p>Now when... | I am having the below set of Activities : Activity 1 -> Activity 2 -> Activity 3 I have launched Activity 2 from Activity 1 using startActivityForResult and after some work in Activity 2, I finished Activity 2 and started Activity 3 from Activity 2 using same startActivityForResult. Now when I press back button on Acti... | android|android-activity | 1 | 2016-06-27T05:44:28.787Z | 2,016 | 6 | 5 | 0 | 76 | 2 | 662 | 45 | 2 | 0 | false | false | false | false | false | false | low |
37,786,578 | Show area covered by a pincode on Google maps.[Android] | <p>I want to implement a code in android to show area covered by a <strong>PINCODE</strong> that is six digit area code on google map as shown in the screenshot attached.<a href="https://i.stack.imgur.com/JdU7h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JdU7h.png" alt="enter image description he... | I want to implement a code in android to show area covered by a PINCODE that is six digit area code on google map as shown in the screenshot attached. Kindly provide a way how can I accomplish this thing.Thanks in advance. | android|google-maps|google-maps-android-api-2 | 3 | 2016-06-13T09:49:00.990Z | 2,016 | 6 | 9 | 0 | 5,708 | 2 | 222 | 55 | 3 | 0 | false | false | true | false | false | false | low |
37,876,266 | Could not find android.support.design, ...play-services, ...support, ...appcompat | <p>I know there are plenty of similar questions, but I did try the solutions described there with no success. I have reinstalled and updated Android Studio, I have cleaned the project, I have synchronized and invalidated caches and restarted it. I still get this error when building the project (which runs on other PCs)... | I know there are plenty of similar questions, but I did try the solutions described there with no success. I have reinstalled and updated Android Studio, I have cleaned the project, I have synchronized and invalidated caches and restarted it. I still get this error when building the project (which runs on other PCs): [... | android|android-studio|build | 1 | 2016-06-17T08:05:24.923Z | 2,016 | 6 | 8 | 4 | 589 | 2 | 410 | 81 | 3 | 2 | true | false | false | false | false | false | low |
37,771,616 | Get current day's steps during datapointListener google Fit | <p>Using the following code, I get the cumulative steps since I started recording the values. But I would like to show only the current day's steps instead of cumulative. </p>
<pre><code>@Override
public void onConnected(@Nullable Bundle bundle) {
DataSourcesRequest dataSourceRequest = new DataSourcesRequest.Build... | Using the following code, I get the cumulative steps since I started recording the values. But I would like to show only the current day's steps instead of cumulative. [CODE] I tried replacing the dataType constants, but that did not work. Calling a readData method using the History API, in the DataPointListener failed... | android|google-fit|google-fit-sdk | 2 | 2016-06-12T07:03:40.510Z | 2,016 | 6 | 7 | 6 | 2,125 | 2 | 658 | 59 | 3 | 1 | true | false | false | false | false | false | low |
37,840,089 | Firebase multicast cloud messging | <p>I am trying to implement the server side implementation of firebase cloud messaging. This is the body content for sending message based on topic.</p>
<pre><code>{
"to" : "/topics/topic_name",
"priority" : "high",
"data" : {
"message" : "Actual message for notification",
"title" : "Title"
}
}
</code></... | I am trying to implement the server side implementation of firebase cloud messaging. This is the body content for sending message based on topic. [CODE] What i want to know is how to send the above message for a group of reg ids. To field is a string not an array of string. ie., i can send message to reg ids one by one... | android|firebase|firebase-cloud-messaging | 1 | 2016-06-15T15:45:52.230Z | 2,016 | 6 | 15 | 2 | 2,893 | 2 | 501 | 33 | 3 | 1 | true | false | true | false | false | false | low |
37,702,443 | appWidgetIds only contain one id | <p>I have appWidgetProvider that updates views of each widget located on homescreen and each widget has a button which triggers updating the view but apparently no matter which button I press on whichever widget only and always the one of them is being updated</p>
<pre><code>@Override
public void onUpdate(Context cont... | I have appWidgetProvider that updates views of each widget located on homescreen and each widget has a button which triggers updating the view but apparently no matter which button I press on whichever widget only and always the one of them is being updated [CODE] Let's say I have widget with id=30 and widget with id=3... | android|android-widget | 1 | 2016-06-08T12:25:17.340Z | 2,016 | 6 | 12 | 2 | 78 | 2 | 524 | 32 | 2 | 1 | true | false | false | false | false | false | low |
38,006,572 | how to set tag to fragments in array list? | <p>How can I set up tag to fragments that are added to a Array list ?
For example </p>
<pre><code>public class MainActivity extends Appcompatactivity {
public List<Fragment> fragmentList = new ArrayList<>();
}
</code></pre>
<p>So, OnCreate I am adding the fragmetns to the list , Here MyFragment is the ... | How can I set up tag to fragments that are added to a Array list ? For example [CODE] So, OnCreate I am adding the fragmetns to the list , Here MyFragment is the single fragment I am using [CODE] Here, how can I add a tag to the fragment such that I can delete or add fragment by referring to the Tag set ? | android|android-fragments | 0 | 2016-06-24T06:05:57.370Z | 2,016 | 6 | 6 | 4 | 590 | 2 | 306 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
37,793,885 | How to send friend requests on Facebook? | <p>How can I allow my app users to send friend requests to a specific Facebook user, me for instance, directly from my app? I have the Facebook SDK in my app. I tried searching for solution online but couldn't find anything that works.</p> | How can I allow my app users to send friend requests to a specific Facebook user, me for instance, directly from my app? I have the Facebook SDK in my app. I tried searching for solution online but couldn't find anything that works. | android|facebook|facebook-sdk-4.0 | -1 | 2016-06-13T15:38:41.317Z | 2,016 | 6 | 15 | 0 | 79 | 2 | 232 | 40 | 3 | 0 | false | false | false | false | false | true | negative |
37,879,995 | WearableListView setEnableGestureNavigation not available | <p>I am developing my Android Wear app and I can't use <code>setEnableGestureNavigation</code></p>
<p>I am using a <code>WearableListView</code> from <code>com.google.android.support:wearable:1.3.0</code></p>
<p>I can use any method of WearableListView but setEnableGestureNavigation() which is not available. However,... | I am developing my Android Wear app and I can't use setEnableGestureNavigation I am using a WearableListView from com.google.android.support:wearable:1.3.0 I can use any method of WearableListView but setEnableGestureNavigation() which is not available. However, it can be found in the docs: https://developer.android.co... | android|android-support-library|wear-os | 6 | 2016-06-17T11:05:05.537Z | 2,016 | 6 | 11 | 4 | 79 | 2 | 425 | 57 | 3 | 0 | false | false | false | false | false | false | medium |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.