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,735,639 | Starting a background service for only once and stop once the task is completed | <p>I am using a auto-complete text view in my activity and i wrote a service to get data from server in the same activity after completing service i have enabled that auto-complete text view because when user start typing in that text view the data i got from server start gets filtering, every thing up to here is worki... | I am using a auto-complete text view in my activity and i wrote a service to get data from server in the same activity after completing service i have enabled that auto-complete text view because when user start typing in that text view the data i got from server start gets filtering, every thing up to here is working ... | android|service|android-asynctask|android-service|autocompletetextview | 0 | 2016-04-20T06:36:05.043Z | 2,016 | 4 | 6 | 2 | 1,193 | 1 | 814 | 79 | 5 | 3 | true | false | false | false | false | false | zero |
36,735,652 | Google authentication failure in android | <p>I am trying to run <a href="https://developers.google.com/identity/sign-in/android/start" rel="nofollow"> Try Sign-In for Android </a> sample. I have added <strong>google-services.json</strong> into <code>/app</code> and <strong>server_client_id</strong> in strings.xml. But still I am getting the following error</p>... | I am trying to run Try Sign-In for Android sample. I have added google-services.json into /app and server_client_id in strings.xml. But still I am getting the following error [CODE] Can anyone tell me what is the actual problem? I have not changed anything on the code. I have configured the project-level and app-level ... | android|authentication|google-play-services | 2 | 2016-04-20T06:36:35.170Z | 2,016 | 4 | 6 | 2 | 663 | 1 | 382 | 40 | 3 | 2 | true | false | false | false | false | false | low |
36,735,706 | Trying to upload image using AndroidAsyncHttp not working | <p>We are trying to upload an image along with other strings using <code>AsyncHttpClient</code> library.The following is what we have done till now:</p>
<pre><code>AsyncHttpClient client = new AsyncHttpClient();
RequestParams params = new RequestParams();
params.put("use... | We are trying to upload an image along with other strings using AsyncHttpClient library.The following is what we have done till now: [CODE] The img_path string is the location of the image on the device.The JSON response is returned in such a manner indicating that the image was not found.But we tried the same Web Serv... | java|android | 0 | 2016-04-20T06:39:01.910Z | 2,016 | 4 | 6 | 2 | 50 | 0 | 432 | 57 | 2 | 1 | true | true | false | false | false | false | zero |
36,735,873 | Google Map Doesn't appear on the screen | <p>Google Map doesn't appear on my android device. I did everything right. I have created certificate fingerprint from command prompt.
Then I got Map API Key from my Google console and I gave all the permission inside in the Manifest.XML including API Key put with in the activity</p>
<p>I checked everything right but... | Google Map doesn't appear on my android device. I did everything right. I have created certificate fingerprint from command prompt. Then I got Map API Key from my Google console and I gave all the permission inside in the Manifest.XML including API Key put with in the activity I checked everything right but, why map do... | android|android-layout|android-fragments|android-studio | -3 | 2016-04-20T06:47:58.370Z | 2,016 | 4 | 6 | 2 | 893 | 1 | 407 | 39 | 4 | 3 | true | false | false | false | false | true | negative |
36,735,913 | In My app i'm using login with Facebook SDK and its work on AVD but didn't work on real device? | <p>This is my code which is I'm trying now it's working on Avd but when i'm use the real android device debug option they didn't not enter the <strong>onActivityResult</strong> function help me?</p>
<pre><code>package com.example.nhp04.gqfood;
import com.facebook.AccessToken;
import com.facebook.AccessTokenTracker;
im... | This is my code which is I'm trying now it's working on Avd but when i'm use the real android device debug option they didn't not enter the onActivityResult function help me? [CODE] this function for checking login [CODE] this on Resume and on Stop methods [CODE] And this is my onActivityResult function when i debug th... | java|android|facebook|facebook-login | 2 | 2016-04-20T06:50:24.367Z | 2,016 | 4 | 6 | 2 | 53 | 2 | 400 | 95 | 4 | 4 | true | false | false | false | false | false | low |
36,735,930 | how to play video from any kind of url in video view android | <p>We have some set of video url and are showing from link preview. So that in order to see video we have done like this,</p>
<pre><code> setContentView(R.layout.videoview_main);
videoview = (VideoView) findViewById(R.id.VideoView);
pDialog = new ProgressDialog(VideoViewActivity.this);
pDialog.setTitle(... | We have some set of video url and are showing from link preview. So that in order to see video we have done like this, [CODE] if url ends with .mp4 it works, if not it wont work. Also if i put youtube url it wont support. Therefore is there any api to play in video view of android widget in listview itself. | android|android-videoview | 0 | 2016-04-20T06:50:59.503Z | 2,016 | 4 | 6 | 2 | 907 | 0 | 308 | 60 | 2 | 1 | true | true | false | false | false | false | zero |
36,736,001 | How to open URL inside the app by concatenation Strings? | <p>In my activity class:</p>
<p>final String input = slateURL + OtherHalfUrl;</p>
<p>//here I am combining my Strings to make it a complete Url</p>
<p>//for example slateURL = "<a href="http://example.com/id=" rel="nofollow">http://example.com/id=</a>" & OtherHalfUrl = 69</p>
<p>//So String input becomes like... | In my activity class: final String input = slateURL + OtherHalfUrl; //here I am combining my Strings to make it a complete Url //for example slateURL = " http://example.com/id= " & OtherHalfUrl = 69 //So String input becomes like this " http://example.com/id=69 " [CODE] what is the reason for this or am I Doing somethi... | android|android-intent|webview | 1 | 2016-04-20T06:54:40.753Z | 2,016 | 4 | 6 | 2 | 401 | 1 | 446 | 56 | 3 | 4 | true | false | false | false | false | false | low |
36,736,051 | Android inputtype troubles | <p>What i have to do:</p>
<p>I'm implementing some kind of fancy calculator for special measurements. For this, i have a ListView with sever edit texts.
Per row are tow EditTexts where the user shall be able to enter decimal values.</p>
<p>What my problem is:</p>
<p>I have set inputType both in code and xml, but i g... | What i have to do: I'm implementing some kind of fancy calculator for special measurements. For this, i have a ListView with sever edit texts. Per row are tow EditTexts where the user shall be able to enter decimal values. What my problem is: I have set inputType both in code and xml, but i get weird behavior out of th... | android|android-arrayadapter|textwatcher | 2 | 2016-04-20T06:57:08.750Z | 2,016 | 4 | 6 | 2 | 32 | 0 | 961 | 26 | 3 | 2 | true | true | false | false | false | false | low |
36,736,159 | relative layout gravity center not aligning correctly | <p>I'm trying to center the chilldren of my relative layout in the center of my screen but it's acting like it's aligned to the top of the parent and I can't figure out why.</p>
<p>my .XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res... | I'm trying to center the chilldren of my relative layout in the center of my screen but it's acting like it's aligned to the top of the parent and I can't figure out why. my .XML: [CODE] I've tried making the parent a relativelayout without success and it won't align to the bottom either. Initially I thought the layout... | android|android-layout|android-relativelayout|gravity | 1 | 2016-04-20T07:01:40.280Z | 2,016 | 4 | 7 | 2 | 1,922 | 4 | 882 | 53 | 4 | 1 | true | false | false | false | false | false | low |
36,736,172 | Android,PHP JSON Error Error parsing data org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject | <p>I am working on a piece of code where on the click of an item in the spinner,corresponding case should be called in the php and appropriate json should be returned. The code works fine when I hard code a value in the php file, but when i pass it from the spinner, the errors fires</p>
<p><strong>Below is the relevan... | I am working on a piece of code where on the click of an item in the spinner,corresponding case should be called in the php and appropriate json should be returned. The code works fine when I hard code a value in the php file, but when i pass it from the spinner, the errors fires Below is the relevant code snippet: [CO... | php|android|json | -1 | 2016-04-20T07:02:08.980Z | 2,016 | 4 | 7 | 2 | 142 | 2 | 512 | 134 | 3 | 3 | true | false | false | false | false | true | negative |
36,736,186 | Limiting ListView with AsyncTask Using ArrayAdapter | <p>I am developing app just like YOUTUBE. I am getting data from the server and showing it in listview. Because data is too big so i want to restrict list view to 5 items and then when I scroll down to the bottom of listview it should add 5 more item.</p>
<p>I am calling ASyncTask from fragment</p>
<pre><code>public ... | I am developing app just like YOUTUBE. I am getting data from the server and showing it in listview. Because data is too big so i want to restrict list view to 5 items and then when I scroll down to the bottom of listview it should add 5 more item. I am calling ASyncTask from fragment [CODE] Now I have separate JsonAsy... | android|listview|android-asynctask|android-arrayadapter | 0 | 2016-04-20T07:02:35.263Z | 2,016 | 4 | 7 | 2 | 63 | 0 | 699 | 51 | 4 | 3 | true | true | false | false | false | false | zero |
36,736,244 | Android: Unable to set getContext() in non-static method - requires API Level 23 | <p>Below, is some source code which is being called from a non-static method. I'm getting the error </p>
<blockquote>
<p>"Call requires API level 23 (current min is 15);
android.app.Fragment#getContext"</p>
</blockquote>
<pre><code>android.content.Context context = (Context) getContext();
</code></pre>
<p>How c... | Below, is some source code which is being called from a non-static method. I'm getting the error "Call requires API level 23 (current min is 15); android.app.Fragment#getContext" [CODE] How can I get the context object? Under the object explorer > Gradle Scripts > build.gradle, I see this. Looks like version 23 to me. ... | android-studio|android-api-levels | 2 | 2016-04-20T07:05:35.340Z | 2,016 | 4 | 7 | 2 | 5,229 | 3 | 516 | 80 | 2 | 2 | true | false | true | false | false | false | low |
36,736,268 | GPS working on all devices except for Lollipop | <p>long time ago I programmed an Android application which needs to know the device's location. For the purpose of abstracting the access to the location of the device I programmed a class which manages all location related things, stores current device's location, and calls the main activity when GPS or Internet statu... | long time ago I programmed an Android application which needs to know the device's location. For the purpose of abstracting the access to the location of the device I programmed a class which manages all location related things, stores current device's location, and calls the main activity when GPS or Internet status c... | java|android|android-location|android-5.1.1-lollipop|android-gps | 1 | 2016-04-20T07:06:47.537Z | 2,016 | 4 | 7 | 2 | 516 | 1 | 1,206 | 46 | 5 | 1 | true | false | false | false | false | false | low |
36,736,336 | Cant change size of TextView | <p>Font size is changed but the other view doesn't move. I cant add In this layout any elements. I can only modify existing view, for example i can change the color or text but <code>viewHolder.layout.addView(textView)</code> doesn't do anything . And why <code>view</code> size doesn't change?</p>
<p><a href="https://... | Font size is changed but the other view doesn't move. I cant add In this layout any elements. I can only modify existing view, for example i can change the color or text but viewHolder.layout.addView(textView) doesn't do anything . And why view size doesn't change? [CODE] xml [CODE] | android|view|textview | 0 | 2016-04-20T07:10:16.883Z | 2,016 | 4 | 7 | 2 | 1,398 | 1 | 283 | 28 | 3 | 2 | true | false | false | false | false | false | zero |
36,736,418 | SQLiteConstraintException: UNIQUE constraint failed | <p>I looked at other topics, but can't find my error in the code. This is my code for creating the DB</p>
<pre><code>public class DBHelper extends SQLiteOpenHelper {
//data base name
private static final String DATABASE_NAME = "roomatesDB";
//data base version
private static final int DATABASE_VERSIO... | I looked at other topics, but can't find my error in the code. This is my code for creating the DB [CODE] and for checking im trying yo execute these function on the activity [CODE] the application crashes before the activity is loaded with the error in the topic this is the logcat: [CODE] | android|database|sqlite | 4 | 2016-04-20T07:15:12.263Z | 2,016 | 4 | 7 | 2 | 19,906 | 2 | 290 | 51 | 3 | 3 | true | false | true | true | false | false | low |
36,736,481 | Unable to display and show AlertDialog in BroadcastReceiver in android | <pre><code>public class MySingleton {
private static MySingleton instance;
AlertDialog.Builder builder;
boolean alertDisplayed;
public static MySingleton getInstance() {
if (instance == null) {
instance = new MySingleton();
}
return instance;
}
private MySin... | [CODE] i have Make class Singlton where i have write code to show and hide method of Alert box and also i have received Event but i am unable to call Singsong class to show and hide Alert please help me how to get this . | java|android|android-alertdialog|android-broadcastreceiver | 0 | 2016-04-20T07:18:11.750Z | 2,016 | 4 | 7 | 2 | 181 | 0 | 220 | 70 | 4 | 1 | true | true | false | false | false | false | zero |
36,736,544 | Can't initialize static member in Singleton class in Java - Android | <p>I've Singleton <code>SharedPreferences</code> helper class name <code>SyncPrefs</code>.</p>
<pre><code>public class SyncPrefs {
public static final String TAG = SyncPrefs.class.getSimpleName();
private static final String HrEmployeeSyncFinished = "hrEmployeeSyncFinished";
private SharedPreferences mP... | I've Singleton SharedPreferences helper class name SyncPrefs . [CODE] The above code should run fine. but, somehow I can't initialize the static member sSyncPrefs . I've coonfirmed that sSyncPrefs is getting initialized. but, when I called getInstance() it always returns null . Here's some Logs [CODE] I don't know why ... | java|android|singleton | 0 | 2016-04-20T07:20:14.967Z | 2,016 | 4 | 7 | 2 | 166 | 3 | 414 | 67 | 3 | 2 | true | false | false | false | false | false | zero |
36,736,745 | Why ActionBar gone after data load | <p>i got problem with my action bar,
so i have activity with customlistview on there, when im open thoose activity screen loading appear and i can see my actionbar, but when data load(from json) actionbar is gone and onlycustome listview i can see, please someone help me about this trouble</p>
<p><a href="http://i.sta... | i got problem with my action bar, so i have activity with customlistview on there, when im open thoose activity screen loading appear and i can see my actionbar, but when data load(from json) actionbar is gone and onlycustome listview i can see, please someone help me about this trouble ActionBar show Action Bar Gone h... | android|xml | 2 | 2016-04-20T07:29:21.430Z | 2,016 | 4 | 7 | 2 | 177 | 1 | 483 | 34 | 2 | 7 | true | false | false | false | false | false | low |
36,736,854 | Retrofit2 How do i put the / at the end of the dynamic baseUrl? | <p>I have sent and retrieved a url String from a json response using Parcelable in a fragment like so</p>
<p>Received String value</p>
<pre><code>String profile_url = student.getProfile();
</code></pre>
<p>I want to use this string value as the basUrl to make another request using Retrofit like so</p>
<pre><code>Re... | I have sent and retrieved a url String from a json response using Parcelable in a fragment like so Received String value [CODE] I want to use this string value as the basUrl to make another request using Retrofit like so [CODE] But getting the following error [CODE] How do i put the / at the end of the baseUrl? Putting... | android|retrofit2 | 0 | 2016-04-20T07:34:29.900Z | 2,016 | 4 | 7 | 2 | 5,138 | 2 | 557 | 63 | 2 | 4 | true | false | true | false | false | false | zero |
36,736,886 | Read ITSO smart card information using NFC connection in Android | <p>I am developing an application where i have to read information from ITSO smart card. And it supports below three technologies for filter ACTION_TECH_DISCOVERED.
<code>android.nfc.tech.IsoDep, android.nfc.tech.NfcA
android.nfc.tech.NdefFormatable</code>
Now when I using below code </p>
<pre><code>byte[] apduCmd = {... | I am developing an application where i have to read information from ITSO smart card. And it supports below three technologies for filter ACTION_TECH_DISCOVERED. android.nfc.tech.IsoDep, android.nfc.tech.NfcA android.nfc.tech.NdefFormatable Now when I using below code [CODE] Above code gives me success bytes i.e. 9000 ... | android|nfc | 0 | 2016-04-20T07:35:33.680Z | 2,016 | 4 | 7 | 2 | 412 | 0 | 1,037 | 64 | 2 | 3 | true | true | false | false | false | false | zero |
36,736,902 | Android custom keyboard - Class not found (XML) | <p>What i want to do:</p>
<p>Create a custom keyboard, since default keyboards are not sufficient.</p>
<p>Keys needed: <code>0-9, '-', ',', 'e', 'del'</code> and one empty one where i can put the logo. </p>
<p>I already achieved this in iOS with inputAccessoryView, but after some research i believe there is nothing... | What i want to do: Create a custom keyboard, since default keyboards are not sufficient. Keys needed: 0-9, '-', ',', 'e', 'del' and one empty one where i can put the logo. I already achieved this in iOS with inputAccessoryView, but after some research i believe there is nothing similar in android. So i decided to go th... | android|xml|keyboard | 1 | 2016-04-20T07:36:12.263Z | 2,016 | 4 | 7 | 2 | 457 | 1 | 927 | 47 | 3 | 0 | false | false | false | false | false | false | low |
36,736,930 | Show toast/notification in any user profile from a service | <p>I'm learning about Android app development for multi-profile scenarios and created a simple service that displays a toast message every few seconds. The service calls <code>startForeground</code>.</p>
<p>As expected, the toast messages are displayed and a notification (required by <code>startForeground</code>) is s... | I'm learning about Android app development for multi-profile scenarios and created a simple service that displays a toast message every few seconds. The service calls startForeground . As expected, the toast messages are displayed and a notification (required by startForeground ) is showing in the notification bar. Upd... | android|android-service|android-notifications|toast|android-toast | 1 | 2016-04-20T07:37:38.007Z | 2,016 | 4 | 7 | 2 | 866 | 1 | 1,225 | 58 | 5 | 1 | true | false | false | false | false | false | low |
36,736,977 | How to Hide Footer when List view is Empty in android? | <p>I have a List View in which items are loaded from server and have a footer in <strong>listview</strong>,problem is that when there is no item i.e. list view is Empty footer is visible to user .what I want If there is no item in <strong>listview</strong> then footer is not visible to user .How can I do that kindly he... | I have a List View in which items are loaded from server and have a footer in listview ,problem is that when there is no item i.e. list view is Empty footer is visible to user .what I want If there is no item in listview then footer is not visible to user .How can I do that kindly help me . I will be very appreciate. h... | android | 1 | 2016-04-20T07:40:02.763Z | 2,016 | 4 | 7 | 2 | 802 | 5 | 343 | 54 | 1 | 1 | true | false | false | false | false | false | low |
36,737,047 | To json from json crashes immediately | <p>The following snippet crashes with <code>Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING</code></p>
<pre><code>GsonBuilder gsonBuilder = new GsonBuilder();
Gson gson = gsonBuilder.create();
String jsonObjString = gson.toJson(customClassInsta... | The following snippet crashes with Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING [CODE] Why? When I print the jsonObjString it seems fine. And the encoding/decoding seems correct. What is the problem? Update: [CODE] | java|json|gson|android | 1 | 2016-04-20T07:43:40.163Z | 2,016 | 4 | 7 | 2 | 386 | 1 | 287 | 37 | 4 | 2 | true | false | false | false | false | false | low |
36,737,073 | How to fix warning 'can't find referenced class' in Android Eclipse ProGuard Rule? | <p>I am using Eclipse. In my Android code, I have used ProGuard. But while exporting the APK, I encountered the following warnings:</p>
<pre class="lang-none prettyprint-override"><code>Proguard returned with error code 1. See console
Warning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal... | I am using Eclipse. In my Android code, I have used ProGuard. But while exporting the APK, I encountered the following warnings: [CODE] What's wrong? | android|android-proguard | 5 | 2016-04-20T07:45:03.420Z | 2,016 | 4 | 7 | 2 | 6,475 | 2 | 149 | 82 | 2 | 1 | true | false | true | false | false | false | low |
36,737,210 | Return count of completed and pending tasks | <p>I am saving tasks in SQlite database. These tasks has a status.</p>
<p>Task table has a status column where 0 is for pending tasks and 1 is for completed tasks.</p>
<p>So for this I have created a query to get completed and pending tasks with respect to the status of task. </p>
<p>Issue is I am not getting proper... | I am saving tasks in SQlite database. These tasks has a status. Task table has a status column where 0 is for pending tasks and 1 is for completed tasks. So for this I have created a query to get completed and pending tasks with respect to the status of task. Issue is I am not getting proper count of tasks. If I have o... | java|android|database|sqlite | 0 | 2016-04-20T07:50:49.590Z | 2,016 | 4 | 7 | 2 | 268 | 2 | 729 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
36,737,220 | Android Google Login sign in error , android build system | <p>I have Google login feature in our application . And we are building apk from build system use "mm" or "make" command , I have included required necessary jar's for google login in Android.mk.</p>
<p>Now my problem is I am unable to login using Google if I require oauth token error returned is <strong>statusCode=u... | I have Google login feature in our application . And we are building apk from build system use "mm" or "make" command , I have included required necessary jar's for google login in Android.mk. Now my problem is I am unable to login using Google if I require oauth token error returned is statusCode=unknown status code: ... | android|makefile|google-play-services|google-signin | 0 | 2016-04-20T07:51:07.110Z | 2,016 | 4 | 7 | 2 | 278 | 3 | 811 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
36,737,284 | Can I make com.daimajia.slider.library.SliderLayout clickable in fragment | <p>I want to make daimajia slidetlayout clickable. I set OnClickListener on SliderLayout but it not work. I also set clickable true in xml but still is not work.</p>
<p>here my code:-</p>
<pre><code><RelativeLayout
android:id="@+id/relative_slider"
android:layout_width="wrap_content"
android:layout_hei... | I want to make daimajia slidetlayout clickable. I set OnClickListener on SliderLayout but it not work. I also set clickable true in xml but still is not work. here my code:- [CODE] My fragment:- [CODE] | android|onclicklistener | 0 | 2016-04-20T07:54:10.627Z | 2,016 | 4 | 7 | 2 | 2,210 | 2 | 201 | 73 | 2 | 2 | true | false | false | false | false | false | zero |
36,737,315 | Android Studio nagging for SDK in the wrong location | <p>When trying to run Clean I get the following error:</p>
<blockquote>
<p>09:42:05: Executing external tasks '<strong>clean --debug --stacktrace</strong>'...</p>
<p>FAILURE: Build failed with an exception.</p>
<ul>
<li><p>What went wrong: A problem occurred configuring project ':app'.</p>
<blockquo... | When trying to run Clean I get the following error: 09:42:05: Executing external tasks ' clean --debug --stacktrace '... FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'. The SDK directory 'C:\iSMP\ismp-starter-kit 1.6\PayEx_Android_Sample_App\android-studio-app\Us... | java|android|android-studio|sdk | 1 | 2016-04-20T07:55:10.313Z | 2,016 | 4 | 7 | 2 | 131 | 0 | 1,260 | 52 | 4 | 0 | false | true | false | false | false | false | low |
36,737,441 | proper way of creating method in your custom listview adapter | <p>I created a simple android application with a <code>ListView</code> in it. I have my custom list adapter below:</p>
<pre><code>package com.example.android.efaas;
import java.util.List;
import com.example.android.R;
import com.example.android.efaas.bean.ListItem;
import android.app.Activity;
import android.conten... | I created a simple android application with a ListView in it. I have my custom list adapter below: [CODE] I have a public method getListItem , I tried to call it during ListView onClick but somehow I cant seem to make it work. Here's the image of the problem: How do I resolve this? | java|android | 1 | 2016-04-20T08:00:48.977Z | 2,016 | 4 | 8 | 2 | 50 | 2 | 282 | 61 | 2 | 1 | true | false | false | false | false | false | low |
36,737,484 | Listview Duplicate entry with SwipeRefreshLayout | <p>I am getting duplicate entry when i use swipe refreshlayout with json I add screenshot after refresh swipe refresh. </p>
<p>When i use <strong>userArray.clear();</strong> so it works perfectly but listview is blink for some time i think there is batter solution for that help much appreciate Thanks </p>
<p>see thi... | I am getting duplicate entry when i use swipe refreshlayout with json I add screenshot after refresh swipe refresh. When i use userArray.clear(); so it works perfectly but listview is blink for some time i think there is batter solution for that help much appreciate Thanks see this link i wanna look like this without b... | android|listview|swiperefreshlayout | 0 | 2016-04-20T08:03:39.633Z | 2,016 | 4 | 8 | 2 | 1,204 | 4 | 359 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
36,737,813 | gmaps-api-issues after updateing to v23 of 'com.android.support:design' and 'com.android.support:appcompat-v7' | <p>My app worked fine for three months but when I moved to </p>
<pre><code>'com.android.support:design:23.1.1'
'com.android.support:appcompat-v7:23.0.0'
</code></pre>
<p>and added</p>
<pre><code>apply plugin:'com.google.gms.google-services'
</code></pre>
<p>I started getting crashed with stacktrace of unknown sourc... | My app worked fine for three months but when I moved to [CODE] and added [CODE] I started getting crashed with stacktrace of unknown source: [CODE] and [CODE] They don't seem to be connected in sense that one is about DefaultClusterRenderer and another about streetview but they started happening excatly at the same tim... | android | 3 | 2016-04-20T08:19:01.557Z | 2,016 | 4 | 8 | 2 | 298 | 0 | 505 | 110 | 1 | 4 | true | true | false | false | false | false | low |
36,737,814 | binding service from another app | <p>In app, that provide service i have two AIDL files:</p>
<pre><code>interface ICountTest {
oneway void count(in INotifierTest test);
}
interface INotifierTest {
oneway void notify(int count);
}
</code></pre>
<p>Basically i want to count till <code>Integer.MAX_VALUE</code> in <code>for</code> loop and then g... | In app, that provide service i have two AIDL files: [CODE] Basically i want to count till Integer.MAX_VALUE in for loop and then give this value to notifier, so he could show it visually in other app For this i have a service xml: [CODE] ( I've added intent filter to try start it from different approach ) java: [CODE] ... | android|android-service|aidl|android-binder | 0 | 2016-04-20T08:19:02.293Z | 2,016 | 4 | 8 | 2 | 2,550 | 0 | 1,239 | 32 | 4 | 6 | true | true | false | false | false | false | zero |
36,737,850 | How to refresh registration token in GCM that expired after a while? | <p>this is my first question in here, sorry in advance if something is not ok in my question!</p>
<p>I'm currently using <code>Xamarin</code> in <code>Visual Studio 2013</code> on a MacBook, I created a PCL project and I created all the things necessary to make the push notifications work for <code>iOS</code> and <cod... | this is my first question in here, sorry in advance if something is not ok in my question! I'm currently using Xamarin in Visual Studio 2013 on a MacBook, I created a PCL project and I created all the things necessary to make the push notifications work for iOS and Android . Using a simulator and also a real device I c... | c#|android|xamarin|google-cloud-messaging | 2 | 2016-04-20T08:21:04.723Z | 2,016 | 4 | 8 | 2 | 1,544 | 2 | 1,732 | 68 | 4 | 4 | true | false | false | false | false | false | low |
36,737,898 | java.lang.String cannot be converted to JSONObject | <p>i ahave problem in retrieving specific data from server this is my code any one have any idea`</p>
<pre><code>enter code herepublic String URL_ITEMS = "http://getdoctor.comlu.com/aa.php?name=Naveed";
private static final String TAG_FIXTURE = "checker";
private static final String TAG_MATCHID = "dphone";
private sta... | i ahave problem in retrieving specific data from server this is my code any one have any idea` [CODE] this is Josn code `enter code here private class GetFixture extends AsyncTask { [CODE] and this is my logcat any body have any idea why i am getting this error [CODE] | android|json | 0 | 2016-04-20T08:23:08.327Z | 2,016 | 4 | 8 | 2 | 102 | 2 | 268 | 50 | 2 | 3 | true | false | false | false | false | false | zero |
36,737,949 | Encode-Upload and Decode-Download Bitmap using Base64 in android | <p>I build an android application using "Android Studio" that upload images after compress and encode it using base64 and save it at server in string format, then download it (PHP send images strings using JSON). after decoding the image some image is showing normally but other not (the most images doesn't appear).</p>... | I build an android application using "Android Studio" that upload images after compress and encode it using base64 and save it at server in string format, then download it (PHP send images strings using JSON). after decoding the image some image is showing normally but other not (the most images doesn't appear). I sear... | php|android|bitmap | 0 | 2016-04-20T08:25:35.940Z | 2,016 | 4 | 8 | 2 | 933 | 0 | 716 | 64 | 3 | 4 | true | true | false | false | false | false | zero |
36,738,096 | How to access system permissions REMOVE_TASKS? | <p>I'm designing an application for removing recents tasks. Because of the need to access system permissions like <code>REMOVE_TASKS</code></p>
<p>and i got this in my <strong>log</strong></p>
<blockquote>
<p><strong>Caused by: java.lang.SecurityException: Permission Denial: removeTask() from pid=12579, uid=10066 r... | I'm designing an application for removing recents tasks. Because of the need to access system permissions like REMOVE_TASKS and i got this in my log Caused by: java.lang.SecurityException: Permission Denial: removeTask() from pid=12579, uid=10066 requires android.permission.REMOVE_TASKS I am using this code: [CODE] | android|security|exception|permissions | 0 | 2016-04-20T08:32:12.570Z | 2,016 | 4 | 8 | 2 | 66 | 0 | 316 | 46 | 4 | 1 | true | true | false | false | false | false | zero |
36,738,114 | Android - Enable automatic sync when sync adapter is setup | <p>I am writing an application which uses a sync adapter to synchronize data.</p>
<p>I've read up on the documentation and I'm pretty sure I understand how it all works. I've got most of my sync adapter working by following this <a href="http://blog.udinic.com/2013/07/24/write-your-own-android-sync-adapter/" rel="nore... | I am writing an application which uses a sync adapter to synchronize data. I've read up on the documentation and I'm pretty sure I understand how it all works. I've got most of my sync adapter working by following this great guide written by Udi Cohen. However I do have one issue which I can't seem to solve, and thats ... | java|android|android-syncadapter | 7 | 2016-04-20T08:32:52.103Z | 2,016 | 4 | 8 | 2 | 4,755 | 2 | 1,406 | 58 | 3 | 3 | true | false | true | false | false | false | medium |
36,738,143 | Loading video and image from local storage into Google ChromeCast android | <p>How to set local video URI/Path/File to MediaInfo.Builder() of chromecast ? Also, anyone could please help me with a code snippet on how to load image and video locally from android storage and cast it to the google chrome cast ?
Read other questions too but over there it has been mentioned to create a local server... | How to set local video URI/Path/File to MediaInfo.Builder() of chromecast ? Also, anyone could please help me with a code snippet on how to load image and video locally from android storage and cast it to the google chrome cast ? Read other questions too but over there it has been mentioned to create a local server on ... | android|chromecast | 3 | 2016-04-20T08:34:07.713Z | 2,016 | 4 | 8 | 2 | 1,610 | 2 | 747 | 73 | 2 | 1 | true | false | false | false | false | false | low |
36,738,167 | Why Retrofit can't resolve No connection - Check internet connection on Android? | <p>Hello guys I have one specific problem. I'm using retrofit library for all of my network calls. And I have one method to send points to another user and if any error occurs, the server will return me code 400 and string alongside it that I will have to show to user. This thing is working I created it like this ( Net... | Hello guys I have one specific problem. I'm using retrofit library for all of my network calls. And I have one method to send points to another user and if any error occurs, the server will return me code 400 and string alongside it that I will have to show to user. This thing is working I created it like this ( Networ... | java|android|android-studio|networking|retrofit | 1 | 2016-04-20T08:35:03.833Z | 2,016 | 4 | 8 | 2 | 1,109 | 1 | 1,047 | 80 | 5 | 1 | true | false | false | false | false | false | low |
36,738,171 | java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean | <p>I am trying to get and set a boolean through Sharedpreferences. The following code perfectly works on Marshmallow but not on Lolipop (5.0.1) - I get an exception: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean when I call getintroStatus()</p>
<p>Any help?</p>
<pre><code>public v... | I am trying to get and set a boolean through Sharedpreferences. The following code perfectly works on Marshmallow but not on Lolipop (5.0.1) - I get an exception: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean when I call getintroStatus() Any help? [CODE] Logcat Error: [CODE] | android|android-5.0-lollipop|classcastexception|android-6.0-marshmallow | 2 | 2016-04-20T08:35:09.140Z | 2,016 | 4 | 8 | 2 | 2,892 | 2 | 312 | 82 | 4 | 2 | true | false | true | false | false | false | low |
36,738,191 | connecting to the loop back (10.0.2.2) on an android / xamarin / VS2015 emulator setup | <p>this old story again. </p>
<p>I cannot get my emulator to speak with my local windows development machine. I know that I need to use 10.0.2.2 as the IP to connect to 127.0.0.1 on my development machine. I have had the thing working one week ago but since then, several reboot and some tinkering later it will not con... | this old story again. I cannot get my emulator to speak with my local windows development machine. I know that I need to use 10.0.2.2 as the IP to connect to 127.0.0.1 on my development machine. I have had the thing working one week ago but since then, several reboot and some tinkering later it will not connect. As sim... | android|xamarin|proxy|visual-studio-2015|emulation | 1 | 2016-04-20T08:36:08.577Z | 2,016 | 4 | 8 | 2 | 1,170 | 1 | 1,021 | 86 | 5 | 0 | false | false | false | false | false | false | low |
36,738,400 | BASE FILTERING ENGINE service issues: ERR_NETWORK_ACCESS_DENIED and Can not start internal HTTP server | <p>I have 2 issues.</p>
<p>first: I was on my browser the <strong>ERR_NETWORK_ACCESS_DENIED</strong> error when i try to get to the <strong>R local help server (<a href="http://127.0.0.1:xxxx../doc/html/Search?results=1" rel="nofollow">http://127.0.0.1:xxxx../doc/html/Search?results=1</a>)</strong></p>
<p>the second ... | I have 2 issues. first: I was on my browser the ERR_NETWORK_ACCESS_DENIED error when i try to get to the R local help server ( http://127.0.0.1:xxxx../doc/html/Search?results=1 ) the second I had, when I launch android studio:; the message Internal HTTP server disabled: Can not start internal HTTP server. Git integrati... | r|android-studio|localserver | 3 | 2016-04-20T08:45:07.857Z | 2,016 | 4 | 8 | 2 | 1,604 | 2 | 1,092 | 102 | 3 | 0 | false | false | false | false | false | false | low |
36,738,458 | How to Implement OnClickListener to inner child dynamically created RecyclerView? | <p>I have a root recyclerview of items in a fragment. Onclick of each items in the recyclerview, it generates a dynamic recyclerview list using the same Adapter as the root recyclerview. I want to implement the OnClick listener to the child recyclerview and generate the next level of items with the second level recycl... | I have a root recyclerview of items in a fragment. Onclick of each items in the recyclerview, it generates a dynamic recyclerview list using the same Adapter as the root recyclerview. I want to implement the OnClick listener to the child recyclerview and generate the next level of items with the second level recyclervi... | android|onclicklistener|android-recyclerview | 0 | 2016-04-20T08:48:02.037Z | 2,016 | 4 | 8 | 2 | 539 | 1 | 524 | 81 | 3 | 2 | true | false | false | false | false | false | zero |
36,738,478 | Searching a custom list view in android? | <p>I am using a custom list view and I get unexpected results on search.I would ideally like to search on particular columns in the list for example I would like to search on a Invoice number or a contact number or by name of the person.
The following is my code.</p>
<pre><code> public void showJson(String json) {
... | I am using a custom list view and I get unexpected results on search.I would ideally like to search on particular columns in the list for example I would like to search on a Invoice number or a contact number or by name of the person. The following is my code. [CODE] } This is my adapter code. [CODE] How can I achieve ... | java|android|listview|filtering | 0 | 2016-04-20T08:49:20.173Z | 2,016 | 4 | 8 | 2 | 59 | 2 | 372 | 40 | 4 | 2 | true | false | false | false | false | false | zero |
36,738,499 | getTargetFragment return Null | <p>I have parent fragment and dialog fragment in my application. On click a button Parent Fragment opens Dialog Fragment. This is my ParentFragment Class.</p>
<pre><code>public class ParentFragment extends Fragment {
........
........
public class ButtonClickListener implements View.OnClickListener{
@Overr... | I have parent fragment and dialog fragment in my application. On click a button Parent Fragment opens Dialog Fragment. This is my ParentFragment Class. [CODE] This is MyDialogFragment Class [CODE] When getTargetFragment in MyDialogFragment Class always return null. | android|android-fragments | 1 | 2016-04-20T08:50:21.833Z | 2,016 | 4 | 8 | 2 | 3,571 | 3 | 265 | 29 | 2 | 2 | true | false | true | false | false | false | low |
36,738,546 | How to make a npm package out of a custom react-native native module for Android? | <p><strong>My general question:</strong> I built a native component for react-native Android. It has own dependencies and such. I followed instructions to edit the package.json, removed the dependencies of react-native and am now testing the package. Is there anything specific to follow in the case of a package for rea... | My general question: I built a native component for react-native Android. It has own dependencies and such. I followed instructions to edit the package.json, removed the dependencies of react-native and am now testing the package. Is there anything specific to follow in the case of a package for react-native? The error... | android|npm|react-native | 3 | 2016-04-20T08:52:43.690Z | 2,016 | 4 | 8 | 2 | 4,067 | 1 | 900 | 81 | 3 | 2 | true | false | true | false | false | false | low |
36,738,658 | 'Cannot resolve symbol' and 'No resource found that matches the given name' - not a duplicate | <p>I opened my project in Android Studio yesterday and got red everywhere with 'Cannot resolve symbol' as the description. It was completely random as no changes had been made to either the project or AS since the last time I opened the project. I ended up updating Android Studio to 2.0 and trying a bunch of solutions ... | I opened my project in Android Studio yesterday and got red everywhere with 'Cannot resolve symbol' as the description. It was completely random as no changes had been made to either the project or AS since the last time I opened the project. I ended up updating Android Studio to 2.0 and trying a bunch of solutions I f... | android|android-studio|gradle|r.java-file | 4 | 2016-04-20T08:57:14.303Z | 2,016 | 4 | 8 | 2 | 2,040 | 3 | 2,574 | 93 | 4 | 0 | false | false | false | false | false | false | low |
36,738,714 | How to set a button outside listview | <p>In my activity I have a listview and a button. Each has separate purpose. </p>
<p>My listview shows an item details in another activity.</p>
<p>My button opens another activity.</p>
<p>Here listview does not have any problem. But my button does not work.</p>
<p>In my code I have used following sample for listvie... | In my activity I have a listview and a button. Each has separate purpose. My listview shows an item details in another activity. My button opens another activity. Here listview does not have any problem. But my button does not work. In my code I have used following sample for listview and button [CODE] Question is how ... | android | 3 | 2016-04-20T08:59:36.257Z | 2,016 | 4 | 8 | 2 | 683 | 3 | 383 | 36 | 1 | 1 | true | false | false | false | false | false | low |
36,738,768 | Stay Highlighted the Selected item in ExpandableListView? | <p><a href="https://i.stack.imgur.com/UdLHp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UdLHp.jpg" alt="enter image description here"></a>I got an issue when I'm highlighting the selected item in ExpandableListView.</p>
<p>My code correctly highlights the selected item. But the problem is now sh... | I got an issue when I'm highlighting the selected item in ExpandableListView. My code correctly highlights the selected item. But the problem is now showing the custom layout text. IE, can't to see the TextView wich in list_group.xml and list_item.xml activity_main.xml [CODE] my list_selector is jsk.xml [CODE] list_gro... | android|expandablelistview | 0 | 2016-04-20T09:01:37.770Z | 2,016 | 4 | 9 | 2 | 1,567 | 2 | 409 | 57 | 2 | 5 | true | false | false | false | false | false | zero |
36,738,829 | Set app permissions on Android 6.x (Marschmallow) in phonegap/cordova app | <p>Beginning with Android 6.x (Marshmallow), the app should doesn't ask for permission before installing but while running.</p>
<p>I'm developing an app with phonegap that uses a barcode plugin in. When I run this app on Android 6.x it neither asks the user for permission before installing nor during run time. Instead... | Beginning with Android 6.x (Marshmallow), the app should doesn't ask for permission before installing but while running. I'm developing an app with phonegap that uses a barcode plugin in. When I run this app on Android 6.x it neither asks the user for permission before installing nor during run time. Instead it just sh... | android|cordova|phonegap-plugins | 4 | 2016-04-20T09:04:16.617Z | 2,016 | 4 | 9 | 2 | 4,599 | 1 | 951 | 73 | 3 | 2 | true | false | true | false | false | false | low |
36,739,059 | Need assistance with Android || operator | <p>I want to say, 'Search for the user's name OR the user's number, but this doesn't work :</p>
<pre><code>if (wp.getName().toLowerCase(Locale.getDefault())
.contains(charText)) || (wp.getPhone().toLowerCase(Locale.getDefault())
.contains(charText))
</code></pre>
<p>Any ideas on how I could get this wo... | I want to say, 'Search for the user's name OR the user's number, but this doesn't work : [CODE] Any ideas on how I could get this working? Here's my full code : [CODE] | java|android | -3 | 2016-04-20T09:14:06.080Z | 2,016 | 4 | 9 | 2 | 45 | 1 | 167 | 40 | 2 | 2 | true | false | false | false | false | true | negative |
36,739,138 | Move an image based on phone movement (ROTATION_VECTOR) | <p>I'm very new to working with the sensors on an Android device. I have the following code (which I obtained from various tutorials).</p>
<pre><code> public void onSensorChanged(SensorEvent event) {
if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR)
{
float[] orientationVals = new float[3];
... | I'm very new to working with the sensors on an Android device. I have the following code (which I obtained from various tutorials). [CODE] Okay, so I've got these values. How do I use them to move an image (a marker of sorts) based on the movement of the phone. For example, if I move the phone to the right, the image s... | android|android-sensors|gyroscope | 2 | 2016-04-20T09:17:00.697Z | 2,016 | 4 | 9 | 2 | 646 | 0 | 812 | 55 | 3 | 1 | true | true | false | false | false | false | low |
36,739,213 | Map doesn't shown on android simulator when using react-native-maps | <p>I am using react-native-maps for android development. I followed the instruction from this link: <a href="https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md" rel="nofollow">https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md</a>. After launch the... | I am using react-native-maps for android development. I followed the instruction from this link: https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md . After launch the app, the UI doesn't show the map. Instead, it shows an empty page. Below is the code I used. The similar code works f... | android|google-maps|react-native | 0 | 2016-04-20T09:19:46.710Z | 2,016 | 4 | 9 | 2 | 1,460 | 2 | 389 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
36,739,298 | Android camera2 delay between the video to the sound | <p>I am trying to record video from <a href="https://github.com/googlesamples/android-Camera2Video" rel="nofollow">android camera2 sample</a></p>
<p>All works fine but when I play the video after recording (from the sd card), the video starts freezing and you can hear just the audio at the background and when the audi... | I am trying to record video from android camera2 sample All works fine but when I play the video after recording (from the sd card), the video starts freezing and you can hear just the audio at the background and when the audio stops, the video start playing without the audio and the time of the video jumps from second... | android|android-mediarecorder|camera2 | 2 | 2016-04-20T09:23:00.713Z | 2,016 | 4 | 9 | 2 | 1,029 | 1 | 540 | 52 | 3 | 2 | true | false | false | false | false | false | low |
36,739,358 | How to add default params by using Retrofit and OKHttp in every post | <p>I'm just learning Retrofit and OKHttp, now I have an issue.
Every request in my app is POST, just like this:</p>
<pre><code>@FormUrlEncoded
@POST("some url")
Observable<Result> getData(@Field("id") String id);
</code></pre>
<p>In every POST, there are two same params. So in a most simple way, I can add two m... | I'm just learning Retrofit and OKHttp, now I have an issue. Every request in my app is POST, just like this: [CODE] In every POST, there are two same params. So in a most simple way, I can add two more @Field in every method, for example, @Field("token"),@Field("account"). But I think there must be a smart way. Then I ... | android|retrofit2|okhttp | 2 | 2016-04-20T09:25:02.563Z | 2,016 | 4 | 9 | 2 | 1,935 | 2 | 546 | 68 | 3 | 3 | true | false | false | false | false | false | low |
36,739,379 | Why android notification text is not displayed? | <p>I have written following code for notification, I can able to see notification and title of the notification but text is not visible. i tried many times with static value but still not getting what's problem. Please help me, thanks in advance.</p>
<pre><code>private void messagenotification(String msg, String nexti... | I have written following code for notification, I can able to see notification and title of the notification but text is not visible. i tried many times with static value but still not getting what's problem. Please help me, thanks in advance. [CODE] | android | 3 | 2016-04-20T09:25:37.073Z | 2,016 | 4 | 9 | 2 | 2,183 | 1 | 250 | 47 | 1 | 1 | true | false | false | false | false | false | low |
36,739,394 | Hidden fragment still receiving user input | <p>One of the screen in an app I'm developing have multiple sub-screens implemented as fragments that are controlled by a bottom navigation bar.</p>
<p>This is my code for when the user wishes to switch fragments:</p>
<pre><code>protected final void switchTab(int index) {
if (curTabIndex == index) {
retur... | One of the screen in an app I'm developing have multiple sub-screens implemented as fragments that are controlled by a bottom navigation bar. This is my code for when the user wishes to switch fragments: [CODE] Using the snippet above, I'm able to switch between fragments smoothly. However, there's one big issue with t... | android|android-fragments | 0 | 2016-04-20T09:26:12.900Z | 2,016 | 4 | 9 | 2 | 122 | 1 | 1,059 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
36,739,431 | Why does Android allow me to access a resource in an Activity before it is seen on the screen or loaded properly? | <p>So I have a rather weird problem and I am not sure how to search for it, I have searched and found very little.</p>
<p>So what happens is I have a bunch of Activities and each of them have a next button which will take me to the next Activity, each of these next buttons sit in the exact same place in each Activity.... | So I have a rather weird problem and I am not sure how to search for it, I have searched and found very little. So what happens is I have a bunch of Activities and each of them have a next button which will take me to the next Activity, each of these next buttons sit in the exact same place in each Activity. So what ha... | android|android-activity | 0 | 2016-04-20T09:27:26.313Z | 2,016 | 4 | 9 | 2 | 46 | 2 | 1,532 | 113 | 2 | 0 | false | false | false | false | false | false | zero |
36,739,560 | BackDoor for Xamarin Forms(Android) | <p>I created app with Xamarin Forms(Android). I creaded xamarin ui test project( Xamarin.UiTest = 1.3.7). I need the use backdoor. It is my code:</p>
<pre><code>public class MainActivity : FormsApplicationActivity
{
....
[Java.Interop.Export("Test")]
public void Test() { }
}
</code></pre>
<p>it is call ... | I created app with Xamarin Forms(Android). I creaded xamarin ui test project( Xamarin.UiTest = 1.3.7). I need the use backdoor. It is my code: [CODE] it is call method in unit test [CODE] I get this exception: [CODE] For Xamarin Android project it code is work. How to use a backdoor method on xamarin ui test with xamar... | c#|xamarin|xamarin.android|xamarin.forms|xamarin-test-cloud | 2 | 2016-04-20T09:32:43.493Z | 2,016 | 4 | 9 | 2 | 2,102 | 1 | 367 | 35 | 5 | 3 | true | false | false | false | false | false | low |
36,739,577 | Detect whether internet connection is available and working on Android API 15+ | <p>I need to detect whether internet connection is available and working fine in android. I need this condition check to call before i start any of my WebView Activities.</p>
<p>So far I have managed to implement the isAvailable() feature found in this answer:
<a href="https://stackoverflow.com/a/6987498/5714598">Clas... | I need to detect whether internet connection is available and working fine in android. I need this condition check to call before i start any of my WebView Activities. So far I have managed to implement the isAvailable() feature found in this answer: Class which check for connectivity However, the above method fails in... | android|android-internet | 1 | 2016-04-20T09:33:16.823Z | 2,016 | 4 | 9 | 2 | 1,246 | 2 | 961 | 78 | 2 | 2 | true | false | false | false | false | false | low |
36,739,613 | How can I update ViewPager fragment data? | <p>Hello anyone i have working on a reading application and I have build up a view pager contain three fragment, <strong>bookFragment</strong>, <strong>chapterFragment</strong> and <strong>verseFragment</strong></p>
<p>I want to update the <strong>chapterFragment</strong> and <strong>verseFragment</strong> when user s... | Hello anyone i have working on a reading application and I have build up a view pager contain three fragment, bookFragment , chapterFragment and verseFragment I want to update the chapterFragment and verseFragment when user selected one book item, but the fragment UI still not exit, so I can't do refreshUI in OnPagerSe... | android|android-fragments | 0 | 2016-04-20T09:34:48.303Z | 2,016 | 4 | 9 | 2 | 72 | 2 | 442 | 41 | 2 | 2 | true | false | false | false | false | false | zero |
36,739,680 | Why ListView onClick does not work? | <p>Trying to implement a onlick functionality for the android listview but something seems to not working. I tried to find some solutions over the internet and I found that there were recommendation to change the focusable property of imageview and textview elements. Tried it and it did not work. Appreciate if you guys... | Trying to implement a onlick functionality for the android listview but something seems to not working. I tried to find some solutions over the internet and I found that there were recommendation to change the focusable property of imageview and textview elements. Tried it and it did not work. Appreciate if you guys ca... | android|listview|android-fragments|android-listfragment | 0 | 2016-04-20T09:37:10.607Z | 2,016 | 4 | 9 | 2 | 214 | 1 | 696 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
36,739,731 | Android DatePicker dialog not showing on Android 6 | <p>I have a DatePicker in my app that has always worked on both phones and tablets until Android 6. I have a Samsung Galaxy 7 Edge t test on and the dialog is not showing. </p>
<p>I have set the min and target sdk version to 11 and 21 respectively in the manifest.</p>
<p>I understand that i should be using DialogFrag... | I have a DatePicker in my app that has always worked on both phones and tablets until Android 6. I have a Samsung Galaxy 7 Edge t test on and the dialog is not showing. I have set the min and target sdk version to 11 and 21 respectively in the manifest. I understand that i should be using DialogFragment but is there a ... | android|dialog | 1 | 2016-04-20T09:38:51.970Z | 2,016 | 4 | 9 | 2 | 1,920 | 1 | 852 | 50 | 2 | 5 | true | false | false | false | false | false | low |
36,739,823 | Why I am getting null pointer exception even though there is value show when println? | <p>This is a function of class A where i pass my value to a class name confirm to its register function.</p>
<pre><code>private void registerOrder() {
confirm.register(id);
}
</code></pre>
<p>This is class confirm. In this class i have plan to post data inside the server. There is no mistakes in the url. I have p... | This is a function of class A where i pass my value to a class name confirm to its register function. [CODE] This is class confirm. In this class i have plan to post data inside the server. There is no mistakes in the url. I have println this code " System.out.println("wei" + getPostDataString(postDataParams));" and i ... | java|android | 4 | 2016-04-20T09:42:32.763Z | 2,016 | 4 | 9 | 2 | 161 | 2 | 431 | 85 | 2 | 2 | true | false | false | false | false | false | low |
36,739,868 | Camera Preview is stretched and skewed | <p>How to solve the streching of image in my camera preview?</p>
<p><strong>Camera Preview Class</strong></p>
<pre><code>public class CameraPreview extends SurfaceView implements SurfaceHolder.Callback {
private SurfaceHolder mHolder;
private Camera mCamera;
public class CameraPreview extends SurfaceView implement... | How to solve the streching of image in my camera preview? Camera Preview Class [CODE] | android|android-camera|surfaceview | 0 | 2016-04-20T09:44:17.253Z | 2,016 | 4 | 9 | 2 | 689 | 1 | 85 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
36,739,881 | How to take a screenshort of a view on android? | <p>I want to take a picture of a view in Activity and share this picture.
First I use this method : </p>
<pre><code>private Bitmap getShareViewShot() {
this.setDrawingCacheEnabled(true);
this.buildDrawingCache();
Bitmap bitmap = Bitmap.createBitmap(this.getDrawingCache(), 0, mSharePageRoot.getTop(), this.g... | I want to take a picture of a view in Activity and share this picture. First I use this method : [CODE] But if the view is in a ScrollView and the view has scrolled outside the screen, this method can't get a whole picture of this view. So I change this method to below : [CODE] But another question comes: this view has... | android|view|screenshot | 0 | 2016-04-20T09:44:52.250Z | 2,016 | 4 | 9 | 2 | 480 | 2 | 582 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
36,739,911 | Android MySQLite problems when compiling | <p>Im progressing with creating a simple database for a project at school, however the code itself shows no errors, but when i run the project in an emulator, it spits out an error.
I Think the problem is stemming from the AlertDialog, but im not sure whats wrong with the syntax
Here is a copy of my code..</p>
<pre><... | Im progressing with creating a simple database for a project at school, however the code itself shows no errors, but when i run the project in an emulator, it spits out an error. I Think the problem is stemming from the AlertDialog, but im not sure whats wrong with the syntax Here is a copy of my code.. [CODE] } Activi... | android|sqlite | -1 | 2016-04-20T09:45:59.820Z | 2,016 | 4 | 9 | 2 | 40 | 2 | 370 | 40 | 2 | 4 | true | false | false | false | false | true | negative |
36,740,067 | How do i handle a Repository with rx-java | <p>Hello,<br>
I'm wondering how to handle the deletion from a Repository with java-rx.<br>
Here is a quick overview of my Domain.</p>
<p>My Businessobject: </p>
<pre><code>public class MyObject{
public boolean isActive();
public boolean isSelected();
}
</code></pre>
<p>Only one Object can be active or selected ... | Hello, I'm wondering how to handle the deletion from a Repository with java-rx. Here is a quick overview of my Domain. My Businessobject: [CODE] Only one Object can be active or selected at a time. The Repository: [CODE] Now i want to delete Objectes under certain circumstances: [CODE] Here is the implementation of my ... | java|android|rx-java|reactive-programming | 0 | 2016-04-20T09:52:24.683Z | 2,016 | 4 | 9 | 2 | 203 | 0 | 686 | 41 | 4 | 4 | true | true | false | false | false | false | zero |
36,740,088 | Why do I need to implement FragmentCompat.OnRequestPermissionsResultCallback when using FragmentCompat.requestPermissions? | <p>I'm reading <a href="http://developer.android.com/reference/android/support/v13/app/FragmentCompat.html#requestPermissions(android.app.Fragment,%20java.lang.String[],%20int)" rel="nofollow">the documentation of FragmentCompat.requestPermissions</a>:</p>
<blockquote>
<p>Your fragment has to implement
<a href="ht... | I'm reading the documentation of FragmentCompat.requestPermissions : Your fragment has to implement FragmentCompat.OnRequestPermissionsResultCallback and the results of permission requests will be delivered to its onRequestPermissionsResult(int, String[], int[]) . I extend android.app.Fragment . android.app.Fragment do... | android|android-fragments|android-permissions | 0 | 2016-04-20T09:53:23.800Z | 2,016 | 4 | 9 | 2 | 1,776 | 1 | 886 | 122 | 3 | 1 | true | false | false | false | false | false | zero |
36,740,102 | Using one progressDialog in two or more android stringRequest Volley | <p>In my code I have to <code>stringRequest</code> Volley that works just fine, but now I want to use a <code>progressDialog</code>. I have create 1 method to put the <code>progressDialog</code> like this</p>
<pre class="lang-java prettyprint-override"><code>private void showProgress(String message) {
progressDial... | In my code I have to stringRequest Volley that works just fine, but now I want to use a progressDialog . I have create 1 method to put the progressDialog like this [CODE] and I have these 2 stringRequest like this: [CODE] and the other request: [CODE] I execute the 2 request through a method like this: [CODE] the progr... | android-volley|progressdialog | 1 | 2016-04-20T09:53:46.823Z | 2,016 | 4 | 9 | 2 | 1,609 | 1 | 527 | 68 | 2 | 4 | true | false | false | false | false | false | low |
36,740,132 | Html string not seen in webview | <p>my html string is = </p>
<pre><code><html><head></head><body><div style='display: inline-flex; background-color: rgb(105, 105, 105); width: 180px; text-align: center;'><div style= 'transform: rotate(11deg); font-weight: 400; height: 35px; text-align: center; font-size: 2em; font-fa... | my html string is = [CODE] This Html String is not load in webview. If any one have any solution please share ... my code is: [CODE] | android|webview | 2 | 2016-04-20T09:55:02.247Z | 2,016 | 4 | 9 | 2 | 56 | 1 | 132 | 31 | 2 | 2 | true | false | false | false | false | false | low |
36,740,254 | How to overwrite a file in sdcard in android? | <p>I need to read a file in the sd card in my android device and write the contents of this file into another file in the sd card which is already existing.</p>
<p>Here is my code to read a file anywhere in the sdcard.</p>
<pre><code>public String readFromFile(String fileName) {
String ret = "";
try {
... | I need to read a file in the sd card in my android device and write the contents of this file into another file in the sd card which is already existing. Here is my code to read a file anywhere in the sdcard. [CODE] Can some one please tell me how can I copy the contents of this file into another file on sdcard after r... | android | 4 | 2016-04-20T09:59:20.010Z | 2,016 | 4 | 9 | 2 | 12,833 | 1 | 478 | 45 | 1 | 2 | true | false | true | true | false | false | low |
36,740,256 | loadUrl twice in Android webview | <p>I am trying to load 2 URL's in a webview, one after the other, and grab their html. My code looks as following: </p>
<pre><code>final WebView webview = (WebView) findViewById(R.id.showInfo_webView);
webview.getSettings().setJavaScriptEnabled(true);
webview.addJavascriptInterface(new MyJavaScriptInterface(), "HTMLOU... | I am trying to load 2 URL's in a webview, one after the other, and grab their html. My code looks as following: [CODE] In showHTML I'd have a counter so I can distinguish between the first and the second call. However, showHTML gets called only once. Why is that? Do I need to recreate the webview entirely? I tried call... | android|webview | 0 | 2016-04-20T09:59:22.030Z | 2,016 | 4 | 9 | 2 | 1,401 | 2 | 479 | 32 | 2 | 1 | true | false | false | false | false | false | zero |
36,740,409 | ParseFaceBookUtil using android not giving user information | <p>I am using ParseFacebook SDK for my android application. I have used parse sdk code from there website, some of the code snippets are given below, it is successfully login with facebook, but i can't be able to extract my facebook information like: MyProfileImage, Username etc. </p>
<p>In Application Class:</p>
<pr... | I am using ParseFacebook SDK for my android application. I have used parse sdk code from there website, some of the code snippets are given below, it is successfully login with facebook, but i can't be able to extract my facebook information like: MyProfileImage, Username etc. In Application Class: [CODE] In my class w... | android|facebook|parse-platform | 2 | 2016-04-20T10:05:08.917Z | 2,016 | 4 | 10 | 2 | 204 | 1 | 460 | 59 | 3 | 2 | true | false | false | false | false | false | low |
36,740,430 | Cordination layout scrolling issue | <p>
Im trying to use the coordination layout in my app, Im using collapsing toolbar layout at the top and nested scrol view in the content. I also have an image in the toolbar.
</p>
<p>My problem is that in fast scrolling, users will need to scroll twice to go from bottom to the top, one for going to the top of the ... | Im trying to use the coordination layout in my app, Im using collapsing toolbar layout at the top and nested scrol view in the content. I also have an image in the toolbar. My problem is that in fast scrolling, users will need to scroll twice to go from bottom to the top, one for going to the top of the content, and an... | android|material-design|android-support-library | 0 | 2016-04-20T10:05:49.040Z | 2,016 | 4 | 10 | 2 | 115 | 0 | 472 | 34 | 3 | 1 | true | true | false | false | false | false | zero |
36,740,502 | How to proceed JSON empty object in Retrofit 2.0 response? | <p>Here is an example of json response. As you can see fields like: news, number_likes, number_comment, number_post, user, owner are always present. But fields like: place, place_mark, comment, album, photo are not always present. It depends on type of news.</p>
<pre><code>{
"result": true,
"news_list": [
{
"news": {
... | Here is an example of json response. As you can see fields like: news, number_likes, number_comment, number_post, user, owner are always present. But fields like: place, place_mark, comment, album, photo are not always present. It depends on type of news. [CODE] this is my model for this response: [CODE] This is my api... | android|json|gson|retrofit2 | 1 | 2016-04-20T10:08:48.467Z | 2,016 | 4 | 10 | 2 | 380 | 1 | 849 | 58 | 4 | 4 | true | false | false | false | false | false | low |
36,740,592 | Android OpenGL ES rotate 3D object with touch event | <p>This is an Android application. I want to rotate a sphere with touch event using Matrix in OpenGLES 2.0. However the angle is not right. It seems like the rotate is not stable. I want to rotate only x when I touch horizontally, and rotate only y when I touch vertically. But in fact, when I touch horizontally it rota... | This is an Android application. I want to rotate a sphere with touch event using Matrix in OpenGLES 2.0. However the angle is not right. It seems like the rotate is not stable. I want to rotate only x when I touch horizontally, and rotate only y when I touch vertically. But in fact, when I touch horizontally it rotate ... | android|opengl-es | 1 | 2016-04-20T10:11:50.637Z | 2,016 | 4 | 10 | 2 | 1,566 | 1 | 515 | 51 | 2 | 2 | true | false | false | false | false | false | low |
36,740,597 | Floating Action Button shows up in Arc style like Skype | <p>I am customising a Floating Action button which expands to show a menu, I have achieved the FAB which expands a menu but I want add a background colour to it, and also the background colour for the menu that is expanded.</p>
<pre><code> ImageView imageView = new ImageView(this);
imageView.setImageResource(R.dra... | I am customising a Floating Action button which expands to show a menu, I have achieved the FAB which expands a menu but I want add a background colour to it, and also the background colour for the menu that is expanded. [CODE] This is an example picture of what I want to implement Thank you. | java|android|android-studio|floating-action-button | 3 | 2016-04-20T10:11:58.603Z | 2,016 | 4 | 10 | 2 | 842 | 1 | 293 | 55 | 4 | 1 | true | false | false | false | false | false | low |
36,740,679 | Convert ArrayList<xyz> to ArrayList<Float> | <p>I am fairly new to <code>ArrayList</code> and I'm just trying to use different <code>ArrayList</code>. The <code>ArrayList<xyz></code> is of type float. I use this to store values in a database in Sqlite. Later, I try to move the stored values to an <code>Arraylist<float></code>. I know both are of diffe... | I am fairly new to ArrayList and I'm just trying to use different ArrayList . The ArrayList<xyz> is of type float. I use this to store values in a database in Sqlite. Later, I try to move the stored values to an Arraylist<float> . I know both are of different types but is there way to do conversion. Any kind of help is... | android|sqlite|arraylist | 0 | 2016-04-20T10:15:15.760Z | 2,016 | 4 | 10 | 2 | 111 | 2 | 367 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
36,740,758 | How to return value on GoogleApiClient onConnected()? | <p>I am using GoogleApiClient to get user location. I created a singleton class to get user location. Here is that class:</p>
<pre><code>public class LocationUtils {
private static LocationUtils locationUtils;
private GoogleApiClient googleApiClient;
public static LocationUtils getInstance() {
i... | I am using GoogleApiClient to get user location. I created a singleton class to get user location. Here is that class: [CODE] I want to get user location with LocationUtils.getInstance().getLocation(context) . When i call getLocation() method, it should connect to GoogleApiClient, return user location and disconnect to... | android|multithreading|google-maps|android-location|google-api-client | -1 | 2016-04-20T10:18:32.263Z | 2,016 | 4 | 10 | 2 | 1,390 | 1 | 846 | 53 | 5 | 4 | true | false | false | false | false | true | negative |
36,740,845 | java.lang.IllegalStateException:Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 | <p>Hi I am very new for android and in my app I am parsing Json obejct using Gson and I am displaying result in listView for this I used below code but I am getting exception like</p>
<pre><code>com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 co... | Hi I am very new for android and in my app I am parsing Json obejct using Gson and I am displaying result in listView for this I used below code but I am getting exception like [CODE] please help me some one json response:- [CODE] MainActivity:- [CODE] CustomListViewAdapter:- [CODE] Response:- [CODE] Header:- [CODE] Te... | android|gson | -1 | 2016-04-20T10:22:31.653Z | 2,016 | 4 | 10 | 2 | 1,213 | 2 | 340 | 92 | 2 | 7 | true | false | false | false | false | true | negative |
36,740,867 | How do I show dividers in a PreferenceFragment? | <p>I'm using <code>PreferenceFragmentCompat</code> from the v7 support library to display a few settings. My preferences.xml file is as follows - </p>
<pre><code><PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<EditTextPreference
android:defaultValue="@string/temp_ur... | I'm using PreferenceFragmentCompat from the v7 support library to display a few settings. My preferences.xml file is as follows - [CODE] Java code - [CODE] The theme I'm using for preferences is - [CODE] The four settings are just displayed one below the other, without any divider in between. How do I show a divider in... | android|android-support-library|android-preferences | 1 | 2016-04-20T10:23:12.693Z | 2,016 | 4 | 10 | 2 | 1,798 | 1 | 340 | 47 | 3 | 3 | true | false | false | false | false | false | low |
36,740,890 | this.class.getClassLoader().getSystemResources("strFullName") returns null Android | <p>I am working on speech based android app, I got stuck up at a point </p>
<pre><code>Enumeration<?> configs = Service.class.getClassLoader().getSystemResources("com/example/packagename/AudioFileReader.class");
</code></pre>
<p>Above line gives TwoEnumerationsInOne but </p>
<pre><code>if (configs != null) {
... | I am working on speech based android app, I got stuck up at a point [CODE] Above line gives TwoEnumerationsInOne but [CODE] the problem is configs.hasmoreElements() always gives false so not able to go inside while loop. AudioFileReader.java file is included in the package. Thanks in advance | java|android | 0 | 2016-04-20T10:24:34.997Z | 2,016 | 4 | 10 | 2 | 73 | 0 | 292 | 82 | 2 | 2 | true | true | false | false | false | false | zero |
36,740,923 | display html in textview with highlighted sentence/syntax | <p>Hi I am beginner in android. but I have written some sentence and C code which is formatted in HTML using some style like font-color. I tried to display in TextView, it works fine but font color displayed only in black color.
help me from this problem by writing an example. thank you in advanced.</p>
<blockquote>
... | Hi I am beginner in android. but I have written some sentence and C code which is formatted in HTML using some style like font-color. I tried to display in TextView, it works fine but font color displayed only in black color. help me from this problem by writing an example. thank you in advanced. code [CODE] I have cre... | android|html|fonts|colors|textview | -2 | 2016-04-20T10:25:49.597Z | 2,016 | 4 | 10 | 2 | 290 | 1 | 405 | 57 | 5 | 2 | true | false | false | false | false | true | negative |
36,741,036 | Android Selector Drawable with VectorDrawables srcCompat | <p>I'm facing a problem with the new backward compatibility with VectorDrawables.
In the Support Library 23.2 was a new feature for backward compatibility with Android VectorDrawables indroduced. </p>
<p>I have an ImageView which is a SelectorDrawable assigned to. This Drawable holds several VectorDrawables so I thoug... | I'm facing a problem with the new backward compatibility with VectorDrawables. In the Support Library 23.2 was a new feature for backward compatibility with Android VectorDrawables indroduced. I have an ImageView which is a SelectorDrawable assigned to. This Drawable holds several VectorDrawables so I thought I should ... | android|vector|android-support-library|android-appcompat|android-vectordrawable | 71 | 2016-04-20T10:29:45.417Z | 2,016 | 4 | 10 | 2 | 36,604 | 6 | 969 | 56 | 5 | 2 | true | false | true | true | true | false | high |
36,741,073 | How to request multiple data from database and insert into array in Android development | <p>I'm new to Android development and I'm basically developing my first app asides the HelloWorld examples and all. Now what I want to do is get data from a database (MySQL), I'm using PHP for server-side. The kind of data needed to be collected are blog entries where there are titles, post-images and excerpts. How do ... | I'm new to Android development and I'm basically developing my first app asides the HelloWorld examples and all. Now what I want to do is get data from a database (MySQL), I'm using PHP for server-side. The kind of data needed to be collected are blog entries where there are titles, post-images and excerpts. How do I g... | java|android | 0 | 2016-04-20T10:31:12.047Z | 2,016 | 4 | 10 | 2 | 36 | 2 | 895 | 87 | 2 | 1 | true | false | false | false | false | false | zero |
36,741,279 | ListView is not displaying anything but is displayed when search view is clicked | <p>I have an activity named FriendListActivity which contains 3 tabs namely CHAT ,GROUP and CONTACTS.FriendListActivity contains a viewpager which is being populated through Fragments using FragmentStatePagerAdapter .Now each fragment contains a list view which is being populated using BaseAdapter .</p>
<p>Following i... | I have an activity named FriendListActivity which contains 3 tabs namely CHAT ,GROUP and CONTACTS.FriendListActivity contains a viewpager which is being populated through Fragments using FragmentStatePagerAdapter .Now each fragment contains a list view which is being populated using BaseAdapter . Following is the code ... | android|android-viewpager|baseadapter|searchview | 0 | 2016-04-20T10:39:25.770Z | 2,016 | 4 | 10 | 2 | 58 | 0 | 769 | 80 | 4 | 2 | true | true | false | false | false | false | zero |
36,741,300 | protobuf in the android grpc sample app generating extra package heirarchy called "nano" | <p>I am trying to build a sample android app for grpc. </p>
<p><strong>The hello_world.proto file is as follows:</strong></p>
<pre><code>syntax = "proto3";
package helloworld;
option java_multiple_files = true;
option java_package = "io.github.caio.grpc";
option java_outer_classname = "HelloWorldProto";
// The gre... | I am trying to build a sample android app for grpc. The hello_world.proto file is as follows: [CODE] The gradle files are as follows. App level gradle: [CODE] Project level gradle: [CODE] With this .proto file, we should have got a package structure for the generated Java files as follows: io->grpc->examples->helloworl... | android|protocol-buffers|grpc | 1 | 2016-04-20T10:40:26.907Z | 2,016 | 4 | 10 | 2 | 1,524 | 1 | 736 | 88 | 3 | 3 | true | false | false | false | false | false | low |
36,741,334 | Add a security feature to http get request | <p>I am searching a security function like this:
The user can put his paypal address and an amount of money(which he gained in my app) in my application, and I will recieve it with an http request on my server. Now this is really insecure, anyone with the http requesturl can send me payout data for himself. So what I n... | I am searching a security function like this: The user can put his paypal address and an amount of money(which he gained in my app) in my application, and I will recieve it with an http request on my server. Now this is really insecure, anyone with the http requesturl can send me payout data for himself. So what I need... | java|php|android|security|encryption | -2 | 2016-04-20T10:42:17.690Z | 2,016 | 4 | 10 | 2 | 47 | 1 | 1,086 | 42 | 5 | 0 | false | false | false | false | false | true | negative |
36,741,345 | unable to post data to database with httpurlconnection even though there is data in the java side | <p>This is my php script. I have been trying to post data to mysql server using php script. The data is successfully added to the register function. There is no problem with my url connection as well. What seems to be the problem?</p>
<pre><code><?php
include ('classes/functions.php');
if(isset($_POST['product_... | This is my php script. I have been trying to post data to mysql server using php script. The data is successfully added to the register function. There is no problem with my url connection as well. What seems to be the problem? [CODE] This is my java script. [CODE] | java|php|android|mysql | -1 | 2016-04-20T10:43:01.907Z | 2,016 | 4 | 10 | 2 | 42 | 1 | 265 | 97 | 4 | 2 | true | false | false | false | false | true | negative |
36,741,419 | Search result only for a specific value in a custom list view in android? | <p>I am using a custom list view and I want to search on a particular value.Right now I think my code search's for anything and everything matching the text entered.I want to search only for the doc_no.
The following is my code.</p>
<pre><code> public void showJson(String json) {
final Context billsctx = get... | I am using a custom list view and I want to search on a particular value.Right now I think my code search's for anything and everything matching the text entered.I want to search only for the doc_no. The following is my code. [CODE] } This is my adapter code. [CODE] Any suggestion or help is appreciated.Thank You. | java|android|android-arrayadapter | 1 | 2016-04-20T10:46:42.610Z | 2,016 | 4 | 10 | 2 | 45 | 2 | 315 | 73 | 3 | 2 | true | false | false | false | false | false | low |
36,741,616 | Database crash after using proguard Android | <p>My application runs fine in debug mode, but crashes after proguard is enabled and signed apk is generated: </p>
<p>I am using android studio 1.5 for building apk.</p>
<p>Please find crash logs below: </p>
<pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.carwale.autobiz/com.carwale... | My application runs fine in debug mode, but crashes after proguard is enabled and signed apk is generated: I am using android studio 1.5 for building apk. Please find crash logs below: [CODE] Please find below my proguard-rules file: [CODE] | android|database|crash|proguard | 1 | 2016-04-20T10:55:31.223Z | 2,016 | 4 | 10 | 2 | 324 | 1 | 240 | 43 | 4 | 2 | true | false | false | false | false | false | low |
36,741,632 | Android - TextView pushing up Imageview | <p>I have some linear layouts containing some texts with images below them. Everything is fine until my text splits into 2 lines because of the lack of space. <strong>My image is being pushed up by the text, and I want to avoid that</strong>, but I can't achieve it.</p>
<p><em>Here's my XML code:</em></p>
<pre><code>... | I have some linear layouts containing some texts with images below them. Everything is fine until my text splits into 2 lines because of the lack of space. My image is being pushed up by the text, and I want to avoid that , but I can't achieve it. Here's my XML code: [CODE] Screenshot of the problem: Any tip is appreci... | android|android-layout|textview|imageview|android-xml | 1 | 2016-04-20T10:56:03.450Z | 2,016 | 4 | 10 | 2 | 305 | 6 | 327 | 39 | 5 | 1 | true | false | false | false | false | false | low |
36,741,662 | regarding Certificate fingerprints selection for google authentication in android | <p>I am trying to implement google authentication in my android app. To implement Google Sign In option in android app <code>SHA1</code> is needed to generate <code>OAuth 2.0 client IDs</code>.</p>
<p>I am using ubuntu and here is the process how I am retrieving <code>Certificate fingerprints</code></p>
<p>I typed th... | I am trying to implement google authentication in my android app. To implement Google Sign In option in android app SHA1 is needed to generate OAuth 2.0 client IDs . I am using ubuntu and here is the process how I am retrieving Certificate fingerprints I typed the following commands [CODE] Then I found the following ou... | android|android-studio|google-play-services|rsa-key-fingerprint | 0 | 2016-04-20T10:57:23.807Z | 2,016 | 4 | 10 | 2 | 74 | 0 | 699 | 81 | 4 | 2 | true | true | false | false | false | false | zero |
36,741,810 | send arraylist as parameter in volley request | <p>I'm trying to send arraylist containing numbers as parameter in volley request and then parse it and display the values (in string) in toast. But I'm getting null in response. I would like to know where is the problem. </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre cl... | I'm trying to send arraylist containing numbers as parameter in volley request and then parse it and display the values (in string) in toast. But I'm getting null in response. I would like to know where is the problem. [CODE] [CODE] | android|android-volley|jsonexception | 0 | 2016-04-20T11:03:29.367Z | 2,016 | 4 | 11 | 2 | 9,867 | 6 | 232 | 45 | 3 | 2 | true | false | true | false | false | false | zero |
36,741,880 | XAMARIN Android builds solution but can't deploy vs2013 | <p>I've just wrote a sample Xamarin Android App, everything builds correctly :</p>
<pre><code>1>------ Rebuild All started: Project: App7, Configuration: Debug Any CPU ------
1> Processing: obj\Debug\res\layout\main.xml
1> Processing: obj\Debug\res\values\strings.xml
1>C:\Users\mepapasymeon\Documents... | I've just wrote a sample Xamarin Android App, everything builds correctly : [CODE] But when i press start [CODE] And this is the Xamarin Diagnostics : [CODE] | android|visual-studio-2013|xamarin | 0 | 2016-04-20T11:06:18.993Z | 2,016 | 4 | 11 | 2 | 1,805 | 2 | 157 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
36,741,898 | runOnUiThread prevent's TextView from marquee? | <p>Suppose I have a <code>Fragment</code> with a <code>TextView</code> (let's call it TextView A) which contains a <code>String</code> of words, and another <code>TextView</code> (TextView B) which is a timer, getting updated by a handler like this...<code>mHandler.postDelayed(this, 100);</code>. </p>
<p>The problem i... | Suppose I have a Fragment with a TextView (let's call it TextView A) which contains a String of words, and another TextView (TextView B) which is a timer, getting updated by a handler like this... mHandler.postDelayed(this, 100); . The problem is whenever the Handler for TextView B gets updated every second, it prevent... | java|android|android-fragments | 2 | 2016-04-20T11:07:09.537Z | 2,016 | 4 | 11 | 2 | 171 | 1 | 506 | 46 | 3 | 1 | true | false | false | false | false | false | low |
36,741,986 | AutoCompleteTextview data from mysql jdbc | <p>Please help me to implement AutoCompleteTextView :</p>
<p>I am getting date from mysql server using bellow's AsynTask code. now i want to implement a AutoCompleteTextView using those date also when i will select a emp_name from the list then emp_id will show in a textview separately.</p>
<p>i am new in android so ... | Please help me to implement AutoCompleteTextView : I am getting date from mysql server using bellow's AsynTask code. now i want to implement a AutoCompleteTextView using those date also when i will select a emp_name from the list then emp_id will show in a textview separately. i am new in android so pls make the ans: l... | android | 1 | 2016-04-20T11:10:33.090Z | 2,016 | 4 | 11 | 2 | 96 | 0 | 356 | 41 | 1 | 1 | true | true | false | false | false | false | low |
36,742,004 | Android Studio: attempt to invoke virtual method 'void android.widget.button.setonclicklistener | <p>I have the following code and whenever I start to run it, it will display the message Unfortunately has stopped. It used to run before but now it is not. I have no errors in my program. Any idea what the problem might is pls? Below is my code:</p>
<p>Code in Main Activity:when button is clicked the message shows u... | I have the following code and whenever I start to run it, it will display the message Unfortunately has stopped. It used to run before but now it is not. I have no errors in my program. Any idea what the problem might is pls? Below is my code: Code in Main Activity:when button is clicked the message shows up unfortunat... | java|android | -1 | 2016-04-20T11:11:09.740Z | 2,016 | 4 | 11 | 2 | 344 | 1 | 371 | 95 | 2 | 2 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.