id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,821,535 | add more fields to DBAdapter class | <p>i try to save current date values when button get clicked....i use DBAdapter for save parameters to sqlite and it was fine when used for 2 fields like example of DBAdapter but when i edited DBAdapter for 6 fields this doesnt work.where is my problem?</p>
<p>DBAdapter.java</p>
<pre><code>import java.io.StringReader... | i try to save current date values when button get clicked....i use DBAdapter for save parameters to sqlite and it was fine when used for 2 fields like example of DBAdapter but when i edited DBAdapter for 6 fields this doesnt work.where is my problem? DBAdapter.java [CODE] } MainActivity.java [CODE] } | java|android|sqlite|sqliteopenhelper | 0 | 2016-06-14T20:29:40.687Z | 2,016 | 6 | 20 | 1 | 72 | 1 | 301 | 34 | 4 | 2 | true | false | false | false | false | false | zero |
37,829,059 | ClassNotFoundException for ripple effect when added QR code scanner lib the error only in samsung note-4 | <p>When adding dependencies for the QR code scanner <code>me.dm7.barcodescanner:zxing:1.8.4</code>, it causes the following error in Ripple effect lib <code>com.github.traex.rippleeffect:library:1.3</code>.</p>
<p>I got this error message in Samsung Note 4 (KitKat), it works in some other phone.
<code>java.lang.ClassN... | When adding dependencies for the QR code scanner me.dm7.barcodescanner:zxing:1.8.4 , it causes the following error in Ripple effect lib com.github.traex.rippleeffect:library:1.3 . I got this error message in Samsung Note 4 (KitKat), it works in some other phone. java.lang.ClassNotFoundException: Didn't find class "com.... | android|ripple | 0 | 2016-06-15T07:40:44.213Z | 2,016 | 6 | 7 | 2 | 72 | 1 | 336 | 104 | 2 | 0 | false | false | false | false | false | false | zero |
37,894,644 | Error:NullPointerException when put button.setOnclickListener in onResponse method | <p>When i click my button in my activity, it will stop and show an error like this :</p>
<pre><code>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
</code></pre>
<p>In my activity,... | When i click my button in my activity, it will stop and show an error like this : [CODE] In my activity, i put button.setOnclickListener in onResponse() method from Response.Listener. I do this because i want to get the data from JSONObject and use that data when i click my button. Sorry, I'm not too fluent in English ... | android | -2 | 2016-06-18T07:52:13.913Z | 2,016 | 6 | 7 | 5 | 72 | 1 | 367 | 82 | 1 | 3 | true | false | false | false | false | true | negative |
37,898,255 | Execute Query in android searching if a string is contained inside the string inserted in a column | <p>I have a database in an android app and the following are its columns:</p>
<pre><code>public class DBhelper extends SQLiteOpenHelper {
public static final String COL_TIPO = "ColonnaTipo";
public static final String COL_DIFFICOLTA="ColonnaDifficolta";
public static final String COL_INGREDIENTI = "Colonna... | I have a database in an android app and the following are its columns: [CODE] I use this function to make a query on it (TAB is the name of the table): [CODE] In param[] there are the values of COL_TIPO and COL_DIFFICOLTA that i am searching, and it works. In p2[] there are 2 strings: p2[0] = "hi", p2[1]= "try" . I wou... | android|sql|string|sqliteopenhelper|contain | 1 | 2016-06-18T14:50:11.780Z | 2,016 | 6 | 14 | 5 | 72 | 1 | 558 | 98 | 5 | 4 | true | false | false | false | false | false | low |
37,965,828 | Securing Data Via Fingerprint Verification | <p>I'm looking into ways to secure data on mobile via fingerprint verification.</p>
<p>The situtation on iOS seems fairly straight-forward by securing data in the Keychain via Touch.</p>
<p>But can something like this be done on Android where a piece of data is secured via a fingerprint? Or would we have to handle th... | I'm looking into ways to secure data on mobile via fingerprint verification. The situtation on iOS seems fairly straight-forward by securing data in the Keychain via Touch. But can something like this be done on Android where a piece of data is secured via a fingerprint? Or would we have to handle the association of da... | android|ios | 0 | 2016-06-22T10:49:32.653Z | 2,016 | 6 | 10 | 2 | 72 | 1 | 597 | 42 | 2 | 0 | false | false | false | false | false | false | zero |
38,026,225 | Where is the "content_my.xml" file in Android Studio? | <p>In the training <a href="https://developer.android.com/training/basics/firstapp/creating-project.html" rel="nofollow noreferrer">docs</a>, it says that the <em>content_my.xml</em> should be in the <em>layout</em> directory. But as you can see in the picture below, it is missing from there. What can I do?</p>
<p><a ... | In the training docs , it says that the content_my.xml should be in the layout directory. But as you can see in the picture below, it is missing from there. What can I do? | android|xml | 0 | 2016-06-25T07:46:15.523Z | 2,016 | 6 | 7 | 5 | 72 | 1 | 171 | 53 | 2 | 0 | false | false | false | false | false | false | zero |
38,032,733 | Android: Can't seem to theme SearchView | <p>I've been trying real hard to theme SearchView. My min API is sdk 21 too, so I should be able to use the new styling options.</p>
<p>Specifically, I want the in-app-bar text field that appears when I click on the search icon to be theme-able. I want to ultimately make the background white, and the text/cursor eithe... | I've been trying real hard to theme SearchView. My min API is sdk 21 too, so I should be able to use the new styling options. Specifically, I want the in-app-bar text field that appears when I click on the search icon to be theme-able. I want to ultimately make the background white, and the text/cursor either blue or b... | android | 0 | 2016-06-25T20:33:08.087Z | 2,016 | 6 | 20 | 5 | 72 | 1 | 779 | 39 | 1 | 1 | true | false | false | false | false | false | zero |
37,761,151 | Shared Preference Method Call From Activity to Java Class | <p>So I'm currently having an issue with the context inside SharedPreferences where it says LoginActivity.this. This is my device.java class and LoginActivity is the Activity I want to call this method from. So would it be like Device.This or something along those lines?</p>
<p>Methods:</p>
<pre><code>public void val... | So I'm currently having an issue with the context inside SharedPreferences where it says LoginActivity.this. This is my device.java class and LoginActivity is the Activity I want to call this method from. So would it be like Device.This or something along those lines? Methods: [CODE] | variables|android-studio|android-activity|sharedpreferences|mobile-application | 0 | 2016-06-11T07:27:29.223Z | 2,016 | 6 | 7 | 5 | 328 | 1 | 284 | 57 | 5 | 1 | true | false | false | false | false | false | zero |
37,754,030 | Android Viewpager to load images from SD Card | <p>Guys Im using the following custom code to load 20 images from resources and present in a viewpager</p>
<pre><code>public class CustomPagerAdapter extends PagerAdapter {
int[] mResources = {
R.drawable.slide1,
R.drawable.slide2,
R.drawable.slide3,
R.drawable.slide4,
R.drawabl... | Guys Im using the following custom code to load 20 images from resources and present in a viewpager [CODE] This works fine but I want to put the jpgs in a directory on the device so that they can be changed without recompiling the app I think I need to get the images into the mResource array. I can get the path but not... | image|android-viewpager|sd-card | 0 | 2016-06-10T17:27:46.750Z | 2,016 | 6 | 17 | 4 | 584 | 1 | 605 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
37,837,224 | Firebase authWithOauthToken is not working | <p>I am developing an app in Android using firebase.I have created the login activity where i have a method that logs user in when they pass the credentials(user creation is already done).Then i will save the token recieved in onAuthenticated callback so that i can log user in automatically next time when he/she opens ... | I am developing an app in Android using firebase.I have created the login activity where i have a method that logs user in when they pass the credentials(user creation is already done).Then i will save the token recieved in onAuthenticated callback so that i can log user in automatically next time when he/she opens the... | android|firebase|firebase-realtime-database|firebase-authentication | 0 | 2016-06-15T13:42:16.530Z | 2,016 | 6 | 13 | 2 | 584 | 1 | 682 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
37,757,541 | MediaStore.Images.Media.insertImage() error | <p>I have two devices with the same android version (4.4.2). The problem is that when call a method insertImage(getContentResolver(),bitmap, "", ""), on one i have error and the other works as planned</p>
<blockquote>
<p>E/MediaStore: Failed to insert image
java.io.File... | I have two devices with the same android version (4.4.2). The problem is that when call a method insertImage(getContentResolver(),bitmap, "", ""), on one i have error and the other works as planned E/MediaStore: Failed to insert image java.io.FileNotFoundException: No entry for content://media/external/images/media/386... | android|mediastore | 1 | 2016-06-10T21:41:36.107Z | 2,016 | 6 | 21 | 4 | 1,352 | 1 | 832 | 43 | 2 | 0 | false | false | false | false | false | false | low |
37,928,404 | Upload a file from Android to the server via PHP | <p>Can anyone help me to make my code work, i.e. upload a file from Android to the server via PHP? I tried it in many different ways but it won't work. I get HTTP Response 200 but the files aren't uploaded on server.</p>
<p>The PHP script I'm using for upload is:</p>
<pre><code><?php
$uploaddir = 'uploads/';
$uplo... | Can anyone help me to make my code work, i.e. upload a file from Android to the server via PHP? I tried it in many different ways but it won't work. I get HTTP Response 200 but the files aren't uploaded on server. The PHP script I'm using for upload is: [CODE] I also tried using multipart from Httpmime 4.0 but it wont ... | php|android|file|upload|server | 0 | 2016-06-20T17:26:15.423Z | 2,016 | 6 | 17 | 0 | 1,608 | 1 | 332 | 48 | 5 | 2 | true | false | false | false | false | false | zero |
37,627,458 | How to filter facebook share intent in android? | <p>I have a share button. I share a message with some text and URL. It working well with whatsapp, Twitter and Gmail. But, in facebook share I'm able to share website link only. After, searching on web I have found ShareDialog class for facebook share.My question is how detect (ex: onClick() for facebook icon) when use... | I have a share button. I share a message with some text and URL. It working well with whatsapp, Twitter and Gmail. But, in facebook share I'm able to share website link only. After, searching on web I have found ShareDialog class for facebook share.My question is how detect (ex: onClick() for facebook icon) when user c... | android | 0 | 2016-06-04T07:10:24.220Z | 2,016 | 6 | 7 | 5 | 73 | 1 | 442 | 47 | 1 | 1 | true | false | false | false | false | false | zero |
37,898,823 | android xmlpullparser detects every END_TAG twice | <p>I have really searched for this, but could find no answer, my case doesn't
seem too far from the doc and examples I have read, yet...<br>
I am just parsing an XML file, with nested elements with xmlpullparser, and
storing the datas in an ArrayList of custom Objects.<br>
Nearly everything's ok, but I end up with 2x ... | I have really searched for this, but could find no answer, my case doesn't seem too far from the doc and examples I have read, yet... I am just parsing an XML file, with nested elements with xmlpullparser, and storing the datas in an ArrayList of custom Objects. Nearly everything's ok, but I end up with 2x too many obj... | android|xml|xmlpullparser|end-tag | 0 | 2016-06-18T15:47:59.310Z | 2,016 | 6 | 15 | 5 | 73 | 1 | 1,110 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
38,005,835 | New version upload warning | <p>I am about to update a new version of my app to the Google play store and I am using Google play services for admob. My minsdk is 8. I understand that to use google play service I have to have at least API 9 minimum. However I do have users who are using the app on API 8. In my code I have platform version checks wh... | I am about to update a new version of my app to the Google play store and I am using Google play services for admob. My minsdk is 8. I understand that to use google play service I have to have at least API 9 minimum. However I do have users who are using the app on API 8. In my code I have platform version checks which... | android|admob | 3 | 2016-06-24T04:54:38.197Z | 2,016 | 6 | 4 | 4 | 73 | 1 | 920 | 26 | 2 | 0 | false | false | false | false | false | false | low |
38,008,886 | Including Google API (maps) in non Gradle Android Studio project | <p>I have a legacy Android project (for Android API version 8 to 17) and I am struggling to get it to build correctly. It is a non-gradle project, and I can not convert it to gradle just yet (there is a build server that will fail then). It has already been edited in Android Studio before me by a person no longer here,... | I have a legacy Android project (for Android API version 8 to 17) and I am struggling to get it to build correctly. It is a non-gradle project, and I can not convert it to gradle just yet (there is a build server that will fail then). It has already been edited in Android Studio before me by a person no longer here, an... | android|android-studio|google-maps-android-api-2|android-maps | 0 | 2016-06-24T08:29:19.853Z | 2,016 | 6 | 8 | 4 | 73 | 1 | 954 | 64 | 4 | 1 | true | false | false | false | false | false | zero |
37,727,013 | Unexpected toolbar behavior using AppBarLayout on Ice Cream Sandwich API 15 | <p>Here is my main layout</p>
<pre><code><android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match... | Here is my main layout [CODE] On API 16 and up there is no issue. When content is scrolled the toolbar shifts up until collapsed like it should. However on API 14/15 when scrolled the content does not scroll, only the toolbar. when toolbar is collapsed the content then scrolls but will not overlap where the toolbar was... | android|android-coordinatorlayout|android-design-library|android-appbarlayout | 0 | 2016-06-09T13:13:02.763Z | 2,016 | 6 | 13 | 3 | 329 | 1 | 548 | 75 | 4 | 2 | true | false | false | false | false | false | zero |
38,054,179 | How do I convert a jodatime Duration into a string formatted as hh:mm:ss? | <p>I'm using the jodatime library. I want to display a count-down between now and an end time and display it to the user. I get the duration that I want to display via:</p>
<pre><code>Interval time = new Interval(DateTime.now(), end_time);
Duration duration = time.toDuration();
</code></pre>
<p>Now I want to convert ... | I'm using the jodatime library. I want to display a count-down between now and an end time and display it to the user. I get the duration that I want to display via: [CODE] Now I want to convert the duration into a string formatted as hh:mm:ss . What is the most straightforward way to do this? | java|android|time|jodatime | 2 | 2016-06-27T12:36:26.313Z | 2,016 | 6 | 12 | 0 | 329 | 1 | 294 | 73 | 4 | 1 | true | false | false | false | false | false | low |
37,787,456 | How can I make my toolbar a gradient in colors.xml? | <p>How can I make my toolbar a gradient between <code>#11FFBD</code> and <code>#AAFFA9</code> in colors.xml? My code for a plain blue header is: </p>
<pre><code><color name="primary">#00BCD4</color>
<color name="primary_dark">#00838F</color>
<color name="primary_pressed">#0097A7</color... | How can I make my toolbar a gradient between #11FFBD and #AAFFA9 in colors.xml? My code for a plain blue header is: [CODE] | android|android-studio|ui-design | 0 | 2016-06-13T10:33:07.490Z | 2,016 | 6 | 10 | 0 | 841 | 1 | 122 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
37,720,165 | Double tap listener is not working in fragments | <p>Double tap listener is not working in fragment. Firstly I wrote the and implemented on sample project that is working fine in sample project.In sample project there is only one activity.But when I am trying to integrate that sample code into my project it is not working fine.My real project has an activity that is l... | Double tap listener is not working in fragment. Firstly I wrote the and implemented on sample project that is working fine in sample project.In sample project there is only one activity.But when I am trying to integrate that sample code into my project it is not working fine.My real project has an activity that is load... | android|gesture | 1 | 2016-06-09T08:04:25.913Z | 2,016 | 6 | 8 | 3 | 1,097 | 1 | 818 | 47 | 2 | 3 | true | false | false | false | false | false | low |
37,948,492 | How to keep resources in proguard_rules.pro? | <p>How can i keep resources in activity only and method names and variables be obfuscated?</p>
<p>For example i want to keep R.layout.activity_main.</p>
<p>Thank you</p> | How can i keep resources in activity only and method names and variables be obfuscated? For example i want to keep R.layout.activity_main. Thank you | android|proguard|android-proguard | 1 | 2016-06-21T15:23:07.657Z | 2,016 | 6 | 15 | 1 | 1,865 | 1 | 148 | 44 | 3 | 0 | false | false | false | false | false | false | low |
37,964,005 | Android Speechrecognizer stopListening() has no effect? | <p>I have a problem when using SpeechRecognizer.stopListening() on Android, after having invoked startListening(). It simply seems to have no effect. The audio continues to be processed, and the recognition results are returned, just as if stopListening() had not been invoked.</p>
<p>Has anyone else had similar proble... | I have a problem when using SpeechRecognizer.stopListening() on Android, after having invoked startListening(). It simply seems to have no effect. The audio continues to be processed, and the recognition results are returned, just as if stopListening() had not been invoked. Has anyone else had similar problems? May I b... | android|speech-recognition | 6 | 2016-06-22T09:33:01.417Z | 2,016 | 6 | 9 | 2 | 2,889 | 1 | 792 | 55 | 2 | 0 | false | false | true | false | false | false | medium |
37,855,879 | Android find current fragment | <p>I have 4 java class that i use as fragments: `F1,F2,F3,F4.
When i want to swich from one to other, i use this code:</p>
<pre><code>android.app.FragmentManager FM = getFragmentManager();
FragmentTransaction FT = FM.beginTransaction();
F1 FP = new F1();
FT.add(R.id.where, FP,"F1");
FT.... | I have 4 java class that i use as fragments: `F1,F2,F3,F4. When i want to swich from one to other, i use this code: [CODE] If i want to make possible to return from one of them to the previous, i add addToBackStack(TAG) as following: [CODE] I have only one activity that chages the current fragment displayed. I would ge... | android|android-fragments | 1 | 2016-06-16T09:58:12.050Z | 2,016 | 6 | 9 | 3 | 8,265 | 1 | 416 | 29 | 2 | 3 | true | false | true | false | false | false | low |
37,602,113 | Android Studio Emulator error | <p>I have a problem with android studio emulator. Every time I create my own activity, for example myscreen.xml, and in MainActivity.java I change this line of code</p>
<pre><code>setContentView(R.layout.activity_main) into setContentView(R.layout.myscreen);
</code></pre>
<p>the emulator shows me the following error... | I have a problem with android studio emulator. Every time I create my own activity, for example myscreen.xml, and in MainActivity.java I change this line of code [CODE] the emulator shows me the following error: "UNFORTUNATELY LAUNCHER HAS STOPPED TO WORK". But if I use my main activity, for example setContentView(R.la... | java|android | -1 | 2016-06-02T21:07:02.117Z | 2,016 | 6 | 21 | 3 | 74 | 1 | 510 | 29 | 2 | 1 | true | false | false | false | false | true | negative |
37,681,426 | how open a file exclusively with an app | <p>i want open a file with hp ePrint exclusively...but with my code, file is opened with adobe reader...i don't know why....
THANKS IN ADVANCE!</p>
<pre><code>public void viewPDF() {
String path = "/sdcard/droidText/ciccia.pdf";
try {
File targetFile = new File(path);
Uri targetUri = Uri.fromFile(targe... | i want open a file with hp ePrint exclusively...but with my code, file is opened with adobe reader...i don't know why.... THANKS IN ADVANCE! [CODE] | java|android|android-studio | 0 | 2016-06-07T13:55:17.083Z | 2,016 | 6 | 13 | 1 | 74 | 1 | 147 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
37,686,653 | Android: Posting over a network with self signing SSL Certs | <p>I have written a piece of code which needs to post to an online form on a specified URL. The SSL of the site is a self signing SSL Certificate. I have tried everything but keep getting a file not found exception. When I specify the URL to the Certificate must it point to the exact location of the .crt file?</p>
<p>... | I have written a piece of code which needs to post to an online form on a specified URL. The SSL of the site is a self signing SSL Certificate. I have tried everything but keep getting a file not found exception. When I specify the URL to the Certificate must it point to the exact location of the .crt file? Please look... | android|ssl|post|keystore | 0 | 2016-06-07T18:24:53.087Z | 2,016 | 6 | 18 | 1 | 74 | 1 | 420 | 59 | 4 | 2 | true | false | false | false | false | false | zero |
37,758,623 | Convert GWT web game to support mobile browsers | <p>I have a web game that was built in GWT. I am really struggling to make it mobile-friendly. To support multiple screen sizes for desktop, I just used the transform: scale(*) CSS property, but it doesn't seem to apply well for the mobile browsers.
Any guidelines/tips about how to tackle this?
<a href="http://www.pok... | I have a web game that was built in GWT. I am really struggling to make it mobile-friendly. To support multiple screen sizes for desktop, I just used the transform: scale(*) CSS property, but it doesn't seem to apply well for the mobile browsers. Any guidelines/tips about how to tackle this? http://www.poker-fighter.co... | android|css|iphone|mobile|gwt | 1 | 2016-06-10T23:56:33.167Z | 2,016 | 6 | 23 | 4 | 74 | 1 | 339 | 47 | 5 | 0 | false | false | false | false | false | false | low |
37,846,961 | Where in .java code are the fragment changes? | <p>I've downloaded this sample from Android Developers (it's a navigation drawer) and since I'm really new to Android development, I don't really understand fragments fully. So where in this code does it actually write which fragment will change and which fragment will be displayed on the screen?</p>
<pre><code>@Overr... | I've downloaded this sample from Android Developers (it's a navigation drawer) and since I'm really new to Android development, I don't really understand fragments fully. So where in this code does it actually write which fragment will change and which fragment will be displayed on the screen? [CODE] | java|android|android-fragments | 0 | 2016-06-15T22:37:11.007Z | 2,016 | 6 | 22 | 2 | 74 | 1 | 301 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
37,850,084 | Android AVD screen display big in xamarin how to change display setting | <p>Android AVD screen display big in xamarin how to change display setting
<img src="https://i.stack.imgur.com/1WPD1.png" alt="AVD screen running time"></p>
<p>please help me to create AVD display (vs 2015 xamarin/c#) like display avd in android studio/java very clear and nice</p> | Android AVD screen display big in xamarin how to change display setting please help me to create AVD display (vs 2015 xamarin/c#) like display avd in android studio/java very clear and nice | android|xamarin|avd|display | -1 | 2016-06-16T04:48:50.173Z | 2,016 | 6 | 4 | 3 | 74 | 1 | 189 | 71 | 4 | 0 | false | false | false | false | false | true | negative |
37,891,869 | adding res directories do not show up in android studio | <p>I added <code>res directories</code> in android studio for my android project. I added them using the IDE as well as manually with <code>mkdir res_dir</code>. However, they do not show up on the project tree. I want to view them on the tree so I know for sure they are in the project rather than <code>ls</code> every... | I added res directories in android studio for my android project. I added them using the IDE as well as manually with mkdir res_dir . However, they do not show up on the project tree. I want to view them on the tree so I know for sure they are in the project rather than ls every time to check. I tried restarting my IDE... | android|android-studio|android-resources | 0 | 2016-06-17T23:48:53.453Z | 2,016 | 6 | 23 | 4 | 74 | 1 | 505 | 55 | 3 | 0 | false | false | false | false | false | false | zero |
37,964,127 | EditText is being rendered incorrectly | <p>I have a layout which is being rendered as below image:
<a href="http://i.stack.imgur.com/2mXtb.png" rel="nofollow">Layout being rendered on device</a></p>
<p>It should be something like this, as being shown in Android Studio.
<a href="http://i.stack.imgur.com/0waQi.png" rel="nofollow">Layout being shown in Android... | I have a layout which is being rendered as below image: Layout being rendered on device It should be something like this, as being shown in Android Studio. Layout being shown in Android Studio This is not device dependent issue and coming to all the device. Please help. | android|android-edittext|android-textinputlayout | 0 | 2016-06-22T09:38:04.390Z | 2,016 | 6 | 9 | 2 | 74 | 1 | 270 | 38 | 3 | 0 | false | false | false | false | false | false | zero |
37,757,994 | Passing data between fragment in tabhost | <p>i create a tabhost with two fragment </p>
<pre><code> mTabHost = (FragmentTabHost)rootView.findViewById(R.id.tabhost1);
mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.tabcontent1);
mTabHost.addTab(mTabHost.newTabSpec("fragmentb").setIndicator("STATIONS"), Ligne11Tram.class, null);
mTabHo... | i create a tabhost with two fragment [CODE] I want to send data from the first fragment(Ligne11Tram) to the 2nd fragment (Infotrafic) , please can someone tell me how to do | android|android-fragments|android-tabhost | 2 | 2016-06-10T22:29:48.857Z | 2,016 | 6 | 22 | 4 | 330 | 1 | 172 | 40 | 3 | 1 | true | false | false | false | false | false | low |
37,742,394 | DeepLinkDispatch match any path | <p>I'm using AirBnB's <a href="https://github.com/airbnb/DeepLinkDispatch" rel="nofollow">DeepLinkDispatch</a> for handling deep links in an application and I want to match deep links like:</p>
<pre><code>appscheme://productsSection/some/nested/product/categories/structure
appscheme://productsSection/some/nested/produ... | I'm using AirBnB's DeepLinkDispatch for handling deep links in an application and I want to match deep links like: [CODE] From what I've seen in the the documentation I can configure a deep link path like: [CODE] My problem is that I don't know at compile time how deep the path is nested. Is there any way to configure ... | android|deep-linking | 1 | 2016-06-10T07:29:47.093Z | 2,016 | 6 | 7 | 4 | 586 | 1 | 926 | 31 | 2 | 2 | true | false | false | false | false | false | low |
38,021,107 | determining device storage space not working: android | <p>I am using the following code to determine the storage space AVAILABLE on my device when I install or delete apps, and <strong>I am not getting the correct space available printed in my monitor</strong>. This code gets run in a Broadcast Receiver that is listening for when apps are removed or installed. </p>
<pre>... | I am using the following code to determine the storage space AVAILABLE on my device when I install or delete apps, and I am not getting the correct space available printed in my monitor . This code gets run in a Broadcast Receiver that is listening for when apps are removed or installed. [CODE] when I tested this code ... | java|android|storage | 1 | 2016-06-24T19:51:16.820Z | 2,016 | 6 | 19 | 4 | 586 | 1 | 1,537 | 53 | 3 | 1 | true | false | false | false | false | false | low |
37,872,847 | Cannot resolve symbol ColorStateList | <p>I'm trying to use <code>ColorStateList</code> to change the color of a <code>RadioGroup</code>, but running into some basic errors. Can I change the color of <code>RadioGroup</code> buttons without using <code>ColorStateList</code>? Is there an easier way?</p>
<p>I've imported the following and still getting 'can... | I'm trying to use ColorStateList to change the color of a RadioGroup , but running into some basic errors. Can I change the color of RadioGroup buttons without using ColorStateList ? Is there an easier way? I've imported the following and still getting 'cannot resolve symbol'. [CODE] I'm trying to implement ColorStateL... | android | 2 | 2016-06-17T03:51:17.010Z | 2,016 | 6 | 3 | 4 | 842 | 1 | 504 | 36 | 1 | 2 | true | false | false | false | false | false | low |
37,905,591 | Text View not showing | <p>I have created a collapsible toolbar which contains data related to a student.
My problem is that the last Linear layout is not getting shown.</p>
<pre><code>enter <?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/andro... | I have created a collapsible toolbar which contains data related to a student. My problem is that the last Linear layout is not getting shown. [CODE] The linear layout with id= linear_value is not getting shown. What can be the problem? | android|android-linearlayout|textview|android-collapsingtoolbarlayout | 1 | 2016-06-19T09:05:51.507Z | 2,016 | 6 | 9 | 6 | 1,354 | 1 | 236 | 21 | 4 | 1 | true | false | false | false | false | false | low |
37,951,246 | React Native cannot find development server, integrating existing android app | <p>I'm trying to integrate an existing android app with React Native, following the <a href="https://facebook.github.io/react-native/docs/embedded-app-android.html" rel="nofollow">guide</a>. It compiles and runs, but when I launch the React activity, it crashes with:</p>
<blockquote>
<p>Caused by: java.lang.RuntimeE... | I'm trying to integrate an existing android app with React Native, following the guide . It compiles and runs, but when I launch the React activity, it crashes with: Caused by: java.lang.RuntimeException: Could not connect to development server. I've tried both in an emulator (genymotion) and on a usb-connected device.... | android|react-native|genymotion|usb-debugging | 2 | 2016-06-21T17:49:15.573Z | 2,016 | 6 | 17 | 1 | 1,354 | 1 | 1,059 | 77 | 4 | 1 | true | false | false | false | false | false | low |
37,838,571 | Adding custom header to all requests in shouldInterceptRequest Android webview | <p>I want to add custom Headers to requests in the webview. I think it should be possible to do it in <code>shouldInterceptRequest</code>.. Since my minimum API level is less than 21 <code>shouldInterceptRequest</code> (final WebView view, final String url) is also called and therefore I need to add headers here as wel... | I want to add custom Headers to requests in the webview. I think it should be possible to do it in shouldInterceptRequest .. Since my minimum API level is less than 21 shouldInterceptRequest (final WebView view, final String url) is also called and therefore I need to add headers here as well but I am not sure how. [CO... | android|webview | 7 | 2016-06-15T14:39:58.253Z | 2,016 | 6 | 14 | 2 | 6,986 | 1 | 409 | 78 | 2 | 1 | true | false | true | false | false | false | medium |
37,654,887 | Android:Local Notification misfires | <p>I am trying to set a daily notification in android. Using alarm receiver following is my code.</p>
<pre><code>public class DrawerActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activit... | I am trying to set a daily notification in android. Using alarm receiver following is my code. [CODE] This is my alarm receiver [CODE] Finally this is my notification activity. [CODE] Now the problem is I get notification every night at 10pm which is fine. But after clicking on it and entering the application the notif... | android|android-notifications | 0 | 2016-06-06T10:17:47.160Z | 2,016 | 6 | 10 | 0 | 75 | 1 | 357 | 35 | 2 | 3 | true | false | false | false | false | false | zero |
37,675,690 | context is null in isolated process | <p>I have the next method:</p>
<pre><code>protected synchronized void buildGoogleApiClient() {
mGoogleApiClient = new GoogleApiClient.Builder(context)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API).build();
}
</code></pre>
<p>T... | I have the next method: [CODE] The method should run in service with isolatedProcess="true", the problem is the context object becomes null in the isolated Process, how to handle it? | android|service|android-googleapiclient | -1 | 2016-06-07T09:38:04.833Z | 2,016 | 6 | 9 | 1 | 75 | 1 | 182 | 35 | 3 | 1 | true | false | false | false | false | true | negative |
37,677,516 | Bug! Copy duplicate json data in fragment on Android | <p>I want show 3 <code>fragments</code> in my <code>Activity</code> and load data from <strong><code>json</code></strong> in any <code>fragments</code>! I want show each json data into one fragment, but in my application copy duplicate json data in fragment one ! <br>
<strong>For example :</strong> when running applica... | I want show 3 fragments in my Activity and load data from json in any fragments ! I want show each json data into one fragment, but in my application copy duplicate json data in fragment one ! For example : when running application show 1 post in any fragment but when swipe between tabs copy json data below posts! myEv... | android|json|android-fragments | 0 | 2016-06-07T11:00:06.557Z | 2,016 | 6 | 11 | 1 | 75 | 1 | 553 | 52 | 3 | 3 | true | false | false | false | false | false | zero |
37,740,304 | Can accelerometer values be used regularly (or continuously)? | <p>I don't want to use <code>accelerometer</code> values <a href="https://developer.android.com/reference/android/hardware/SensorEventListener.html" rel="nofollow">only on change</a>.</p>
<p>I want to use them <code>regularly</code>, to keep track of their changes with respect to the change in time. So, I want to use ... | I don't want to use accelerometer values only on change . I want to use them regularly , to keep track of their changes with respect to the change in time. So, I want to use accelerometer values each t milliseconds . | android|android-sensors | 0 | 2016-06-10T05:07:32.017Z | 2,016 | 6 | 5 | 4 | 75 | 1 | 216 | 61 | 2 | 0 | false | false | false | false | false | false | zero |
37,970,664 | setting select to width 100% disables select function on android 5.1.x and Nexus-7 (phonegap build) | <p>i've to work with phonegap build, cli 5.x and try to build a search form with several inputs, 3 of them are select boxes.</p>
<p>all works fine till i wanted to set the css of the select nodes to 100% with. If i enable this css the selection does not open any more.</p>
<p>My Android Device for testing that won't w... | i've to work with phonegap build, cli 5.x and try to build a search form with several inputs, 3 of them are select boxes. all works fine till i wanted to set the css of the select nodes to 100% with. If i enable this css the selection does not open any more. My Android Device for testing that won't work is a Nexus 7 wi... | android|select|width|phonegap-build|nexus-7 | 0 | 2016-06-22T14:13:41.960Z | 2,016 | 6 | 14 | 2 | 75 | 1 | 847 | 99 | 5 | 1 | true | false | false | false | false | false | zero |
37,823,896 | Resizeable widget in ConstraintLayout | <p>I've got a <code>ListView</code> item with three components aligned horizontally:</p>
<ol>
<li>an <code>ImageView</code> containing an icon</li>
<li>a <code>TextView</code> with a headline</li>
<li>another <code>ImageView</code> wit a status icon</li>
</ol>
<p>Currently, I have them arranged via a <code>RelativeLa... | I've got a ListView item with three components aligned horizontally: an ImageView containing an icon a TextView with a headline another ImageView wit a status icon Currently, I have them arranged via a RelativeLayout and my TextView is 'elastic'. Is it possible to create the same layout in ConstraintLayout ? Basically,... | android|android-constraintlayout | 1 | 2016-06-14T23:41:34.810Z | 2,016 | 6 | 23 | 1 | 331 | 1 | 406 | 37 | 2 | 0 | false | false | false | false | false | false | low |
38,056,172 | onPause(), onStop(), setUserVisibleHint(), and onHiddenChange() is not getting Called while using ViewPager Fragments | <p>I have a ViewPager which contain 2 tabs(2 Separate fragments).</p>
<p>My Second Tab consist of further 6 child tabs (each separate fragment) in another ViewPager.</p>
<p>Now When i switch between 6 child tabs, setUserVisibleHint() method is called.</p>
<p>But when i am present on my any of 6 child tabs(i.e fragme... | I have a ViewPager which contain 2 tabs(2 Separate fragments). My Second Tab consist of further 6 child tabs (each separate fragment) in another ViewPager. Now When i switch between 6 child tabs, setUserVisibleHint() method is called. But when i am present on my any of 6 child tabs(i.e fragment) and i try to switch bet... | android|android-fragments|android-viewpager|android-tabs | -1 | 2016-06-27T14:10:47.727Z | 2,016 | 6 | 14 | 0 | 843 | 1 | 755 | 117 | 4 | 0 | false | false | false | false | false | true | negative |
37,885,364 | Aligning Elements to Elements in a different ConstraintLayout | <p>I am currently familiarizing myself with the new <code>ConstraintLayout</code>, and try to combine them with card views, but have hit a road block while trying to align elements between two <code>CardView</code>s.</p>
<p>I want to align in this picture </p>
<ul>
<li>the heart pictogram with the armor class</li>
<l... | I am currently familiarizing myself with the new ConstraintLayout , and try to combine them with card views, but have hit a road block while trying to align elements between two CardView s. I want to align in this picture the heart pictogram with the armor class the 5 with initative with the Initiative the 10 with the ... | android | 2 | 2016-06-17T15:34:05.510Z | 2,016 | 6 | 15 | 4 | 1,099 | 1 | 822 | 61 | 1 | 2 | true | false | false | false | false | false | low |
37,899,081 | some method and class name color changed to blue! how to restore | <p>I working on android studio 2.2 preview 1.for some reasons that I don't know, all brackets , prentices and methods name color changed to blue. How I can restore it. i change my theme to default and restore to it to dracula but it does not work.
<a href="https://i.stack.imgur.com/CRN9O.png" rel="nofollow noreferrer">... | I working on android studio 2.2 preview 1.for some reasons that I don't know, all brackets , prentices and methods name color changed to blue. How I can restore it. i change my theme to default and restore to it to dracula but it does not work. | android-studio|intellij-idea | 2 | 2016-06-18T16:16:27.760Z | 2,016 | 6 | 16 | 5 | 1,099 | 1 | 244 | 64 | 2 | 0 | false | false | false | false | false | false | low |
38,036,202 | Android R.anim.files cannot be found | <p>I am not sure if it is only me but strangely, I cannot access slide_in_right.xml and slide_out_left.xml inside res/anim that I created
<br><br> I am using this line of code to access the animation </p>
<pre><code>UserProfile.this.overridePendingTransition(android.R.anim.slide_in_right, android.R.anim.slide_out_left... | I am not sure if it is only me but strangely, I cannot access slide_in_right.xml and slide_out_left.xml inside res/anim that I created I am using this line of code to access the animation [CODE] However, it underlines the slide_in_right and slide_out_left saying that it cannot Resolve symbol. Methods tried: 1. Clean th... | java|android|android-animation | 3 | 2016-06-26T07:32:12.773Z | 2,016 | 6 | 7 | 6 | 1,611 | 1 | 778 | 36 | 3 | 1 | true | false | false | false | false | false | low |
37,647,572 | How to implement requests sequently in RxAndroid? | <p>I need to check if it exits in DB load and pass to view
if not
load from Server ,Store in DB ,then pass to view
I confused in methods doOnNext(), flatMap() ,I don't which one to use</p>
<p>I couldn't understand the meaning of methods of doOnNext(), flatMap()</p> | I need to check if it exits in DB load and pass to view if not load from Server ,Store in DB ,then pass to view I confused in methods doOnNext(), flatMap() ,I don't which one to use I couldn't understand the meaning of methods of doOnNext(), flatMap() | android|rx-android | -3 | 2016-06-05T22:53:10.700Z | 2,016 | 6 | 22 | 6 | 76 | 1 | 251 | 49 | 2 | 0 | false | false | false | false | false | true | negative |
37,853,476 | Multi-part Equation needing to Auto Calculate = Failure | <p>Good Evening All,
I am stuck,
I have 1 equation that need's to auto-calculate, but I cannot work out how to get that to work (code below). Basically, the user has two pop up's, they make their selection & then it should auto-calculate, then the user make's 1 more entry and it should auto-calculate again (I hope ... | Good Evening All, I am stuck, I have 1 equation that need's to auto-calculate, but I cannot work out how to get that to work (code below). Basically, the user has two pop up's, they make their selection & then it should auto-calculate, then the user make's 1 more entry and it should auto-calculate again (I hope that ma... | javascript|android|ios|jquery-mobile|appery.io | 1 | 2016-06-16T08:13:01.233Z | 2,016 | 6 | 8 | 3 | 76 | 1 | 662 | 55 | 5 | 1 | true | false | false | false | false | false | low |
37,958,871 | JSONException: Index 3 out of range - disable button before error | <p>tutorial: <a href="https://www.simplifiedcoding.net/android-json-tutorial-to-get-data-from-mysql-database/" rel="nofollow">JSON Get data from MySql</a></p>
<p>I followed this tutorial and everything went good. Even though the error not thrown, my app doesn't crash. But how to disable button after view the last arra... | tutorial: JSON Get data from MySql I followed this tutorial and everything went good. Even though the error not thrown, my app doesn't crash. But how to disable button after view the last array in JSON? [CODE] | android|json | 0 | 2016-06-22T04:57:59.270Z | 2,016 | 6 | 4 | 2 | 76 | 1 | 209 | 65 | 2 | 1 | true | false | false | false | false | false | zero |
37,880,476 | Android espresso accessing EditText in adapter in first row | <p>I am using Espresso for testing my app. I have a listview with some data in it. I want to check the value of an edittext in the first line.</p>
<p>I tried:</p>
<blockquote>
<p>onData(withId(R.id.editTextKommissioniert)).inAdapterView(withId(R.id.jflArticleList_ListView)).atPosition(0).check(matches(withText("60.... | I am using Espresso for testing my app. I have a listview with some data in it. I want to check the value of an edittext in the first line. I tried: onData(withId(R.id.editTextKommissioniert)).inAdapterView(withId(R.id.jflArticleList_ListView)).atPosition(0).check(matches(withText("60.0"))); But I always get this excep... | android|android-espresso | 0 | 2016-06-17T11:30:29.070Z | 2,016 | 6 | 11 | 4 | 332 | 1 | 532 | 59 | 2 | 0 | false | false | false | false | false | false | zero |
37,865,874 | Bluetooth LE Disconnects on Pause | <p>I want my bluetooth device to stay connected when the app is not in the main view. Every time I open the home tab or another app it disconnects. How do I maintain a connection on pause? Relevant code is below:</p>
<pre><code>@Override
protected void onPause() {
super.onPause();
//Cancel any s... | I want my bluetooth device to stay connected when the app is not in the main view. Every time I open the home tab or another app it disconnects. How do I maintain a connection on pause? Relevant code is below: [CODE] | java|android|android-studio|bluetooth|bluetooth-lowenergy | 1 | 2016-06-16T17:35:05.023Z | 2,016 | 6 | 17 | 3 | 588 | 1 | 216 | 33 | 5 | 1 | true | false | false | false | false | false | low |
37,663,691 | TextToSpeech: check if it is on-line or off-line for API < 21 | <p>I am trying to implement an app that reads text in different languages. Surprisingly, when I use the method <em>isLanguageAvailable(Locale loc)</em>, it returns <em>true</em> for languages in the Google TTS list that are not downloaded yet. They are even played when I call <em>speak()</em> method. I have concluded t... | I am trying to implement an app that reads text in different languages. Surprisingly, when I use the method isLanguageAvailable(Locale loc) , it returns true for languages in the Google TTS list that are not downloaded yet. They are even played when I call speak() method. I have concluded that this happens because they... | android|android-5.0-lollipop|text-to-speech|voice|google-text-to-speech | 5 | 2016-06-06T17:42:07.127Z | 2,016 | 6 | 17 | 0 | 844 | 1 | 940 | 61 | 5 | 0 | false | false | false | false | false | false | low |
37,667,021 | Android Javascript Engine; Need to replace WebView with Rhino, J2V8, etc | <p>We are trying to replace our webview and html with a layout file and a javascript engine of some sort. There is a TON of javascript that must be called and we have a rather large JavaScriptInterface that will need to be accessable by the JS engine. I have been trying out Rhino and J2V8 but cannot figure out a way ... | We are trying to replace our webview and html with a layout file and a javascript engine of some sort. There is a TON of javascript that must be called and we have a rather large JavaScriptInterface that will need to be accessable by the JS engine. I have been trying out Rhino and J2V8 but cannot figure out a way to gi... | javascript|android|v8|rhino|j2v8 | 2 | 2016-06-06T21:17:00.147Z | 2,016 | 6 | 21 | 0 | 844 | 1 | 515 | 72 | 5 | 0 | false | false | false | false | false | false | low |
37,733,161 | Android Video not playing in Media Player | <p>I wanted to play a video from "<a href="http://travel.gockell.com//data/251/videos/2016-06-09_13-24-21.mp4" rel="nofollow">http://travel.gockell.com//data/251/videos/2016-06-09_13-24-21.mp4</a>" this url.
I am using Media Player to play video,the problem is Media Player doesn't play this url,i tried many other url ... | I wanted to play a video from " http://travel.gockell.com//data/251/videos/2016-06-09_13-24-21.mp4 " this url. I am using Media Player to play video,the problem is Media Player doesn't play this url,i tried many other url which work fine except this. I configured all other thins on manifest like INTERNET Permission. Th... | android | 0 | 2016-06-09T18:02:55.967Z | 2,016 | 6 | 18 | 3 | 1,100 | 1 | 407 | 41 | 1 | 0 | false | false | false | false | false | false | zero |
37,754,381 | Altitude from Google Play Services Fused Location Provider | <p>I am successfully receiving latitude and longitude information with high accuracy from my device's GPS. To achieve this I followed the tutorial here: <a href="https://developer.android.com/training/location/index.html" rel="nofollow">https://developer.android.com/training/location/index.html</a></p>
<p>However, I a... | I am successfully receiving latitude and longitude information with high accuracy from my device's GPS. To achieve this I followed the tutorial here: https://developer.android.com/training/location/index.html However, I also would like a value for altitude from the GPS. Is this not possible? The Location object I recei... | android|gps|google-play-services | 2 | 2016-06-10T17:49:11.783Z | 2,016 | 6 | 17 | 4 | 1,356 | 1 | 496 | 58 | 3 | 1 | true | false | false | false | false | false | low |
37,664,760 | will setting up android BackupAgentHelper ensure that my app will get installed upon factory data restore | <p>I've set up backup / restore in my application via BackupAgentHelper per instructions in <a href="https://developer.android.com/guide/topics/data/backup.html" rel="nofollow">https://developer.android.com/guide/topics/data/backup.html</a></p>
<p>I was also hoping that when I do factory reset on phone B, my applicati... | I've set up backup / restore in my application via BackupAgentHelper per instructions in https://developer.android.com/guide/topics/data/backup.html I was also hoping that when I do factory reset on phone B, my application will get installed there, but that's not the case. I have not deployed my changes to play store, ... | android|android-backup-service | 0 | 2016-06-06T18:46:56.403Z | 2,016 | 6 | 18 | 0 | 77 | 1 | 563 | 105 | 2 | 1 | true | false | false | false | false | false | zero |
37,701,493 | GoogleMaps displaying "locals" on wrong position | <p>i want to display the <code>CurrentPosition</code> of the mobile phone and display all <code>bar|cafe</code> nearby the position.</p>
<p>The <code>CurrentPosition</code> works. </p>
<p>But the displaying of the bars/cafes is wrong. It seems like they are showing up from the center of vienna and not from the positi... | i want to display the CurrentPosition of the mobile phone and display all bar|cafe nearby the position. The CurrentPosition works. But the displaying of the bars/cafes is wrong. It seems like they are showing up from the center of vienna and not from the position of my phone. Would be really thankful if someone could f... | google-maps|android-studio | 0 | 2016-06-08T11:39:12.003Z | 2,016 | 6 | 11 | 2 | 77 | 1 | 360 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
37,749,575 | Android Studio: can not git add new sub package | <p>I have a strange problem with Android Studio. I checked out into a brand new branch. There I create a sub package to an existing main package. Inside that package I create some classes.</p>
<p>Essentially it looks like this</p>
<pre><code>com.package.stuff
|
somepackage
|
out<---- This one is newly c... | I have a strange problem with Android Studio. I checked out into a brand new branch. There I create a sub package to an existing main package. Inside that package I create some classes. Essentially it looks like this [CODE] Normally new files would be highlighted in red color. When I move the classes outside the packag... | android|git|android-studio | -2 | 2016-06-10T13:30:04.940Z | 2,016 | 6 | 13 | 4 | 77 | 1 | 490 | 47 | 3 | 1 | true | false | false | false | false | true | negative |
37,981,422 | Screen record in application with SDK under 21 | <p>I'm trying to make my app have a feature: record itself and write to external store and import to Youtube. I used MediaProjection with API 21+, it's done.
But if i want to record in lower devices (i mean device with SDK 20 or lower), how is possile?
Many thanks</p> | I'm trying to make my app have a feature: record itself and write to external store and import to Youtube. I used MediaProjection with API 21+, it's done. But if i want to record in lower devices (i mean device with SDK 20 or lower), how is possile? Many thanks | android|android-mediaprojection | 1 | 2016-06-23T02:37:17.833Z | 2,016 | 6 | 2 | 3 | 77 | 1 | 261 | 46 | 2 | 0 | false | false | false | false | false | false | low |
37,936,593 | I want a alert dialog to come up when a radio button is checked | <p>I have a radio group with 4 radio buttons. And i want alert dialog to pop when either one of two particular radio buttons is checked. How can i Achieve this??</p> | I have a radio group with 4 radio buttons. And i want alert dialog to pop when either one of two particular radio buttons is checked. How can i Achieve this?? | android|android-alertdialog|android-radiogroup|android-radiobutton | 0 | 2016-06-21T05:57:54.193Z | 2,016 | 6 | 5 | 1 | 333 | 1 | 158 | 63 | 4 | 0 | false | false | false | false | false | false | zero |
37,767,744 | Image uploaded is 0 bytes | <p>I am using the following task to upload multiple images from android device to server using php. </p>
<pre><code> @Override
protected String doInBackground(String... params) {
try {
String url = "http://aerialssnip.com/multipleupload.php/";
int i = Integer.parseInt(params[0])... | I am using the following task to upload multiple images from android device to server using php. [CODE] The images upload without any error both on the android side and the server side. However, the images uploaded are 0 bytes, they do not have any data and i am unable to view them. php script [CODE] Does anyone know w... | php|android|image-uploading | 0 | 2016-06-11T19:29:03.723Z | 2,016 | 6 | 19 | 5 | 589 | 1 | 405 | 25 | 3 | 2 | true | false | false | false | false | false | zero |
37,724,015 | Android textSize unit to fit text in parent with exact size in dp | <p>I have a 32dp * 32dp TextView and a single "A" character in center with size of 10pt. In my device "A" is exactly fit to bounds (from top and bottom and looks good) but in other devices it is smaller or overflows the bounds. </p>
<p>Does <strong>dp</strong>, <strong>ds</strong>, <strong>px</strong> or other units h... | I have a 32dp * 32dp TextView and a single "A" character in center with size of 10pt. In my device "A" is exactly fit to bounds (from top and bottom and looks good) but in other devices it is smaller or overflows the bounds. Does dp , ds , px or other units help? (please remind I am not searching for this automatic res... | android|text-size | 0 | 2016-06-09T10:57:31.113Z | 2,016 | 6 | 10 | 3 | 78 | 1 | 367 | 65 | 2 | 0 | false | false | false | false | false | false | zero |
37,779,797 | How to use Android NavigationDrawer to create other fragments? | <p>It's my first Android project. I need to create a sliding menu to start different pages. Then I find in Android Studio 1.4 there is a default "Navigation Drawer"Activity for us to use.<a href="http://i.stack.imgur.com/cvp2C.png" rel="nofollow">Here is the default image</a> </p>
<p>So i want to click different items... | It's my first Android project. I need to create a sliding menu to start different pages. Then I find in Android Studio 1.4 there is a default "Navigation Drawer"Activity for us to use. Here is the default image So i want to click different items to start different fragments(i think it's fragments not activities). How c... | android|android-fragments|android-drawer | 1 | 2016-06-12T22:44:15.690Z | 2,016 | 6 | 22 | 6 | 78 | 1 | 455 | 62 | 3 | 3 | true | false | false | false | false | false | low |
37,858,023 | AndroidTwitterLogin.run crashes in Log.i line NoSuchMethodError | <p>I am trying to get a simple Android app to work for Twitter.
I am using the library jtwitter.
I am trying to use the AndroidTwitterLogin class.
I have a button to authenticate using OAuth. It calls this code.</p>
<pre><code>public void authorizeApp(View v) {
AndroidTwitterLogin atl = new AndroidTwitterLogin(thi... | I am trying to get a simple Android app to work for Twitter. I am using the library jtwitter. I am trying to use the AndroidTwitterLogin class. I have a button to authenticate using OAuth. It calls this code. [CODE] At runtime when I get to the AndroidTwitterLogin.run line it crashes with the following code. [CODE] Doe... | java|android|oauth|jtwitter|android-log | 0 | 2016-06-16T11:35:39.540Z | 2,016 | 6 | 11 | 3 | 78 | 1 | 414 | 63 | 5 | 2 | true | false | false | false | false | false | zero |
37,890,499 | How do we give ImageCardViews placeholder images while the poster loads? | <p>I have a wrapper class that contains the ImageCardView and loads an image fetched from the Web into it. Before the network call is made, I have </p>
<pre><code> imageCardView.getMainImageView().setImageResource(R.drawable.icon_movie_placeholder);
</code></pre>
<p>For some reason, the image never comes up if... | I have a wrapper class that contains the ImageCardView and loads an image fetched from the Web into it. Before the network call is made, I have [CODE] For some reason, the image never comes up if I have the network call take place right afterwards, even though it takes maybe .5-1.5 seconds for an individual poster to c... | android|android-tv | 0 | 2016-06-17T21:17:34.173Z | 2,016 | 6 | 21 | 4 | 78 | 1 | 565 | 72 | 2 | 1 | true | false | false | false | false | false | zero |
37,629,686 | Setting versionNameSuffix in gradle buildType dynamically | <p>The main issue is that I would like to add a <code>versionNameSuffix</code> to one of my buildTypes depending on the flavor that is being compiled.</p>
<p>I have to flavors, <code>original</code> and <code>free</code> and one buildtype <code>beta</code>.
So I would like to do something like this:</p>
<pre><code>be... | The main issue is that I would like to add a versionNameSuffix to one of my buildTypes depending on the flavor that is being compiled. I have to flavors, original and free and one buildtype beta . So I would like to do something like this: [CODE] And betaVersion() should depend on the flavor that is being compiled, it ... | android|gradle|android-gradle-plugin|android-productflavors|android-build-type | 0 | 2016-06-04T11:30:33.570Z | 2,016 | 6 | 11 | 5 | 334 | 1 | 376 | 57 | 5 | 1 | true | false | false | false | false | false | zero |
37,643,099 | AutoIncrement Realm failed | <p>I create an activity and want to insert a new realm object
it always keep on error http null if i put getNextKey();</p>
<p>here is my activity</p>
<pre><code>package com.example.rikirikmen.billsplit;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import and... | I create an activity and want to insert a new realm object it always keep on error http null if i put getNextKey(); here is my activity [CODE] } here is my DetailMenu.class [CODE] i dont know why is my getNextKey() is not work, because i used the same way in other activity and it works. Does anyone here have the same p... | java|android|oop|realm | 0 | 2016-06-05T14:38:18.283Z | 2,016 | 6 | 14 | 6 | 334 | 1 | 336 | 26 | 4 | 2 | true | false | false | false | false | false | zero |
37,697,296 | Multiple Realm instances in Android lib + Application | <p>I am building an Android library that is supposed to contain a Realm database. This library will be implemented in an Android Application that on its turn contains another Realm database, there is no connection or relation between the two realm instances.</p>
<p>So the question raised: is it a good idea to have 2 d... | I am building an Android library that is supposed to contain a Realm database. This library will be implemented in an Android Application that on its turn contains another Realm database, there is no connection or relation between the two realm instances. So the question raised: is it a good idea to have 2 different Re... | android|realm | 2 | 2016-06-08T08:36:06.703Z | 2,016 | 6 | 8 | 2 | 334 | 1 | 420 | 53 | 2 | 0 | false | false | false | false | false | false | low |
37,799,726 | Android Navigation Drawer - Multiple sections | <p>I am building a navigation drawer which is going to have multiple sections like below: <br>
<a href="http://i.stack.imgur.com/rwkO7.png" rel="nofollow">Sliding Menu</a></p>
<p>Physics <br>
Fundamentals of Physics <br>
Seven Brief Lessons on Physics <br>
The New Physics <br>
The Physicist's World <br... | I am building a navigation drawer which is going to have multiple sections like below: Sliding Menu Physics Fundamentals of Physics Seven Brief Lessons on Physics The New Physics The Physicist's World Subjects Physics Chemistry Biology Art Settings About Logout Section 1: Section 1 will load the list of books based on ... | android|navigation | 0 | 2016-06-13T21:51:28.037Z | 2,016 | 6 | 21 | 0 | 79 | 1 | 968 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
37,940,768 | Pushwoosh crashing on registration on Android 5.0.2 | <p>A colleague in the office is facing the following situation: He downloaded a sample code from the below link to get familiar with pushwoosh functionality: <a href="https://github.com/Pushwoosh/phonegap-build-sample-app" rel="nofollow">https://github.com/Pushwoosh/phonegap-build-sample-app</a>
This example is built ... | A colleague in the office is facing the following situation: He downloaded a sample code from the below link to get familiar with pushwoosh functionality: https://github.com/Pushwoosh/phonegap-build-sample-app This example is built using Adobe PhoneGap online: https://build.phonegap.com Although this example works fine... | android|cordova|pushwoosh | 0 | 2016-06-21T09:38:04.507Z | 2,016 | 6 | 9 | 1 | 79 | 1 | 727 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
37,963,786 | Product Flavors in Android | <p>I have 2 product flavors in an Android project.</p>
<p>I want to use a code base, and I have some code like:</p>
<pre><code>if (BuildConfig.FLAVOR.equals("firstApp")) {
webButton = (FancyButton) findViewById(R.id.webButton);
webButton.setBackgroundColor(Util.getColorFromString(""));
webButt... | I have 2 product flavors in an Android project. I want to use a code base, and I have some code like: [CODE] First App has a layout and it has a button with id webButton. But in the second app's layout, I don't need the webButton, so I removed it. But the code above is giving error, because second app doesn't have the ... | android|android-productflavors | 0 | 2016-06-22T09:23:15.300Z | 2,016 | 6 | 9 | 2 | 79 | 1 | 355 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
37,965,005 | Android 4.3 isProviderEnabled wrong result in Genymotion | <p>Genymotion always said that "GPS open".(Version : 4.3).But GPS is inactive.</p>
<p>But my phones (not emulator) android 6,and 5 return true result.</p>
<pre><code>LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
if (locationManager.isProviderEnabled(LocationManager.GP... | Genymotion always said that "GPS open".(Version : 4.3).But GPS is inactive. But my phones (not emulator) android 6,and 5 return true result. [CODE] | android|gps|genymotion | 0 | 2016-06-22T10:13:42.437Z | 2,016 | 6 | 10 | 2 | 79 | 1 | 147 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
37,895,503 | How to get view attribute in activity? | <p>I hope get view's attributes after view is inflated, but all sof questions need AttributeSet, is there way to do it without AttributeSet?</p>
<p>for ex:</p>
<pre><code><ImageView android:id="@+id/open_with" android:layout_alignParentRight="true"
android:layout_marginLeft="20dp"
android:tex... | I hope get view's attributes after view is inflated, but all sof questions need AttributeSet, is there way to do it without AttributeSet? for ex: [CODE] I hope get "scaleX" with following: [CODE] how to implement it? | android|user-interface | 0 | 2016-06-18T09:38:07.583Z | 2,016 | 6 | 9 | 5 | 335 | 1 | 216 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
37,932,114 | Android Jack Compiler not removing logs from proguard rules | <p>I have tried using:</p>
<pre><code>-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String, int);
public static int v(...);
public static int i(...);
public static int w(...);
public static int d(...);
public static int e(...);
}
</code></pre>
<p>in P... | I have tried using: [CODE] in Proguard to remove logs, and it works great if I'm not using the new Jack compiler [CODE] When I compile the apk, I have noticed all logs being active in production release. Is there an error, bug or is "-assumenosideeffects" not supported yet? Can I do something else te remove strings fro... | android|logging|proguard|android-jack-and-jill | 3 | 2016-06-20T21:29:06.760Z | 2,016 | 6 | 21 | 0 | 591 | 1 | 345 | 59 | 4 | 2 | true | false | false | false | false | false | low |
37,838,936 | Fragments with TabLayout and ViewPager | <p>At the moment I have MainActivity with 2 tabs(with two fragments) and Navigation View with 3 items of menu.
I have only one activity with tabs for now. In MainActivity I have initialization of a Toolbar, NavigationView, ViewPager, TabLayout. Also I have one instance of adapter here, which create fragments for tabs.... | At the moment I have MainActivity with 2 tabs(with two fragments) and Navigation View with 3 items of menu. I have only one activity with tabs for now. In MainActivity I have initialization of a Toolbar, NavigationView, ViewPager, TabLayout. Also I have one instance of adapter here, which create fragments for tabs. Whe... | java|android|android-fragments | 1 | 2016-06-15T14:54:50.340Z | 2,016 | 6 | 14 | 2 | 847 | 1 | 696 | 38 | 3 | 6 | true | false | false | false | false | false | low |
37,889,271 | Xamarin ListView System.MissingMethodException: Method 'TextView.SetTextAppearance' not found | <p>I want to display list of strings in ListView.
In my xaml i have:</p>
<pre><code><ListView x:Name="ListCollections" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3"/>
</code></pre>
<p>In code I have:</p>
<pre><code>ListCollections.ItemsSource = new string[]{"one", "two"};
</code></pre>
<p>When i run app i ... | I want to display list of strings in ListView. In my xaml i have: [CODE] In code I have: [CODE] When i run app i got: [CODE] I am using Xamarin.Forms 2.3.0.49 and Visual studio 2015. Emulator is Android 5.0 | listview|xamarin|xamarin.android|xamarin.forms | 2 | 2016-06-17T19:44:30.173Z | 2,016 | 6 | 19 | 4 | 1,103 | 1 | 206 | 93 | 4 | 3 | true | false | false | false | false | false | low |
38,047,335 | Why is an Android app not debuggable by default? | <p>According to <a href="https://developer.android.com/guide/topics/manifest/application-element.html" rel="nofollow">Android Doc</a>, an Android app is not debuggable by default.</p>
<blockquote>
<p>android:debuggable</p>
<p>Whether or not the application can be debugged, even when running on a device in
us... | According to Android Doc , an Android app is not debuggable by default. android:debuggable Whether or not the application can be debugged, even when running on a device in user mode — "true" if it can be, and "false" if not. The default value is "false". Now, provided that I create a simplest app by Android Studio thro... | android|debugging | 0 | 2016-06-27T06:38:25.067Z | 2,016 | 6 | 6 | 0 | 1,103 | 1 | 631 | 48 | 2 | 0 | false | false | false | false | false | false | zero |
37,765,022 | keytool error:keystore file exists but is empty | <p>I developed an Android application which uses Google Maps API as my graduation project.</p>
<p>I have to publish it on Google Play, so I tried to create an signed APK. I'm doing this via Android Studio's generate signed apk tool. It's okey to creating key. But when i use that signed apk, the map doesn't work. So, I... | I developed an Android application which uses Google Maps API as my graduation project. I have to publish it on Google Play, so I tried to create an signed APK. I'm doing this via Android Studio's generate signed apk tool. It's okey to creating key. But when i use that signed apk, the map doesn't work. So, I searched o... | android|google-maps|android-keystore | 0 | 2016-06-11T14:45:42.683Z | 2,016 | 6 | 14 | 5 | 1,871 | 1 | 815 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
37,958,917 | Default OkHttp version shipped with Retrofit2.1? | <p>Could anyone tell me what is the default OkHttp version that comes with Retrofit2.1. Or which one I should use?
My reference : <a href="https://futurestud.io/blog/retrofit-2-upgrade-guide-from-1-9" rel="nofollow">https://futurestud.io/blog/retrofit-2-upgrade-guide-from-1-9</a>
This link is not exactly clear whether ... | Could anyone tell me what is the default OkHttp version that comes with Retrofit2.1. Or which one I should use? My reference : https://futurestud.io/blog/retrofit-2-upgrade-guide-from-1-9 This link is not exactly clear whether I should or should not use OkHttp 3.3.1. | android|retrofit|okhttp | 3 | 2016-06-22T05:02:14.123Z | 2,016 | 6 | 5 | 2 | 1,871 | 1 | 267 | 48 | 3 | 0 | false | false | false | false | false | false | low |
37,965,411 | Mockito Test: verify static method was called inside fragment | <p>I have a fragment, that calls a static method from another Util class. </p>
<pre><code> public class DummyFragment extends Fragment {
public void dummyMethodCall(){
UtilClass.dummyStaticMethod(Arg arg);
}
}
</code></pre>
<p>How can I verify that the UtilClass.dummyStaticMethod() has been called in... | I have a fragment, that calls a static method from another Util class. [CODE] How can I verify that the UtilClass.dummyStaticMethod() has been called in a Mockito test using PowerMockito?Below is my current test: [CODE] The error log: [CODE] | android|mockito|powermockito | 0 | 2016-06-22T10:32:19.413Z | 2,016 | 6 | 10 | 2 | 1,871 | 1 | 241 | 61 | 3 | 3 | true | false | false | false | false | false | zero |
37,628,345 | D/skia: --- SkImageDecoder::Factory returned null | <p>I received this error. I did not know why it was. I thought it was because of truncated input or null input. I checked everything but finally resolved by changing method</p>
<blockquote>
<p>D/skia: --- SkImageDecoder::Factory returned null</p>
</blockquote>
<p>I used this code to convert string to bitmap </p>
<... | I received this error. I did not know why it was. I thought it was because of truncated input or null input. I checked everything but finally resolved by changing method D/skia: --- SkImageDecoder::Factory returned null I used this code to convert string to bitmap [CODE] THIS DOES NOT WORK FOR ME. Finally found solutio... | android|string|bitmap | 0 | 2016-06-04T08:56:54.850Z | 2,016 | 6 | 8 | 5 | 2,127 | 1 | 374 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
37,632,764 | How to add subitem in Listview | <p>i have a working <code>ListView</code> I'm trying to add subitems in it. but there's seems to be a problem on <code>list.setAdapter(new SimpleAdapter(this, list, label, wala));</code> </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-co... | i have a working ListView I'm trying to add subitems in it. but there's seems to be a problem on list.setAdapter(new SimpleAdapter(this, list, label, wala)); [CODE] | android|listview | 0 | 2016-06-04T16:53:44.100Z | 2,016 | 6 | 16 | 5 | 80 | 1 | 164 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
37,643,959 | How to store added Items in Android | <p>I recently wanted to develop a shopping list app and i followed <a href="http://www.javacjava.com/AndroidTutorials.aspx" rel="nofollow">this</a> tutorial, but in this tutorial the tutor shows that his added items are stored but I followed the same process but when I close and reopen the app the added items are gone.... | I recently wanted to develop a shopping list app and i followed this tutorial, but in this tutorial the tutor shows that his added items are stored but I followed the same process but when I close and reopen the app the added items are gone. what can be done to fix this? here is my program code : [CODE] | java|android | 0 | 2016-06-05T16:05:12.483Z | 2,016 | 6 | 16 | 6 | 80 | 1 | 304 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
37,693,021 | Location for pop up activity | <p>I have an activity that I want to show as popup window.</p>
<p>I have the following code, but the activity is shown in the center. I would like to show it in a different location. Possibly under my toolbar.</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSta... | I have an activity that I want to show as popup window. I have the following code, but the activity is shown in the center. I would like to show it in a different location. Possibly under my toolbar. [CODE] | android-studio|android-6.0-marshmallow | 0 | 2016-06-08T04:03:35.103Z | 2,016 | 6 | 4 | 2 | 80 | 1 | 206 | 28 | 2 | 1 | true | false | false | false | false | false | zero |
37,701,288 | onItemLongClickListener is working weird | <p>My code is below
my problem is when activity is first open long click on listview is not working.And then again i hold the item in listview it will work.why this happening anyone has any idea.
Thanks in Advance</p>
<pre><code>editListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
... | My code is below my problem is when activity is first open long click on listview is not working.And then again i hold the item in listview it will work.why this happening anyone has any idea. Thanks in Advance [CODE] | android | 0 | 2016-06-08T11:30:33.573Z | 2,016 | 6 | 11 | 2 | 80 | 1 | 217 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
37,713,074 | Updating Android View with iteration? | <p>I am a beginner android developer. (started about a week ago)</p>
<p>I was trying to do some sort of stopwatch app, so I have a Textview that gets updated and a couple of buttons to start / stop.</p>
<p>This was my initial idea:</p>
<pre><code>//showing only pseudocode of callback method
run() {
while(true) {
... | I am a beginner android developer. (started about a week ago) I was trying to do some sort of stopwatch app, so I have a Textview that gets updated and a couple of buttons to start / stop. This was my initial idea: [CODE] Then, tinkering around I tried this: [CODE] The second method works like a charm. What I don't und... | java|android|loops|recursion | 0 | 2016-06-08T21:16:41.430Z | 2,016 | 6 | 21 | 2 | 80 | 1 | 1,034 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
37,808,425 | Working with azure mobile service in android | <p>I am working on a project in which I have to work with Azure Back end, I have inserted data into the table, but don't know how to get its response and where should I use Json parsing .. below is my code .. please guide me about this</p>
<pre><code> mClient.getTable(TodoItem.class).insert(item, new TableOperationCal... | I am working on a project in which I have to work with Azure Back end, I have inserted data into the table, but don't know how to get its response and where should I use Json parsing .. below is my code .. please guide me about this [CODE] | android|android-studio|azure-mobile-services | 1 | 2016-06-14T09:42:21.307Z | 2,016 | 6 | 9 | 1 | 80 | 1 | 239 | 44 | 3 | 1 | true | false | false | false | false | false | low |
37,842,582 | Android Studio 2.1 DDMS Does not appear | <p>I'm getting the following message:</p>
<pre><code>* daemon not running. starting it now on port 5037 *
* daemon started successfully *
1. adb kill-server and then adb start-server
2. Tools > Android > Enable or Disable ADB integration.
</code></pre>
<p>I tried also kill all progress in task manager. </p>
<... | I'm getting the following message: [CODE] I tried also kill all progress in task manager. Please help me. | android-studio | 0 | 2016-06-15T18:00:11.597Z | 2,016 | 6 | 18 | 2 | 80 | 1 | 105 | 39 | 1 | 1 | true | false | false | false | false | false | zero |
71,368,328 | How to keep text on Same position while animating it's Font Size? React Native | <p>I am working on Text Scaling in which I want to scale the text but with keeping the x position. Now, I am scaling the Text but it's loses it's current position. Can someone help me out with it?</p>
<pre class="lang-js prettyprint-override"><code><Animated.View style={{ transform: [{ translateY: transText }] }}>... | I am working on Text Scaling in which I want to scale the text but with keeping the x position. Now, I am scaling the Text but it's loses it's current position. Can someone help me out with it? [CODE] This code above somehow keeps text to maintain it's position but not too much accurate. | javascript|react-native|android-animation | 0 | 2022-03-06T07:07:20.447Z | 2,022 | 3 | 7 | 6 | 256 | 1 | 288 | 78 | 3 | 1 | true | false | false | false | false | false | zero |
71,094,011 | Initializing data binding variable in corresponding fragment | <p>I have been working through the Android Basics in Kotlin Course available on developer.android.com and have ran into a problem with Data Binding. The <a href="https://developer.android.com/codelabs/basic-android-kotlin-training-project-lunch-tray?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fan... | I have been working through the Android Basics in Kotlin Course available on developer.android.com and have ran into a problem with Data Binding. The project I am working on doesn't have solution code provided, but I have been modeling my approach off of a previous similar Codelab . I am attempting to initialize data b... | android|kotlin|android-databinding|android-viewmodel|android-viewbinding | 0 | 2022-02-12T17:02:25.490Z | 2,022 | 2 | 17 | 5 | 512 | 1 | 676 | 60 | 5 | 2 | true | false | false | false | false | false | zero |
71,100,542 | How to migrate "build.gradle" configurations in Android Studio for both project level and module level in Android Studio Bumblebee release? | <p>For now [13th Feb 2022] , latest android studio's stable version is <a href="https://android-developers.googleblog.com/2022/01/android-studio-bumblebee-202111-stable.html" rel="nofollow noreferrer">BumbleBee</a> . With this version, there are a lot of changes in <em>build.gradle</em> (project level) .</p>
<p>So, I w... | For now [13th Feb 2022] , latest android studio's stable version is BumbleBee . With this version, there are a lot of changes in build.gradle (project level) . So, I wonder if there is any guideline on how to adopt these changes with respect to older build.gradle (project level) will be a relief. | android|build.gradle|android-studio-bumblebee | 0 | 2022-02-13T12:18:39.900Z | 2,022 | 2 | 12 | 6 | 257 | 1 | 297 | 139 | 3 | 0 | false | false | false | false | false | false | zero |
71,419,735 | Time series plot using MPAndroidChart | <p>I want to plot time series data in Android.
I have a temperature sensor which reports data at every 10 seconds. I am taking that data from cloud using API.
In data, I have a temperature value and its timestamp.
I want to display data for 1 month and user can zoom chart till timestamp (till seconds or mins).</p>
<p>I... | I want to plot time series data in Android. I have a temperature sensor which reports data at every 10 seconds. I am taking that data from cloud using API. In data, I have a temperature value and its timestamp. I want to display data for 1 month and user can zoom chart till timestamp (till seconds or mins). I tried to ... | android|android-layout|charts|bar-chart|mpandroidchart | 3 | 2022-03-10T06:29:35.273Z | 2,022 | 3 | 6 | 3 | 257 | 1 | 1,214 | 37 | 5 | 1 | true | false | false | false | false | false | low |
71,333,771 | How to format number with comma in TextField in compose | <p>How to format a number with a comma in TextField in compose.</p>
<p>Example: <code>1234567899</code> -> <code>123,456,789,9</code></p> | How to format a number with a comma in TextField in compose. Example: 1234567899 -> 123,456,789,9 | android|android-jetpack-compose | 2 | 2022-03-03T07:56:41.133Z | 2,022 | 3 | 7 | 3 | 514 | 1 | 97 | 55 | 2 | 0 | false | false | false | false | false | false | low |
71,108,675 | "PKIX path building failed" using Gradle with ZScaler | <p>recently I'm facing some issues using gradle at our development department.
After our Department switched to ZScaler instead of our old VPN solution, I'm facing issues building our android app projects:</p>
<pre><code>~ gradle clean
> Starting Daemon
FAILURE: Build failed with an exception.
* What went wrong:
... | recently I'm facing some issues using gradle at our development department. After our Department switched to ZScaler instead of our old VPN solution, I'm facing issues building our android app projects: [CODE] I'm using a Windows 10 x64 machine Gradle: 5.6.4 openjdk: 11.0.2 2019-01-15 Kotlin: 1.3.41 Does someone know a... | android|gradle|certificate | 0 | 2022-02-14T08:00:54.783Z | 2,022 | 2 | 8 | 0 | 259 | 1 | 355 | 53 | 3 | 1 | true | false | false | false | false | false | zero |
71,112,428 | Error: Given final block not properly padded. Such issues can arise if a bad key is used during decryption | <p>I am really stuck on this issue while generating a signed apk in android studio v2020.3.1 patch 2:</p>
<p>I created a key store path as it was my first time, I added the path, alias, key store password and key password but after the creation when I used it, I got an error while generating the signed apk:</p>
<blockq... | I am really stuck on this issue while generating a signed apk in android studio v2020.3.1 patch 2: I created a key store path as it was my first time, I added the path, alias, key store password and key password but after the creation when I used it, I got an error while generating the signed apk: A failure occurred wh... | android|kotlin | 0 | 2022-02-14T13:08:38.047Z | 2,022 | 2 | 13 | 0 | 259 | 1 | 735 | 106 | 2 | 0 | false | false | false | false | false | false | zero |
71,153,621 | converting jwt to using Cookie(sessionid+csrf Token) on android app | <p>My application requires that only one account can use it. So, My team decided to use session and <code>Cookie</code> because they can control the access. So, the Cookie has sessionid and csrf Token.</p>
<p>As far as I know, Cookie is for Browser. I don't know if it's a good strategy for Native Application. And I don... | My application requires that only one account can use it. So, My team decided to use session and Cookie because they can control the access. So, the Cookie has sessionid and csrf Token. As far as I know, Cookie is for Browser. I don't know if it's a good strategy for Native Application. And I don't know if csrf Token i... | android|cookies|jwt|csrf|django-csrf | 0 | 2022-02-17T06:50:38.153Z | 2,022 | 2 | 6 | 3 | 259 | 1 | 564 | 67 | 5 | 0 | false | false | false | false | false | false | zero |
71,417,149 | Function onDataChange() is called from the previous fragment firebase android kotlin | <p>I ran into a rather strange problem. In my fragment there is a code for adding an item to the database through the <code>child().setValue()</code>. In another fragment there is user authorization, where it checks if the user exists, it is also implemented using the <code>onDataChange()</code> function.</p>
<p>Check ... | I ran into a rather strange problem. In my fragment there is a code for adding an item to the database through the child().setValue() . In another fragment there is user authorization, where it checks if the user exists, it is also implemented using the onDataChange() function. Check user function [ AuthFragment ]: [CO... | android|firebase|kotlin|firebase-realtime-database|android-architecture-navigation | 0 | 2022-03-09T23:26:59.747Z | 2,022 | 3 | 23 | 2 | 259 | 1 | 843 | 84 | 5 | 2 | true | false | false | false | false | false | zero |
71,268,631 | Is it possible to publish multiple android libraries to the same package on github using the maven-plugin? then import the libraries together or alone | <p>I'm trying to publish multiple libraries to github from the same project in android using the maven-publish plugin. I'm trying to make it so that a person can either consume the whole project with all the libraries eg import com.example.libraries; or import it as single modules such as import com.example.libraries.l... | I'm trying to publish multiple libraries to github from the same project in android using the maven-publish plugin. I'm trying to make it so that a person can either consume the whole project with all the libraries eg import com.example.libraries; or import it as single modules such as import com.example.libraries.lib1... | android|maven|github|android-gradle-plugin|maven-plugin | 1 | 2022-02-25T16:11:40.047Z | 2,022 | 2 | 16 | 4 | 260 | 1 | 470 | 150 | 5 | 1 | 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.