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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53,764,804 | Does LeakCanary has callback? | <p>How can I get the LeakCanary log or any kind data about the leak?
Does LeakCanary has any kind of Callback that we can use to get the "leak data" to do something with it in the time it's happend?
I want to send the data to my FireBase or some other DB.</p>
<p>I searched in the documentation, but didnt found somthin... | How can I get the LeakCanary log or any kind data about the leak? Does LeakCanary has any kind of Callback that we can use to get the "leak data" to do something with it in the time it's happend? I want to send the data to my FireBase or some other DB. I searched in the documentation, but didnt found somthing about it.... | android|leakcanary | 1 | 2018-12-13T15:11:02.557Z | 2,018 | 12 | 15 | 3 | 282 | 2 | 334 | 29 | 2 | 0 | false | false | false | false | false | false | low |
53,791,529 | Runime.getRuntime().totalMemory() and ActivityManager.MemoryInfo() | <p>Why total memory extracted from <code>getRuntime().totalMemory()</code> is not equal with when we use <code>ActivityManager.MemoryInfo()</code>? In below two code part I get different values:</p>
<pre><code>long totalMemory = Runtime.getRuntime().totalMemory() ;
</code></pre>
<p>and</p>
<pre><code>ActivityManager... | Why total memory extracted from getRuntime().totalMemory() is not equal with when we use ActivityManager.MemoryInfo() ? In below two code part I get different values: [CODE] and [CODE] in first code I get 12.759.040 and from the second code I get 907.034.624 ! | java|android|android-memory | 0 | 2018-12-15T10:34:53.333Z | 2,018 | 12 | 10 | 5 | 538 | 2 | 260 | 66 | 3 | 2 | true | false | false | false | false | false | zero |
53,599,870 | Retrieve checkbox status from firebase | <p>I have a database structure like this:
<a href="https://i.stack.imgur.com/jg2ZT.jpg" rel="nofollow noreferrer">Firebasedatabase</a>
I want to get the boolean value to fill another checkbox in my listview items.
When I add a new item, I use a checkbox to set the boolean value to "true or false" in firebase. But I wan... | I have a database structure like this: Firebasedatabase I want to get the boolean value to fill another checkbox in my listview items. When I add a new item, I use a checkbox to set the boolean value to "true or false" in firebase. But I want to get the value to fill another checkbox in my listview. Here is my adapter ... | android|android-checkbox | 0 | 2018-12-03T18:39:57.233Z | 2,018 | 12 | 18 | 0 | 1,050 | 2 | 356 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
53,491,630 | Can android sign a http/https call, to identify uniquely the app doing the request? | <p>Say, CORS for apps. Well, not the same thing, but...</p>
<p>Supposse I have uploaded an app to play store, and now I want my server to accept only connections from this app.</p>
<p>How can I do it?</p>
<p>What I would expect of the OS is is some process such as adding to my http request a couple of headers specif... | Say, CORS for apps. Well, not the same thing, but... Supposse I have uploaded an app to play store, and now I want my server to accept only connections from this app. How can I do it? What I would expect of the OS is is some process such as adding to my http request a couple of headers specifying the id of the app in t... | android|security|authentication|ssl-client-authentication | 8 | 2018-11-27T01:51:21.287Z | 2,018 | 11 | 1 | 1 | 1,306 | 2 | 1,067 | 83 | 4 | 0 | false | false | false | false | false | false | medium |
53,534,040 | transaction declined: invalid payment method. [or-ccseh-05] | <p>I integrate google pay in an android application, but when I test that after inserting Credit card details am facing this error</p>
<blockquote>
<p>transaction declined: invalid payment method. [or-ccseh-05]</p>
</blockquote> | I integrate google pay in an android application, but when I test that after inserting Credit card details am facing this error transaction declined: invalid payment method. [or-ccseh-05] | java|android | 4 | 2018-11-29T07:41:24.687Z | 2,018 | 11 | 7 | 3 | 53,530 | 2 | 187 | 59 | 2 | 0 | false | false | true | true | false | false | low |
53,532,942 | How to pass a value from home screen widget to the application? | <p>I am working with an android project for which I want to create a widget. Using this widget I have to control some actions of the control (that is by pressing the stop button from widget the app should stop working of some action). For that I have to pass some value to app from the widget on a button click. So far I... | I am working with an android project for which I want to create a widget. Using this widget I have to control some actions of the control (that is by pressing the stop button from widget the app should stop working of some action). For that I have to pass some value to app from the widget on a button click. So far I am... | java|android|android-studio|widget|android-widget | 0 | 2018-11-29T06:19:23.353Z | 2,018 | 11 | 6 | 3 | 795 | 2 | 486 | 63 | 5 | 0 | false | false | false | false | false | false | zero |
53,608,941 | How to add ArrayList to JsonObject in Kotlin | <blockquote>
<p>PaymentDetails class</p>
</blockquote>
<pre><code>data class PaymentDetails(
val type:String,
val bank: String,
val branch: String,
val account_no: String,
val cheque_date:String,
val return_type:Boolean,
val cheque_no:String,
val return_cheque_no:String,
val amount:String)
</code></pre>
<blockquote>
<p... | PaymentDetails class [CODE] Adding to Json Object [CODE] Here I tried to add new Arraylist to existing JsonObject. Issue is that the final Json object is not what I am expecting. How can I solve that issue? Below I attched what I expected and what I got. Expected [CODE] What I got from above code [CODE] | android|kotlin | 2 | 2018-12-04T08:51:58.627Z | 2,018 | 12 | 8 | 1 | 7,707 | 2 | 304 | 44 | 2 | 4 | true | false | true | false | false | false | low |
53,700,541 | how to update a row with arithmetic expression in Sqlite android | <p>What I want is to add and remove new value to the existing value in Sqlite android.
What I've read from the android documentation is this method, but it's not working in my case cause it's removing the existing value with the new one that's being provided.</p>
<p>here's my code:</p>
<pre><code>public boolean updat... | What I want is to add and remove new value to the existing value in Sqlite android. What I've read from the android documentation is this method, but it's not working in my case cause it's removing the existing value with the new one that's being provided. here's my code: [CODE] I've also tried to modify the method: [C... | android|sql-update|android-sqlite | 2 | 2018-12-10T06:31:41.627Z | 2,018 | 12 | 6 | 0 | 284 | 2 | 417 | 64 | 3 | 3 | true | false | false | false | false | false | low |
53,707,310 | if I update the database by DB Browser, it does not change in my app | <p>I have an SQLite database which I created by using DB Browser, I putted it in assets file and I use SQLiteAssetHelper to access it. Why if I update any record using DB Browser It dose not change in my app ?!<br>
Also If I execute insert query in my app, the new record does not appear in DB Browser.</p> | I have an SQLite database which I created by using DB Browser, I putted it in assets file and I use SQLiteAssetHelper to access it. Why if I update any record using DB Browser It dose not change in my app ?! Also If I execute insert query in my app, the new record does not appear in DB Browser. | android|sqlite|android-sqlite|db-browser-sqlite | 1 | 2018-12-10T14:02:52.807Z | 2,018 | 12 | 14 | 0 | 3,612 | 2 | 295 | 68 | 4 | 0 | false | false | true | false | false | false | low |
53,428,946 | In FragmentPagerAdapters, should I use the FragmentManager with tags, or just a HashMap<Integer, Fragment>? | <p>Currently, I have a <code>FragmentPagerAdapter</code> whose <code>getItem()</code> method looks like this:</p>
<pre><code>private static String makeFragmentName(int viewId, int index) {
return "android:switcher:" + viewId + ":" + index;
}
@Override
public Fragment getItem(int position) {
String fragmentNam... | Currently, I have a FragmentPagerAdapter whose getItem() method looks like this: [CODE] I was thinking of changing it into this: [CODE] Both do the same thing, basically, so will there be any performance improvements if I use the latter method, or should I just use the former method? | android | 0 | 2018-11-22T10:32:46.417Z | 2,018 | 11 | 10 | 3 | 29 | 2 | 284 | 107 | 1 | 2 | true | false | false | false | false | false | zero |
53,591,835 | Setting up first cordova project | <p>I am trying to setup my first attempt at a project with Cordova. I have Android Studio, node.js and cordova all installed fine. I followed instruction from below but when I try to build the demo project I get this error below. I have looked at the problem and read that I need to change the config file. Which config ... | I am trying to setup my first attempt at a project with Cordova. I have Android Studio, node.js and cordova all installed fine. I followed instruction from below but when I try to build the demo project I get this error below. I have looked at the problem and read that I need to change the config file. Which config fil... | cordova|android-studio | 0 | 2018-12-03T10:29:09.260Z | 2,018 | 12 | 10 | 0 | 29 | 2 | 471 | 32 | 2 | 2 | true | false | false | false | false | false | zero |
53,691,534 | Google signing an app in by using a webview | <p>I am trying to open my mobile responsive website in an android APK in web-view. It has sign-in with Google, which works well on a desktop or mobile bowser. But not working in android web-view.
"OAuth doesn't work in web-view" says Google error message.</p>
<p><img src="https://i.stack.imgur.com/EWv5t.jpg" alt="scre... | I am trying to open my mobile responsive website in an android APK in web-view. It has sign-in with Google, which works well on a desktop or mobile bowser. But not working in android web-view. "OAuth doesn't work in web-view" says Google error message. So how can I achieve Google sign-in in a web view based app? Please... | android|web-applications|android-webview|google-oauth | 2 | 2018-12-09T10:51:47.523Z | 2,018 | 12 | 10 | 6 | 1,309 | 2 | 330 | 43 | 4 | 0 | false | false | false | false | false | false | low |
53,545,518 | What is the correct way to pass an Enum as an argument to a Fragment using Navigation Component safeargs | <p>The <a href="https://developer.android.com/topic/libraries/architecture/navigation/navigation-pass-data" rel="noreferrer">documentation</a> discusses how to send simple integers and strings. For example:</p>
<pre><code><argument
android:name="myIntArg"
android:defaultValue="255"
app:argType="integer"... | The documentation discusses how to send simple integers and strings. For example: [CODE] In the origin Fragment: [CODE] In the destination Fragment: [CODE] But say instead of myIntArg , I wanted to send an enum ( myEnumArg ). How would I do that? What app:argType would I use in my argument? | android|android-architecture-navigation | 22 | 2018-11-29T18:36:23.783Z | 2,018 | 11 | 18 | 3 | 11,293 | 2 | 291 | 104 | 2 | 3 | true | false | true | false | true | false | high |
53,634,794 | Align TextView centerly and to the left with each other | <p>I have 3 TextViews inside a vertical LinearLayout as below : </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas... | I have 3 TextViews inside a vertical LinearLayout as below : [CODE] Current output of the above code : But I want the texts to be align left with each other like this : How do I achieve this? | android|alignment | 0 | 2018-12-05T14:42:24.663Z | 2,018 | 12 | 14 | 2 | 30 | 2 | 191 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
53,554,417 | What is the proper way of switching between screens in Firemonkey Android app built with Delphi? | <p>I'm building Android app in Delphi 10.3 using Firemonkey and I need the app to have 2 different screens - Login and Main. How do I properly organize these, onto Forms, Frames, or some other way? So that Login screen got replaced with Main app screen.</p>
<p>So far I've created two forms and tried to toggle them by:... | I'm building Android app in Delphi 10.3 using Firemonkey and I need the app to have 2 different screens - Login and Main. How do I properly organize these, onto Forms, Frames, or some other way? So that Login screen got replaced with Main app screen. So far I've created two forms and tried to toggle them by: [CODE] but... | android|delphi|firemonkey | 3 | 2018-11-30T09:10:26.543Z | 2,018 | 11 | 9 | 4 | 1,054 | 2 | 805 | 96 | 3 | 2 | true | false | false | false | false | false | low |
53,364,633 | Is there another way to implement data into activity besides an adapter? | <p>So I started learning Android programming recently and was wondering if there another way to implement gson data using retrofit besides using an adapter and a list. </p>
<p>So basically I have to make a full-screen activity with a few <code>TextViews</code> and ImageViews (so I don't need a list). Do I have to make... | So I started learning Android programming recently and was wondering if there another way to implement gson data using retrofit besides using an adapter and a list. So basically I have to make a full-screen activity with a few TextViews and ImageViews (so I don't need a list). Do I have to make an adapter and a ListVie... | android|android-activity|android-listview|android-adapter | 1 | 2018-11-18T19:26:03.087Z | 2,018 | 11 | 19 | 6 | 31 | 2 | 378 | 72 | 4 | 0 | false | false | false | false | false | false | low |
53,449,594 | once i select date in datepiccker then i again open datepicker it shows the current date not selected date | <p>## here i set my date into date datepicker. once activity open and i select date 26-11-2019 and then i open datepicker it show current date. can u please tell how it will work properly ##</p>
<pre><code>public void startCalenderr(View view) {
// this is my on click method here i open my date picker
curYear ... | ## here i set my date into date datepicker. once activity open and i select date 26-11-2019 and then i open datepicker it show current date. can u please tell how it will work properly ## [CODE] | android | 1 | 2018-11-23T15:48:59.163Z | 2,018 | 11 | 15 | 4 | 31 | 2 | 194 | 106 | 1 | 1 | true | false | false | false | false | false | low |
53,667,271 | Running 2 methods with X amount of time difference? | <p>I have a mic, which I want to activate for 5 seconds and then get that data. While the activity thread is still running. </p>
<p>Method 1: Is the activation of mic. </p>
<p>Method 2: Is for collecting the .amr/.mp3 output from the file. </p>
<p>And this will only happen one time. </p>
<p>I want that my activity ... | I have a mic, which I want to activate for 5 seconds and then get that data. While the activity thread is still running. Method 1: Is the activation of mic. Method 2: Is for collecting the .amr/.mp3 output from the file. And this will only happen one time. I want that my activity should call method 1 at the start and a... | java|android|multithreading | 1 | 2018-12-07T10:04:56.643Z | 2,018 | 12 | 10 | 4 | 31 | 2 | 534 | 51 | 3 | 0 | false | false | false | false | false | false | low |
53,453,224 | Cannot Access Key of Document in Firstore Node | <p>I write to the Firestore after creating a user, as coded below:</p>
<pre><code> userMap.put("email", user.getEmail());
userMap.put("display_name", user.getDisplayName());
userMap.put("user_id", user.getUid());
userMap.put("provider", user.getProviders()... | I write to the Firestore after creating a user, as coded below: [CODE] When this user is written to the Firestore, a unique ID is generated for that User. Later on, I want to write to the user node, however I do not have the unique key that was generated. I query the "Users" node based on a specific ID of a user so tha... | java|android|firebase|google-cloud-firestore | 1 | 2018-11-23T21:42:41.473Z | 2,018 | 11 | 21 | 4 | 32 | 2 | 463 | 46 | 4 | 2 | true | false | false | false | false | false | low |
53,585,238 | Using themes without manifest - App crashes despite theme declared | <p>So my app currently has two themes declared:</p>
<pre><code><resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<i... | So my app currently has two themes declared: [CODE] I want my first screen to have no action bar, and then the rest to use an action bar. I've removed the Theme declaration from AndroidManifest as this was causing the declared theme to overwrite what I declare in my activity xml layouts. In one such case (opening this ... | android | 1 | 2018-12-02T22:31:11.300Z | 2,018 | 12 | 22 | 6 | 32 | 2 | 445 | 66 | 1 | 3 | true | false | false | false | false | false | low |
53,628,967 | sending activity as argument to the custom adapter of a listview and then sending it to a popup menu class too and then intent the same activity | <p>I have a Listview with several members and each member is composed of 5 items </p>
<p>One of these 5 items is an Imageview called "delete_item" which is there to delete the member it belongs to (if user long clicks on it) </p>
<p>When the user long clicks on "delete_item", I open a popup menu composed of 2 items... | I have a Listview with several members and each member is composed of 5 items One of these 5 items is an Imageview called "delete_item" which is there to delete the member it belongs to (if user long clicks on it) When the user long clicks on "delete_item", I open a popup menu composed of 2 items so that the user selec... | android|listview|popup|adapter | 0 | 2018-12-05T09:25:25.587Z | 2,018 | 12 | 9 | 2 | 32 | 2 | 1,111 | 144 | 4 | 1 | true | false | false | false | false | false | zero |
53,607,682 | ListView won't let me set <List> as my list | <p>I have a list: </p>
<pre><code> Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> pkgAppsList = getApplicationContext().getPackageManager().queryIntentActivities(mainIntent, 0);
</code></pre>
<p>I want to set this in my adap... | I have a list: [CODE] I want to set this in my adapter. I have tried this: [CODE] But I'm getting an error cannot resolve constructor array adapter... How do I fix this? | android|listview | 0 | 2018-12-04T07:24:06.930Z | 2,018 | 12 | 7 | 1 | 33 | 2 | 169 | 43 | 2 | 2 | true | false | false | false | false | false | zero |
53,760,435 | Another "Failed to load AppCompat ActionBar with unknown" error issue | <p>I cannot see my layouts in the layout editor. The error message is whats in the title.</p>
<p>Not sure how many of these topics need to exist and why Android is such a black hole when it comes to issues, but I'm still having problem with this:</p>
<p>This project uses:</p>
<pre><code>implementation 'com.android.s... | I cannot see my layouts in the layout editor. The error message is whats in the title. Not sure how many of these topics need to exist and why Android is such a black hole when it comes to issues, but I'm still having problem with this: This project uses: [CODE] What I have in my styles file: [CODE] So the idea was to ... | android|android-studio|android-theme | 0 | 2018-12-13T11:05:28.797Z | 2,018 | 12 | 11 | 3 | 33 | 2 | 581 | 69 | 3 | 3 | true | false | false | false | false | false | zero |
53,504,848 | Android Studio toolbar title updating error with back stack from one fragment to the another fragment | <p>i have a fragment_home that has 6 buttons and these 6 buttons have there own link(to display something like registration form ) but i have one button from these 6 buttons which is linked to another fragment and has tabbed view with view pager the title of any other fragment will update when i press back but when i e... | i have a fragment_home that has 6 buttons and these 6 buttons have there own link(to display something like registration form ) but i have one button from these 6 buttons which is linked to another fragment and has tabbed view with view pager the title of any other fragment will update when i press back but when i ente... | android|android-layout|android-fragments|back | -1 | 2018-11-27T17:14:48.960Z | 2,018 | 11 | 17 | 1 | 289 | 2 | 933 | 101 | 4 | 3 | true | false | false | false | false | true | negative |
53,674,598 | Preview streched in Camera2 API when creating layout programmaticaly | <p>After an update of our application we now use the Camera2 API, unfortunately the preview is streched on our test device: Samsung SM-J330F/DS, Android-Version 8.0.0, API 26</p>
<p>Because we don't experience this problem with Googles Camera2Basic project on the same device, we tried to adjust our project to use the ... | After an update of our application we now use the Camera2 API, unfortunately the preview is streched on our test device: Samsung SM-J330F/DS, Android-Version 8.0.0, API 26 Because we don't experience this problem with Googles Camera2Basic project on the same device, we tried to adjust our project to use the same the im... | java|android|android-camera|android-camera2 | 5 | 2018-12-07T17:51:30.357Z | 2,018 | 12 | 17 | 4 | 289 | 2 | 999 | 68 | 4 | 2 | true | false | false | false | false | false | low |
53,541,496 | MainActivity has leaked ServiceConnection when onDestroy runs in android. How to prevent this error? | <p>I'm making an android wear application, and the main functionality is in the <code>ConnectionService</code> class, which basically handles communication with a websocket. My problem is, that if I quit the application with the buttons on my android wear device, there is no error, everything runs as expected in the ba... | I'm making an android wear application, and the main functionality is in the ConnectionService class, which basically handles communication with a websocket. My problem is, that if I quit the application with the buttons on my android wear device, there is no error, everything runs as expected in the background. But if... | android|service|wear-os|android-wear-2.0 | 0 | 2018-11-29T14:41:26.257Z | 2,018 | 11 | 14 | 3 | 1,057 | 2 | 1,197 | 100 | 4 | 2 | true | false | false | false | false | false | zero |
53,715,880 | SingleLiveEvent issue after migration to AndroidX | <p>After migration to AndroidX by using Android studio 3.2.1 I cannot run app due to this error:</p>
<pre><code>SingleLiveEvent.java:29: error: name clash: observe(LifecycleOwner,Observer<T#1>) in SingleLiveEvent and observe(LifecycleOwner,Observer<? super T#2>) in LiveData have the same erasure, yet neith... | After migration to AndroidX by using Android studio 3.2.1 I cannot run app due to this error: [CODE] I googled it, and found solutions for other things, but how to solve this elegantly? I don't want to refactor whole app in every place I use single live event. | android|android-studio|android-livedata | 13 | 2018-12-11T00:52:24.943Z | 2,018 | 12 | 0 | 1 | 2,081 | 2 | 260 | 49 | 3 | 1 | true | false | false | false | true | false | medium |
53,536,645 | Unable to inject dependency in fragment using dagger2 in Java Android | <p>I am able to inject dependency in activities and its working fine. but calling the same dependency in fragment is not taking access.</p>
<p>This is what i did.</p>
<p>App.Java</p>
<pre><code>public class App extends MultiDexApplication implements HasActivityInjector, HasFragmentInjector {
@Inject
Dispatc... | I am able to inject dependency in activities and its working fine. but calling the same dependency in fragment is not taking access. This is what i did. App.Java [CODE] This is AppComponent.Java [CODE] This is ActivityModule.Java class [CODE] this is FragmentModule.java class [CODE] Now in my MyFragment class where i w... | java|android|android-fragments|dependency-injection|dagger-2 | 3 | 2018-11-29T10:17:09.487Z | 2,018 | 11 | 10 | 3 | 5,409 | 2 | 1,015 | 69 | 5 | 8 | true | false | true | false | false | false | low |
53,458,448 | Change activities without having a transition effect | <p>I wanted to know how you could switch between activities without having that sort of "transition effect" that you have when you switch as usual like <code>startActivity(new Intent(Activity.this, Target.class))</code>, as if you were navigating in the same activity.<br>
I have this bottom navbar</p>
<hr>
<pre><code... | I wanted to know how you could switch between activities without having that sort of "transition effect" that you have when you switch as usual like startActivity(new Intent(Activity.this, Target.class)) , as if you were navigating in the same activity. I have this bottom navbar [CODE] where @menu/footer is defined as:... | android|android-studio | 0 | 2018-11-24T13:06:36.660Z | 2,018 | 11 | 13 | 5 | 34 | 2 | 539 | 52 | 2 | 2 | true | false | false | false | false | false | zero |
53,780,285 | Recycularview adapter not set in tab fragment in MVP pattern, showing error no adapter attached skipping layout | <blockquote>
<p>I am using MVP pattern to display employee list using tablayout in
recycular view i got error no adapter set code paste below, when i add
the list value and recycular adapter inside return view means it works
fine but if i goes separate interface method mean adapter not called</p>
</blockquote>
... | I am using MVP pattern to display employee list using tablayout in recycular view i got error no adapter set code paste below, when i add the list value and recycular adapter inside return view means it works fine but if i goes separate interface method mean adapter not called [CODE] | android | 1 | 2018-12-14T12:58:37.253Z | 2,018 | 12 | 12 | 4 | 34 | 2 | 284 | 111 | 1 | 1 | true | false | false | false | false | false | low |
53,498,044 | Opening Popup menu instead of default action bar menu | <p>Since I can't prevent default action bar menu from closing after selecting an item, I thought of using a popupmenu instead.
I want to use my popup menu with the same layout of the android action bar menu, so here's my menu:</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too... | Since I can't prevent default action bar menu from closing after selecting an item, I thought of using a popupmenu instead. I want to use my popup menu with the same layout of the android action bar menu, so here's my menu: [CODE] I can't figure out how I can use my popup menu with something like this: [CODE] and disab... | android|popup|android-actionbar|popupmenu | 0 | 2018-11-27T10:52:53.720Z | 2,018 | 11 | 10 | 1 | 290 | 2 | 1,038 | 53 | 4 | 6 | true | false | false | false | false | false | zero |
53,411,928 | How to create and access multiple children of the root node in Firebase Database? | <p>I need to access the books field in the database. I have created a fragment with a recyclerview that displays the books. What I needed in the app is that each user should be able to request only one book. So I created another node directly under the root node as "users", but after adding the "users" node the recycle... | I need to access the books field in the database. I have created a fragment with a recyclerview that displays the books. What I needed in the app is that each user should be able to request only one book. So I created another node directly under the root node as "users", but after adding the "users" node the recyclervi... | android|firebase|firebase-realtime-database | 0 | 2018-11-21T12:21:43.063Z | 2,018 | 11 | 12 | 2 | 1,570 | 2 | 1,178 | 81 | 3 | 4 | true | false | false | false | false | false | zero |
53,388,885 | Unity Ads 3.0.0 show banner ads in Android | <p>I want to show Unity banner ads (Unity ads 3.0.0) for my Java Android app.</p>
<p>I have read <a href="https://unityads.unity3d.com/help/android/integration-guide-android" rel="nofollow noreferrer">https://unityads.unity3d.com/help/android/integration-guide-android</a></p>
<p>According to the guide lines the follo... | I want to show Unity banner ads (Unity ads 3.0.0) for my Java Android app. I have read https://unityads.unity3d.com/help/android/integration-guide-android According to the guide lines the following code has to be added to get banner ads. [CODE] There are two buttons bannerButton and initializeButton. But I don't want t... | android|unityads | 0 | 2018-11-20T08:26:00.793Z | 2,018 | 11 | 8 | 1 | 2,338 | 2 | 536 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
53,580,345 | Am I using AsyncTask correctly? | <p>I was reading the book "Professional Android" and they say the following regarding <code>AsyncTask</code>:</p>
<blockquote>
<p>It's important to note that Async Tasks have no built-in understanding of the life cycle of the components they're running with. This means that if you are creating an <code>Async Task</c... | I was reading the book "Professional Android" and they say the following regarding AsyncTask : It's important to note that Async Tasks have no built-in understanding of the life cycle of the components they're running with. This means that if you are creating an Async Task in an Activity , to avoid memory leaks you sho... | android|android-asynctask | 0 | 2018-12-02T12:44:38.620Z | 2,018 | 12 | 12 | 6 | 35 | 2 | 622 | 31 | 2 | 1 | true | false | false | false | false | false | zero |
53,682,220 | Execution failed for task ':app:mergeDebugResources'. error: invalid dimen | <p>Please Help, Cant figure out how to fix this problem I'm having. These are all the information I could give to you:
my <strong>activity_main.xml</strong>:</p>
<pre><code>android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activ... | Please Help, Cant figure out how to fix this problem I'm having. These are all the information I could give to you: my activity_main.xml : [CODE] and dimen.xml : [CODE] Error log : [CODE] | java|android | 1 | 2018-12-08T11:49:37.277Z | 2,018 | 12 | 11 | 5 | 1,571 | 2 | 187 | 74 | 2 | 3 | true | false | false | false | false | false | low |
53,563,646 | One activity that runs the whole time | <p>I want to calculate how much time a user spends on my app. I thought of doing so by using chronometer. So is there an activity or something that runs always when the user is using any part of my app? or should i start and stop the timer in each and every activity?</p> | I want to calculate how much time a user spends on my app. I thought of doing so by using chronometer. So is there an activity or something that runs always when the user is using any part of my app? or should i start and stop the timer in each and every activity? | java|android|android-activity|timer | 0 | 2018-11-30T19:22:50.897Z | 2,018 | 11 | 19 | 4 | 36 | 2 | 264 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
53,699,156 | Where is the right place to put PagerAdapter, RecyclerViewAdapter in MVVM architecture | <p>When I implement my app using MVVM architecture. I always have a question of where should I put implementations of <code>PagerAdapter</code> and <code>RecyclerViewAdapter</code>. Now I put into <code>Fragments</code> as inner class.</p> | When I implement my app using MVVM architecture. I always have a question of where should I put implementations of PagerAdapter and RecyclerViewAdapter . Now I put into Fragments as inner class. | android|android-mvvm | 0 | 2018-12-10T03:35:01.217Z | 2,018 | 12 | 3 | 0 | 36 | 2 | 194 | 86 | 2 | 0 | false | false | false | false | false | false | zero |
53,798,849 | Button in Fragment is unclickable in android studio | <p>I am trying to have a button go from a fragment layout to an xml file. However when running the app, I can not click on the button. I've checked if I have to correct id. This is the case. Does someone know the answer why it won't trigger my onClickListener()? I feel like it is something small that I'm am missing, bu... | I am trying to have a button go from a fragment layout to an xml file. However when running the app, I can not click on the button. I've checked if I have to correct id. This is the case. Does someone know the answer why it won't trigger my onClickListener()? I feel like it is something small that I'm am missing, but I... | android|android-fragments|button | 0 | 2018-12-16T02:02:54.203Z | 2,018 | 12 | 2 | 6 | 292 | 2 | 408 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
53,525,999 | How can I achive side by side text views like shown in image in android? Which layout has to be used? | <p><a href="https://i.stack.imgur.com/hkU2v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hkU2v.png" alt="The image shown is some flowlayout."></a></p>
<p>How do I achieve this, using layouts, all I am able to do is make them flow horizontally or vertically using listview. Thanks in Advance.</p> | How do I achieve this, using layouts, all I am able to do is make them flow horizontally or vertically using listview. Thanks in Advance. | android | -1 | 2018-11-28T18:37:21.080Z | 2,018 | 11 | 18 | 2 | 37 | 2 | 137 | 101 | 1 | 0 | false | false | false | false | false | true | negative |
53,584,381 | Do not show mainactivity again until app fully restarts | <p>I have an application which has a main activity. When it switches to a second activity I do it like this :</p>
<pre><code>startActivity(intent);
finish();
</code></pre>
<p>I was hoping this would fully prevent the application from going back to the main activity. When I press the android back button in the secnond... | I have an application which has a main activity. When it switches to a second activity I do it like this : [CODE] I was hoping this would fully prevent the application from going back to the main activity. When I press the android back button in the secnond activity it goes back to the home screen (which is what I want... | java|android|android-studio | 1 | 2018-12-02T20:37:38.523Z | 2,018 | 12 | 20 | 6 | 37 | 2 | 445 | 55 | 3 | 1 | true | false | false | false | false | false | low |
53,623,442 | Parse Json array in android / java file | <p>I am facing a problem to reach to an object which is inside an array of another object of another array. To make it simpler i am attaching the image (attached below), basically i want to reach to json object "0" inside jsonarray ticket itmes.</p>
<p>my codes are</p>
<pre><code> JSONArray jsonArray = new JSONArray(... | I am facing a problem to reach to an object which is inside an array of another object of another array. To make it simpler i am attaching the image (attached below), basically i want to reach to json object "0" inside jsonarray ticket itmes. my codes are [CODE] However, jsonarray1 generates an exception stating [CODE]... | java|android|json | 0 | 2018-12-05T00:30:25.293Z | 2,018 | 12 | 0 | 2 | 37 | 2 | 349 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
53,359,626 | StackOverFlowError in android while uploading to storage | <blockquote>
<p>FATAL EXCEPTION: main
Process: com.appmaster.akash.messageplus, PID: 10668
java.lang.StackOverflowError: stack size 8MB
... | FATAL EXCEPTION: main Process: com.appmaster.akash.messageplus, PID: 10668 java.lang.StackOverflowError: stack size 8MB at java.lang.reflect.Method.invoke(Native Method) at com.google.android.gms.internal.zzeas.zzbu(Unknown Source:128) at com.google.android.gms.internal.zzear.zzbq(Unknown Source:263) at com.google.andr... | android|firebase|firebase-authentication|stack-overflow | 2 | 2018-11-18T09:53:05.737Z | 2,018 | 11 | 9 | 6 | 1,061 | 2 | 8,745 | 56 | 4 | 1 | true | false | false | false | false | false | low |
53,651,622 | can i use my flutter codes that i wrote in android studio or visual studio for ios?and how? | <p>I just started learning flutter and I have a question.</p>
<p><strong>1</strong>-is it possible to compile the code that in the android studio or visual studio straight to ios?</p>
<p><strong>2</strong>-if I cannot compile it straight to ios, can I use those codes and compile them with Xcode in a macos without any... | I just started learning flutter and I have a question. 1 -is it possible to compile the code that in the android studio or visual studio straight to ios? 2 -if I cannot compile it straight to ios, can I use those codes and compile them with Xcode in a macos without any change in them(flutter codes that i wrote in the a... | android|ios|visual-studio|flutter | 2 | 2018-12-06T12:36:30.340Z | 2,018 | 12 | 12 | 3 | 38 | 2 | 352 | 91 | 4 | 0 | false | false | false | false | false | false | low |
53,730,065 | Get String value from Edit Text with databinding | <p>I am trying to use some databinding to put in place a MVVM structure.</p>
<p>I have created the following xml file (sample) as for the view:</p>
<pre><code><data>
<variable
name="LoginVM"
type="org.ledeme.animekeeper.LogginMV"/>
</code></pre>
<h2> </h2>
<pre><code><EditText
... | I am trying to use some databinding to put in place a MVVM structure. I have created the following xml file (sample) as for the view: [CODE] [CODE] In the View Model (mine is called LogginMV), I defined a [CODE] to bind the text entered by the user to username I use username.get() to try and get the username but I only... | java|android|data-binding | 2 | 2018-12-11T18:14:51.720Z | 2,018 | 12 | 18 | 1 | 7,206 | 2 | 662 | 48 | 3 | 4 | true | false | true | false | false | false | low |
53,432,097 | Which is more reliable to use object representation or String in Firestore | <p>I have a Firebase Firestore collection of products (125 and growing). Each product document has about 18 properties (name, price, stock etc). I can get all the documents successfully using:</p>
<pre><code>val product = document.toObject(Product::class.java)
</code></pre>
<p>but I can use:</p>
<pre><code>val name ... | I have a Firebase Firestore collection of products (125 and growing). Each product document has about 18 properties (name, price, stock etc). I can get all the documents successfully using: [CODE] but I can use: [CODE] Which is more recommended? | android|firebase|kotlin|google-cloud-firestore | 1 | 2018-11-22T13:30:12.177Z | 2,018 | 11 | 13 | 3 | 39 | 2 | 245 | 74 | 4 | 2 | true | false | false | false | false | false | low |
53,434,435 | Is it possible to pass variables to a enum? | <p>I have a class that validates strings using a "ValidationRequirements" data class and returns an Enum error message if its invalid.
Depending on what kind of requirements are passed the enum should adjust the string to match it.</p>
<p>ValidationRequirements:</p>
<pre><code>data class ValidationRequirements(
... | I have a class that validates strings using a "ValidationRequirements" data class and returns an Enum error message if its invalid. Depending on what kind of requirements are passed the enum should adjust the string to match it. ValidationRequirements: [CODE] Enum: [CODE] Is it possible to pass the requirements to chan... | android|dependency-injection|kotlin|enums | 1 | 2018-11-22T15:47:54.163Z | 2,018 | 11 | 15 | 3 | 39 | 2 | 368 | 43 | 4 | 2 | true | false | false | false | false | false | low |
53,567,961 | Android : transform ArrayList with a key | <p>I have a ArrayList that gives me datas like :</p>
<pre><code>[0]
{
"prd_id": 65,
"prd_img_mtime": 1543616875,
"prd_img_md5": "f5ec4b6a1517c607953b55aa31bdf956"
},
[1]
{
"prd_id": 72,
"prd_img_mtime": 1543616815,
"prd_img_md5": "4f49d80c48bff5ea5cfe329829e4... | I have a ArrayList that gives me datas like : [CODE] And I have to find records with prd_id key. So, I think I should transform this array to something like : [CODE] then get record with myarray[index] But how can I do this transformation please ? Or, may be have you another solution, better. Thanks ! | android|arraylist|key | 0 | 2018-12-01T05:13:21.283Z | 2,018 | 12 | 5 | 5 | 39 | 2 | 302 | 40 | 3 | 2 | true | false | false | false | false | false | zero |
53,678,939 | align imageview to the corner of the relarivelayout | <p>I want to keep resize_btn image in the lower right corner of the relativelayout</p>
<p>I tried ForegroundGravity but it did nothing.</p>
<p>I wonder if there is any way to keep the image in the bottom right corner</p>
<p><a href="https://i.stack.imgur.com/aNGKi.png" rel="nofollow noreferrer"><img src="https://i.s... | I want to keep resize_btn image in the lower right corner of the relativelayout I tried ForegroundGravity but it did nothing. I wonder if there is any way to keep the image in the bottom right corner [CODE] | android-studio|imageview | 0 | 2018-12-08T02:13:52.570Z | 2,018 | 12 | 2 | 5 | 40 | 2 | 206 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
53,784,798 | Add Markers to map from mysql using volley | <p>I need to show my 'Npc' markers on the map , but the npcList in onMapReady() is empty. How can i put the right way my Npcs from getNPC() npcList in onMapReady() npcList and then display the markers on map</p>
<p><strong>my onMapReady():</strong></p>
<pre><code>public void onMapReady(GoogleMap googleMap) {
mGo... | I need to show my 'Npc' markers on the map , but the npcList in onMapReady() is empty. How can i put the right way my Npcs from getNPC() npcList in onMapReady() npcList and then display the markers on map my onMapReady(): [CODE] my getNPC(): [CODE] my Npc class: [CODE] } im retrieving the right values from db as you ca... | android|google-maps|android-volley|android-json | 0 | 2018-12-14T18:06:40.100Z | 2,018 | 12 | 18 | 4 | 296 | 2 | 371 | 42 | 4 | 3 | true | false | false | false | false | false | zero |
53,593,310 | Method should have no parameters | <p>i have a simple unit test code in my android app that when implement it return error:</p>
<pre><code>java.lang.Exception: Method constructorShouldSetTotal should have no parameters
</code></pre>
<p>and this is my code: </p>
<pre><code>import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runner... | i have a simple unit test code in my android app that when implement it return error: [CODE] and this is my code: [CODE] as i searched some answers was using junitparams that i couldn't import it. please guide me for solutions. | android|unit-testing|junit | -1 | 2018-12-03T11:52:43.900Z | 2,018 | 12 | 11 | 0 | 3,880 | 2 | 227 | 32 | 3 | 2 | true | false | true | false | false | true | negative |
53,485,768 | Android studio Error: failed linking file resources | <p>Hello I was coding in android studio and suddenly this error started. tried some solutions they didnt work. any help would be great . thank you very much!</p>
<pre><code> Android resource linking failed
Output: C:\Users\Liad Rosenberg\Desktop\Application2\Application2\app\src\main\res\layout\activity_ent_bui... | Hello I was coding in android studio and suddenly this error started. tried some solutions they didnt work. any help would be great . thank you very much! [CODE] Any Help? Thanks tried that: it says "error: failed linking file resources." and all the R are red Didnt worked. What else can I do to make it works... | android | 2 | 2018-11-26T16:57:33.520Z | 2,018 | 11 | 16 | 0 | 5,416 | 2 | 346 | 51 | 1 | 1 | true | false | true | false | false | false | low |
53,621,029 | Troubles with my very simple Android RecycleView test | <p>Good day.</p>
<p>I have a very simple Android RecycleView test:</p>
<p><strong>in build.gradle:</strong></p>
<pre><code>dependencies {
...
implementation 'com.android.support:recyclerview-v7:28.0.0'
...
}
</code></pre>
<p><strong>in layout activity_main.xml:</strong></p>
<pre><code><?xml version="1.0" encodi... | Good day. I have a very simple Android RecycleView test: in build.gradle: [CODE] in layout activity_main.xml: [CODE] in layout activity_list_item.xml: [CODE] in MainActivity.java: [CODE] in MyAdapter.java: [CODE] When I run this project I got app stop message and FATAL EXCEPTION: main with java.lang.ClassCastException:... | android|android-recyclerview | -1 | 2018-12-04T20:37:14.820Z | 2,018 | 12 | 20 | 1 | 41 | 2 | 598 | 53 | 2 | 5 | true | false | false | false | false | true | negative |
53,617,689 | code to be executed every x milliseconds, changeable | <p>I have a code to be executed every x milliseconds, where x is changeable during the app life cycle.</p>
<p>Right now I use the postDelayed function of an handler, but I am not able to manage the situation when the delay changes.</p>
<pre><code>handler.postDelayed(new Runnable() {
@Override
public void run(... | I have a code to be executed every x milliseconds, where x is changeable during the app life cycle. Right now I use the postDelayed function of an handler, but I am not able to manage the situation when the delay changes. [CODE] My problem is that in other parts of the app the x value can change, and I need to execute ... | java|android|android-handler|postdelayed | 0 | 2018-12-04T16:40:57.933Z | 2,018 | 12 | 16 | 1 | 42 | 2 | 461 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
53,670,164 | Error while explicitly casting Android's RecyclerView's ViewHolder in Kotlin: 'This cast can never succeed' | <p>In Android, I am working on a library to make implementation of <code>RecyclerView</code> easy. I also want that once a developer has added this library as a dependency in <code>app build.gradle</code>, adding <code>RecyclerView</code> dependency in <code>app build.gradle</code> shouldn't be required. This library w... | In Android, I am working on a library to make implementation of RecyclerView easy. I also want that once a developer has added this library as a dependency in app build.gradle , adding RecyclerView dependency in app build.gradle shouldn't be required. This library will basically be like a wrapper on RecyclerView . I ha... | java|android|kotlin|android-recyclerview | 0 | 2018-12-07T13:04:32.887Z | 2,018 | 12 | 13 | 4 | 554 | 2 | 1,040 | 107 | 4 | 2 | true | false | false | false | false | false | zero |
53,676,461 | Can you use paging library and PagedList with a ViewPager? | <p>I'd like to use a ViewPager with paging library and PagedList. Is there a way to do this? If yes then what adapter should I use?</p>
<p>Right now I use FragmentStatePagerAdapter with a full list of items. I'd like to load pages of items on demand instead of loading all the data at once.</p> | I'd like to use a ViewPager with paging library and PagedList. Is there a way to do this? If yes then what adapter should I use? Right now I use FragmentStatePagerAdapter with a full list of items. I'd like to load pages of items on demand instead of loading all the data at once. | android|android-viewpager|android-architecture-components|android-paging|android-paging-library | 4 | 2018-12-07T20:31:59.907Z | 2,018 | 12 | 20 | 4 | 2,090 | 2 | 280 | 58 | 5 | 0 | false | false | false | false | false | false | low |
53,664,952 | Evernote Android_JOB onRunJob() method is never called | <p>I have implemented Evernote Android Job in my android application through</p>
<pre><code>implementation 'com.evernote:android-job:1.2.6'
</code></pre>
<p>And I have define as signleton to get instance I have initiated it in my Application class through </p>
<pre><code> JobManager.create(this).addJobCreator(new Cr... | I have implemented Evernote Android Job in my android application through [CODE] And I have define as signleton to get instance I have initiated it in my Application class through [CODE] And I have two classes which are JOB CREATING CLASS [CODE] JOB CLASS [CODE] But the Problem is My onRunJob() method is never called. ... | android|android-studio|job-scheduling|android-job | 0 | 2018-12-07T07:19:15.657Z | 2,018 | 12 | 7 | 4 | 555 | 2 | 420 | 54 | 4 | 4 | true | false | false | false | false | false | zero |
53,459,306 | How to get the string value of the item selected from a listview | <p>I have a custom adaptor that is fills a listview with artists names. I want to click on the listview artist and it will return me the list of songs by the artist. I want to get the string value of the artist when i click on the listview and compare it against an arraylist of all the songs </p>
<pre><code> public ... | I have a custom adaptor that is fills a listview with artists names. I want to click on the listview artist and it will return me the list of songs by the artist. I want to get the string value of the artist when i click on the listview and compare it against an arraylist of all the songs [CODE] | android|android-studio | -1 | 2018-11-24T14:45:39.773Z | 2,018 | 11 | 14 | 5 | 44 | 2 | 296 | 64 | 2 | 1 | true | false | false | false | false | true | negative |
53,549,472 | android - json key value pairs to sqlite | <p>I am completely stuck on this and need help.</p>
<p>I need to get the value if another value is equal to something.</p>
<p>Lets say my array is:</p>
<pre><code>"people":[
{"name": "David", "age": "30"},
{"name": "Bob", "age": "20"},
{"name": "Bill", "age": "30"}
]
</code></pre>
<p>I need to return ... | I am completely stuck on this and need help. I need to get the value if another value is equal to something. Lets say my array is: [CODE] I need to return the age if the name is lets say Bob. I have attempted to do it this way but to no avail. [CODE] | java|android|json | -1 | 2018-11-30T00:15:50.727Z | 2,018 | 11 | 0 | 4 | 44 | 2 | 250 | 40 | 3 | 2 | true | false | false | false | false | true | negative |
53,786,042 | Oreo: Does JobService not require startForeground? | <p>As a test, I removed 'startForeground(notification)' from a job service we have and it appears to still be working.</p>
<p>Are we not required to post a foreground notification for a job service on Android O and up?</p>
<p>I'm unable to find specific documentation on this.<br>
Any reference would be wonderful.</p>... | As a test, I removed 'startForeground(notification)' from a job service we have and it appears to still be working. Are we not required to post a foreground notification for a job service on Android O and up? I'm unable to find specific documentation on this. Any reference would be wonderful. Thank you so much EDIT For... | android | 2 | 2018-12-14T19:47:18.453Z | 2,018 | 12 | 19 | 4 | 812 | 2 | 844 | 50 | 1 | 0 | false | false | false | false | false | false | low |
53,533,691 | Radius in making border is given from inside instead of outside? | <p>I am using below XML for creating border for a <code>TextView</code>.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@col... | I am using below XML for creating border for a TextView . [CODE] When I give radius as <corners android:radius="@dimen/padding_4dp"/> , it gives radius to corners but from inside, not from outside. So, as a result, corners remain sharp from outside. Like below: Am I doing wrong somewhere? | android|textview|android-drawable|android-styles|layer-list | 0 | 2018-11-29T07:17:34.053Z | 2,018 | 11 | 7 | 3 | 45 | 2 | 289 | 64 | 5 | 1 | true | false | false | false | false | false | zero |
53,518,999 | Printing text to listview, entered from dialog | <p>I have situation on codes. I can't find a solution because of i'm beginner on this.</p>
<p>I have 3 fragments and each of them have in frames with listview. You can look the panel on <a href="https://i.stack.imgur.com/gEw69.png" rel="nofollow noreferrer">here.</a> </p>
<p>I have a navigation menu and there is a "A... | I have situation on codes. I can't find a solution because of i'm beginner on this. I have 3 fragments and each of them have in frames with listview. You can look the panel on here. I have a navigation menu and there is a "Add Task" button on it. This button opens a dialog and dialog wants a text (problem starts here) ... | android | 0 | 2018-11-28T12:00:01.327Z | 2,018 | 11 | 12 | 2 | 47 | 2 | 456 | 46 | 1 | 1 | true | false | false | false | false | false | zero |
53,733,556 | Instanciate an object on button click and use incremented name for reference variable ? (android studio, java) | <p>In order to learn java and android app building, I am creating an app that will store players’ scores (for a real card game for example). So the number of players is not fixed.</p>
<p>First, I have created a class “Player”, containing an id, a name and the score.</p>
<pre><code>public class Player {
int idj;
... | In order to learn java and android app building, I am creating an app that will store players’ scores (for a real card game for example). So the number of players is not fixed. First, I have created a class “Player”, containing an id, a name and the score. [CODE] Then I would like to create a new player each time I cli... | java|android|variables|button|instance | 1 | 2018-12-11T22:54:53.857Z | 2,018 | 12 | 22 | 1 | 47 | 2 | 833 | 110 | 5 | 4 | true | false | false | false | false | false | low |
53,406,453 | Find all issues saying `require API level` in Intellij / Android Studio | <p>I want find all issues saying call requires some API level in whole project.</p>
<blockquote>
<p>Call requires API level 21 (current min is 19):
android.content.res.Resources#getDrawable</p>
</blockquote>
<p>I could see its issue id is <strong><code>Issue id: NewApi</code></strong>. But I can not find a inspec... | I want find all issues saying call requires some API level in whole project. Call requires API level 21 (current min is 19): android.content.res.Resources#getDrawable I could see its issue id is Issue id: NewApi . But I can not find a inspection name for same. Basically I want run inspection by name to get all these is... | android|android-studio|intellij-idea | 1 | 2018-11-21T06:35:39.383Z | 2,018 | 11 | 6 | 2 | 303 | 2 | 325 | 71 | 3 | 0 | false | false | false | false | false | false | low |
53,792,577 | How to format and style (Bold, TextSize) string resource in Android | <p><a href="https://i.stack.imgur.com/VK8vj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VK8vj.png" alt="enter image description here"></a></p>
<p>Above is the image of what I want to achieve using String.xml</p>
<p>There are three things</p>
<ol>
<li>'76' & '20' will be replaced dynamicall... | Above is the image of what I want to achieve using String.xml There are three things '76' & '20' will be replaced dynamically using String.format '20' should be bold '20' should be bigger in size I have tried all the solutions using Html.fromHtml class. Following are the solutions which I have tried. I am able to make ... | android|string|kotlin|textview|string.xml | 1 | 2018-12-15T13:03:54.590Z | 2,018 | 12 | 13 | 5 | 4,143 | 2 | 1,024 | 67 | 5 | 2 | true | false | true | false | false | false | low |
53,780,092 | Room not creating json schema files automatically | <p>I have a app which is working fine with <code>SQLite</code> database. I wanted to upgrade to <code>Room</code> and I followed <a href="https://medium.com/androiddevelopers/testing-room-migrations-be93cdb0d975" rel="nofollow noreferrer">this</a> and <a href="https://medium.com/androiddevelopers/7-steps-to-room-27a5fe... | I have a app which is working fine with SQLite database. I wanted to upgrade to Room and I followed this and this articles to test and upgrade from SQLite to Room. I have created Entities , DAO and Database classes. Following is my (build.gradle:app) [CODE] Following is Test class for creating Database replica [CODE] B... | java|android|sqlite|android-room | 3 | 2018-12-14T12:45:37.037Z | 2,018 | 12 | 12 | 4 | 5,167 | 2 | 629 | 49 | 4 | 5 | true | false | true | false | false | false | low |
53,402,628 | What is the equivalent for a session that holds a user id in PHP? | <p>In PHP, when a user logs in (talking about simple web apps), I keep his user id in a session that is saved across all pages.
Assuming I have a login to my app (Using Firebase, for example), how do I keep track of the current user id? I want to get the general idea of how it works on Android. Is there some global var... | In PHP, when a user logs in (talking about simple web apps), I keep his user id in a session that is saved across all pages. Assuming I have a login to my app (Using Firebase, for example), how do I keep track of the current user id? I want to get the general idea of how it works on Android. Is there some global variab... | android|firebase | 1 | 2018-11-20T22:36:26.080Z | 2,018 | 11 | 22 | 1 | 48 | 2 | 355 | 65 | 2 | 0 | false | false | false | false | false | false | low |
53,472,377 | Swipe tabs in dynamic fragment | <p>I wanted to implement swipe tabs in a dynamically generated fragment(it has no layout file) and I don't know how. I have tried something, reaching some "results", by that i mean that is shows me the tab layout, but it does not "load" the fragments. I suspect the problem is with the view pager, at the declaration.Her... | I wanted to implement swipe tabs in a dynamically generated fragment(it has no layout file) and I don't know how. I have tried something, reaching some "results", by that i mean that is shows me the tab layout, but it does not "load" the fragments. I suspect the problem is with the view pager, at the declaration.Here i... | android|android-fragments|dynamic|swipe | 0 | 2018-11-25T21:55:07.917Z | 2,018 | 11 | 21 | 6 | 304 | 2 | 563 | 30 | 4 | 3 | true | false | false | false | false | false | zero |
53,629,610 | What is problem with ionic 4 android backButton subscribe? | <p>I have problem with subscribe method of backButton. When app starts, click on android backbutton shows on console.log that I clicked and show modal to exit app. But, if app is full loaded, nothing gonna happen. Even console.log.</p>
<p>Code:
In constructor:</p>
<pre><code>this.backButtonEvent();
</code></pre>
<p>... | I have problem with subscribe method of backButton. When app starts, click on android backbutton shows on console.log that I clicked and show modal to exit app. But, if app is full loaded, nothing gonna happen. Even console.log. Code: In constructor: [CODE] Method [CODE] Of course is something more, but with this code ... | android|ionic4 | 0 | 2018-12-05T10:00:47.070Z | 2,018 | 12 | 10 | 2 | 1,072 | 2 | 416 | 58 | 2 | 3 | true | false | false | false | false | false | zero |
53,447,622 | two ways creating functions compared in kotlin | <p>I have this snippet of function</p>
<pre><code>fun getNewIntent(context: Context, following: Boolean, userId: String): Intent {
val intent = Intent(context, UsersActivity::class.java)
intent.putExtra(FOLLOW, following)
intent.putExtra(USER, userId)
return intent
}
</code></pre>
<p>that can be writt... | I have this snippet of function [CODE] that can be written also like this [CODE] and example in a case it was only 1 parameter [CODE] which one is better? and why? | android|kotlin | 0 | 2018-11-23T13:29:36.863Z | 2,018 | 11 | 13 | 4 | 49 | 2 | 163 | 46 | 2 | 3 | true | false | false | false | false | false | zero |
53,638,653 | How to unit test RxJava Completable.error on Android | <p>I have a function that returns a Completable which returns <code>Completable.error(RuntimeException("message"))</code> if another function fails or <code>Completable.complete()</code> if not.</p>
<p>I was trying to write a unit test for this and see that the flow is going correctly to the error and success code but... | I have a function that returns a Completable which returns Completable.error(RuntimeException("message")) if another function fails or Completable.complete() if not. I was trying to write a unit test for this and see that the flow is going correctly to the error and success code but in my test I cannot differentiate be... | android|rx-java|rx-java2 | 3 | 2018-12-05T18:33:15.480Z | 2,018 | 12 | 18 | 2 | 2,609 | 2 | 491 | 52 | 3 | 0 | false | false | true | false | false | false | low |
53,727,507 | ConcurrentModificationException while trying to delete an item from ArrayList | <p>Actually after pressing a button i have a method which check if in my itemStorico ArrayList exist new added items from itemModel, then if the item exist in the new list called itemModel i'm removing the old item from itemStorico and adding the new one, else just adding the new item without removing the old.</p>
<p>... | Actually after pressing a button i have a method which check if in my itemStorico ArrayList exist new added items from itemModel, then if the item exist in the new list called itemModel i'm removing the old item from itemStorico and adding the new one, else just adding the new item without removing the old. But i'm get... | android|arraylist | 1 | 2018-12-11T15:37:33.580Z | 2,018 | 12 | 15 | 1 | 3,889 | 2 | 398 | 77 | 2 | 2 | true | false | true | false | false | false | low |
53,458,978 | AltBeacon App restarts after some minutes | <p>I have some problems in my app. I have that after I disable the regionBootstrap and close the app through System.exit(0), my app after some minutes (usually 3-4 minutes) restarts itself. </p>
<p>This are the Logcat lines that I found everytime my app restarts:</p>
<pre><code>2018-11-24 14:54:34.883 897-1339/? V/Al... | I have some problems in my app. I have that after I disable the regionBootstrap and close the app through System.exit(0), my app after some minutes (usually 3-4 minutes) restarts itself. This are the Logcat lines that I found everytime my app restarts: [CODE] What could be the cause? Is the OnePlusSmartBoostManager the... | android|restart|beacon|altbeacon | 2 | 2018-11-24T14:07:00.623Z | 2,018 | 11 | 14 | 5 | 306 | 2 | 464 | 41 | 4 | 2 | true | false | false | false | false | false | low |
53,784,073 | Visual Studio for Mac can't deploy to compatible android emulator | <p>I have a Xamarin.Forms project in Visual Studio for Mac. When I try to build the Android project, I get the following error message.</p>
<p>"You are deploying an app supporting <code>armeabi,armeabi-v7a,x86</code> ABIs to an incompatible device of ABI <code>armeabi,armeabi-v7a,x86</code>. You should either create ... | I have a Xamarin.Forms project in Visual Studio for Mac. When I try to build the Android project, I get the following error message. "You are deploying an app supporting armeabi,armeabi-v7a,x86 ABIs to an incompatible device of ABI armeabi,armeabi-v7a,x86 . You should either create an emulator matching one of your app'... | android|macos|visual-studio|xamarin|xamarin.forms | 14 | 2018-12-14T17:05:06.837Z | 2,018 | 12 | 17 | 4 | 4,146 | 2 | 892 | 65 | 5 | 0 | false | false | true | false | true | false | medium |
53,485,437 | Return to the main activity | <p>I have the following question: when I return from one activity to another, I need certain element of menu to be opened. For example:</p>
<p><a href="https://i.stack.imgur.com/OWoXE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OWoXE.png" alt="enter image description here"></a></p>
<p>Now, when... | I have the following question: when I return from one activity to another, I need certain element of menu to be opened. For example: Now, when I click "Up" in my activity the first element of menu is always opened (where the running man is drawed). And I need to make such element opened, which was opened before opening... | java|android | 1 | 2018-11-26T16:36:48.663Z | 2,018 | 11 | 16 | 0 | 51 | 2 | 569 | 27 | 2 | 1 | true | false | false | false | false | false | low |
53,565,648 | Android: Using RadioButton.isChecked() method in Java | <p>I am trying to create a system that filters a list (in this case, each element is a RelativeLayout element). I am using 3 RadioButton elements in my XML code with the id's radio1, radio2, radio3, that display the top 3, top 5 and top 10 elements respectively. In my java class, I am trying to use the RadioButton.isCh... | I am trying to create a system that filters a list (in this case, each element is a RelativeLayout element). I am using 3 RadioButton elements in my XML code with the id's radio1, radio2, radio3, that display the top 3, top 5 and top 10 elements respectively. In my java class, I am trying to use the RadioButton.isCheck... | java|android|xml|android-studio|radio-button | 0 | 2018-11-30T22:16:41.010Z | 2,018 | 11 | 22 | 4 | 51 | 2 | 439 | 53 | 5 | 1 | true | false | false | false | false | false | zero |
53,674,085 | working with edittext and recyclerview in Android | <p>I want edittext content to show on a recyclerview but it is not working this is the adapter</p>
<pre><code>package c.androidchatapp.recyclerview.Adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.... | I want edittext content to show on a recyclerview but it is not working this is the adapter [CODE] and here is my main activity i use to get the code [CODE] I want the content to display onclick button but it is not working. I have tried different method but still the same thing. you can tell me where my error is and g... | android|android-recyclerview | 0 | 2018-12-07T17:13:02.523Z | 2,018 | 12 | 17 | 4 | 51 | 2 | 424 | 49 | 2 | 2 | true | false | false | false | false | false | zero |
53,714,099 | Fragment and Adapter, how to pass switch position inside a listview | <p>I need to save with sharedPreferences a switch state(on/off). The switch is inside a listiview, which is inside a fragment. In the adapter I have a <code>setOnCheckedChangeListener</code>for the switch, just to change the color of the background of each item in the listview. The problem is that I don't want to use s... | I need to save with sharedPreferences a switch state(on/off). The switch is inside a listiview, which is inside a fragment. In the adapter I have a setOnCheckedChangeListener for the switch, just to change the color of the background of each item in the listview. The problem is that I don't want to use sharedPreference... | java|android|android-fragments | 0 | 2018-12-10T21:42:59.103Z | 2,018 | 12 | 21 | 0 | 51 | 2 | 834 | 67 | 3 | 2 | true | false | false | false | false | false | zero |
53,511,812 | Receive URL intent in Splash Screen and load the URL in WebView | <p>I'm having a slightly different purpose, but, I think I'm putting it wrong as no one from multiple forums is able to answer it. The original question is here: <a href="https://stackoverflow.com/questions/51844151/pass-url-data-from-applink-to-webview">Pass URL data from AppLink to WebView</a></p>
<p>Basically, supp... | I'm having a slightly different purpose, but, I think I'm putting it wrong as no one from multiple forums is able to answer it. The original question is here: Pass URL data from AppLink to WebView Basically, suppose I'm creating a web browser app with a splash screen and I want to accept the URL intents from other apps... | java|android|url|android-intent|webview | 0 | 2018-11-28T03:46:44.933Z | 2,018 | 11 | 3 | 2 | 307 | 2 | 837 | 63 | 5 | 0 | false | false | false | false | false | false | zero |
53,384,014 | Postman work correctly but Android app don’t receive notification | <p>I want to send push notification to Android app from Postman. My settings are:</p>
<p><a href="https://i.stack.imgur.com/rbtJS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rbtJS.png" alt="Pic1"></a>
<a href="https://i.stack.imgur.com/wlukf.png" rel="nofollow noreferrer"><img src="https://i.sta... | I want to send push notification to Android app from Postman. My settings are: Sending notification works right and Postman shows me “{"message_id":6108453121985358090}” (example). However, Android app doesn’t receive the push notification. In the meantime, if I send notifications from the Firebase console everything w... | android|firebase|postman|android-push-notification | 1 | 2018-11-19T23:17:55.137Z | 2,018 | 11 | 23 | 0 | 308 | 2 | 408 | 65 | 4 | 1 | true | false | false | false | false | false | low |
53,752,595 | React Native: Android build - App.js: Cannot read property 'bindings' of null | <p>I'm trying to build my project, but it has tuned into a nightmare...</p>
<p>Now I'm facing this issue when I run <code>./gradlew assembleRelease</code></p>
<pre><code>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:bundleReleaseJsAndAssets'.
</code></pre>
<p>And more specifically:</p>... | I'm trying to build my project, but it has tuned into a nightmare... Now I'm facing this issue when I run ./gradlew assembleRelease [CODE] And more specifically: [CODE] I honestly have absolutely no idea what's wrong now, how can I debug this? This is my package.json : [CODE] | android|react-native | 0 | 2018-12-12T22:49:50.823Z | 2,018 | 12 | 22 | 2 | 1,332 | 2 | 276 | 77 | 2 | 3 | true | false | false | false | false | false | zero |
53,435,522 | ListView custom items graphically incorrect | <p>I have defined a custom item in XML for my ListView and I want every one of them to have five fields: three already <code>visible</code> and the other two (telephone and Delete, see below) <code>gone</code> until a click action is performed. The execution works, but graphically it's not what I was expecting. </p>
... | I have defined a custom item in XML for my ListView and I want every one of them to have five fields: three already visible and the other two (telephone and Delete, see below) gone until a click action is performed. The execution works, but graphically it's not what I was expecting. The item is defined as follows: [COD... | android|android-studio | 0 | 2018-11-22T17:01:48.577Z | 2,018 | 11 | 17 | 3 | 53 | 2 | 709 | 43 | 2 | 2 | true | false | false | false | false | false | zero |
53,533,331 | How can I position a block of text to be centered vertically 1/3 down a page? | <p>I have this XAML that I am currently using but it's just a start as I am stuck on how to do this. What I would like is for the text of Msg1 to be centered 1/3 from the top and 2/3 from the bottom of my screen like this:</p>
<pre><code>##################### <-
# #
# # 1/3
# ... | I have this XAML that I am currently using but it's just a start as I am stuck on how to do this. What I would like is for the text of Msg1 to be centered 1/3 from the top and 2/3 from the bottom of my screen like this: [CODE] Can anyone suggest how I can do this? | xamarin|xamarin.forms|xamarin.ios|xamarin.android | 0 | 2018-11-29T06:49:36.553Z | 2,018 | 11 | 6 | 3 | 53 | 2 | 264 | 77 | 4 | 1 | true | false | false | false | false | false | zero |
53,586,036 | Q: How to set variable which use for if condition | <p>My code is like below it
and that conditions of if or while are too long so i want to use variable as condition
how can i do that?</p>
<p>my sample code are:</p>
<pre><code>aTempArray.add(sInput[iStringOnPosition].toString())
// bCheckNextisDigit=true
while (iStringOnPositio... | My code is like below it and that conditions of if or while are too long so i want to use variable as condition how can i do that? my sample code are: [CODE] and [CODE] and i want to write like this [CODE] and [CODE] Please help to figure out this problem | java|android|android-studio|intellij-idea|kotlin | 0 | 2018-12-03T00:36:05.963Z | 2,018 | 12 | 0 | 0 | 53 | 2 | 255 | 49 | 5 | 4 | true | false | false | false | false | false | zero |
53,592,959 | Pass Array data on click to fragment | <p>I'm trying to do the following.
LinearLayout[i] is pressed JSONObject[i] should be sent to the Fragment.<br>
But where ever i press only the last object in the JSONObject array is getting passed.</p>
<p>Any help is appreciated thanks. </p>
<pre><code>LinearLayout demp[];
JSONArray darray; //some data
... | I'm trying to do the following. LinearLayout[i] is pressed JSONObject[i] should be sent to the Fragment. But where ever i press only the last object in the JSONObject array is getting passed. Any help is appreciated thanks. [CODE] | android|android-layout|android-linearlayout|onclicklistener | 0 | 2018-12-03T11:32:29.347Z | 2,018 | 12 | 11 | 0 | 53 | 2 | 230 | 36 | 4 | 1 | true | false | false | false | false | false | zero |
53,572,954 | Is it necessary to have an approved adsense account to show ads using admob? | <p>Is it necessary to have an approved adsense account to use admob ?
If yes, then how to apply for it if you dont have a youtube account or a website ?</p> | Is it necessary to have an approved adsense account to use admob ? If yes, then how to apply for it if you dont have a youtube account or a website ? | android|admob|adsense | -1 | 2018-12-01T16:46:18.070Z | 2,018 | 12 | 16 | 5 | 1,589 | 2 | 149 | 76 | 3 | 0 | false | false | false | false | false | true | negative |
53,457,759 | String resources for options | <p>I making a random textview and I have a problem. How can I put strings resources from xml to <strong>String options</strong>[]:</p>
<pre><code>String options[] = {"abc","def","ghi",}
Random rand = new Random();
final int random = rand.nextInt(3);
textfacts.setText(options[random]);
</code></pre>
<p>I... | I making a random textview and I have a problem. How can I put strings resources from xml to String options []: [CODE] I want to use these strings in Strings options: [CODE] | java|android|string|random | -1 | 2018-11-24T11:42:54.420Z | 2,018 | 11 | 11 | 5 | 54 | 2 | 173 | 28 | 4 | 2 | true | false | false | false | false | true | negative |
53,573,946 | How to make the button's height change automatically depending on the screen? | <p>I've 3 buttons which are below an imageview, but i want them to change their height automatically depending on the screen ratio/size.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="... | I've 3 buttons which are below an imageview, but i want them to change their height automatically depending on the screen ratio/size. [CODE] This is what it looks like, in a 6" screen and in a 5": and here i leave you an edited image about how i want it to look like: Thanks for your help. (i think that using match_pare... | android|android-layout|android-button|android-relativelayout | 0 | 2018-12-01T18:44:22.270Z | 2,018 | 12 | 18 | 5 | 54 | 2 | 410 | 77 | 4 | 1 | true | false | false | false | false | false | zero |
53,691,733 | get method return No_Value on optional | <p>In the below example, initially, this.mMyBoundServiceHandlerThread is null. i want to initialize that object as shown in the
code posted below.</p>
<p>when the code is executed, i receive the following:</p>
<pre><code>java.util.NoSuchElementException: No value present
</code></pre>
<p>would you please let me kno... | In the below example, initially, this.mMyBoundServiceHandlerThread is null. i want to initialize that object as shown in the code posted below. when the code is executed, i receive the following: [CODE] would you please let me know why .get() return empty value? code : [CODE] | android|java-8|option-type | 2 | 2018-12-09T11:16:03.177Z | 2,018 | 12 | 11 | 6 | 54 | 2 | 276 | 38 | 3 | 2 | true | false | false | false | false | false | low |
53,669,199 | onBackPressed change tabs in android | <p>I am looking for explanation for onBackPressed() change my tabs i have 3 different tabs in my activity.</p>
<p>Requirement : </p>
<p>If user accessing tab 2 and he pressed back button. app will send him to tab 1</p>
<p>Looking for explanation with code</p>
<p>Here is my app view <a href="https://i.stack.imgur.co... | I am looking for explanation for onBackPressed() change my tabs i have 3 different tabs in my activity. Requirement : If user accessing tab 2 and he pressed back button. app will send him to tab 1 Looking for explanation with code Here is my app view Thanks you | android|kotlin | 0 | 2018-12-07T12:05:15.940Z | 2,018 | 12 | 12 | 4 | 822 | 2 | 261 | 36 | 2 | 0 | false | false | false | false | false | false | zero |
53,670,810 | i can't create android keystore in visual studio 2017 | <p>hi I am tired to try creating android keystore in xamarin visual studio 2017
when I click ad hoc and press plus sign to add keystore nothing saved.</p>
<p>I follow tut. in below page but I it doesn't add keystor.</p>
<p><a href="https://docs.microsoft.com/en-gb/xamarin/android/deploy-test/signing/?tabs=windows" r... | hi I am tired to try creating android keystore in xamarin visual studio 2017 when I click ad hoc and press plus sign to add keystore nothing saved. I follow tut. in below page but I it doesn't add keystor. here the xamarin tut I follow it best regard | android|visual-studio|xamarin|xamarin.forms|xamarin.android | 1 | 2018-12-07T13:43:04.863Z | 2,018 | 12 | 13 | 4 | 1,590 | 2 | 250 | 53 | 5 | 0 | false | false | false | false | false | false | low |
53,571,359 | Room : Adding additional feature packages/modules | <h1>Question</h1>
<p>I wish to add additional functionality to my project, a <code>Room</code> based <code>instantapp</code>, and I'm uncertain on the best strategy for doing so. Should one provide additional "activities" under the existing module <code>Feature A</code> or under a new, separate, module <code>Feature B... | Question I wish to add additional functionality to my project, a Room based instantapp , and I'm uncertain on the best strategy for doing so. Should one provide additional "activities" under the existing module Feature A or under a new, separate, module Feature B . Since the new code will be dependent upon the entities... | android|structure|android-room | 0 | 2018-12-01T13:41:22.190Z | 2,018 | 12 | 13 | 5 | 55 | 2 | 2,316 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
53,667,687 | How to change all text colour to default colour (Black for Text, Grey for Hint) instead of white | <p>Currently all my text and hint colour by default is all white, although I do ok when I'm able to change them in <code>xml</code> file, but certain stuff like <code>TextInputLayout</code> text counter doesn't allow colour change</p>
<p>below are my <code>colors.xml</code></p>
<pre><code><color name="colorPrimary... | Currently all my text and hint colour by default is all white, although I do ok when I'm able to change them in xml file, but certain stuff like TextInputLayout text counter doesn't allow colour change below are my colors.xml [CODE] below are my styles.xml [CODE] | android|kotlin|material-design|textview | 0 | 2018-12-07T10:30:04.900Z | 2,018 | 12 | 10 | 4 | 55 | 2 | 263 | 96 | 4 | 2 | true | false | false | false | false | false | zero |
53,704,296 | How to obtain SHA1 certificate for Android studio 3.2.2? | <p>I have seen many videos on how to obtain SHA1 certificate for Android Studio but they were all for other versions. There is no option for generating 'signed APK' in my Android Studio. Please help. Thanks in advance.</p> | I have seen many videos on how to obtain SHA1 certificate for Android Studio but they were all for other versions. There is no option for generating 'signed APK' in my Android Studio. Please help. Thanks in advance. | android-studio | 0 | 2018-12-10T11:02:46.160Z | 2,018 | 12 | 11 | 0 | 311 | 2 | 215 | 56 | 1 | 0 | false | false | false | false | false | false | zero |
53,362,616 | How android apps track, if app is previously installed or not? | <p><strong>Hi, I am new to android development. I don't know any other platform better than Stack overflow, so please forgive me if this is the wrong place to ask this question.</strong></p>
<blockquote>
<p>I want to know, How android application track, if particular mobile is previously installed it or not? </p>
</... | Hi, I am new to android development. I don't know any other platform better than Stack overflow, so please forgive me if this is the wrong place to ask this question. I want to know, How android application track, if particular mobile is previously installed it or not? For example, the recharge application, which is gi... | android | -1 | 2018-11-18T15:40:49.557Z | 2,018 | 11 | 15 | 6 | 56 | 2 | 476 | 62 | 1 | 0 | false | false | false | false | false | true | negative |
53,449,641 | Pushing data into my application in automation testing | <p>I automate android application and I need automation tool that can push data into started activity in my tests (by Intent or somehow else). I tried appium but it can only start new activity with intent action which registered in Manifest.
Are there any such tools at all? Or maybe other way to do this</p> | I automate android application and I need automation tool that can push data into started activity in my tests (by Intent or somehow else). I tried appium but it can only start new activity with intent action which registered in Manifest. Are there any such tools at all? Or maybe other way to do this | android|automation|automated-tests | 0 | 2018-11-23T15:52:36.320Z | 2,018 | 11 | 15 | 4 | 56 | 2 | 301 | 54 | 3 | 0 | false | false | false | false | false | false | zero |
53,508,122 | How to get text from html to TextView with Jsoup, no buttons? | <p>so I wrote this but Android Studio says "class news is never used" what am I doing wrong? </p>
<pre><code>public class news extends AsyncTask<Void,Void,Void> {
String words;
@Override
protected Void doInBackground(Void... params) {
try{
Document doc = Jsoup.connect("myurl").get();
... | so I wrote this but Android Studio says "class news is never used" what am I doing wrong? [CODE] | java|android|jsoup | 0 | 2018-11-27T21:04:56.300Z | 2,018 | 11 | 21 | 1 | 56 | 2 | 96 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
53,669,558 | How to check if user doesn't write numbers or for example punctuation marks in edittext when he had to write his name | <p>I have layout when user have to write name and surname. How can I check if he truly wrote name an surname and doesn't write numbers or other marks instead of it. Please, help!</p> | I have layout when user have to write name and surname. How can I check if he truly wrote name an surname and doesn't write numbers or other marks instead of it. Please, help! | android|android-edittext | 0 | 2018-12-07T12:28:14.907Z | 2,018 | 12 | 12 | 4 | 56 | 2 | 175 | 117 | 2 | 0 | false | false | false | false | false | false | zero |
53,700,488 | Android BiometricPrompt.Builder.authenticate() not showing any dialog | <p>This is my code to show the prompt for fingerprint authentication in Android P:</p>
<pre><code>private void displayBiometricPrompt() {
DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
... | This is my code to show the prompt for fingerprint authentication in Android P: [CODE] Unfortunately it is not working, since it's not displaying any dialog or prompt for fingerprint authorization. There is also no error in my code, I do not get any exceptions. I checked the permissions and everything seems to be as re... | android|authentication|fingerprint|biometrics | 3 | 2018-12-10T06:27:02.197Z | 2,018 | 12 | 6 | 0 | 4,152 | 2 | 444 | 69 | 4 | 1 | true | false | true | false | false | false | low |
53,598,670 | App crashed because of Unhandeled exception: The content of the adapter has changed but ListView did not receive a notification | <blockquote>
<p>Full exception : Unhandeled exception: The content of the adapter has
changed but ListView did not receive a notification. Make sure the
content of your adapter is not modified from a background thread, but
only from the UI thread. Make sure your adapter calls
notifyDataSetChanged() when its c... | Full exception : Unhandeled exception: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListVi... | java|android|android-studio|android-listview | -1 | 2018-12-03T17:16:55.810Z | 2,018 | 12 | 17 | 0 | 57 | 2 | 849 | 127 | 4 | 0 | false | false | false | false | false | true | negative |
53,373,356 | Clicking a Button if a text field contains "\r" / carriage return | <p>i am absolutely new to Android development, i have found one example i am learning from.</p>
<p>i want to perform a Button Click or in this Case: <code>onClickDone</code> when a <code>\r</code> / carriage return was in the inputTitle Textbox.</p>
<p>the function is at the </p>
<blockquote>
<p>/app/src/main/jav... | i am absolutely new to Android development, i have found one example i am learning from. i want to perform a Button Click or in this Case: onClickDone when a \r / carriage return was in the inputTitle Textbox. the function is at the /app/src/main/java/com/hazmirulafiq/androidsqlitedatabasedemo/AddItem.java file here is... | android|button|text|return|contains | -1 | 2018-11-19T11:10:29.823Z | 2,018 | 11 | 11 | 0 | 58 | 2 | 450 | 65 | 5 | 0 | false | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.