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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,902,196 | File google-services.json is missing from module root folder (but it is at the good place ! ) | <p>I try to use google sign in in my android app, i read the page <a href="https://developers.google.com/identity/sign-in/android/start-integrating" rel="nofollow noreferrer">https://developers.google.com/identity/sign-in/android/start-integrating</a> and i made all steps, now i put my google-services.json in my app fo... | I try to use google sign in in my android app, i read the page https://developers.google.com/identity/sign-in/android/start-integrating and i made all steps, now i put my google-services.json in my app folder, and after downloading the google-services.json, i do : [CODE] so, when i do : [CODE] My file google-services.j... | android|json|google-maps|gradle | 1 | 2016-04-27T22:39:39.877Z | 2,016 | 4 | 22 | 2 | 12,416 | 2 | 640 | 93 | 4 | 3 | true | false | true | true | false | false | low |
36,902,324 | Fragment being displayed, overlaps current fragment instead of replacing it | <p><strong>UPDATE:</strong>
Still having the same problem, but I've added a fragment into the main_activity
welcome_screen_fragment:</p>
<pre><code><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
a... | UPDATE: Still having the same problem, but I've added a fragment into the main_activity welcome_screen_fragment: [CODE] WelcomeScreen.java: [CODE] ORIGINAL: The setup I have is a main_activity fragment that just has welcome text, and when you tap the start button, it's supposed to switch fragments. Instead of replacing... | java|android|xml|android-fragments|fragmentmanager | 0 | 2016-04-27T22:52:31.067Z | 2,016 | 4 | 22 | 2 | 114 | 0 | 642 | 75 | 5 | 6 | true | true | false | false | false | false | zero |
36,902,437 | Getting basic user data from authorised google account | <p>In this android application, I want to get the user data (email id, name, etc) from the authorised google account. In this case I'm caching tokens to see if the user is logged in or not, and if the user is already logged in, it will fetch the basic user data. </p>
<p>The code uses a button to login. </p>
<pre><cod... | In this android application, I want to get the user data (email id, name, etc) from the authorised google account. In this case I'm caching tokens to see if the user is logged in or not, and if the user is already logged in, it will fetch the basic user data. The code uses a button to login. [CODE] | java|android|mobile | 0 | 2016-04-27T23:04:05.373Z | 2,016 | 4 | 23 | 2 | 32 | 1 | 299 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
36,902,447 | Why does my code break going from Android Studio 1.3 to 2.0 | <p>I have a working app in 1.3 that breaks when I tried to "upgrade" to 2.0. </p>
<p>I tried code clean up as some have suggested , deleted the R file and recreated as others have suggested. This is the new error that is not present in 1.3 but shows up in 2.0 .</p>
<p>java.lang.ClassCastException: android.support.v7... | I have a working app in 1.3 that breaks when I tried to "upgrade" to 2.0. I tried code clean up as some have suggested , deleted the R file and recreated as others have suggested. This is the new error that is not present in 1.3 but shows up in 2.0 . java.lang.ClassCastException: android.support.v7.widget.CardView cann... | android|android-studio | -1 | 2016-04-27T23:05:07.083Z | 2,016 | 4 | 23 | 2 | 40 | 1 | 731 | 59 | 2 | 2 | true | false | false | false | false | true | negative |
36,902,471 | Inner class reference to enclosing class instance is null | <p>I have a class that has an inner class and a collection of the inner instances:</p>
<pre><code>public class Outer {
private List<Inner> items = new ArrayList<Inner>();
...
public List<Inner> getItems(){
return this.items;
}
public int getOuterX() {
...
... | I have a class that has an inner class and a collection of the inner instances: [CODE] In other class I iterate over the items of an instance of Outer and call getInnerX() to each one: [CODE] A NullPointerException is thrown inside getInnerX() because Outer.this is null . I don't know how this can happen. EDIT: I was p... | java|android|nullpointerexception|inner-classes|gson | 1 | 2016-04-27T23:07:36.533Z | 2,016 | 4 | 23 | 2 | 971 | 1 | 722 | 57 | 5 | 4 | true | false | false | false | false | false | low |
36,902,562 | Changing Match's Status Depending On Time (Fail When it's over the mid night 00:00 ) | <p>I've an app that contains items, each item contain a time and a status .
the status is based on time, it takes the items form a Json, the time is a match time, and the status is the match's status (Soccer). Now let me explain it.</p>
<p>Example for item : </p>
<blockquote>
<p>Local (Device) Date : 22:00, 2016/4/... | I've an app that contains items, each item contain a time and a status . the status is based on time, it takes the items form a Json, the time is a match time, and the status is the match's status (Soccer). Now let me explain it. Example for item : Local (Device) Date : 22:00, 2016/4/28. Match Date : 23:00, 2016/4/28 .... | java|android | 0 | 2016-04-27T23:17:35.353Z | 2,016 | 4 | 23 | 2 | 23 | 1 | 937 | 84 | 2 | 0 | false | false | false | false | false | false | zero |
36,902,585 | android.database.sqlite.SQLiteException : Can't upgrade read-only database from version 0 to 1 | <p>I am getting android: android.database.sqlite.SQLiteException </p>
<p><strong>Can't upgrade read-only database from version 0 to 1: /data/data/com.tuto.ListViewApp2_SQLite/databases/countryDB</strong></p>
<p>When i run the emulator it does not start, it said "unfortuntly appName has stopped" so can any body help m... | I am getting android: android.database.sqlite.SQLiteException Can't upgrade read-only database from version 0 to 1: /data/data/com.tuto.ListViewApp2_SQLite/databases/countryDB When i run the emulator it does not start, it said "unfortuntly appName has stopped" so can any body help me ? This is my MainActivity class: [C... | android|sqlite | 2 | 2016-04-27T23:20:35.483Z | 2,016 | 4 | 23 | 2 | 1,086 | 2 | 373 | 94 | 2 | 2 | true | false | false | false | false | false | low |
36,902,691 | Binding Android.Views.View with ViewModel with MvvmCross on Android | <p>I am trying to bind the info contents window that apprears when clicking on a marker in a MapView for android.</p>
<p>I have created a custom manager class that takes an ItemSource and a MapView (ObservableCollection) and adds markers on the map as the collection changes. </p>
<p>Now I would like to bind the InfoC... | I am trying to bind the info contents window that apprears when clicking on a marker in a MapView for android. I have created a custom manager class that takes an ItemSource and a MapView (ObservableCollection) and adds markers on the map as the collection changes. Now I would like to bind the InfoContent window that i... | xamarin|xamarin.android|mvvmcross | 0 | 2016-04-27T23:32:42.860Z | 2,016 | 4 | 23 | 2 | 546 | 1 | 539 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
36,902,779 | Create a JSON file and send it to other device using wifi direct | <p>I'm trying to create an application that allows two devices to connect using wifi direct and send a message from one device to another in a JSON file format and then parse that file into a text view. So far I'm not concern about the wifi part because I know it's very difficult and I want to start with the "easy" par... | I'm trying to create an application that allows two devices to connect using wifi direct and send a message from one device to another in a JSON file format and then parse that file into a text view. So far I'm not concern about the wifi part because I know it's very difficult and I want to start with the "easy" part o... | android|json|wifi | 1 | 2016-04-27T23:41:49.963Z | 2,016 | 4 | 23 | 2 | 1,759 | 1 | 995 | 64 | 3 | 2 | true | false | false | false | false | false | low |
36,902,877 | Save battery by not drawing on every render call | <p>I think there must be an easy solution to this that I'm overlooking. I think one option would be a <a href="https://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/glutils/FrameBuffer.html" rel="nofollow">FrameBuffer</a> but not sure if is the best. </p>
<p>I'm working on a puzzle game which r... | I think there must be an easy solution to this that I'm overlooking. I think one option would be a FrameBuffer but not sure if is the best. I'm working on a puzzle game which requires intensive calculations when drawn. I've done as much as I can to do as little calculations as possible while updating the screen, but so... | android|graphics|libgdx | 4 | 2016-04-27T23:50:39.953Z | 2,016 | 4 | 23 | 2 | 69 | 1 | 1,052 | 48 | 3 | 0 | false | false | false | false | false | false | low |
36,903,054 | Android studio layout background error | <pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:p... | [CODE] android:background="@drawable/background" i wanted background in MainActivity so added background and clicked "Run" -> app is down why my app is down? // before added background.png in res ->drawable folder | android|android-studio | 0 | 2016-04-28T00:10:14.527Z | 2,016 | 4 | 0 | 3 | 1,226 | 1 | 213 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
36,903,090 | Trying to get Android_ID bu the App crashes when i start it | <p>That's the Code to get the AndroidID:</p>
<pre><code>String userID = Settings.Secure.getString(getApplicationContext()
.getContentResolver(), Settings.Secure.ANDROID_ID);
</code></pre>
<p>When i start the Application i get the following logcat review:</p>
<pre><code>04-28 01:30:02.012 9328-9328/com.hubermoritz.be... | That's the Code to get the AndroidID: [CODE] When i start the Application i get the following logcat review: [CODE] 04 Tried with: [CODE] also, didn't work either. By the way I'm well aware off that it's not a perfect way to recognize users, because the number can change due to factory reset or changing phone and few o... | java|android|identifier|userid | 0 | 2016-04-28T00:15:03.237Z | 2,016 | 4 | 0 | 3 | 408 | 2 | 330 | 59 | 4 | 3 | true | false | false | false | false | false | zero |
36,903,330 | view tag isn't correct on view:null | <p>I'm using android data bindings and also using <a href="https://github.com/ppamorim/Dragger" rel="nofollow">Dragger</a> the problem is when I do this</p>
<pre><code>MyLayoutbinding = DataBindingUtil.setContentView(this, R.layout.my_Layout);
</code></pre>
<p>I got the error</p>
<pre><code>Caused by: java.lang.Runt... | I'm using android data bindings and also using Dragger the problem is when I do this [CODE] I got the error [CODE] my_layout.xml [CODE] | android|data-binding|dragger | 1 | 2016-04-28T00:46:57.923Z | 2,016 | 4 | 0 | 3 | 2,191 | 1 | 135 | 35 | 3 | 3 | true | false | false | false | false | false | low |
36,903,520 | Can't use OAuth2.0 on xamarin android? | <p>OnCreate:</p>
<pre><code>MainActivity (auth.GetUI (this));
Login();
</code></pre>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri... | OnCreate: [CODE] [CODE] I installed xamarin.OAuth on nuget. and here is code : [CODE] Fail: I don't see any popup be show on screen. | xamarin|xamarin.android | 0 | 2016-04-28T01:11:08.217Z | 2,016 | 4 | 1 | 3 | 317 | 1 | 132 | 38 | 2 | 3 | true | false | false | false | false | false | zero |
36,903,548 | Parcelable implementation not working. App still makes network calls on device rotation | <p>I have a fragment where I am making network calls to an API. My model implements <strong>Parcelable</strong> in order to save the state on device rotation. I have implemented the method but when the device is rotated, it still makes a network request. Somehow the Parcelable implementation isn't working.</p>
<p>Here... | I have a fragment where I am making network calls to an API. My model implements Parcelable in order to save the state on device rotation. I have implemented the method but when the device is rotated, it still makes a network request. Somehow the Parcelable implementation isn't working. Here's my code Movie.java (MODEL... | java|android|android-fragments|android-recyclerview|parcelable | 1 | 2016-04-28T01:14:47.827Z | 2,016 | 4 | 1 | 3 | 250 | 3 | 463 | 87 | 5 | 5 | true | false | false | false | false | false | low |
36,903,619 | Blob or ImageURL in android | <p>I have a small requirement in my project I would like to show image when there is no internet. I get the image from my web server. I am using ImageLoader / Glide to load the image URL to my ImageView object and I cache that to show image in offline everything is working but when I delete the image or there is new im... | I have a small requirement in my project I would like to show image when there is no internet. I get the image from my web server. I am using ImageLoader / Glide to load the image URL to my ImageView object and I cache that to show image in offline everything is working but when I delete the image or there is new image... | android|image|blob | 1 | 2016-04-28T01:22:06.627Z | 2,016 | 4 | 1 | 3 | 740 | 1 | 924 | 27 | 3 | 0 | false | false | false | false | false | false | low |
36,903,630 | How to display a fragments view over tabLayout | <p>I have a tabLayout with some fragments. I want to display one tabs view in sort of a fullscreen as an image (apart from the native phone statusbar) that covers the tabLayout. I want the image to completely overlap the tabLayout so the only way to get out of that view is to hit the phones backbutton. The attached ima... | I have a tabLayout with some fragments. I want to display one tabs view in sort of a fullscreen as an image (apart from the native phone statusbar) that covers the tabLayout. I want the image to completely overlap the tabLayout so the only way to get out of that view is to hit the phones backbutton. The attached images... | java|android|android-fragments|android-studio|android-tablayout | 1 | 2016-04-28T01:23:10.130Z | 2,016 | 4 | 1 | 3 | 421 | 2 | 768 | 46 | 5 | 0 | false | false | false | false | false | false | low |
36,903,633 | How to update a wallet object in Android Pay? | <p>I'm working with "Save to Android Pay" API and I'm trying to update one of my objects. According to <a href="https://developers.google.com/save-to-android-pay/support/testing#update-an-object-or-class" rel="nofollow">Google's API</a>. </p>
<p>One way to achieve it is by using the cURL commands and follow these step... | I'm working with "Save to Android Pay" API and I'm trying to update one of my objects. According to Google's API . One way to achieve it is by using the cURL commands and follow these steps: Get a token java -jar TokenUtil.jar serviceAccountEmailAddress pathToPrivateKey Save the specific object to a text file curl -X G... | android|google-app-engine|curl|google-api|android-pay | 0 | 2016-04-28T01:23:39.103Z | 2,016 | 4 | 1 | 3 | 367 | 1 | 1,111 | 45 | 5 | 1 | true | false | false | false | false | false | zero |
36,903,712 | problems with adapter + threads | <pre><code>W/System.err: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
</code></pre>
<p>This is my problem. I'm trying to create a chat, for that I'm using a RecyclerView and Sockets, keep in mind that I have to use sockets (part o... | [CODE] This is my problem. I'm trying to create a chat, for that I'm using a RecyclerView and Sockets, keep in mind that I have to use sockets (part of the homework). So I open a connection and start a thread to listen for the Server, which will send me a msg everytime any chat participant sends a msg. I'm using an Asy... | java|android|multithreading|sockets|android-asynctask | -1 | 2016-04-28T01:31:55.887Z | 2,016 | 4 | 1 | 3 | 44 | 1 | 886 | 31 | 5 | 3 | true | false | false | false | false | true | negative |
36,903,719 | Problems with sendBroadcast(String Action) in PreferenceFragment | <p>Long time lurker - first time poster! I hope someone can help with my little problem;</p>
<p>I've got a <em>PreferenceFragment</em> which implements an <em>OnSharedPreferenceChangeListener</em> which then should fire a sendBroadcast() to my <em>AlarmReceiver</em> in order to set up a repeating alarm service.
I can ... | Long time lurker - first time poster! I hope someone can help with my little problem; I've got a PreferenceFragment which implements an OnSharedPreferenceChangeListener which then should fire a sendBroadcast() to my AlarmReceiver in order to set up a repeating alarm service. I can see that the listener registers the on... | java|android|android-fragments|broadcastreceiver | 0 | 2016-04-28T01:32:53.163Z | 2,016 | 4 | 1 | 3 | 206 | 1 | 619 | 64 | 4 | 3 | true | false | false | false | false | false | zero |
36,903,791 | Thread getting stuck on BlockingQueue.take for no apparent reason | <p>I've stumbled upon a really weird problem that I can't make any sense of whatsoever. A little bit of backstory first:</p>
<p>I'm trying to run JavaScriptCore and using it as a scripting language of sorts for an Android app. The trouble is, stack size on the main thread is quite limited on older Android versions (so... | I've stumbled upon a really weird problem that I can't make any sense of whatsoever. A little bit of backstory first: I'm trying to run JavaScriptCore and using it as a scripting language of sorts for an Android app. The trouble is, stack size on the main thread is quite limited on older Android versions (something lik... | java|android|concurrency|android-ndk | 17 | 2016-04-28T01:41:56.883Z | 2,016 | 4 | 1 | 3 | 1,128 | 1 | 2,679 | 65 | 4 | 3 | true | false | false | false | true | false | medium |
36,903,867 | Return to Activity after opening Gallery Android | <p>I'm creating an app that involves setting up a profile picture, I based my code on tutorials and the code opens the gallery, I'm able to select the picture but I don't understand why it doesn't come back to the activity when I select it.</p>
<p>Note, all of this happens on an AlertDialog.</p>
<pre><code>public cla... | I'm creating an app that involves setting up a profile picture, I based my code on tutorials and the code opens the gallery, I'm able to select the picture but I don't understand why it doesn't come back to the activity when I select it. Note, all of this happens on an AlertDialog. [CODE] My understanding is that OnAct... | java|android|android-intent|android-alertdialog|android-gallery | 1 | 2016-04-28T01:48:57.297Z | 2,016 | 4 | 1 | 3 | 91 | 0 | 494 | 48 | 5 | 1 | true | true | false | false | false | false | low |
36,903,996 | File Upload Android 4.4 WebView | <p>I'm making my own android application who is 90% required the File Upload.</p>
<p>I got the WebView Lollipop code, and it's working, very fine, but when I try to open the File Chooser in Android 4.4, the input doesn't work.</p>
<p>Can Anyone help me? Here is my code:</p>
<pre><code> mWebView.setWebChromeClient(ne... | I'm making my own android application who is 90% required the File Upload. I got the WebView Lollipop code, and it's working, very fine, but when I try to open the File Chooser in Android 4.4, the input doesn't work. Can Anyone help me? Here is my code: [CODE] | android|file|webview|android-4.4-kitkat | 2 | 2016-04-28T02:04:20.443Z | 2,016 | 4 | 2 | 3 | 1,835 | 2 | 260 | 31 | 4 | 1 | true | false | false | false | false | false | low |
36,904,034 | swipe views with tabs loading all the framents at the same time | <p>I created a swipe views with tabs. </p>
<p>The problem is that when the activity is created the three fragments loading at the same time. I set the default fragment to start when the activity open so, the anothers fragment haven't download data from server unleess somebody swipe to this fragment.</p>
<p>This is my... | I created a swipe views with tabs. The problem is that when the activity is created the three fragments loading at the same time. I set the default fragment to start when the activity open so, the anothers fragment haven't download data from server unleess somebody swipe to this fragment. This is my activity, I'm not g... | java|android|android-fragments|android-studio|swipe | 0 | 2016-04-28T02:08:50.120Z | 2,016 | 4 | 2 | 3 | 1,474 | 2 | 475 | 63 | 5 | 1 | true | false | false | false | false | false | zero |
36,904,058 | Set android alarm and it does't show at the right time | <p>i set an alarm and set time when it is going to start,but the alarm started with a few minutes or seconds delayed.I use the setWindow on android 4.4+ and it is all of no use,how to make it start at the right time.</p>
<pre><code>public class AlarmSetActivity extends Activity {
private Context context;
private Alar... | i set an alarm and set time when it is going to start,but the alarm started with a few minutes or seconds delayed.I use the setWindow on android 4.4+ and it is all of no use,how to make it start at the right time. [CODE] | android | -3 | 2016-04-28T02:11:47.570Z | 2,016 | 4 | 2 | 3 | 75 | 1 | 220 | 54 | 1 | 1 | true | false | false | false | false | true | negative |
36,904,103 | java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT in retrofit 2 | <p>I try to get all data using parameter in GET method retrofit 2.x
but respon is Expected BEGIN_ARRAY but was BEGIN_OBJECT in retrofit 2</p>
<p>this is my code to access URL service</p>
<pre><code>public interface BukuResepMasakanAPI {
public static String baseURL = "http://10.108.233.76/buku_resep_masakan_service/"... | I try to get all data using parameter in GET method retrofit 2.x but respon is Expected BEGIN_ARRAY but was BEGIN_OBJECT in retrofit 2 this is my code to access URL service [CODE] } and this is my code to call retrofit [CODE] i hope you can help me to solve that problem | android|retrofit|retrofit2 | 0 | 2016-04-28T02:17:04.203Z | 2,016 | 4 | 2 | 3 | 169 | 1 | 270 | 88 | 3 | 2 | true | false | false | false | false | false | zero |
36,904,279 | Error, Null Pointer Exception for SharedPreferences | <p>So I keep getting the same error no matter how many times I try to tweak my code here and there. I will be posting every little bit of code that has to do with the error.</p>
<p><strong>I will not include unnecessary code so if my code doesn't look complete it's because I cut it out to make it easier for people to ... | So I keep getting the same error no matter how many times I try to tweak my code here and there. I will be posting every little bit of code that has to do with the error. I will not include unnecessary code so if my code doesn't look complete it's because I cut it out to make it easier for people to diagnose the issue!... | java|android|nullpointerexception|sharedpreferences | -2 | 2016-04-28T02:36:48.217Z | 2,016 | 4 | 2 | 3 | 136 | 3 | 902 | 51 | 4 | 3 | true | false | false | false | false | true | negative |
36,904,309 | Android spinner dropdown item ripple background | <p>I have a spinner set up with a custom popup menu. This popup menu has round corners. When you tap an option in the spinner, it shows the ripple background animation however the ripple goes outside the round corners and forms a normal rectangle. How can i make it so that the ripple stays within the boundaries of the ... | I have a spinner set up with a custom popup menu. This popup menu has round corners. When you tap an option in the spinner, it shows the ripple background animation however the ripple goes outside the round corners and forms a normal rectangle. How can i make it so that the ripple stays within the boundaries of the rou... | java|android|material-design|android-spinner | 6 | 2016-04-28T02:40:16.893Z | 2,016 | 4 | 2 | 3 | 1,120 | 0 | 575 | 47 | 4 | 5 | true | true | false | false | false | false | medium |
36,904,447 | Android: NPE when calling getIntent().getParcelableExtra() twice in a DetailActivity (2 different json model classes both with Id field) | <p>Recently began experimenting with Retrofit. Specifically, with <a href="http://docs.themoviedb.apiary.io/#" rel="nofollow">themoviedb.org API</a>.</p>
<p>Currently displaying list of popular movies in <code>MainActivity</code>. Clicking a movie launches the <code>DetailActivity</code> and displays some details for ... | Recently began experimenting with Retrofit. Specifically, with themoviedb.org API . Currently displaying list of popular movies in MainActivity . Clicking a movie launches the DetailActivity and displays some details for that particular movie including Cast and Crew. Clicking a Cast member launches a FilmographyActivit... | android|retrofit | 1 | 2016-04-28T02:57:02.487Z | 2,016 | 4 | 2 | 3 | 142 | 1 | 1,640 | 136 | 2 | 9 | true | false | false | false | false | false | low |
36,904,477 | Retrofit 2 Multipart POST request sends extra quotes to PHP | <p>Using Retrofit 2.0.1, there is a call function in my API interface defined in Android App:</p>
<pre><code>@Multipart
@POST("api.php")
Call<ResponseBody> doAPI(
@Part("lang") String lang,
@Part("file\"; filename=\"image.jpg") RequestBody file
);
</code></pre>
<p>I send the request like this:</p>
<p>Call ... | Using Retrofit 2.0.1, there is a call function in my API interface defined in Android App: [CODE] I send the request like this: Call call = service.doAPI("eng", imageFile); where imageFile is a RequestBody created with a File object. The upload image part has no problem, while the @Part("lang") String lang part got ext... | php|android|multipartform-data|multipart|retrofit2 | 16 | 2016-04-28T03:00:31.823Z | 2,016 | 4 | 3 | 3 | 6,615 | 4 | 613 | 59 | 5 | 2 | true | false | true | false | true | false | medium |
36,904,566 | Google Maps is showing an error on compile | <p>When I try to compile my APK I'm getting the following error:</p>
<p>mMapFragment = new SupportMapFragment() {</p>
<p>Explanation for issues of type "ValidFragment":
From the Fragment documentation:
Every fragment must have an empty constructor, so it can be instantiated
when restoring its activity's stat... | When I try to compile my APK I'm getting the following error: mMapFragment = new SupportMapFragment() { Explanation for issues of type "ValidFragment": From the Fragment documentation: Every fragment must have an empty constructor, so it can be instantiated when restoring its activity's state. It is strongly recommende... | android|google-maps|android-fragments | 0 | 2016-04-28T03:09:56.073Z | 2,016 | 4 | 3 | 3 | 161 | 1 | 733 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
36,904,567 | React-Native-Image-Picker ( cannot map array of images ) | <p>Now I meet some problem as I try to customize my app when the user select or take image it will save in state as an array, but when I try to map it back in view it doesn't show anything.</p>
<p>Here some of my code:</p>
<pre><code>state = {
imageSource: []
};
</code></pre>
<p>this is how i set my state:</p>
... | Now I meet some problem as I try to customize my app when the user select or take image it will save in state as an array, but when I try to map it back in view it doesn't show anything. Here some of my code: [CODE] this is how i set my state: [CODE] here is my view function: [CODE] and this is my render view [CODE] an... | android|ios|react-native | 0 | 2016-04-28T03:10:08.900Z | 2,016 | 4 | 3 | 3 | 427 | 1 | 429 | 56 | 3 | 5 | true | false | false | false | false | false | zero |
36,904,654 | Clear Cache of All Apps in Marshmallow? | <p>I try to solve using below code:
[Reference: <a href="https://stackoverflow.com/questions/14507092/android-clear-cache-of-all-apps/14509140?noredirect]">Android: Clear Cache of All Apps?</a> <br/></p>
<pre><code> PackageManager pm = getPackageManager();
// Get all methods on the PackageManager
Method[] met... | I try to solve using below code: [Reference: Android: Clear Cache of All Apps? [CODE] and add permission in AndroidMenifest.xml file [CODE] But when i run this code, then throw exception : [CODE] Any suggestion to overcome this exception or another solution for clear cache of all apps programmatically. Thanks | android|android-package-managers|clear-cache | 0 | 2016-04-28T03:19:31.377Z | 2,016 | 4 | 3 | 3 | 1,780 | 2 | 310 | 39 | 3 | 3 | true | false | false | false | false | false | zero |
36,904,707 | How to know maximum supported fps by android device on API level? | <p>While googling, I've got <a href="https://github.com/Samsung/GearVRf/issues/270" rel="nofollow">this information</a> that if I want to enable my camera to record high frame rate video on android device, I need to put specific parameters by device vendor for calling camera APIs.</p>
<p>For example, by calling the me... | While googling, I've got this information that if I want to enable my camera to record high frame rate video on android device, I need to put specific parameters by device vendor for calling camera APIs. For example, by calling the methods as below, I could enable my Galaxy S6 camera app recording 120 fps constantly. [... | android|camera|max|frame-rate | 4 | 2016-04-28T03:26:03.857Z | 2,016 | 4 | 3 | 3 | 9,853 | 1 | 1,112 | 65 | 4 | 2 | true | false | true | false | false | false | low |
36,904,713 | Error:(41, 0) Supplied String module notation '0.12.2' is invalid | <p>I am importing Eclipse project into Android studio and while importing the project getting following error:</p>
<pre><code>Error:(41, 0) Supplied String module notation '0.12.2' is invalid. Example notations: 'org.gradle:gradle-core:2.2', 'org.mockito:mockito-core:1.9.5:javadoc'.
Open File
</code></pre>
<p>Here is... | I am importing Eclipse project into Android studio and while importing the project getting following error: [CODE] Here is my build.gradle file: [CODE] I am getting error on the following line: [CODE] | android|android-gradle-plugin|build.gradle|android-build | 3 | 2016-04-28T03:26:51.063Z | 2,016 | 4 | 3 | 3 | 19,881 | 1 | 200 | 65 | 4 | 3 | true | false | true | true | false | false | low |
36,904,788 | Android Studio 2 comparing Object and boolean compile succeeds when it shouldn't? | <p>I (mistakenly) wrote the following code in an Android project.</p>
<pre><code>for (Map<String, Object> occurrence : occurrences) {
if (occurrence.get("cancelled") == true) {
// don't display cancelled events
continue;
}
...
</code></pre>
<p>Now, as I understand it, what should hav... | I (mistakenly) wrote the following code in an Android project. [CODE] Now, as I understand it, what should have happened there is a compiler error to the effect of error: incomparable types: Object and boolean , but that's not what happened. It compiled successfully, and behaved the way I had expected/intended. (It is ... | java|android|android-studio|gradle|equality | 2 | 2016-04-28T03:34:57.213Z | 2,016 | 4 | 3 | 3 | 126 | 1 | 1,121 | 81 | 5 | 1 | true | false | false | false | false | false | low |
36,904,861 | How to change the margin of an "included" layout programatically | <p>I have a LinearLayout inside which I am including a different layout. Something like this</p>
<pre><code><LinearLayout
android:id="@+id/linear_layout"
android:layout_width="match_parent"
android:layout_height="20dp"
android:visibilit... | I have a LinearLayout inside which I am including a different layout. Something like this [CODE] Now what I would like to do is, to programmatically change the "marginBottom" of the included layout (new_layout). How can I do that? I tried calling various LayoutParams and tried changing the margin, but not sure if it is... | android|android-layout|android-linearlayout|android-layoutparams|android-include | 3 | 2016-04-28T03:44:36.530Z | 2,016 | 4 | 3 | 3 | 4,961 | 5 | 377 | 64 | 5 | 1 | true | false | true | false | false | false | low |
36,904,862 | Android: how do I fix timestamp addition to my SQLite database? | <p>I am trying to add a TIMESTAMP Column to my SQLite database. The column is to be used to capture timestamp data using "System.currentTimeMillis();". App is crashing and the error is from the cursor code shown below in the line with ** **. The error reads "Unable to start activity ComponentInfo{...ListActivity}: j... | I am trying to add a TIMESTAMP Column to my SQLite database. The column is to be used to capture timestamp data using "System.currentTimeMillis();". App is crashing and the error is from the cursor code shown below in the line with ** **. The error reads "Unable to start activity ComponentInfo{...ListActivity}: java.la... | android|sqlite|android-recyclerview | 0 | 2016-04-28T03:45:05.050Z | 2,016 | 4 | 3 | 3 | 358 | 2 | 708 | 63 | 3 | 4 | true | false | false | false | false | false | zero |
36,904,903 | How to manipulate audio channels volume with AudioTrack.setVolume after API 21 | <p>I'm trying to reproduce a mono wav file over just one of the stereo channels (speakers) that my smartphone has. I used to control this with </p>
<p><code>AudioTrack.setStereoVolume (float leftGain, float rightGain)</code> </p>
<p>by setting one of these gains to zero. Reviewing an old code I got a deprecated metho... | I'm trying to reproduce a mono wav file over just one of the stereo channels (speakers) that my smartphone has. I used to control this with AudioTrack.setStereoVolume (float leftGain, float rightGain) by setting one of these gains to zero. Reviewing an old code I got a deprecated method warning and after checking Andro... | android|audio|smartphone|speaker | 5 | 2016-04-28T03:49:52.373Z | 2,016 | 4 | 3 | 3 | 1,234 | 0 | 968 | 78 | 4 | 0 | false | true | false | false | false | false | low |
36,904,952 | Check list item in ListView Android | <p>I have successfully put items into <code>ListView</code> using <code>BaseAdapter</code>, and what I want to ask is... is it possible to check whether <code>ListView</code> is empty in <code>onCreate()</code>, or get the total list count in <code>onCreate()</code>? Thanks.</p>
<pre><code>import android.content.Conte... | I have successfully put items into ListView using BaseAdapter , and what I want to ask is... is it possible to check whether ListView is empty in onCreate() , or get the total list count in onCreate() ? Thanks. [CODE] MainActivity [CODE] | android|listview|android-asynctask|baseadapter | -2 | 2016-04-28T03:55:10.607Z | 2,016 | 4 | 3 | 3 | 732 | 4 | 237 | 35 | 4 | 2 | true | false | false | false | false | true | negative |
36,905,036 | How to move SearchView 's search Icon to the right side? | <p><a href="https://i.stack.imgur.com/HZRMy.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/HZRMy.jpg" alt="enter image description here"></a></p>
<p>Here is my layout, using <code>android.support.v7.widget.SearchView</code>.
I want to move the search icon to the right side,but I haven't found any method...
... | Here is my layout, using android.support.v7.widget.SearchView . I want to move the search icon to the right side,but I haven't found any method... ` [CODE] ` after i click the icon,it will change to this layout | android|android-layout|material-design|searchview | 31 | 2016-04-28T04:05:05.267Z | 2,016 | 4 | 4 | 3 | 43,271 | 9 | 210 | 56 | 4 | 1 | true | false | true | true | true | false | high |
36,905,094 | Playing Media player in Android app | <p>I am creating a media player with start, pause, stop buttons. Start and stop buttons work fine, the problem is with the pause button.</p>
<p>When no audio files are playing (and also not at all paused any audio), if I click on the pause button, it throws this error message:</p>
<blockquote>
<p>Unfortunately App ... | I am creating a media player with start, pause, stop buttons. Start and stop buttons work fine, the problem is with the pause button. When no audio files are playing (and also not at all paused any audio), if I click on the pause button, it throws this error message: Unfortunately App has stopped What is the problem? [... | android|android-activity | 0 | 2016-04-28T04:11:55.513Z | 2,016 | 4 | 4 | 3 | 58 | 2 | 325 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
36,905,103 | Android Studio - AppIndex URI | <p>I recently updated my Android Studio to version 2.1 and the project I was working on to Gradle version 2.1.0 as well.
I commented a line in my code which had nothing to do with the App Indexing code that is auto-generated, and now, whenever I try to run my app it crashes and gives me the following error:</p>
<pre><... | I recently updated my Android Studio to version 2.1 and the project I was working on to Gradle version 2.1.0 as well. I commented a line in my code which had nothing to do with the App Indexing code that is auto-generated, and now, whenever I try to run my app it crashes and gives me the following error: [CODE] I have ... | android|android-studio|google-play-services | 5 | 2016-04-28T04:12:30.053Z | 2,016 | 4 | 4 | 3 | 3,975 | 1 | 586 | 29 | 3 | 1 | true | false | true | false | false | false | low |
36,905,238 | Images not displayed in RecyclerView | <p>I want to display images from URL in a my application as a gallery.
I have used this for reference.</p>
<p><a href="http://www.androidhive.info/2016/04/android-glide-image-library-building-image-gallery-app/" rel="nofollow">http://www.androidhive.info/2016/04/android-glide-image-library-building-image-gallery-app/... | I want to display images from URL in a my application as a gallery. I have used this for reference. http://www.androidhive.info/2016/04/android-glide-image-library-building-image-gallery-app/ But the images are not displayed. This is my GalleryActivity [CODE] And this my GalleryAdapter [CODE] The images are not display... | android|android-recyclerview|android-glide | 2 | 2016-04-28T04:25:46.320Z | 2,016 | 4 | 4 | 3 | 798 | 3 | 343 | 36 | 3 | 2 | true | false | false | false | false | false | low |
36,905,249 | Landscape mode can not show two fragments | <p>I just create an app with listview and webview. The portrait mode is work fine.
But when I turn the phone in landscape mode(android studio emulator), It has unknown Buffer</p>
<blockquote>
<p>04-28 14:07:42.822 2202-2216/shiweichen22gmail.q1 E/Surface:
getSlotFromBufferLocked: unknown buffer: 0xab7926c0</p>
</b... | I just create an app with listview and webview. The portrait mode is work fine. But when I turn the phone in landscape mode(android studio emulator), It has unknown Buffer 04-28 14:07:42.822 2202-2216/shiweichen22gmail.q1 E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7926c0 I want to the left part can shows t... | android|xml|listview|android-fragments | -1 | 2016-04-28T04:27:55.550Z | 2,016 | 4 | 4 | 3 | 1,474 | 3 | 731 | 41 | 4 | 4 | true | false | false | false | false | true | negative |
36,905,254 | CollapsingTolbar work with fagment contain SwipeRefreshLayout and RecycleView | <p>Hi I'm Working on <code>CollapsingToobar</code> and a <code>Framelayout</code>. a <code>Fragment</code> will replace the <code>FrameLayout</code> when there is <code>transaction</code>. A <code>fragment</code> contain <code>SwipeRefreshLayout</code> and a <code>RecycleView</code> inside. But whenever I put the <code... | Hi I'm Working on CollapsingToobar and a Framelayout . a Fragment will replace the FrameLayout when there is transaction . A fragment contain SwipeRefreshLayout and a RecycleView inside. But whenever I put the swipeRefreshLayout , RecycleView does not appear (it function normally without SwipeRefreshLayout ). Here is m... | android|android-recyclerview|android-collapsingtoolbarlayout|swiperefreshlayout | 4 | 2016-04-28T04:28:11.100Z | 2,016 | 4 | 4 | 3 | 395 | 3 | 591 | 77 | 4 | 3 | true | false | false | false | false | false | low |
36,905,361 | Structuring GCM messages in PushSharp 4.0 | <p>I'm somewhat confused in how I'm supposed to structure the message body for a GCM push notification using PushSharp. The docs as well as the test files in the GitHub repo show what looks to be the message structure as this:</p>
<pre><code> broker.QueueNotification (new GcmNotification {
R... | I'm somewhat confused in how I'm supposed to structure the message body for a GCM push notification using PushSharp. The docs as well as the test files in the GitHub repo show what looks to be the message structure as this: [CODE] I've been using Postman for testing in which I send a message in the following JSON forma... | c#|android|.net|pushsharp | 3 | 2016-04-28T04:37:12.003Z | 2,016 | 4 | 4 | 3 | 2,055 | 1 | 736 | 41 | 4 | 2 | true | false | false | false | false | false | low |
36,905,373 | How to call AsynkTask from another Activity in android? | <p>I have a MainActivity contain a Action bar and a refresh button in action bar and MainActivity add a Fragment called "Deal Listing" contain <code>listview</code> which execute Url and Update some <code>Listview</code> of fragment "Deal Listing" and a Fragment "Deal" which also execute URL and update <code>Listvi... | I have a MainActivity contain a Action bar and a refresh button in action bar and MainActivity add a Fragment called "Deal Listing" contain listview which execute Url and Update some Listview of fragment "Deal Listing" and a Fragment "Deal" which also execute URL and update Listview of "Deal" fragment.what I want when ... | android|listview|android-fragments | 1 | 2016-04-28T04:38:15.013Z | 2,016 | 4 | 4 | 3 | 114 | 1 | 620 | 55 | 3 | 1 | true | false | false | false | false | false | low |
36,905,396 | Randomly generating a latlng within a radius yields a point out of bounds | <p>I'm trying to generate a point within a radius and I'm getting incorrect values. Someone mind taking a look and telling me what I'm doing wrong for the longitude? This was a formulaic approach posted on a different question...</p>
<pre><code> public static Location generateLocationWithinRadius(Location myCurrentLo... | I'm trying to generate a point within a radius and I'm getting incorrect values. Someone mind taking a look and telling me what I'm doing wrong for the longitude? This was a formulaic approach posted on a different question... [CODE] I should also say that for some reason the valid points yield a uniform line of coordi... | java|android | 4 | 2016-04-28T04:41:02.850Z | 2,016 | 4 | 4 | 3 | 6,295 | 4 | 422 | 73 | 2 | 1 | true | false | true | false | false | false | low |
36,905,410 | Invalid scope field when I create authenticate on xamarin android | <p>Instagram API;</p>
<pre><code>https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code
</code></pre>
<p>My code o</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-... | Instagram API; [CODE] My code o [CODE] -e.IsAuthenticated it will be false.->Invalid scope field OAuth 2.0 authentication, so we create an OAuth2Authenticator. Authenticators are responsible for managing the user interface and communicating with authentication services. Authenticators take a variety of parameters; in t... | xamarin|xamarin.android | 0 | 2016-04-28T04:41:58.293Z | 2,016 | 4 | 4 | 3 | 419 | 1 | 431 | 65 | 2 | 2 | true | false | false | false | false | false | zero |
36,905,415 | How to analyze ANR in sharedPreferences | <p>Meet a ANR in sharedPreferences, don't know how to locate the problem.</p>
<p>Here are three parts from trace, most of other threads are "WAIT" or "TIMED_WAIT". "main" thread is blocked because of countdownlatch.await().
2nd thread "pool-1-thread-1" waiting for the fsync.
The last one is trying to read something.</... | Meet a ANR in sharedPreferences, don't know how to locate the problem. Here are three parts from trace, most of other threads are "WAIT" or "TIMED_WAIT". "main" thread is blocked because of countdownlatch.await(). 2nd thread "pool-1-thread-1" waiting for the fsync. The last one is trying to read something. I think 2nd ... | android|sharedpreferences|android-anr-dialog | 15 | 2016-04-28T04:42:31.693Z | 2,016 | 4 | 4 | 3 | 4,481 | 2 | 592 | 39 | 3 | 3 | true | false | true | false | true | false | medium |
36,905,423 | Why are these two objects null? | <p>I'm writing an Android app and two buttons ("btnGPSShowLocation" and "button") that I am using are null. I've instantiated them both so I don't know why they are null. Here is my code:</p>
<pre><code>public class AndroidLocationActivity extends Activity {
Button btnGPSShowLocation;
Button button;
AppLocationServ... | I'm writing an Android app and two buttons ("btnGPSShowLocation" and "button") that I am using are null. I've instantiated them both so I don't know why they are null. Here is my code: [CODE] And here is the XML that may be relevant: [CODE] Edit: here is the logcat [CODE] | java|android|xml | 0 | 2016-04-28T04:43:15.633Z | 2,016 | 4 | 4 | 3 | 78 | 1 | 272 | 31 | 3 | 3 | true | false | false | false | false | false | zero |
36,905,460 | Bluetooth device discovery is not working properly on android | <p>I am building an app that requires communicating with another device via bluetooth , and i am using the following code from <a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html" rel="nofollow">http://developer.android.com/guide/topics/connectivity/bluetooth.html</a>.</p>
<p>The code runs w... | I am building an app that requires communicating with another device via bluetooth , and i am using the following code from http://developer.android.com/guide/topics/connectivity/bluetooth.html . The code runs without any errors , But the devices are not discovered even when visibility is turned on on the nearby device... | java|android|bluetooth | 2 | 2016-04-28T04:47:23.853Z | 2,016 | 4 | 4 | 3 | 300 | 0 | 535 | 61 | 3 | 1 | true | true | false | false | false | false | low |
36,905,626 | How to check data in SQLite if already exist update or else insert in android | <p>I want to check the data in SQLite if already exist can update or else insert.I am checking code like this what i mentioned below.</p>
<p>Code:</p>
<pre><code>public long addmenus(String navigationdrawer,String optionname)
{
SQLiteDatabase menus=this.getWritableDatabase();
try {
Conte... | I want to check the data in SQLite if already exist can update or else insert.I am checking code like this what i mentioned below. Code: [CODE] My activity: I converted whole json data into string object then insert into SQLite. [CODE] But It doesn't work.It couldn't insert into sqlite. Anyone solve this problem Glad t... | android|android-layout|android-fragments|android-sqlite|android-studio-2.0 | 0 | 2016-04-28T05:01:16.127Z | 2,016 | 4 | 5 | 3 | 5,456 | 5 | 351 | 77 | 5 | 2 | true | false | true | false | false | false | zero |
36,905,650 | Dynamically populating Subitem -ListView | <p>Below is the code where I can dynamically populate the list view and it works good,but I tried so hard and couldn't find the process of populating a SubItem in ListView</p>
<p><strong>.xml</strong>
<pre><code>android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" ... | Below is the code where I can dynamically populate the list view and it works good,but I tried so hard and couldn't find the process of populating a SubItem in ListView .xml [CODE] class file [CODE] So if you could provide some tutorial or code will be cool and I already read the one from developers.android | android|listview|android-studio | 0 | 2016-04-28T05:03:19.547Z | 2,016 | 4 | 5 | 3 | 106 | 0 | 308 | 40 | 3 | 2 | true | true | false | false | false | false | zero |
36,905,705 | posting data to server in json format using volley | <p>Hello i am posting data to server in json format,
but it returns volley server error in error response`</p>
<pre><code>RequestQueue queue = Volley.newRequestQueue(this);
JSONObject jobj=new JSONObject();
try {
jobj.put("id",”123”);
jobj.put("session","new");
JSONA... | Hello i am posting data to server in json format, but it returns volley server error in error response` [CODE] | android|http-post|android-volley|json | 4 | 2016-04-28T05:07:58.057Z | 2,016 | 4 | 5 | 3 | 309 | 1 | 110 | 50 | 4 | 1 | true | false | false | false | false | false | low |
36,905,756 | WebView in my Android App is loading too slow | <p>I am beginner in android app develeopment. My issue is <code>WebView</code> in my Android App is loading slowly. Please help me in fixing this issue and my <code>splash screen</code> is also loading slowly.</p>
<p>Here is the source of Activity :</p>
<pre><code>package com.example.tech2dsk.tech2dsk;
import androi... | I am beginner in android app develeopment. My issue is WebView in my Android App is loading slowly. Please help me in fixing this issue and my splash screen is also loading slowly. Here is the source of Activity : [CODE] | java|android|webview | 0 | 2016-04-28T05:11:48.323Z | 2,016 | 4 | 5 | 3 | 359 | 0 | 220 | 45 | 3 | 1 | true | true | false | false | false | false | zero |
36,905,782 | How to use android default browser during automation testing | <p>I want to automate some test cases in android default browser (not chrome). Here is my desire capabilities:</p>
<pre><code>DesiredCapabilities capabilities = new DesiredCapabilities().android();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "browser");
capabilities.setCapability(MobileCapabilityType.PLATF... | I want to automate some test cases in android default browser (not chrome). Here is my desire capabilities: [CODE] When I run the any testcases through appium, output is: [CODE] If anybody have any idea how to solve this problem, please let me know. Thanks in advance. | java|android|selenium|appium|browser-automation | 3 | 2016-04-28T05:13:44.227Z | 2,016 | 4 | 5 | 3 | 2,155 | 2 | 268 | 60 | 5 | 2 | true | false | false | false | false | false | low |
36,905,923 | Changing the color of a button on click | <p>Hi all I am making a project I want to change the button colour by pressing , for example suppose I press start button then it become red and when I press again it will become green.
Class:</p>
<pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener
{
Button buttonStart, ... | Hi all I am making a project I want to change the button colour by pressing , for example suppose I press start button then it become red and when I press again it will become green. Class: [CODE] | android | -1 | 2016-04-28T05:25:00.957Z | 2,016 | 4 | 5 | 3 | 142 | 6 | 196 | 39 | 1 | 1 | true | false | false | false | false | true | negative |
36,905,932 | Image loader is not working | <p>I am creating project same like this tutorial <a href="http://www.androidhive.info/2012/07/android-loading-image-from-url-http/" rel="nofollow">androidhive</a> previously it was working, but now the image is not showing me enabled storage permission also I am getting error like this</p>
<p><code>java.lang.ClassCast... | I am creating project same like this tutorial androidhive previously it was working, but now the image is not showing me enabled storage permission also I am getting error like this java.lang.ClassCastException: android.support.v7.widget.TintContextWrapper cannot be cast to android.app.Activity at com.example.admin.ima... | android|android-activity|universal-image-loader | 1 | 2016-04-28T05:25:33.890Z | 2,016 | 4 | 5 | 3 | 2,019 | 3 | 445 | 27 | 3 | 1 | true | false | false | false | false | false | low |
36,906,191 | Android: setOnTouchListener after setOnClickListener | <p>I got swipe up and swipe down for a layout by using setOnTouchListener (For understanding see below images)</p>
<p><strong>Images</strong></p>
<p><a href="https://i.stack.imgur.com/ulFj6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ulFj6.png" alt="enter image description here"></a>
<a href="h... | I got swipe up and swipe down for a layout by using setOnTouchListener (For understanding see below images) Images But i want to swipe up and swipe down the layout when clicking on the button not when OnTouchListener. For this i tried almost all examples in the online but i didn't get any solution according to my requi... | android|onclicklistener|swipe|ontouchlistener | 3 | 2016-04-28T05:44:19.303Z | 2,016 | 4 | 5 | 3 | 1,438 | 2 | 586 | 52 | 4 | 2 | true | false | false | false | false | false | low |
36,906,199 | HashMap.put() Override already excisting value even the Key value is different | <p>This question has been asked earlier. But any of those replies didn't resolve my problem. Somebody please help.</p>
<p>I have two HashMaps,
<code>final HashMap<String,String> dataList = new HashMap<String,String>();</code>
<code>final HashMap<String,HashMap<String,String>> full = new HashMap... | This question has been asked earlier. But any of those replies didn't resolve my problem. Somebody please help. I have two HashMaps, final HashMap<String,String> dataList = new HashMap<String,String>(); final HashMap<String,HashMap<String,String>> full = new HashMap<String,HashMap<String,String>>(); This is my code. [C... | java|android|string|hashmap | 2 | 2016-04-28T05:44:30.350Z | 2,016 | 4 | 5 | 3 | 6,289 | 1 | 786 | 78 | 4 | 1 | true | false | true | false | false | false | low |
36,906,229 | jquery mobile, error with select menu in Android with Chrome version 50 | <p>I have updated my Chrome browser to last version and I have the following problem:</p>
<p>When I select an option of a select menu it does not appear selected, I repeat the process of the selection and then it is selected OK. If I try to select other option it happens the same, first time bad, second time OK. It i... | I have updated my Chrome browser to last version and I have the following problem: When I select an option of a select menu it does not appear selected, I repeat the process of the selection and then it is selected OK. If I try to select other option it happens the same, first time bad, second time OK. It is happening ... | android|jquery|google-chrome|select|mobile | 5 | 2016-04-28T05:46:21.390Z | 2,016 | 4 | 5 | 3 | 2,647 | 1 | 1,031 | 71 | 5 | 0 | false | false | true | false | false | false | low |
36,906,295 | how to remove foorterview from listview after pagination is finished in Android? | <p>I'm getting java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2 when i reached at last page and trying to remove footer view from list-view. Can some one please help me to solve this issue.</p>
<p>Here is code for add footer view to list view .</p>
<pre><code>listView = (ListView)findViewById(R.id.lis... | I'm getting java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2 when i reached at last page and trying to remove footer view from list-view. Can some one please help me to solve this issue. Here is code for add footer view to list view . [CODE] Here is my pagination methods. [CODE] Here is my pagination cod... | android|pagination | 0 | 2016-04-28T05:51:37.090Z | 2,016 | 4 | 5 | 3 | 267 | 1 | 371 | 80 | 2 | 4 | true | false | false | false | false | false | zero |
36,906,323 | How to change a Android (JsonProperty["value"]) value in C#? | <pre><code>public class RootObject
{
[JsonProperty("585709" )]
public List<SummonerId> SummonerId { get; set; }
}
</code></pre>
<p>I have a class that uses the JsonProperty["585709"] for my JSON Api call.
This is exactly what I want but.. the problem I am facing is , The property has to change according to the... | [CODE] I have a class that uses the JsonProperty["585709"] for my JSON Api call. This is exactly what I want but.. the problem I am facing is , The property has to change according to the User's Id number. What I've tried : This seems to work however when the Json call is made the value searches for the original value ... | c#|android|json | 0 | 2016-04-28T05:53:42.003Z | 2,016 | 4 | 5 | 3 | 26 | 0 | 405 | 60 | 3 | 2 | true | true | false | false | false | false | zero |
36,906,338 | Removing divider after a footer in a Recyclerview | <p>Is there any way to removing divider after a footer in a <code>Recyclerview</code>.I am using item decoration to add divider to the adapter.I am adding footer in the adapter.divider is showing below the footer also.i want to remove it.</p>
<p>This is my code for Divider</p>
<pre><code>public class DividerItemDecor... | Is there any way to removing divider after a footer in a Recyclerview .I am using item decoration to add divider to the adapter.I am adding footer in the adapter.divider is showing below the footer also.i want to remove it. This is my code for Divider [CODE] | android|android-recyclerview | 7 | 2016-04-28T05:54:53.733Z | 2,016 | 4 | 5 | 3 | 2,306 | 1 | 258 | 49 | 2 | 1 | true | false | false | false | false | false | medium |
36,906,424 | Spinner items not displayed in spinner and spinner onClick listener not working | <p>I am getting values from json string and add it in arraylist getSpinArrList.I have posted the relevant code.</p>
<p>My issue is, Spinner not showing the first item and OnItemClick is not working in spinner.</p>
<p>But If I click spinner, I can view only the items I am getting from arraylist.</p>
<p><strong>MainAc... | I am getting values from json string and add it in arraylist getSpinArrList.I have posted the relevant code. My issue is, Spinner not showing the first item and OnItemClick is not working in spinner. But If I click spinner, I can view only the items I am getting from arraylist. MainActivity.java: [CODE] | android | 1 | 2016-04-28T06:00:44.670Z | 2,016 | 4 | 6 | 3 | 1,692 | 3 | 304 | 79 | 1 | 1 | true | false | false | false | false | false | low |
36,906,495 | Opencv Library return null | <p>When I Integrate Open cv in android Studio for Eye Detection. After Integration Message print Opencv install successfully message Generate but after they given error .</p>
<blockquote>
<p>Couldn't load detection_based_tracker from loader
dalvik.system.PathClassLoader[DexPathList[[zip
file"/data/app/com.examp... | When I Integrate Open cv in android Studio for Eye Detection. After Integration Message print Opencv install successfully message Generate but after they given error . Couldn't load detection_based_tracker from loader dalvik.system.PathClassLoader[DexPathList[[zip file"/data/app/com.example.admin.lanskart-2.apk"],nativ... | android|opencv | 0 | 2016-04-28T06:05:40.123Z | 2,016 | 4 | 6 | 3 | 319 | 1 | 443 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
36,906,512 | Proguard error (Xamarin c#) | <p>I writing Android app.</p>
<p>When i set Release mode and run it, have this.</p>
<pre><code>java.exe exited with code 1
</code></pre>
<p>Java Heap size is set to 1G</p>
<p>Output has this</p>
<pre><code> 1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced ... | I writing Android app. When i set Release mode and run it, have this. [CODE] Java Heap size is set to 1G Output has this [CODE] How can I fix this issue? Thank's | c#|android|xamarin|xamarin.android | 2 | 2016-04-28T06:06:31.730Z | 2,016 | 4 | 6 | 3 | 832 | 1 | 161 | 27 | 4 | 2 | true | false | false | false | false | false | low |
36,906,541 | How to set load next page data from data in Android | <p>I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br>
Json link : <a href="http://tellfa.co... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! Json link : JSON LINK I can load first 10 posts. i want when scrollin... | android|json | 2 | 2016-04-28T06:08:02.163Z | 2,016 | 4 | 6 | 3 | 569 | 2 | 534 | 51 | 2 | 2 | true | false | false | false | false | false | low |
36,906,548 | How to add sections for checked and unchecked items in recyclerview? | <p>I have a list of tasks in recyclerview. Each task item has a check box to show if the task is completed or pending. </p>
<p>Now I want to show two sections in my list. One for checked items and another for unchecked items. </p>
<p>I have gone through this library to add the sections. </p>
<p><a href="https://gith... | I have a list of tasks in recyclerview. Each task item has a check box to show if the task is completed or pending. Now I want to show two sections in my list. One for checked items and another for unchecked items. I have gone through this library to add the sections. https://github.com/afollestad/sectioned-recyclervie... | java|android|checkbox|android-recyclerview|sections | 0 | 2016-04-28T06:08:30.323Z | 2,016 | 4 | 6 | 3 | 546 | 1 | 714 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
36,906,643 | Button.PerformClick() doesn't fire Click event if the button is not visible in Android | <p>I want my <code>btnAppShare</code> button to be clicked even if the button is invisible, I have written this code after button 1 click listener which is visible. Basically, I want that after completely executing <code>setOnClickListener</code> event of button1 my button2 gets automatically clicked and perform its `s... | I want my btnAppShare button to be clicked even if the button is invisible, I have written this code after button 1 click listener which is visible. Basically, I want that after completely executing setOnClickListener event of button1 my button2 gets automatically clicked and perform its `setOnClickListener. [CODE] | android|button|onclicklistener | 0 | 2016-04-28T06:13:51.543Z | 2,016 | 4 | 6 | 3 | 5,597 | 4 | 316 | 86 | 3 | 1 | true | false | true | false | false | false | zero |
36,906,789 | Android - How to add text to a menu item? | <p>I am developing an Android app, I've created an item in menu 'About'. I want it display text like Dev Name, Contact, App version when I click on it, in a separate page or activity. I don't know how to do this, I am using a toast message to show these details. Please Help !</p>
<p>activity_main.xml</p>
<pre><code>&... | I am developing an Android app, I've created an item in menu 'About'. I want it display text like Dev Name, Contact, App version when I click on it, in a separate page or activity. I don't know how to do this, I am using a toast message to show these details. Please Help ! activity_main.xml [CODE] MainActivity.java [CO... | android | 2 | 2016-04-28T06:22:52.467Z | 2,016 | 4 | 6 | 3 | 1,690 | 3 | 344 | 41 | 1 | 3 | true | false | false | false | false | false | low |
36,906,802 | What should my activity extend when application's minSdkVersion is 21? | <p>I am quite new to Android and Android Studio. I have created a new project and I have specified the <code>minSdkVersion as 21</code> and <code>target to 23</code>. </p>
<p>After AS is done with creating the activity I see that <code>MainActivity</code> is extending <code>AppCompatActivity</code> by default.</p>
<p... | I am quite new to Android and Android Studio. I have created a new project and I have specified the minSdkVersion as 21 and target to 23 . After AS is done with creating the activity I see that MainActivity is extending AppCompatActivity by default. I read about AppCompatActivity here It says that it is the Base class ... | android|android-studio-2.0|appcompatactivity | 8 | 2016-04-28T06:23:38.057Z | 2,016 | 4 | 6 | 3 | 1,066 | 4 | 799 | 70 | 3 | 0 | false | false | false | false | false | false | medium |
36,906,842 | Don't know why GPUImageFilterGroup use flipped frame buffer when drawing the filter in even position | <p>Following is the <strong>onDraw</strong> method in <strong>GPUImageFilterGroup.java</strong>. </p>
<pre><code>// GPUImageFilterGroup.java
public void onDraw(final int textureId, final FloatBuffer cubeBuffer,
final FloatBuffer textureBuffer) {
runPendingOnDrawTasks();
if (!isInitialized() ... | Following is the onDraw method in GPUImageFilterGroup.java . [CODE] mGLTextureBuffer stores the positions of the texture. [CODE] mGLTextureFlipBuffer is the upside-down of mGLTextureBuffer in vertical direction. Just can't figure out why even filter and odd filter use different buffer as following line? [CODE] | android-gpuimageview | 0 | 2016-04-28T06:25:26.987Z | 2,016 | 4 | 6 | 3 | 286 | 1 | 311 | 100 | 1 | 3 | true | false | false | false | false | false | zero |
36,906,851 | Listview not scrolling smooth with viewflipper in every cell | <p>I am working on listview containing viewflipper inside every cell. Now viewflipper is tend to flip the image after every 2 seconds. In my adapter I have used the holder concept, but inside every holder there is a viewflipper which adds dynamic imageviews in it. I am sure that is the point which is not allowing listv... | I am working on listview containing viewflipper inside every cell. Now viewflipper is tend to flip the image after every 2 seconds. In my adapter I have used the holder concept, but inside every holder there is a viewflipper which adds dynamic imageviews in it. I am sure that is the point which is not allowing listview... | android|listview|viewflipper | 0 | 2016-04-28T06:25:46.327Z | 2,016 | 4 | 6 | 3 | 268 | 1 | 682 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
36,906,852 | items in child Recyclerview scrolls automatically | <p>I have a <code>Recyclerview</code> that has another <code>Recyclerview</code> in its list_item (means child <code>Recyclerview</code> inside parent <code>Recyclerview</code>)</p>
<p>My child <code>Recyclerview</code> contains <code>ratingbar</code> in its list_items.</p>
<p>When I click on my <code>ratingbar</code... | I have a Recyclerview that has another Recyclerview in its list_item (means child Recyclerview inside parent Recyclerview ) My child Recyclerview contains ratingbar in its list_items. When I click on my ratingbar my child Recyclerview scrolls automatically (example : 5th ratingbar clicked , its scrolls auto and takes m... | android|android-recyclerview | 1 | 2016-04-28T06:26:07.330Z | 2,016 | 4 | 6 | 3 | 711 | 1 | 576 | 49 | 2 | 2 | true | false | false | false | false | false | low |
36,906,928 | Can't Fetch Database to Array inside Object in PHP | <p>i have an android project that need to get database from my online database. I have develop code for Android but now i am stuck on the PHP code in case to fetch my online database.</p>
<p>Well, i am using JSON to fetch the database, so i code on the Android side like this one :</p>
<pre><code>JSONArray j = new JSO... | i have an android project that need to get database from my online database. I have develop code for Android but now i am stuck on the PHP code in case to fetch my online database. Well, i am using JSON to fetch the database, so i code on the Android side like this one : [CODE] You can see there, my pattern is fetch Ar... | php|android|mysql|arrays|json | 0 | 2016-04-28T06:29:56.060Z | 2,016 | 4 | 6 | 3 | 75 | 1 | 718 | 50 | 5 | 3 | true | false | false | false | false | false | zero |
36,906,944 | When select image from memory card is nott uploading to server in android by using Multi part? | <p>In my application, when select image from external card and then upload to the server using multipart it is giving the error message as "FileNotFoundException" but the path is coming. But When i select same file from the gallery it is uploading to server.</p>
<pre><code>@SuppressLint("NewApi")
public String get... | In my application, when select image from external card and then upload to the server using multipart it is giving the error message as "FileNotFoundException" but the path is coming. But When i select same file from the gallery it is uploading to server. [CODE] upload image to server [CODE] | android|image|multipart|uploading|android-external-storage | 1 | 2016-04-28T06:30:50.473Z | 2,016 | 4 | 6 | 3 | 68 | 0 | 292 | 94 | 5 | 2 | true | true | false | false | false | false | low |
36,906,968 | Why Schedulers.io() sometimes running in mainthread? | <p>I'm using RxAndroid instead of thread myself.
And I had subscribed it on io thread, but it sometimes running in main thread.
sometimes the log was print in main thread.</p>
<pre><code>Observable.from(bitmaps.toArray(new Bitmap[0]))
.subscribeOn(Schedulers.io())
.observeOn(Schedulers.io())
... | I'm using RxAndroid instead of thread myself. And I had subscribed it on io thread, but it sometimes running in main thread. sometimes the log was print in main thread. [CODE] two thread in logcat: [CODE] Solution: I move the subscribeOn() after zipWith() and it run ok. [CODE] | android|rx-java|rx-android | 0 | 2016-04-28T06:32:28.850Z | 2,016 | 4 | 6 | 3 | 619 | 2 | 277 | 52 | 3 | 3 | true | false | false | false | false | false | zero |
36,906,986 | Why is my SVG failing to load in Vector Asset Studio | <p>The SVG below is failing to open in Android Studio's Vector Asset Studio in resulting in the error:</p>
<p>"Empty preview image!
EXCEPTION in parsing TareSymbol.svg:
For input string: "8.7337904mm"Exception while parsing XML file:
Premature end of file." </p>
<p>Why is the following SVG file not compatible with Ve... | The SVG below is failing to open in Android Studio's Vector Asset Studio in resulting in the error: "Empty preview image! EXCEPTION in parsing TareSymbol.svg: For input string: "8.7337904mm"Exception while parsing XML file: Premature end of file." Why is the following SVG file not compatible with Vector Asset Studio? [... | android|android-layout|svg|android-vectordrawable|androidsvg | 52 | 2016-04-28T06:33:35.700Z | 2,016 | 4 | 6 | 3 | 53,131 | 11 | 325 | 52 | 5 | 1 | true | false | true | true | true | false | high |
36,907,063 | Android Didn't find class | <p>I'm following a Gif tutorial and created a custom class in my <code>wear/java/com.example.marcus.prog</code> folder called 'GIFView', but I can't reference this class from my XML layout. I've tried all sorts of combinations but I keep getting two errors about not finding the class.</p>
<pre><code> java.lang.Runtime... | I'm following a Gif tutorial and created a custom class in my wear/java/com.example.marcus.prog folder called 'GIFView', but I can't reference this class from my XML layout. I've tried all sorts of combinations but I keep getting two errors about not finding the class. [CODE] My XML file looks like [CODE] Thanks | java|android|xml | -3 | 2016-04-28T06:37:35.710Z | 2,016 | 4 | 6 | 3 | 356 | 2 | 313 | 25 | 3 | 2 | true | false | false | false | false | true | negative |
36,907,172 | EditText with only text, digit and underscore like Instagram ID | <p>I have an functionality in which I have to validate only characters, digits and underscore (No any other special characters) which is like Instagram ID.</p>
<p>I tried a lot. Even I used digit property in xml as well as InputFilter in my java class.</p>
<p>What is really issue?</p>
<p>1.) In some devices, it work... | I have an functionality in which I have to validate only characters, digits and underscore (No any other special characters) which is like Instagram ID. I tried a lot. Even I used digit property in xml as well as InputFilter in my java class. What is really issue? 1.) In some devices, it works perfect 2.) In some devic... | android|android-edittext | 0 | 2016-04-28T06:43:45.837Z | 2,016 | 4 | 6 | 3 | 951 | 2 | 555 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
36,907,173 | Front Camera opening in the side in small view - Android | <p>I am implementing android-gpuimage library in my code.
<a href="https://github.com/CyberAgent/android-gpuimage" rel="nofollow noreferrer">https://github.com/CyberAgent/android-gpuimage</a>
I used the camera code of the sample project. Everyting works fine, but whenever I switch the camera, front camera opens in the... | I am implementing android-gpuimage library in my code. https://github.com/CyberAgent/android-gpuimage I used the camera code of the sample project. Everyting works fine, but whenever I switch the camera, front camera opens in the side in a small view. I want the front camera to occupy the whole Surfaceview. Here is my ... | android|gpuimage|front-camera | 2 | 2016-04-28T06:43:46.460Z | 2,016 | 4 | 6 | 3 | 820 | 2 | 587 | 56 | 3 | 1 | true | false | false | false | false | false | low |
36,907,437 | My splash screen is loading too slow | <p>I am beginner in android development, I am facing issue that " My android app splash screen is loading too slow " please help me in fixing this issue.</p>
<p>Here is my spash.java source code : </p>
<pre><code>import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.ActionBar... | I am beginner in android development, I am facing issue that " My android app splash screen is loading too slow " please help me in fixing this issue. Here is my spash.java source code : [CODE] | android | -6 | 2016-04-28T06:58:34.810Z | 2,016 | 4 | 6 | 3 | 3,587 | 4 | 193 | 36 | 1 | 1 | true | false | true | false | false | true | negative |
36,907,711 | How to implement RecyclerView with section header depending on category? | <p>I want to implement sections in my list. I have a list of tasks. List has a custom adapter which extends recyclerview swipe adapter as I have implemented swipe gesture to the recyclerview. </p>
<p>So now tasks list is shown together with completed and pending tasks. Each list item has a check box which shows task ... | I want to implement sections in my list. I have a list of tasks. List has a custom adapter which extends recyclerview swipe adapter as I have implemented swipe gesture to the recyclerview. So now tasks list is shown together with completed and pending tasks. Each list item has a check box which shows task is completed ... | java|android|header|android-recyclerview|sections | 24 | 2016-04-28T07:11:15.013Z | 2,016 | 4 | 7 | 3 | 45,473 | 3 | 1,185 | 72 | 5 | 2 | true | false | true | true | true | false | high |
36,907,726 | How to check app is running in background of foreground in BroadcastReceiver | <p>i want to check whether the my application is in a background or in a Foreground and i also want to check the app in open or not using BroadcastReceiver</p>
<pre><code>public class CheckRunningApplicationReceiver extends BroadcastReceiver {
Context mContext;
public int mId = 1000;
NotificationManager mNotification... | i want to check whether the my application is in a background or in a Foreground and i also want to check the app in open or not using BroadcastReceiver [CODE] } is there any solution for this, help me , Thanks. | android|android-broadcastreceiver | 3 | 2016-04-28T07:11:53.107Z | 2,016 | 4 | 7 | 3 | 2,989 | 2 | 211 | 76 | 2 | 1 | true | false | true | false | false | false | low |
36,907,794 | android: cannot find symbol TaskDescription | <p>I am trying to set the color of the ActionBar while my app is "minimized" using the TaskDescription as suggested by the answer to this post: <a href="https://stackoverflow.com/questions/27079658/setting-header-color-of-app-in-overview-recent-apps-screen">Setting header color of app in overview (recent apps) screen</... | I am trying to set the color of the ActionBar while my app is "minimized" using the TaskDescription as suggested by the answer to this post: Setting header color of app in overview (recent apps) screen Here is the relevant code: [CODE] Although I have not posted the xml resource files for this project, you may assume t... | java|android|mobile | 0 | 2016-04-28T07:14:59.340Z | 2,016 | 4 | 7 | 3 | 691 | 1 | 1,376 | 43 | 3 | 2 | true | false | false | false | false | false | zero |
36,907,916 | java.lang.NoClassDefFoundError while registering eventbus in onStart Method for 4.4 os version | <p>After integrating Event Bus Library its working fine for OS versions 5.0 and above but causing exception for lower versions like 4.4 etc and getting this error, </p>
<blockquote>
<p>java.lang.ExceptionInInitializerError at
com.tbox.doormanapp.GuestListActivity.onCreate(GuestListActivity.java:53)
at android.ap... | After integrating Event Bus Library its working fine for OS versions 5.0 and above but causing exception for lower versions like 4.4 etc and getting this error, java.lang.ExceptionInInitializerError at com.tbox.doormanapp.GuestListActivity.onCreate(GuestListActivity.java:53) at android.app.Activity.performCreate(Activi... | java|android|android-studio|android-activity|broadcastreceiver | 2 | 2016-04-28T07:20:11.460Z | 2,016 | 4 | 7 | 3 | 2,036 | 1 | 4,608 | 94 | 5 | 0 | false | false | false | false | false | false | low |
36,907,987 | android -using retrofit lib getting error in parsing the response | <p>I am new to Retrofit Lib.. but i read it's features so i inspired to use this..i have used <a href="https://www.simplifiedcoding.net/retrofit-android-tutorial-to-get-json-from-server/" rel="nofollow">This link</a> and i am having response like following</p>
<pre><code>{
"Users":[
{
"firstname":"Mi... | I am new to Retrofit Lib.. but i read it's features so i inspired to use this..i have used This link and i am having response like following [CODE] I am also done this in interface [CODE] But getting 04-28 07:05:13.613 32242-32242/package name I/System.out﹕ error.toString() = retrofit.RetrofitError: com.google.gson.Jso... | android|parsing|retrofit | 0 | 2016-04-28T07:24:26.573Z | 2,016 | 4 | 7 | 3 | 104 | 2 | 577 | 65 | 3 | 4 | true | false | false | false | false | false | zero |
36,907,998 | How to save the changes made to row in the listview? | <p>What my code does is add,delete and edit operations.On click of add button the name gets added to the list and on delete the particular row gets deleted.similarly,on click of edit button a dialog box will be prompted in which edit operation has to be performed then on click of save,the data edited should be updated ... | What my code does is add,delete and edit operations.On click of add button the name gets added to the list and on delete the particular row gets deleted.similarly,on click of edit button a dialog box will be prompted in which edit operation has to be performed then on click of save,the data edited should be updated in ... | android | 1 | 2016-04-28T07:24:56.193Z | 2,016 | 4 | 7 | 3 | 103 | 4 | 551 | 52 | 1 | 2 | true | false | false | false | false | false | low |
36,908,154 | Try to put string that call from graph API to database sq-lite but that value in database is null | <p>Me and my team have been doing this for many days but still can't figure it out what I'm trying to do is that use Graph API Facebook to call for user ID (Already done that and check that it's work by use Log) and take that value in to sq-lite database but when I check that value it's NULL. Sorry for bad English skil... | Me and my team have been doing this for many days but still can't figure it out what I'm trying to do is that use Graph API Facebook to call for user ID (Already done that and check that it's work by use Log) and take that value in to sq-lite database but when I check that value it's NULL. Sorry for bad English skill. ... | java|android|android-studio | 1 | 2016-04-28T07:33:11.670Z | 2,016 | 4 | 7 | 3 | 32 | 1 | 350 | 97 | 3 | 1 | true | false | false | false | false | false | low |
36,908,176 | How to display Hexagon shaped border | <p>Hi I need to draw a hexagon border. I tried using below code, but I'm facing issues like the color is filling the total Hexagon. I need to give color only to border of the Hexagon. Can any one please help me?</p>
<pre><code>public class HexagonLayout extends RelativeLayout {
public HexagonLayout(Context conte... | Hi I need to draw a hexagon border. I tried using below code, but I'm facing issues like the color is filling the total Hexagon. I need to give color only to border of the Hexagon. Can any one please help me? [CODE] | android-layout | 1 | 2016-04-28T07:34:11.450Z | 2,016 | 4 | 7 | 3 | 120 | 1 | 215 | 36 | 1 | 1 | true | false | false | false | false | false | low |
36,908,224 | Issues In Splash Screen with progressDialog | <p>My Issue is progress Dialog not display with the splash Screen?Can Any one solve this, Any help could be appreciated thanks in advance !</p>
<pre><code>public class Splash extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.... | My Issue is progress Dialog not display with the splash Screen?Can Any one solve this, Any help could be appreciated thanks in advance ! [CODE] } | java|android|progressdialog | -1 | 2016-04-28T07:36:30.467Z | 2,016 | 4 | 7 | 3 | 324 | 4 | 145 | 43 | 3 | 1 | true | false | false | false | false | true | negative |
36,908,387 | Android studio getting crashed when gradle is build on mac | <p>I am working on <code>android studio</code> from one year But i can't face this type of problem. What i am doing is <strong>adding a dependency of support library</strong> in app <code>build.gradle</code> and then sync the project. </p>
<p><code>Gradle</code> build running is started in background and then after so... | I am working on android studio from one year But i can't face this type of problem. What i am doing is adding a dependency of support library in app build.gradle and then sync the project. Gradle build running is started in background and then after some time studio is automatically crashed. There is no error or logs a... | android|android-studio|gradle|build | 0 | 2016-04-28T07:45:26.897Z | 2,016 | 4 | 7 | 3 | 673 | 0 | 661 | 58 | 4 | 1 | true | true | false | false | false | false | zero |
36,908,388 | on click interface callback gives null in Android | <p>I have Android module library which will create the Touch Keypad UI and set event listener for done and backbutton. </p>
<p>Also have main activity with implement eventCallback interface</p>
<blockquote>
<p>MainActivity.java (Appication)</p>
</blockquote>
<pre><code>public class MainActivity extends AppCompatAc... | I have Android module library which will create the Touch Keypad UI and set event listener for done and backbutton. Also have main activity with implement eventCallback interface MainActivity.java (Appication) [CODE] eventCallback.java (Android Module Library) [CODE] touchkey.java (Android Module Library) [CODE] but ia... | java|android | 2 | 2016-04-28T07:45:31.847Z | 2,016 | 4 | 7 | 3 | 1,189 | 1 | 570 | 49 | 2 | 3 | true | false | false | false | false | false | low |
36,908,448 | Android - getAdapterPosition() returns -1 after deleting an item | <p>The title says it all, I have a <code>RecyclerView</code> which is used to store values dynamically, but only one item at a time. The item contains 3 <code>TextViews</code></p>
<p>When I add all the items normally, it works, but when I add x item, then remove the last one, and then click on "submit", the app crashe... | The title says it all, I have a RecyclerView which is used to store values dynamically, but only one item at a time. The item contains 3 TextViews When I add all the items normally, it works, but when I add x item, then remove the last one, and then click on "submit", the app crashes. I do removeAt(getAdapterPosition()... | android|android-recyclerview | 2 | 2016-04-28T07:49:13.467Z | 2,016 | 4 | 7 | 3 | 2,348 | 2 | 937 | 64 | 2 | 8 | true | false | false | false | false | false | low |
36,908,507 | Check if Internet connection is available through proxy | <p>I'm trying to check if Internet connection is available on android devices but my internet connection requires a proxy to reach internet.</p>
<p>This is my code:</p>
<pre><code>URL myurl = new URL("http://www.google.com");
HttpURLConnection connection;
InetSocketAddress proxyInet = new InetSocketAddress(session.ge... | I'm trying to check if Internet connection is available on android devices but my internet connection requires a proxy to reach internet. This is my code: [CODE] This code returns this exception message: [CODE] This code without proxy runs fine [CODE] What would be wrong? Thanks EDIT1: If I try with https://stackoverfl... | java|android|proxy|httpurlconnection | 0 | 2016-04-28T07:52:02.143Z | 2,016 | 4 | 7 | 3 | 1,028 | 1 | 424 | 55 | 4 | 3 | true | false | false | false | false | false | zero |
36,908,509 | Not load next posts from Json in Android | <p>I want develop android application for one website. I read website posts from json and show its in <code>RecyclerView</code> every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br>
<strong>Json link :</str... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! Json link : JSON LINK I can load first 10 posts. i want when scrollin... | android|json | 0 | 2016-04-28T07:52:08.590Z | 2,016 | 4 | 7 | 3 | 54 | 1 | 734 | 40 | 2 | 4 | true | false | false | false | false | false | zero |
36,908,566 | How to Add Navigation View in Fragment in android? | <p>I have a Fragment named as DealMailListig and have Main Activity .I am trying to add a navigation view in my Fragment not in Main Activity with drawer toggle Icon .But do not get success .pls guide me for that .</p>
<p>any help will be appreciate.</p>
<p>here is my code of Deal MainListing
:-</p>
<pre><code>publi... | I have a Fragment named as DealMailListig and have Main Activity .I am trying to add a navigation view in my Fragment not in Main Activity with drawer toggle Icon .But do not get success .pls guide me for that . any help will be appreciate. here is my code of Deal MainListing :- [CODE] } | android | 0 | 2016-04-28T07:55:19.770Z | 2,016 | 4 | 7 | 3 | 399 | 1 | 288 | 50 | 1 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.