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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44,073,765 | Android Firebase Database : Delete | <p>I have the following database structure:</p>
<p><a href="https://i.stack.imgur.com/I9mi8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I9mi8.jpg" alt="enter image description here"></a></p>
<p>I need to delete a child (both key and value), for example, the first one, by knowing his value: <cod... | I have the following database structure: I need to delete a child (both key and value), for example, the first one, by knowing his value: xzFD1RahhZYr05nZljIW9BRzvSq1 So I have [CODE] I don't know exactly what to do with dataSnapshot to remove the child Thank you for the answer Bonus question: what should I do with onC... | android|firebase|firebase-realtime-database | 0 | 2017-05-19T15:24:13.967Z | 2,017 | 5 | 15 | 4 | 1,076 | 2 | 335 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
44,255,922 | Extract Key from android keystore | <p>From the <a href="https://developer.android.com/training/articles/keystore.html#SecurityFeatures" rel="nofollow noreferrer">Android Keystore Docs</a></p>
<blockquote>
<p>Android Keystore system protects key material from unauthorized use. Firstly, Android Keystore mitigates unauthorized use of key material outsid... | From the Android Keystore Docs Android Keystore system protects key material from unauthorized use. Firstly, Android Keystore mitigates unauthorized use of key material outside of the Android device by preventing extraction of the key material from application processes and from the Android device as a whole. Secondly,... | android|android-keystore | 2 | 2017-05-30T07:19:17.317Z | 2,017 | 5 | 7 | 1 | 2,612 | 2 | 1,004 | 33 | 2 | 0 | false | false | true | false | false | false | low |
44,295,128 | Populating a ListView with firebase data | <p>I'm trying to populate my ListView but I can't seem to figure it out. I'm able to print the values and also toast then they just wont populate my ListView. Is there anyone that can help me populate it?</p>
<p>MainActivity</p>
<pre><code>package uk.co.jaunt_app.jaunt;
import android.content.Intent;
import android.... | I'm trying to populate my ListView but I can't seem to figure it out. I'm able to print the values and also toast then they just wont populate my ListView. Is there anyone that can help me populate it? MainActivity [CODE] | android|listview|firebase|firebase-realtime-database | 1 | 2017-05-31T21:42:13.717Z | 2,017 | 5 | 21 | 2 | 1,845 | 2 | 221 | 40 | 4 | 1 | true | false | false | false | false | false | low |
43,960,294 | Read/Write permission on USB drive mounted on Android Marshmallow | <p>I'm running a rooted Android-6 Marshmallow media box.</p>
<p>To it I have a external USB drive attached, formatted as NTFS (I believe it's NTFS. It's been a long while since I set this up).</p>
<p>The drive is mounted as:</p>
<pre><code>/mnt/media_rw/<15-digit-hex-number>
</code></pre>
<p>The permissions a... | I'm running a rooted Android-6 Marshmallow media box. To it I have a external USB drive attached, formatted as NTFS (I believe it's NTFS. It's been a long while since I set this up). The drive is mounted as: [CODE] The permissions are currently rwxrwx--- (0x770) I don't know what changed, but I used to be able to WRITE... | android|permissions|usb|android-6.0-marshmallow | 0 | 2017-05-14T04:12:10.737Z | 2,017 | 5 | 4 | 6 | 5,941 | 2 | 1,082 | 65 | 4 | 2 | true | false | true | false | false | false | zero |
44,070,019 | Permission in android | <p>I need to run my app and ask about read external storage permission, I'm using <code>RecyclerView</code> and when I accept perrmission it shows just empty app without items, I have to run app second time to see my list of items
How can I draw items in recycler view right when user accept the permission?</p>
<p>Here... | I need to run my app and ask about read external storage permission, I'm using RecyclerView and when I accept perrmission it shows just empty app without items, I have to run app second time to see my list of items How can I draw items in recycler view right when user accept the permission? Here is my on create method ... | java|android|permissions | 1 | 2017-05-19T12:22:24.450Z | 2,017 | 5 | 12 | 4 | 54 | 2 | 430 | 21 | 3 | 3 | true | false | false | false | false | false | low |
44,187,202 | How to open another Activity as a logical dialog and resume the parent activity when it's finished? | <p>I'm trying to create a general help for all of our companies Android applications and it should work like this:</p>
<ul>
<li>User is in Activity/Fragment A</li>
<li>There is a help icon anywhere on the screen</li>
<li>On its explicit click, or during a user interaction flow, Activity/Fragment A freezes, and initiat... | I'm trying to create a general help for all of our companies Android applications and it should work like this: User is in Activity/Fragment A There is a help icon anywhere on the screen On its explicit click, or during a user interaction flow, Activity/Fragment A freezes, and initiates Help fragment, passing a key onl... | android | 1 | 2017-05-25T18:13:25.377Z | 2,017 | 5 | 18 | 3 | 54 | 2 | 1,373 | 99 | 1 | 0 | false | false | false | false | false | false | low |
44,235,534 | Android system calender | <p>i want to delete calender event programatically.
i have tried below code:
int rows = getContentResolver().delete(Uri.parse("content://com.android.calendar/events"), "calendar_id=? ",
new String[]{String.valueOf(eventID)});</p> | i want to delete calender event programatically. i have tried below code: int rows = getContentResolver().delete(Uri.parse("content://com.android.calendar/events"), "calendar_id=? ", new String[]{String.valueOf(eventID)}); | android|calendar|system | -1 | 2017-05-29T06:00:58.483Z | 2,017 | 5 | 6 | 0 | 54 | 2 | 222 | 23 | 3 | 0 | false | false | false | false | false | true | negative |
44,367,928 | Signing HTTP request in Volley | <p>Is there a way to sign http request in Volley?</p>
<p>As far as I understand SSL connection. </p>
<ul>
<li>client opens connection</li>
<li>server responds with cert that contains public key</li>
<li>client stores server's public key</li>
<li>client creates request and signs it with server's public key</li>
<li>se... | Is there a way to sign http request in Volley? As far as I understand SSL connection. client opens connection server responds with cert that contains public key client stores server's public key client creates request and signs it with server's public key server verifies request using own private key If server sends th... | android|ssl|https | 0 | 2017-06-05T11:27:14.363Z | 2,017 | 6 | 11 | 0 | 310 | 2 | 425 | 30 | 3 | 0 | false | false | false | false | false | false | zero |
44,200,034 | FileProvider Showing blank in android Nougat | <p>I have a pdf file in device's internal storage with location as "/storage/emulated/0/MyPdf/test.pdf". While accessing it with FileProvider, pdf reader is blank filled with black colour.
path_file is as follows</p>
<p><code><?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android... | I have a pdf file in device's internal storage with location as "/storage/emulated/0/MyPdf/test.pdf". While accessing it with FileProvider, pdf reader is blank filled with black colour. path_file is as follows <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <ext... | android|pdf | 0 | 2017-05-26T11:09:30.727Z | 2,017 | 5 | 11 | 4 | 822 | 2 | 485 | 44 | 2 | 2 | true | false | false | false | false | false | zero |
44,068,382 | GIF image loading slow issue | <p>I am working with an android application, where i have number of urls of gif image. I need to show these gifs in a GridView. I have used Glide, Fresco etc. third party libs to load gifs, but still it talking lot of time to load gifs into the gridview. My requirement is to show thumbnail/preview of image first, while... | I am working with an android application, where i have number of urls of gif image. I need to show these gifs in a GridView. I have used Glide, Fresco etc. third party libs to load gifs, but still it talking lot of time to load gifs into the gridview. My requirement is to show thumbnail/preview of image first, while ta... | android|gridview|loading|android-glide|fresco | 1 | 2017-05-19T11:03:01.490Z | 2,017 | 5 | 11 | 4 | 2,358 | 2 | 453 | 28 | 5 | 0 | false | false | false | false | false | false | low |
44,312,415 | Android Instant Apps: How to debug an instant app? | <p>When I debug my instant app on Android Studio, the debugger attaches to instant app process and pauses execution at most breakpoints. However it seems to ignore breakpoints at my main activity's onCreate method. I've tried "Debug" and "Attach Debugger to Android Process" options. What am I missing?</p> | When I debug my instant app on Android Studio, the debugger attaches to instant app process and pauses execution at most breakpoints. However it seems to ignore breakpoints at my main activity's onCreate method. I've tried "Debug" and "Attach Debugger to Android Process" options. What am I missing? | android|android-studio|android-debug|android-instant-apps | 6 | 2017-06-01T16:07:34.447Z | 2,017 | 6 | 16 | 3 | 2,358 | 2 | 299 | 50 | 4 | 0 | false | false | false | false | false | false | medium |
44,179,097 | Firebase DatabaseReference filter by specified values | <p>Lets suppose I have this firebase JSON structure:</p>
<p><a href="https://i.stack.imgur.com/YuK39.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/YuK39.jpg" alt="example"></a></p>
<p>And I need to get all the questions which have the atribute "from" equal to "this". </p>
<p>I know that I can use Volley ... | Lets suppose I have this firebase JSON structure: And I need to get all the questions which have the atribute "from" equal to "this". I know that I can use Volley to make a StringRequest and GET all values from my questions.json. Then, in the client side I could iterate over the response and remove the ones which don't... | android|json|filter|firebase-realtime-database | 8 | 2017-05-25T11:10:40.953Z | 2,017 | 5 | 11 | 3 | 13,110 | 2 | 645 | 53 | 4 | 0 | false | false | true | true | false | false | medium |
44,212,531 | Gradle DSL method not found: 'testCompile()' | <p>I am trying to build a project a Project in Android Studio. When I run the app, I get this error:</p>
<pre><code>Error:(10, 0) Gradle DSL method not found: 'testCompile()'
Possible causes:
-The project 'AccurateCalculator' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 't... | I am trying to build a project a Project in Android Studio. When I run the app, I get this error: [CODE] build.grade of the project has the following code: [CODE] build.gradle of the module has the following code: [CODE] | android|android-studio|gradle|android-gradle-plugin|build.gradle | 11 | 2017-05-27T03:04:02.633Z | 2,017 | 5 | 3 | 5 | 16,950 | 2 | 220 | 44 | 5 | 3 | true | false | true | true | true | false | medium |
44,225,417 | How to get APK signing signature in Android native C ? | <p>I need to get App signing signature in native C code to check Apk signature for security purpose.</p> | I need to get App signing signature in native C code to check Apk signature for security purpose. | java|android|c|native | 1 | 2017-05-28T08:49:06.560Z | 2,017 | 5 | 8 | 6 | 4,151 | 2 | 97 | 54 | 4 | 0 | false | false | true | false | false | false | low |
43,946,331 | How do I change the background of an Android activity? | <p>I've been trying to change the background color of this activity, if I use true the background is totally transparent but what I want is that the background activity could be seen but a little dimmed.</p>
<p><a href="https://i.stack.imgur.com/NkaeP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | I've been trying to change the background color of this activity, if I use true the background is totally transparent but what I want is that the background activity could be seen but a little dimmed. [CODE] This is the style I've been using [CODE] In the manifest [CODE] | android | 0 | 2017-05-12T20:55:16.983Z | 2,017 | 5 | 20 | 4 | 57 | 2 | 271 | 54 | 1 | 3 | true | false | false | false | false | false | zero |
44,200,318 | String cannot be cast to Integer error | <p>This error appears when I tring get value from preference:</p>
<pre><code>public static final String PREF_KEY_INTERVAL = "pref_key_interval";
settings = PreferenceManager.getDefaultSharedPreferences(getActivity());
int curInterval = settings.getInt(PREF_KEY_INTERVAL, 1);
</code></pre>
<p>It is also worth noting t... | This error appears when I tring get value from preference: [CODE] It is also worth noting that app works correctly on emulated device but crashes on real one. I already checked returned type several times. What is the clue or my IDE just goes mad? preference xml: [CODE] | android|types | 0 | 2017-05-26T11:21:41.917Z | 2,017 | 5 | 11 | 4 | 57 | 2 | 270 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
44,325,434 | How encrypt list data to SharedPreference | <p>I have problem encrypt my data in SharedPreference this is my current SharedPreference with save data not encrypt. I don't know what encrypt data. </p>
<pre><code> public class MySharedPreference {
//this is name PREFS_NAME
public static final String PREFS_NAME = "LIST_CARD";
//this is CARD where are save... | I have problem encrypt my data in SharedPreference this is my current SharedPreference with save data not encrypt. I don't know what encrypt data. [CODE] } | java|android|sharedpreferences | 0 | 2017-06-02T09:29:41.073Z | 2,017 | 6 | 9 | 4 | 57 | 2 | 155 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
44,138,195 | Should I import strings into a class or use getString() to assign them to a variable? | <p>I originally had all my url's for api calls as individual strings, but am updating to have a separate base url string and api endpoint string.</p>
<p>Previously I was using the getString() method to assign the string resource to a variable:</p>
<pre><code>String USER_URL = getString(R.string.user_url);
</code></pr... | I originally had all my url's for api calls as individual strings, but am updating to have a separate base url string and api endpoint string. Previously I was using the getString() method to assign the string resource to a variable: [CODE] But I found I could just import the string and use it directly: [CODE] Is it be... | java|android | -1 | 2017-05-23T14:50:54.957Z | 2,017 | 5 | 14 | 1 | 58 | 2 | 459 | 85 | 2 | 2 | true | false | false | false | false | true | negative |
44,299,193 | layout_below in custom adapter in listview | <p>I make a custom <code>adapter</code> for <code>listview</code> but it not working, two <code>textview</code> are overlay when i build, but it worked when i make the xml, i used <code>layout_below</code>.<br>
<a href="https://i.stack.imgur.com/2QZ1Y.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2... | I make a custom adapter for listview but it not working, two textview are overlay when i build, but it worked when i make the xml, i used layout_below . the string "nguyen quoc bao" and "13530" are overlay in xml : my xml code: [CODE] How to resolve this? thanks for response. | android|listview|android-adapter | 0 | 2017-06-01T05:31:05.430Z | 2,017 | 6 | 5 | 3 | 58 | 2 | 276 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
44,325,823 | Python+Appium+Android 6.0.1 - 'Click()' doesn't work | <p>This is my first post so I did some research before asking this question, but it was all in vaine.
I'm writing my python script for Android application and I need to use basic click() command, in order to get deeper.</p>
<p>Android 6.0.1 (xiaomi redmi note 3 pro), SDK installed for Android 6.0, python 3.6.1, Appium... | This is my first post so I did some research before asking this question, but it was all in vaine. I'm writing my python script for Android application and I need to use basic click() command, in order to get deeper. Android 6.0.1 (xiaomi redmi note 3 pro), SDK installed for Android 6.0, python 3.6.1, Appium 1.0.2 + Py... | android|python|appium | 0 | 2017-06-02T09:46:56.827Z | 2,017 | 6 | 9 | 4 | 314 | 2 | 702 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
44,132,552 | Adding Cordova Platforms | <p><a href="https://i.stack.imgur.com/a3md9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a3md9.png" alt="enter image description here"></a>
Hey, Guys! I recently started to work with Cordova and when I run the <code>Cordova platform add android</code> i get the following error. I have successfully... | Hey, Guys! I recently started to work with Cordova and when I run the Cordova platform add android i get the following error. I have successfully placed the environment variables for Java and for the Android SDK as well. But the npm modules does not exist in C:/Windows/System32/npm as shown in the error, It is in the U... | javascript|java|android|apache|cordova | 0 | 2017-05-23T10:43:18.607Z | 2,017 | 5 | 10 | 1 | 570 | 2 | 519 | 24 | 5 | 1 | true | false | false | false | false | false | zero |
44,369,213 | How to change the background colour gradient of view dynamically | <p>I want to make a custom view for my android app which has a functionality to change its background colour "gradient".</p>
<p>Something like this, but the centre handle can be moved left and right using code
<br>
<a href="https://i.stack.imgur.com/r32Gb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | I want to make a custom view for my android app which has a functionality to change its background colour "gradient". Something like this, but the centre handle can be moved left and right using code The catch is that I want a function something like in the view: [CODE] ratio (having value between 0 to 1) which is give... | android|android-layout|android-view|android-custom-view|android-custom-drawable | 1 | 2017-06-05T12:43:42.723Z | 2,017 | 6 | 12 | 0 | 570 | 2 | 523 | 64 | 5 | 1 | true | false | false | false | false | false | low |
43,936,263 | passProps throws 'Error calling RCTEventEmiter.receiveTouches' (react-native-navigation) | <p>I'm trying to pass some data to a modal screen with react-native-navigation pacakage 1.1.65 (<a href="https://github.com/wix/react-native-navigation" rel="nofollow noreferrer">https://github.com/wix/react-native-navigation</a>)</p>
<p><strong>I have two cases</strong> :</p>
<h2>First one</h2>
<pre><code>export de... | I'm trying to pass some data to a modal screen with react-native-navigation pacakage 1.1.65 ( https://github.com/wix/react-native-navigation ) I have two cases : First one [CODE] When I clicked the button, it fires me this error : 'Error calling RCTEventEmiter.receiveTouches' The log "RESULTDATA" is something like that... | android|react-native|react-native-navigation | 1 | 2017-05-12T11:04:35.920Z | 2,017 | 5 | 11 | 4 | 1,850 | 2 | 920 | 88 | 3 | 5 | true | false | false | false | false | false | low |
44,303,492 | Disable Touch for the whole Activity | <p>How Can I disable or Block Touch in Android Studio for a whole Activity?
I know how to disable touch for a Single or more Views but not how to disable it for a whole activity...</p> | How Can I disable or Block Touch in Android Studio for a whole Activity? I know how to disable touch for a Single or more Views but not how to disable it for a whole activity... | java|android|android-studio | 2 | 2017-06-01T09:20:18.210Z | 2,017 | 6 | 9 | 3 | 5,178 | 2 | 177 | 36 | 3 | 0 | false | false | true | false | false | false | low |
44,207,558 | ProgressDialog not starting - Android (java) | <p>I'm trying to make simple app on Android.</p>
<h1>EDIT</h1>
<p><strong>New code:</strong></p>
<pre><code>package com.sirseni.simpleandroidwebviewexample;
/**
* Created by otsma on 26.05.2017.
*/
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
im... | I'm trying to make simple app on Android. EDIT New code: [CODE] Now it's working like that, user tap on button, the progressdialog is appearing but everytime it is 0% and 0/100. How to fix it? For example after 20 seconds will be 100% and how to make, that when it reach 100% the new activity is starting? Thanks guys fo... | java|android | 1 | 2017-05-26T17:54:39.193Z | 2,017 | 5 | 17 | 4 | 59 | 2 | 327 | 44 | 2 | 1 | true | false | false | false | false | false | low |
44,250,555 | How is Serial number (unique) is set on an android devices? | <p>In Android devices how is the unique Serial number is assigned to each device? Most of the Samsung devices have a unique serial number on each device. When is this serial number is inserted? Is this serial number assigned before firmware installation or after installing the firmware? Or it has some mechanisim/ algor... | In Android devices how is the unique Serial number is assigned to each device? Most of the Samsung devices have a unique serial number on each device. When is this serial number is inserted? Is this serial number assigned before firmware installation or after installing the firmware? Or it has some mechanisim/ algorith... | android|mobile-devices | 1 | 2017-05-29T21:34:00.160Z | 2,017 | 5 | 21 | 0 | 3,643 | 2 | 574 | 59 | 2 | 0 | false | false | true | false | false | false | low |
44,326,406 | How to retrieve in java a custom attribute of a particular view object? | <p>I have this styles :</p>
<pre><code> <!-- EditText on a blue background -->
<style name="BlueBGTextView" parent="@android:style/Widget.Material.Light.EditText">
<item name="alfloatingToolbarStyle">@style/alfloatingToolbarDarkStyle</item>
</style>
<!-- default EditText --... | I have this styles : [CODE] Then i create on the fly in java the view (EditText) via the constructor: [CODE] In this way i define on the fly the design of the EditText by assigning to it the defStyleAttr. Now i have another library that is responsible to create for the editText a popup window. To know the design to app... | android|android-xml|android-styles | 0 | 2017-06-02T10:13:47.427Z | 2,017 | 6 | 10 | 4 | 60 | 2 | 659 | 71 | 3 | 2 | true | false | false | false | false | false | zero |
43,966,103 | Filling GridView with ImageButtons using adapter doesn't work | <p>I'm writing small game app for assignment, like "memory" game. I want to use GridView and put ImageButtons in it to show one image 9 times, and set onClickListener to show random number beneath each image. I set gridview in layout, used id to access it, set adapter to fill it, but it doesn't work, and I get no error... | I'm writing small game app for assignment, like "memory" game. I want to use GridView and put ImageButtons in it to show one image 9 times, and set onClickListener to show random number beneath each image. I set gridview in layout, used id to access it, set adapter to fill it, but it doesn't work, and I get no error. A... | android|gridview|adapter|android-imagebutton | 0 | 2017-05-14T16:09:42.227Z | 2,017 | 5 | 16 | 6 | 61 | 2 | 576 | 61 | 4 | 2 | true | false | false | false | false | false | zero |
44,061,557 | Add check to a view on Android | <p>Hello friends a question like I can add the following view to a view inside a gridview.
I am working on the selection of photos but I would like to be able to create a view
Like the following, but I have no idea how to add the check in the photo
Does anyone know how I can start on that?</p>
<p>Thank you</p>
<p><a ... | Hello friends a question like I can add the following view to a view inside a gridview. I am working on the selection of photos but I would like to be able to create a view Like the following, but I have no idea how to add the check in the photo Does anyone know how I can start on that? Thank you | java|android|view|listviewitem|multichoiceitems | 0 | 2017-05-19T04:37:15.847Z | 2,017 | 5 | 4 | 4 | 61 | 2 | 297 | 30 | 5 | 0 | false | false | false | false | false | false | zero |
44,065,972 | How do i stop my TabLayout from stripping my other view | <p>(<a href="https://i.stack.imgur.com/1YpVy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1YpVy.png" alt="http://imgur.com/Gx7nFdQ"></a>)</p>
<p>How do i stop this from happening ?,i have a view pager on top of tab layout,and basically im using a fragment (Please check the image link attached abo... | ( ) How do i stop this from happening ?,i have a view pager on top of tab layout,and basically im using a fragment (Please check the image link attached above) [CODE] Should i use a NestedScrollView instead of a relative layout,would that help ?? Any help would be deeply appreciated | android|android-layout|android-xml|android-tablayout | 1 | 2017-05-19T09:12:33.953Z | 2,017 | 5 | 9 | 4 | 61 | 2 | 283 | 55 | 4 | 1 | true | false | false | false | false | false | low |
43,976,276 | Jenkins build failed after updating gradle | <p>I updated Gradle tools from 2.2.3 to 2.3.2. I don't have a problem to build a project on my local machine. However, Jenkins can't build the project. I've got following console output.</p>
<pre><code> FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'workfor... | I updated Gradle tools from 2.2.3 to 2.3.2. I don't have a problem to build a project on my local machine. However, Jenkins can't build the project. I've got following console output. [CODE] Do you have an idea, what's wrong? | android|jenkins|gradle | 0 | 2017-05-15T09:48:09.727Z | 2,017 | 5 | 9 | 0 | 317 | 2 | 225 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
44,101,381 | BACK button callback in Overlay window in Android | <p>I'm showing a <code>overlay window</code> from service in my app. I want to hide the window when <code>press back button</code>. So to get the <code>back button event</code> I do the following code</p>
<pre><code>class MyView extends MyLayout{
public MyView(Context context){
super(context);
Layo... | I'm showing a overlay window from service in my app. I want to hide the window when press back button . So to get the back button event I do the following code [CODE] But dispatchKeyEvent method never called on back button pressed . I Googled and found out this is the way to capture the back button event. Somehow it's ... | android|overlay|keyevent | 1 | 2017-05-21T20:18:13.263Z | 2,017 | 5 | 20 | 6 | 1,085 | 2 | 363 | 49 | 3 | 1 | true | false | false | false | false | false | low |
44,148,856 | How to design activities like the uber app | <p>I am building an app like uber, I have problems with some concepts I don't know.</p>
<ol>
<li><p>How to make the animation when a view is swiped from bottom to top, it will merge with the toolbar until then the view is in a activity.</p></li>
<li><p>How to maintain or load the same map in all activities of the app.... | I am building an app like uber, I have problems with some concepts I don't know. How to make the animation when a view is swiped from bottom to top, it will merge with the toolbar until then the view is in a activity. How to maintain or load the same map in all activities of the app. Note: I don't know if the Uber app ... | android|android-activity|fragment | 4 | 2017-05-24T04:12:18.797Z | 2,017 | 5 | 4 | 2 | 1,085 | 2 | 440 | 42 | 3 | 0 | false | false | false | false | false | false | low |
44,150,469 | How to reduce android application loading time using threads? | <p>I am trying to make an application which gets running applications properties like (process names,icons,memory etc) and display them in listview.</p>
<p>Since I am executing them in main thread this is taking too much time.
How can I create more threads in this sample loop?
(I am new to android programming)</p>
<p... | I am trying to make an application which gets running applications properties like (process names,icons,memory etc) and display them in listview. Since I am executing them in main thread this is taking too much time. How can I create more threads in this sample loop? (I am new to android programming) [CODE] | java|android|multithreading | 0 | 2017-05-24T06:24:25.870Z | 2,017 | 5 | 6 | 2 | 62 | 2 | 308 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
44,083,151 | Getting Null Object error for a view inside a adapter | <p>Here is the code from my app where i try to get venue list from the Foursquare API and display in a recyclerview</p>
<p>searchRetrofitAcitivity.java</p>
<pre><code>public class searchRetrofitActivity extends AppCompatActivity {
private static final String TAG = searchRetrofitActivity.class.getSimpleName();
... | Here is the code from my app where i try to get venue list from the Foursquare API and display in a recyclerview searchRetrofitAcitivity.java [CODE] VenuesAdapter.java [CODE] activity_search_retrofit.xml [CODE] list_venue.xml [CODE] App gets crashed with following error [CODE] | android|android-recyclerview|foursquare|android-viewholder | -1 | 2017-05-20T07:30:19.183Z | 2,017 | 5 | 7 | 5 | 830 | 2 | 277 | 53 | 4 | 5 | true | false | false | false | false | true | negative |
44,351,835 | How to add post query parameter string with double quote in url in retrofit? | <p>I am accessing an api .which looks like </p>
<p><code>http://XXX.XX.XXX.XXX/api/Gallery/getgallerylist?userid="17"</code> . </p>
<p>I have tried the following annotation.</p>
<pre><code> @POST("Gallery/getgallerylist")
Call<GalleryImagesResponse> getGalleryImages(@Query("userid") String userid);
</code>... | I am accessing an api .which looks like http://XXX.XX.XXX.XXX/api/Gallery/getgallerylist?userid="17" . I have tried the following annotation. [CODE] But the url it requests is http://XXX.XX.XXX.XXX/api/Gallery/getgallerylist?userid=17 So that how can I add double quote to userid's value like userid="17". | java|android|retrofit2 | 2 | 2017-06-04T07:40:37.003Z | 2,017 | 6 | 7 | 6 | 1,598 | 2 | 305 | 76 | 3 | 1 | true | false | false | false | false | false | low |
44,233,870 | How to fix Slow Rendering (Android vitals) | <p>I have an app that is listed as in the bottom 25% in the new Google Play Console - Android vitals section for Slow Rendering. I am concerned of this because of <a href="http://www.androidauthority.com/googles-new-punishment-poorly-made-apps-774032/" rel="noreferrer">such articles</a> that seem to say Google Play may... | I have an app that is listed as in the bottom 25% in the new Google Play Console - Android vitals section for Slow Rendering. I am concerned of this because of such articles that seem to say Google Play may penalize your app in the Play Store rankings if you fall in the bottom 25%. However, it seems impossible to impro... | android|google-play|frame-rate | 20 | 2017-05-29T02:27:05.910Z | 2,017 | 5 | 2 | 0 | 12,350 | 2 | 1,038 | 42 | 3 | 2 | true | false | true | true | true | false | medium |
43,954,805 | Error:(45) Error parsing XML: not well-formed (invalid token) Because Button "<<" | <p>I Have a Button android studio, this is my code :</p>
<pre><code><Button
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@color/colorAccent"
android:text=" << "
android:textColor="@color/colorText" />
</code></pre>
<p>When i run this project, Then it shows a ... | I Have a Button android studio, this is my code : [CODE] When i run this project, Then it shows a code error. Here is the code error : Error:(45) Error parsing XML: not well-formed (invalid token) Error:Execution failed for task ':app:processDebugResources'.com.android.ide.common.process.ProcessException: org.gradle.pr... | java|android|xml | -1 | 2017-05-13T15:25:35.637Z | 2,017 | 5 | 15 | 5 | 1,087 | 2 | 655 | 81 | 3 | 3 | true | false | false | false | false | true | negative |
44,319,214 | AppBarLayout overlaps ConstraintLayout | <p>I have an <code>AppBarLayout</code> nested inside of a <code>CoordinatorLayout</code> </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
... | I have an AppBarLayout nested inside of a CoordinatorLayout [CODE] Here is the included layout content_color1 [CODE] Now for some reason the AppBarLayout overlaps the ConstraintLayout See where the tool bar overlaps the color circle? How do I prevent the overlap? | android | 12 | 2017-06-02T00:49:13.113Z | 2,017 | 6 | 0 | 4 | 6,463 | 2 | 263 | 38 | 1 | 2 | true | false | true | false | true | false | medium |
43,991,810 | How do I customize my ActionBar? | <p>I am using android studio, with design library. The problem is, stock <code>actionbar</code> does not come with <code>edittext</code>, so I wanted to add my own. I tried this code, but it is force closing.</p>
<pre><code> //support lib
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportAction... | I am using android studio, with design library. The problem is, stock actionbar does not come with edittext , so I wanted to add my own. I tried this code, but it is force closing. [CODE] custom actionbar [CODE] logs [CODE] | android | 1 | 2017-05-16T03:03:10.093Z | 2,017 | 5 | 3 | 1 | 320 | 2 | 223 | 32 | 1 | 3 | true | false | false | false | false | false | low |
44,172,591 | Periodic refresh implementation in Mvp android | <p>I need to periodically refresh recyclerview from the server every 10 mins. Currently I am implementing MVP architecture for the app. Below are the list of approaches which I thought.</p>
<ol>
<li>Should I need to use Observable.interval in the presenter to make the api calls every 10 mins ?</li>
<li>Since user shou... | I need to periodically refresh recyclerview from the server every 10 mins. Currently I am implementing MVP architecture for the app. Below are the list of approaches which I thought. Should I need to use Observable.interval in the presenter to make the api calls every 10 mins ? Since user should not see any updates onc... | android|android-recyclerview|mvp | 1 | 2017-05-25T04:59:30.017Z | 2,017 | 5 | 4 | 3 | 320 | 2 | 474 | 46 | 3 | 0 | false | false | false | false | false | false | low |
43,967,974 | Android - TransitionDrawable starting in 'end' state flickers when initially drawn | <p>I have a RecyclerView holding a list of Artists. An artist can be marked as a favorite or not a favorite.</p>
<p>There's a heart to represent this state, and I have a transition drawable, where I'm going from a outlined heart, to a filled in heart based on if the artist in question has been marked as a favorite. T... | I have a RecyclerView holding a list of Artists. An artist can be marked as a favorite or not a favorite. There's a heart to represent this state, and I have a transition drawable, where I'm going from a outlined heart, to a filled in heart based on if the artist in question has been marked as a favorite. The animation... | android|android-animation|transitiondrawable | 0 | 2017-05-14T19:25:16.803Z | 2,017 | 5 | 19 | 6 | 576 | 2 | 1,592 | 82 | 3 | 1 | true | false | false | false | false | false | zero |
44,227,327 | Check type of JSON input while deserializing | <p>I have 2 different types of JSON that I may receive from the server.</p>
<p>For example I may get:</p>
<pre><code>{
id:value,
name:value,
time:value
}
</code></pre>
<p>or </p>
<pre><code>{
id:value,
name:value,
image:value
}
</code></pre>
<p>Is there a way I can test to check which JSON it is and then per... | I have 2 different types of JSON that I may receive from the server. For example I may get: [CODE] or [CODE] Is there a way I can test to check which JSON it is and then perform further operations? Current I am using GSON to create an object based on the JSON input. Is there a way I can use GSON itself to get this feat... | java|android|json|gson | 0 | 2017-05-28T12:28:28.433Z | 2,017 | 5 | 12 | 6 | 576 | 2 | 324 | 44 | 4 | 2 | true | false | false | false | false | false | zero |
44,286,707 | Why my listview not refresh when I press back button and come back to activity? | <p>I'm tired already with my code. I'm writing chat application. My app consist of two activity. First activity has a listview of wich each row contain a last message which was send for the user while a second activity contain the whole conversation. In my app I used socket.io for android. My app works fine. Listview i... | I'm tired already with my code. I'm writing chat application. My app consist of two activity. First activity has a listview of wich each row contain a last message which was send for the user while a second activity contain the whole conversation. In my app I used socket.io for android. My app works fine. Listview is r... | android|listview|arraylist|socket.io|notifydatasetchanged | -1 | 2017-05-31T13:53:54.040Z | 2,017 | 5 | 13 | 2 | 576 | 2 | 624 | 79 | 5 | 2 | true | false | false | false | false | true | negative |
44,011,805 | Android Bottom Navigation - Maintaining Activity State | <p>I know it's recommended to use <code>Fragments</code> instead of <code>Activities</code> when working with <code>Bottom Navigation</code>. Due to the current design, I want to avoid having to convert all the <code>Activities</code></p>
<p>The Design:
I am using a <code>Bottom Navigation</code> bar like shown<a href... | I know it's recommended to use Fragments instead of Activities when working with Bottom Navigation . Due to the current design, I want to avoid having to convert all the Activities The Design: I am using a Bottom Navigation bar like shown Each tab is an Activity . When you tap on any of the tabs, it launches the activi... | android|android-fragments|android-activity|tabs|bottombar | 0 | 2017-05-16T21:23:12.550Z | 2,017 | 5 | 21 | 1 | 1,856 | 2 | 1,323 | 54 | 5 | 0 | false | false | false | false | false | false | zero |
44,213,271 | showing error cordova.inAppBrowser is undefined | <p>My application was working fine.</p>
<p>Yesterday I installed SQLite plugin in my app, then suddenly inappbrowser plugin stops working.</p>
<p>When I run the project it says, open of undefined error</p> | My application was working fine. Yesterday I installed SQLite plugin in my app, then suddenly inappbrowser plugin stops working. When I run the project it says, open of undefined error | android|inappbrowser | -2 | 2017-05-27T05:27:01.803Z | 2,017 | 5 | 5 | 5 | 1,856 | 2 | 184 | 47 | 2 | 0 | false | false | false | false | false | true | negative |
44,015,793 | Retrieving only user names from user details stored in firebase | <p>I am trying to create a login activity in Android studio and for the same, I need to retrieve the list of artist names stored in firebase, in a string one at a time, so that I can perform authentication.How can that be done?
I am new to firebase. please help.</p>
<p>This is my model class</p>
<pre><code>public cla... | I am trying to create a login activity in Android studio and for the same, I need to retrieve the list of artist names stored in firebase, in a string one at a time, so that I can perform authentication.How can that be done? I am new to firebase. please help. This is my model class [CODE] I have attached the database s... | android|firebase|firebase-realtime-database | 0 | 2017-05-17T04:44:40.757Z | 2,017 | 5 | 4 | 2 | 65 | 2 | 356 | 63 | 3 | 1 | true | false | false | false | false | false | zero |
44,131,846 | how can i get value from dynamically generated edittexts? | <p>I am getting only a single value.how can i get data from all of the editText which i have created dynamically so that i can pass all editText data using comma after every editText .</p>
<p>Here is my code:</p>
<pre><code>Diagnolist.setOnClickListener(new View.OnClickListener() {
@Override
public v... | I am getting only a single value.how can i get data from all of the editText which i have created dynamically so that i can pass all editText data using comma after every editText . Here is my code: [CODE] | android | -1 | 2017-05-23T10:10:22.433Z | 2,017 | 5 | 10 | 1 | 65 | 2 | 205 | 57 | 1 | 1 | true | false | false | false | false | true | negative |
44,176,546 | CardLayout and recycle view can't get my view elements in viewholder | <p>I am trying to build a simple recycle view with a adapter, im following <a href="https://code.tutsplus.com/tutorials/getting-started-with-recyclerview-and-cardview-on-android--cms-23465" rel="nofollow noreferrer">this</a> tutorial to archieve that.</p>
<p>When i am working on my adapter setting everything inside i ... | I am trying to build a simple recycle view with a adapter, im following this tutorial to archieve that. When i am working on my adapter setting everything inside i get a error saying that i need to transform all my elements(TextViews and those) into static fields, the author doesn't need that and i don't know why. This... | android|android-recyclerview|adapter|android-cardview | 1 | 2017-05-25T09:06:34.490Z | 2,017 | 5 | 9 | 3 | 65 | 2 | 511 | 68 | 4 | 2 | true | false | false | false | false | false | low |
44,261,617 | Retrieving and displaying value from firebase | <p>I'm trying to retrieve data from firebase and displaying it on recyclerview. I encountered an error (Error below) while trying to run the app. I wonder if it's the loop causing the error or because I am getting the wrong value. Can anybody help me with this? I'm trying to get the notification messages ("test", "test... | I'm trying to retrieve data from firebase and displaying it on recyclerview. I encountered an error (Error below) while trying to run the app. I wonder if it's the loop causing the error or because I am getting the wrong value. Can anybody help me with this? I'm trying to get the notification messages ("test", "test2")... | java|android|firebase | 0 | 2017-05-30T11:56:30.500Z | 2,017 | 5 | 11 | 1 | 65 | 2 | 604 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
44,335,303 | Android refreshing view not working | <p>I wanted to reset the view in setContentView when Api is greater than 17 by using method : setLayoutDirection but this error appeared </p>
<pre><code> java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setLayoutDirection(int)' on a null object reference
</code></pre>
<p>What i... | I wanted to reset the view in setContentView when Api is greater than 17 by using method : setLayoutDirection but this error appeared [CODE] What is the problem with the code below . Tnx in advance. [CODE] | android|user-interface|layout|apk | 0 | 2017-06-02T18:27:21.133Z | 2,017 | 6 | 18 | 4 | 65 | 2 | 205 | 35 | 4 | 2 | true | false | false | false | false | false | zero |
44,177,450 | Android Studio: How to replace image button with photo after taking a photo in android camera | <p><br><br>
Could anybody help me with a problem that I have?<br><br>
I would like to make an activity in which i have a make photo button (imageButton_add_playground_image) and after pressing it my app opens up camera for me to take a photo (just one photo).<br><br>
After making a photo I would like to send it to this... | Could anybody help me with a problem that I have? I would like to make an activity in which i have a make photo button (imageButton_add_playground_image) and after pressing it my app opens up camera for me to take a photo (just one photo). After making a photo I would like to send it to this activity and change make ph... | android|android-camera | 0 | 2017-05-25T09:51:50.080Z | 2,017 | 5 | 9 | 3 | 577 | 2 | 674 | 93 | 2 | 2 | true | false | false | false | false | false | zero |
44,225,608 | no such method exception removeAccount targeting API < 22 | <p>i am using removeAccount method to remove a custom created account and i am getting the 'no such method exception' in devices with API < 22. </p>
<pre><code> AccountManager.get(mContext).removeAccount(getAccountByType(mContext.getResources().getString(R.string.account_type)), null, null, null);
</code></p... | i am using removeAccount method to remove a custom created account and i am getting the 'no such method exception' in devices with API < 22. [CODE] My manifest file has the following permission as docs stated: [CODE] Any help please? | android | 2 | 2017-05-28T09:13:57.453Z | 2,017 | 5 | 9 | 6 | 66 | 2 | 233 | 57 | 1 | 2 | true | false | false | false | false | false | low |
44,324,715 | how to determine current localization and add marker to GoogleMapsApi in android | <p>I can't resolve this problem. I trying to create Fragment with a map and I have this done. When I add static Long, Lat value the map show this o a map, But when I trying to make it automatic with getting localization in runnable the application just open the map and don't show specific LongLand values.</p>
<p>How ... | I can't resolve this problem. I trying to create Fragment with a map and I have this done. When I add static Long, Lat value the map show this o a map, But when I trying to make it automatic with getting localization in runnable the application just open the map and don't show specific LongLand values. How to do this? ... | java|android|maps | 0 | 2017-06-02T08:54:33.987Z | 2,017 | 6 | 8 | 4 | 66 | 2 | 447 | 80 | 3 | 1 | true | false | false | false | false | false | zero |
44,330,968 | Listview does not update after adapter.notifyDataSetChanged() | <p>I have this <code>onCreateView</code> in a fragment. It contains a listview that is being fed by <code>ListViewAdapterNahrung</code>. My problem is that this listview does not update after <code>adapter.notifyDataSetChanged();</code>.</p>
<pre><code>public class NahrungFragment extends Fragment {
private ArrayL... | I have this onCreateView in a fragment. It contains a listview that is being fed by ListViewAdapterNahrung . My problem is that this listview does not update after adapter.notifyDataSetChanged(); . [CODE] This is ListViewAdapterNahrung : [CODE] | android|listview | 0 | 2017-06-02T14:09:38.303Z | 2,017 | 6 | 14 | 4 | 66 | 2 | 244 | 61 | 2 | 2 | true | false | false | false | false | false | zero |
44,093,808 | App closes in linearLayout removeAllViews line inside fragment: Android | <p>I am new to android development. I transferred code from my MainActivity to a Fragment class. In my onCreateView method, I am calling a viewFunds() method to display data dynamically from SQLite. </p>
<p>However, when I click the tab for that Fragment, the app closes when it reaches the removeAllViews line. I need ... | I am new to android development. I transferred code from my MainActivity to a Fragment class. In my onCreateView method, I am calling a viewFunds() method to display data dynamically from SQLite. However, when I click the tab for that Fragment, the app closes when it reaches the removeAllViews line. I need to removeAll... | java|android|android-fragments|dynamic-view | 0 | 2017-05-21T06:21:57.530Z | 2,017 | 5 | 6 | 6 | 322 | 2 | 693 | 71 | 4 | 2 | true | false | false | false | false | false | zero |
44,141,827 | App crashes when run on <25 sdk | <p>I've built an app and during the design process was always testing it on an emulator with sdk 25. Now I ran it on emulators with sdk 24 and 23 and it crashes without stopping at any breakpoints (including the system ones).
So, below is monitoring report. I can see that something is wrong with resources, but I can't... | I've built an app and during the design process was always testing it on an emulator with sdk 25. Now I ran it on emulators with sdk 24 and 23 and it crashes without stopping at any breakpoints (including the system ones). So, below is monitoring report. I can see that something is wrong with resources, but I can't fig... | java|android|gradle|resources | 0 | 2017-05-23T17:55:06.840Z | 2,017 | 5 | 17 | 1 | 322 | 2 | 463 | 31 | 4 | 2 | true | false | false | false | false | false | zero |
44,119,303 | Gps latitude and longitude doesn't give me a valid value | <p>I have an app that can shoot some photos. Every time I shoot a photo I should send a request with the latitude and longitude of the user so I can know where the photo has been taken.</p>
<p><strong>So i did something like this to get the location:</strong></p>
<pre><code>public class GoogleLocation implements
... | I have an app that can shoot some photos. Every time I shoot a photo I should send a request with the latitude and longitude of the user so I can know where the photo has been taken. So i did something like this to get the location: [CODE] But I always get the default values for the lat lon, 0.0, on my GPS emulator I h... | java|android|android-studio|geolocation|gps | 0 | 2017-05-22T18:01:02.937Z | 2,017 | 5 | 18 | 0 | 67 | 2 | 482 | 56 | 5 | 1 | true | false | false | false | false | false | zero |
44,004,173 | How to get hardware accelerated Canvas in onDraw() of CanvasWatchFaceService? | <p>I am developing a Watch Face for android wear. I want to make the Canvas hardware accelerated.</p>
<p>In manifest I declared it like bellow</p>
<pre><code> <application
android:hardwareAccelerated="true"
..>
<service
android:name=".WatchFaceMain"
a... | I am developing a Watch Face for android wear. I want to make the Canvas hardware accelerated. In manifest I declared it like bellow [CODE] But when I checked it from inside of My onDraw(Canvas canvas, Rect bounds) method canvas.isHardwareAccelerated() returns false. which clearly means my canvas is not hardware accele... | android|canvas|wear-os | 0 | 2017-05-16T14:23:20.893Z | 2,017 | 5 | 14 | 1 | 1,347 | 2 | 381 | 77 | 3 | 2 | true | false | false | false | false | false | zero |
44,044,031 | Grade Plugin 3-alpha1 outputFile causes error | <p>I'm trying to update a project to Android Studio 3.</p>
<p>The following snippet is no longer accepted in a build.gradle file.</p>
<pre><code>applicationVariants.all { variant ->
variant.outputs.each { out ->
def oFile =out.outputFile // This line causes failure
//...
}
}
</code><... | I'm trying to update a project to Android Studio 3. The following snippet is no longer accepted in a build.gradle file. [CODE] The error is a simple "Not Valid" yet the intellisense suggests it is as it autocompletes fine. Checking the idea.log shows the following exception: [CODE] I can find no documentation on Gradle... | android|android-studio|android-gradle-plugin | 10 | 2017-05-18T09:36:11.260Z | 2,017 | 5 | 9 | 3 | 2,371 | 2 | 448 | 45 | 3 | 2 | true | false | false | false | true | false | medium |
44,064,616 | how to control the Activity method flow till non activity class perform network operation | <p>i have one method in activity in which some operations are performed from non activity class. i want to know when the non activity class network operation are completed so that i can call that method again. but when i call non activity class then the method goes to at the end.</p>
<p>here is my code</p>
<pre><code>p... | i have one method in activity in which some operations are performed from non activity class. i want to know when the non activity class network operation are completed so that i can call that method again. but when i call non activity class then the method goes to at the end. here is my code [CODE] non activity class ... | java|android|methods|control-flow | 2 | 2017-05-19T08:01:25.770Z | 2,017 | 5 | 8 | 4 | 68 | 2 | 326 | 89 | 4 | 2 | true | false | false | false | false | false | low |
44,086,183 | How to set data from different lists in listview using baseadapter | <p>I have an <code>arraylist</code> and I need to show data from 3 different arraylists: </p>
<ul>
<li>BookingsModel</li>
<li>CompositionDataSet</li>
<li>Dataset</li>
</ul>
<p>Each list contains some data and I have to set data from these lists to my list view. I am using <code>baseadapter</code>. How can I achieve t... | I have an arraylist and I need to show data from 3 different arraylists: BookingsModel CompositionDataSet Dataset Each list contains some data and I have to set data from these lists to my list view. I am using baseadapter . How can I achieve this? Please help me. I tried many ways but nothing works. I am completely bl... | java|android|listview|baseadapter | 0 | 2017-05-20T13:00:37.770Z | 2,017 | 5 | 13 | 5 | 68 | 2 | 414 | 66 | 4 | 3 | true | false | false | false | false | false | zero |
44,296,726 | Android App Slows Down/Becomes Unresponsive When TextView is Added | <p>I've been developing this Android game, and I was wondering why whenever I add this TextView, my app starts becoming unresponsive. Like, some of my buttons won't press, while others do, and so on and so forth. Then, when I remove the TextView from the linear layout, everything goes back to normal. Please help!</p>
... | I've been developing this Android game, and I was wondering why whenever I add this TextView, my app starts becoming unresponsive. Like, some of my buttons won't press, while others do, and so on and so forth. Then, when I remove the TextView from the linear layout, everything goes back to normal. Please help! MainActi... | android|android-studio | 0 | 2017-06-01T00:39:21.937Z | 2,017 | 6 | 0 | 3 | 68 | 2 | 561 | 66 | 2 | 2 | true | false | false | false | false | false | zero |
44,074,778 | what is lifecycle of listeners inside ObservableOnSubscribe callback - Rxjava | <p>I've done an Rxjava wrrapper for firebase <code>signInWithCustomToken()</code> method, here is the code:</p>
<pre><code>public Observable<AuthResult> signInWithCustomToken(String token) {
return Observable.create(new ObservableOnSubscribe<AuthResult>() {
@Override public void subscribe(Observa... | I've done an Rxjava wrrapper for firebase signInWithCustomToken() method, here is the code: [CODE] so I was wondering what is the lifecycle of the three listeners ( OnSuccessListener - OnFailureListener() - OnCompleteListener ) inside the Rx callback, Do they have the same lifecycle of the return Observable, in other w... | android|performance|firebase-authentication|rx-java2 | 1 | 2017-05-19T16:24:34.980Z | 2,017 | 5 | 16 | 4 | 580 | 2 | 508 | 77 | 4 | 1 | true | false | false | false | false | false | low |
44,218,669 | What are the differences between PublicKey/PrivateKey and RSAPublicKey/RSAPrivateKey? | <p>What are the major differences between <code>RSAPublicKey</code> and <code>PublicKey</code> in Java? Also I am asking the same question for the <code>RSAPrivateKey</code> and <code>PrivateKey</code>.</p> | What are the major differences between RSAPublicKey and PublicKey in Java? Also I am asking the same question for the RSAPrivateKey and PrivateKey . | java|android|encryption|rsa | 2 | 2017-05-27T15:33:21.090Z | 2,017 | 5 | 15 | 5 | 1,092 | 2 | 148 | 85 | 4 | 0 | false | false | false | false | false | false | low |
43,985,708 | Displaying messages from multiple notifications -Android | <p>I am using Firebase to send notifications to my App, when I receive the notification I store the message in my shared preferences and then display the message in an activity. However, as of right now I am only saving the latest notification message in the shared preferences. How do I save all the messages from the n... | I am using Firebase to send notifications to my App, when I receive the notification I store the message in my shared preferences and then display the message in an activity. However, as of right now I am only saving the latest notification message in the shared preferences. How do I save all the messages from the noti... | android|notifications|android-notifications|firebase-cloud-messaging | 1 | 2017-05-15T17:42:36.280Z | 2,017 | 5 | 17 | 0 | 325 | 2 | 356 | 56 | 4 | 0 | false | false | false | false | false | false | low |
44,243,141 | TextView - detect if String exceeds available space | <p>Here is my layout</p>
<pre><code> RelativeLayout
ImageView iv1
TextView
toTheRightOf iv1
toTheEndOf iv1
toTheLeftOf iv2
ImageView iv2
RelativeLayout end
</code></pre>
<p>So TextView is sand... | Here is my layout [CODE] So TextView is sandwiched between two ImageViews. So everything is displaying exactly as it should. However sometimes the line in the TextView is too long and comes too close to second ImageView. Sometimes extending right into it. I am not looking to change the layout or try to squeeze around a... | android|android-layout | 0 | 2017-05-29T12:59:44.130Z | 2,017 | 5 | 12 | 0 | 581 | 2 | 1,662 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
44,185,021 | Unable to Upload Image to Server using Fast Android Networking Library | <p>I am trying to upload an image from storage to server. Am I doing anything wrong here? Do I need to use a PHP script for this?</p>
<p>private class UploadImage extends AsyncTask{</p>
<pre><code> File picPath;
String picName;
public UploadImage(File picPath, String picName){
this.picPath= picPat... | I am trying to upload an image from storage to server. Am I doing anything wrong here? Do I need to use a PHP script for this? private class UploadImage extends AsyncTask{ [CODE] | android|networking|android-asynctask|image-uploading | -1 | 2017-05-25T16:07:00.400Z | 2,017 | 5 | 16 | 3 | 1,349 | 2 | 178 | 70 | 4 | 1 | true | false | false | false | false | true | negative |
44,255,720 | how to get which is selected when Checkbox and Radio button added programmatically in android | <pre><code>private void parseProductOptionData(JSONObject response){
try {
boolean success = response.getBoolean("success");
if(success){
rlProductOption.setVisibility(View.GONE);
//Get All the Categories
JSONArray data = response.getJSONArray("data");
... | [CODE] This is my code in which i have add radio button and checkbox according to json data.So when i click on a button "btnAddToCart" then i want to know all the selected checkbox and radio button.beacuse i have to store all the selected data in my session. | android|android-checkbox|android-radiobutton | 1 | 2017-05-30T07:07:48.937Z | 2,017 | 5 | 7 | 1 | 70 | 2 | 258 | 93 | 3 | 1 | true | false | false | false | false | false | low |
44,131,070 | How to pass arraylist from fragment to fragment using Activity in Android? | <p>please give me good solution I need your help!.</p>
<p><a href="https://i.stack.imgur.com/1uYAG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1uYAG.png" alt="enter image description here"></a></p>
<p>I want to pass parameter using Interface class</p>
<p>from B Fragment to Activity and from Ac... | please give me good solution I need your help!. I want to pass parameter using Interface class from B Fragment to Activity and from Activity to C Fragment. But Service asynctask I don't know C waiting for B ? Please explain me this Fragments do what ? EDIT: [CODE] } | android|asynchronous|android-activity|fragment | -3 | 2017-05-23T09:36:59.810Z | 2,017 | 5 | 9 | 1 | 582 | 2 | 266 | 74 | 4 | 1 | true | false | false | false | false | true | negative |
44,119,301 | Automatic deletion of anonymous Firebase accounts | <p>I use Firebase Database and Storage to host some pictures for my Android app. Those pictures are only uploaded by me from the Firebase web interface. The Database and Storage have rules so only authenticated users can read and nobody is allowed to write. (So there is NO user generated content, I just need a place to... | I use Firebase Database and Storage to host some pictures for my Android app. Those pictures are only uploaded by me from the Firebase web interface. The Database and Storage have rules so only authenticated users can read and nobody is allowed to write. (So there is NO user generated content, I just need a place to ho... | android|firebase|firebase-realtime-database|firebase-authentication|firebase-storage | 0 | 2017-05-22T18:00:58.737Z | 2,017 | 5 | 18 | 0 | 1,094 | 2 | 1,016 | 49 | 5 | 0 | false | false | false | false | false | false | zero |
44,036,892 | get Firebase nodes by children | <p>If I have a database that is set up like so</p>
<pre><code>-users
-uId0
-Name: "Bill"
-uId1
-Name: "Bob"
-uId2
-Name: "Dave"
</code></pre>
<p>How do I get the uId elements if there name child starts with B.
The query should return somthing like this?</p>
<pre><code> -uId0
-Name: "Bill"
-... | If I have a database that is set up like so [CODE] How do I get the uId elements if there name child starts with B. The query should return somthing like this? [CODE] Thanks!! | android|firebase|firebase-realtime-database | 0 | 2017-05-18T00:49:15.773Z | 2,017 | 5 | 0 | 3 | 72 | 2 | 175 | 30 | 3 | 2 | true | false | false | false | false | false | zero |
44,075,787 | Why is typeof used here? | <p>Im making an app on android and I kind of got used to saying <code>StartActivity(typeof(SomeActivity));</code> but I never really understood why you need to use <code>typeof</code> instead of just writing <code>StartActivity(SomeActivity)</code></p>
<p>Can anyone explain it to me?</p> | Im making an app on android and I kind of got used to saying StartActivity(typeof(SomeActivity)); but I never really understood why you need to use typeof instead of just writing StartActivity(SomeActivity) Can anyone explain it to me? | c#|android|xamarin | -4 | 2017-05-19T17:26:45.953Z | 2,017 | 5 | 17 | 4 | 72 | 2 | 235 | 24 | 3 | 0 | false | false | false | false | false | true | negative |
44,295,923 | Where to find the definition of Theme_Material_Light? | <p>Their is something a little strange i can't understand. In the source code of android we can find reference to <code>R.style.Theme_Material_Light</code> but when i search in all the possible files the definition of <code>Theme_Material_Light</code> (in resources, etc) i can't find it. So where come from the <code>Th... | Their is something a little strange i can't understand. In the source code of android we can find reference to R.style.Theme_Material_Light but when i search in all the possible files the definition of Theme_Material_Light (in resources, etc) i can't find it. So where come from the Theme_Material_Light and where to fin... | android|android-theme | -1 | 2017-05-31T22:57:31.863Z | 2,017 | 5 | 22 | 2 | 72 | 2 | 356 | 53 | 2 | 0 | false | false | false | false | false | true | negative |
43,948,488 | Download interrupted: peer not authenticated | <p>Trying to download SDK 7, I receive the peer not authenticated error. <a href="https://i.stack.imgur.com/70oEE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/70oEE.png" alt="enter image description here"></a></p> | Trying to download SDK 7, I receive the peer not authenticated error. | java|android|android-studio|sdk|android-gradle-plugin | 1 | 2017-05-13T01:56:44.523Z | 2,017 | 5 | 1 | 5 | 328 | 2 | 69 | 44 | 5 | 0 | false | false | false | false | false | false | low |
44,281,767 | xsockets c# client publish | <pre><code>//connection return true
var connection = await c.Open();
await c.Controller("mycontroller").Publish("chatmessage", new { Text = "Hello people!" });
</code></pre>
<p>I want publish message from my xamarin android client, to my server </p>
<pre><code>public void ChatMessage(string message)
{
this.Invok... | [CODE] I want publish message from my xamarin android client, to my server [CODE] but my message is not sent to the server server console on server is exist, but does not go in method Thanks | c#|android|xsockets.net|xsocket | 1 | 2017-05-31T10:06:00.463Z | 2,017 | 5 | 10 | 2 | 328 | 2 | 190 | 26 | 4 | 2 | true | false | false | false | false | false | low |
44,069,731 | Debugging JAR library in Android application | <p>I have a project (set of Java classes) which I build using Maven as a JAR file, then I add the JAR in my Android application (using Android Studio), adding <code>compile files('***.jar')</code> in my build.gradle. </p>
<p>At the moment it works fine, but while debugging the app, when execution enters into the JAR A... | I have a project (set of Java classes) which I build using Maven as a JAR file, then I add the JAR in my Android application (using Android Studio), adding compile files('***.jar') in my build.gradle. At the moment it works fine, but while debugging the app, when execution enters into the JAR Android Studio's, the debu... | java|android|maven|gradle|jar | 1 | 2017-05-19T12:09:08.833Z | 2,017 | 5 | 12 | 4 | 2,120 | 2 | 490 | 44 | 5 | 0 | false | false | false | false | false | false | low |
44,240,406 | What to do when activity is destroyed but I must continue executing code in fragment? | <p>I have a pretty odd problem here. In a fragment, I do a process and when the process finishes I show an advert that callsback to the fragment when user clicks/dismisses the ad. The problem is that in some devices when the ad calls back to the handler (that is in the running fragment) the activity containing the frag... | I have a pretty odd problem here. In a fragment, I do a process and when the process finishes I show an advert that callsback to the fragment when user clicks/dismisses the ad. The problem is that in some devices when the ad calls back to the handler (that is in the running fragment) the activity containing the fragmen... | android|android-fragments|android-activity|nullpointerexception | 0 | 2017-05-29T10:36:59.817Z | 2,017 | 5 | 10 | 0 | 73 | 2 | 849 | 85 | 4 | 0 | false | false | false | false | false | false | zero |
43,933,707 | Space above elements in ConstraintLayout | <p>I have a situation where there is some random space above UI elements in a <code>ConstraintLayout</code>. In the image - see the space above the <code>textInput</code> and <code>seekBar</code> elements. </p>
<p>We're building a form of custom fields based on their types - e.g. number input, text input, a switch, et... | I have a situation where there is some random space above UI elements in a ConstraintLayout . In the image - see the space above the textInput and seekBar elements. We're building a form of custom fields based on their types - e.g. number input, text input, a switch, etc. We build the form dynamically based on the JSON... | android|android-layout|android-constraintlayout | 1 | 2017-05-12T09:07:20.037Z | 2,017 | 5 | 9 | 4 | 841 | 2 | 888 | 40 | 3 | 2 | true | false | false | false | false | false | low |
44,258,042 | View on the right only if their is enough space, otherwise go at the bottom | <p>Using the <code>ConstraintLayout</code> I have 2 <code>TextView</code> that I want to be next to each other when their is enough space to see the content of both. But if TextView A takes a lot of space and fullfill all the screen width, than I would like that TextView B goes under TextView A instead of still being o... | Using the ConstraintLayout I have 2 TextView that I want to be next to each other when their is enough space to see the content of both. But if TextView A takes a lot of space and fullfill all the screen width, than I would like that TextView B goes under TextView A instead of still being on the right but invisible (ou... | android|android-view|android-constraintlayout | 5 | 2017-05-30T09:10:51.730Z | 2,017 | 5 | 9 | 1 | 1,353 | 2 | 529 | 75 | 3 | 1 | true | false | false | false | false | false | low |
43,957,145 | ListView does not show content | <p>I try to retrieve data from <code>firebase</code> and use an <code>adapter</code> to show them in <code>listview</code>.
Everything is ok with retrieving data, I checked through debugger, however nothing is shown.
Here is updated <em>resource_layout.xml:</em></p>
<pre><code><?xml version="1.0" encoding="utf-8"?... | I try to retrieve data from firebase and use an adapter to show them in listview . Everything is ok with retrieving data, I checked through debugger, however nothing is shown. Here is updated resource_layout.xml: [CODE] updated resource_item.xml: [CODE] ResourceAdapter.java: [CODE] ResourceActivity.Java: [CODE] | android|listview|firebase|firebase-realtime-database|adapter | -2 | 2017-05-13T19:22:57.653Z | 2,017 | 5 | 19 | 5 | 74 | 2 | 312 | 30 | 5 | 4 | true | false | false | false | false | true | negative |
44,240,764 | how to achieve this layout using collapsing toolbar | <p><a href="https://i.stack.imgur.com/j1sPI.png" rel="nofollow noreferrer">https://i.stack.imgur.com/j1sPI.png</a></p>
<p><a href="https://i.stack.imgur.com/LBd4O.png" rel="nofollow noreferrer">Please see the link for layout</a></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:andr... | https://i.stack.imgur.com/j1sPI.png Please see the link for layout [CODE] please help me to achieve above type from layout.As i have tried as above and when scrolling the image view go inside the toolbar and half of the image view not visible. | android|android-layout|listview|android-fragments | -3 | 2017-05-29T10:55:02.587Z | 2,017 | 5 | 10 | 0 | 74 | 2 | 243 | 51 | 4 | 1 | true | false | false | false | false | true | negative |
43,970,975 | How to implement zooming with seekbar in SurfaceView Camera in Android? | <p>I am working on Surface-Camera-Preview, and want to implement zooming control with seekbar, already done with pinch zooming, so is there any way to to control it with seekbar? Thanks.</p> | I am working on Surface-Camera-Preview, and want to implement zooming control with seekbar, already done with pinch zooming, so is there any way to to control it with seekbar? Thanks. | android|android-camera|surfaceview | 0 | 2017-05-15T02:57:09.520Z | 2,017 | 5 | 2 | 0 | 2,122 | 2 | 183 | 71 | 3 | 0 | false | false | false | false | false | false | zero |
44,270,029 | Android TalkBack: Is there a Listener to catch all Accessibility Events? | <p><strong>Background: What is the problem</strong></p>
<p>My app has this acronym for a word let us assume it is</p>
<blockquote>
<p>ABC</p>
</blockquote>
<p>When I use Google's voice service it reads out the letters which is great</p>
<p>However when I use Samsung Voice (S Voice), it reads it out as 1 word whic... | Background: What is the problem My app has this acronym for a word let us assume it is ABC When I use Google's voice service it reads out the letters which is great However when I use Samsung Voice (S Voice), it reads it out as 1 word which is not great! So why not just set content descriptions? ABC appears in many pla... | android|talkback|accessibility | 7 | 2017-05-30T19:04:11.500Z | 2,017 | 5 | 19 | 1 | 5,450 | 2 | 1,405 | 72 | 3 | 0 | false | false | true | false | false | false | medium |
44,156,932 | Android Payfort SDK - IllegalStateException on InitSecureConnectionActivity | <p>I've been stuck with this problem for how many days. Basically, the <code>SDK</code> Token can now be generated, but when the program goes to the <code>registerCallback()</code> method, my app crashes, saying that it needs to use a <code>Theme.AppCompat</code> (or descendant) in the <code>Activity</code>.</p>
<p>I ... | I've been stuck with this problem for how many days. Basically, the SDK Token can now be generated, but when the program goes to the registerCallback() method, my app crashes, saying that it needs to use a Theme.AppCompat (or descendant) in the Activity . I have set the Activity that I am using to AppCompatActivity (an... | android|payfort | 1 | 2017-05-24T11:22:36.343Z | 2,017 | 5 | 11 | 2 | 331 | 2 | 535 | 75 | 2 | 1 | true | false | false | false | false | false | low |
44,178,745 | Insert multiple data from SQLite database to server | <p>I have an android app, and I am using SQLite to act as a <strong>CART</strong> and I am using volley to send and retrieve data from the database, I have been able to retrieve the data from the SQLite databse and submit it to the server but it only submits 1 value.</p>
<p>But I have been wondering how would I be abl... | I have an android app, and I am using SQLite to act as a CART and I am using volley to send and retrieve data from the database, I have been able to retrieve the data from the SQLite databse and submit it to the server but it only submits 1 value. But I have been wondering how would I be able to accomplish this if the ... | android|sqlite|android-volley | 0 | 2017-05-25T10:52:03.890Z | 2,017 | 5 | 10 | 3 | 331 | 2 | 551 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
44,112,273 | Android Extra Empty Space Under My Listview Issue | <p>i need some help in my android application. I have 2 listviews inside scrollview. I want my listviews unscrollable to see all my listview items. So here is my code to list all items:</p>
<pre><code>public class CustomList extends ListView
{
boolean expanded = false;
public CustomList(Context context)
{
super(... | i need some help in my android application. I have 2 listviews inside scrollview. I want my listviews unscrollable to see all my listview items. So here is my code to list all items: [CODE] Here is my .xml: [CODE] And my custom listview adapter: [CODE] Thanks for helping. Edit : Screenshot for my app. | android|listview | 1 | 2017-05-22T11:57:35.943Z | 2,017 | 5 | 11 | 0 | 587 | 2 | 302 | 49 | 2 | 3 | true | false | false | false | false | false | low |
44,247,289 | Finding Android Library Package Names and Versions | <p>I'm new to Android development and I'm having trouble finding a central repository for the base Android packages that are used in the Gradle build system. For instance, in Android Studio my new project's <code>build.gradle</code> contains:</p>
<pre><code>compile 'com.android.support:appcompat-v7:25.3.1'
compile 'co... | I'm new to Android development and I'm having trouble finding a central repository for the base Android packages that are used in the Gradle build system. For instance, in Android Studio my new project's build.gradle contains: [CODE] Where can I find the full package name and current version for something like the Recy... | java|android|android-studio|gradle | 0 | 2017-05-29T16:53:00.600Z | 2,017 | 5 | 16 | 0 | 587 | 2 | 578 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
44,160,127 | LocationManager checkPermission | <p>So my problem is quite simple and it is that I have no clue how I would implement the checkPermission into this code. I have read up on it but I can't still quite wrap my head around it. One of my problems is that some examples want me to point towards an activity but that does not work. </p>
<p>The line where I re... | So my problem is quite simple and it is that I have no clue how I would implement the checkPermission into this code. I have read up on it but I can't still quite wrap my head around it. One of my problems is that some examples want me to point towards an activity but that does not work. The line where I request locati... | java|android|locationmanager|android-gps | 0 | 2017-05-24T13:40:57.797Z | 2,017 | 5 | 13 | 2 | 843 | 2 | 545 | 31 | 4 | 1 | true | false | false | false | false | false | zero |
44,228,936 | Multilne text. Libgdx | <p>How to crate a multiline text? I tried to use Label , but text have only 1 line.</p>
<pre><code>Table table = new Table();
table.setPosition(0,0);
table.setSize(800,440);
label = new Label("Some long string here...", skin);
label.setFillParent(true);
label.setAlignment(center);
label.setPosition(0,0);
label.setWid... | How to crate a multiline text? I tried to use Label , but text have only 1 line. [CODE] https://i.stack.imgur.com/3whQr.png | java|android|libgdx | 3 | 2017-05-28T15:24:10.933Z | 2,017 | 5 | 15 | 6 | 843 | 2 | 123 | 21 | 3 | 1 | true | false | false | false | false | false | low |
44,197,001 | Retrofit warning with Proguard | <p>I turned proguard on in my android project and got the warning below. Searched on Google but couldn't find much info. </p>
<blockquote>
<p>Warning:retrofit.Platform$Java8: can't find referenced class
org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement</p>
</blockquote>
<p>I've put the retrofit2 proguard rule... | I turned proguard on in my android project and got the warning below. Searched on Google but couldn't find much info. Warning:retrofit.Platform$Java8: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement I've put the retrofit2 proguard rules in my project. [CODE] | android|proguard|android-proguard | 0 | 2017-05-26T08:29:57.237Z | 2,017 | 5 | 8 | 4 | 1,099 | 2 | 292 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
44,356,859 | Direct IP call android | <p>Im creating an Android App in which the clients can call each other without using a SIP proxy (server).</p>
<p>I downloaded the CSipSimple, it has a "local" option in which the clients in a local network can call each other directly.</p>
<p>What if I am connected to the mobile network. If i know the public IP of t... | Im creating an Android App in which the clients can call each other without using a SIP proxy (server). I downloaded the CSipSimple, it has a "local" option in which the clients in a local network can call each other directly. What if I am connected to the mobile network. If i know the public IP of the destination, can... | android|ip|sip|voip | 1 | 2017-06-04T17:24:37.543Z | 2,017 | 6 | 17 | 6 | 4,171 | 2 | 452 | 22 | 4 | 0 | false | false | true | false | false | false | low |
44,093,221 | How to implement "Add to favorites" button in Android cardView? | <p>I've a list of cardViews which contains two textViews each (title and content) and a toggle button (which is a favourite button). I want to add specific cardviews in which togglebutton is checked to another fragment "favourites" so that user can view favourite cards. How can I do ths?
This is my recycler adapter:</... | I've a list of cardViews which contains two textViews each (title and content) and a toggle button (which is a favourite button). I want to add specific cardviews in which togglebutton is checked to another fragment "favourites" so that user can view favourite cards. How can I do ths? This is my recycler adapter: [CODE... | android|android-fragments|android-cardview|fragmentmanager | -1 | 2017-05-21T04:32:28.463Z | 2,017 | 5 | 4 | 6 | 8,267 | 2 | 321 | 63 | 4 | 1 | true | false | true | false | false | true | negative |
44,040,866 | how to updating a textview with a loop on click | <p>On the first click, the text view change to some text, and in the second click the text will change to an other text.
I started to write it with a switch statement:</p>
<pre><code>public void onClick(View v) {
switch () {
case ();
text.setText("You have clicked once");
}
}
</code></p... | On the first click, the text view change to some text, and in the second click the text will change to an other text. I started to write it with a switch statement: [CODE] | android | -2 | 2017-05-18T07:06:29.307Z | 2,017 | 5 | 7 | 3 | 76 | 2 | 171 | 47 | 1 | 1 | true | false | false | false | false | true | negative |
44,131,478 | PlacePicker.IntentBuilder search is not localized | <p>I am using <code>PlacePicker.IntentBuilder</code> to choose a nearby places from the map. Everything is working as expected, but top search bar suggestions is not localized e.g.
I am living in Saudi Arabia and when I write applebees, it suggest me all applebees in USA. How can I make this search localized.
Any help ... | I am using PlacePicker.IntentBuilder to choose a nearby places from the map. Everything is working as expected, but top search bar suggestions is not localized e.g. I am living in Saudi Arabia and when I write applebees, it suggest me all applebees in USA. How can I make this search localized. Any help will be apprecia... | java|android|google-maps | 0 | 2017-05-23T09:53:47.197Z | 2,017 | 5 | 9 | 1 | 76 | 2 | 382 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
44,296,759 | How to convert Arraylist consisting of pojo class into array in java | <p>I have a pojo class named "Performance" like this </p>
<pre><code>public class Performance {
String productId;
String productBrand;
String productGraph;
//getters and setters
</code></pre>
<p>And I saved it to arraylist named "performanceList" like this:</p>
<pre><code>JSONArray dataGraph=null;
J... | I have a pojo class named "Performance" like this [CODE] And I saved it to arraylist named "performanceList" like this: [CODE] And now, can you please help me fetch the data from arraylist and be converted into array just like this [CODE] | java|android | -2 | 2017-06-01T00:43:40.430Z | 2,017 | 6 | 0 | 3 | 1,612 | 2 | 238 | 68 | 2 | 3 | true | false | false | false | false | true | negative |
44,081,460 | Android XML Layout Design | <p>I have the xml design code of android. I want the design a bit different. Following is the relative layout what I have tried:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-au... | I have the xml design code of android. I want the design a bit different. Following is the relative layout what I have tried: [CODE] The output of above xml shows like the following: But I want the design to be like the following: Can anyone please help on this to do atleast something so that it would be great? | android|xml | -2 | 2017-05-20T02:54:34.733Z | 2,017 | 5 | 2 | 5 | 77 | 2 | 312 | 25 | 2 | 1 | true | false | false | false | false | true | negative |
44,246,462 | Save color and strikethrough text with sharedPreferences | <p>I have custom adapter and an <code>ArrayList<String></code> called <code>groceries</code> containing whatever user puts there.</p>
<p>This is my method saving the listView whenever the user puts something there or deletes:</p>
<pre><code>public void saveGroceriesList() {
sharedPreferences = getContext().... | I have custom adapter and an ArrayList<String> called groceries containing whatever user puts there. This is my method saving the listView whenever the user puts something there or deletes: [CODE] And here I set text strikethrough and change color onClick for listView: [CODE] where list_content is my TextView for listV... | java|android|listview|colors|sharedpreferences | 0 | 2017-05-29T15:56:15.527Z | 2,017 | 5 | 15 | 0 | 77 | 2 | 470 | 56 | 5 | 2 | true | false | false | false | false | false | zero |
44,089,534 | Android. Using the RealmObject with Databinding | <p>I'm using the <code>RealmObject</code> model for <code>databinding</code>.
It worked fine but now I want my views to update when data changes and I implemented <code>Observable</code>.</p>
<p>The model is:</p>
<pre><code>public class RealmArticle extends RealmObject implements Observable {
public RealmArticle... | I'm using the RealmObject model for databinding . It worked fine but now I want my views to update when data changes and I implemented Observable . The model is: [CODE] The problem is that RealmObject doesn't support the fields of PropertyChangeRegistry type. Android studio says: Error:(18, 8) error: Field "registry" o... | android|realm|android-databinding | 0 | 2017-05-20T18:38:24.597Z | 2,017 | 5 | 18 | 5 | 589 | 2 | 477 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
43,982,032 | getSupportFragmentManager().findFragmentById() returns null even though fragment exists | <p>I have a <code>fragment_main.xml</code> inside an <code>activity_main.xml</code>.</p>
<p>The fragment is added inside a Tabbed Activity created from an Android Studio template.</p>
<p>I want to do a change in the Fragment's view from within the Activity. That's why I created an Interface that allows the Fragment t... | I have a fragment_main.xml inside an activity_main.xml . The fragment is added inside a Tabbed Activity created from an Android Studio template. I want to do a change in the Fragment's view from within the Activity. That's why I created an Interface that allows the Fragment to call the Activity during the Fragment's on... | android|android-fragments | 1 | 2017-05-15T14:27:01.373Z | 2,017 | 5 | 14 | 0 | 1,613 | 2 | 1,325 | 87 | 2 | 3 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.