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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60,129,966 | Platform location permission error with Flutter isolates | <p>I'm attempting to run location updates on a Flutter isolate thread, the error is only present when running an isolate. Location requests works without issues on the main thread. The goal here is to run this as a background service, working with dart code only.
I am using <a href="https://pub.dev/packages/geolocator"... | I'm attempting to run location updates on a Flutter isolate thread, the error is only present when running an isolate. Location requests works without issues on the main thread. The goal here is to run this as a background service, working with dart code only. I am using Geolocator plugin for location requests. This is... | android|flutter|dart|location|dart-isolates | 5 | 2020-02-08T18:37:28.447Z | 2,020 | 2 | 18 | 5 | 914 | 0 | 1,016 | 56 | 5 | 1 | true | true | false | false | false | false | low |
60,130,178 | How do I dynamically add and remove fragment pages using Viewpager2 and Mediator Tab Layout | <p>I need to add fragments to viewpager2 as well as tabs at runtime depending on server config file.
Most viewpager2 resources I have seen showcase a static viewpager2 using the new TabMediator Tab layout.
I am skipping viewpager as I need to add RTL and vertical scrolling supported by viewpager2.</p>
<p>My biggest co... | I need to add fragments to viewpager2 as well as tabs at runtime depending on server config file. Most viewpager2 resources I have seen showcase a static viewpager2 using the new TabMediator Tab layout. I am skipping viewpager as I need to add RTL and vertical scrolling supported by viewpager2. My biggest concern is ho... | android|android-fragments|android-tablayout|android-viewpager2 | 5 | 2020-02-08T19:01:25.553Z | 2,020 | 2 | 19 | 5 | 2,042 | 1 | 460 | 91 | 4 | 0 | false | false | false | false | false | false | low |
60,130,183 | SQLite saving duplicate item | <p>I have a SQLite database in my app. I'm trying to save some records in my database but query saving duplicate items.</p>
<p>Code:</p>
<pre><code>public void addValue(String userid, String fullname, String username) {
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery("SELECT * FROM... | I have a SQLite database in my app. I'm trying to save some records in my database but query saving duplicate items. Code: [CODE] Normally I check dublicate items with db.rawQuery("SELECT * FROM " + TABLE_NAME +" WHERE userid="+userid+"", null); query but still is saving. What is wrong here? Thanks. | java|android|sqlite|android-sqlite | 1 | 2020-02-08T19:01:58.830Z | 2,020 | 2 | 19 | 5 | 116 | 2 | 300 | 28 | 4 | 1 | true | false | false | false | false | false | low |
60,130,282 | How to enable site notification in Android WebView? | <p>I'm trying to receive site notification from Android WebView. When i am researching for this topic i encountered things related to onesignal but that's not what i want. Does anyone know about this topic? </p>
<p>Thank you.</p> | I'm trying to receive site notification from Android WebView. When i am researching for this topic i encountered things related to onesignal but that's not what i want. Does anyone know about this topic? Thank you. | android|webview|android-notifications | 0 | 2020-02-08T19:13:27.717Z | 2,020 | 2 | 19 | 5 | 221 | 0 | 214 | 51 | 3 | 0 | false | true | false | false | false | false | zero |
60,130,338 | Which Activity / Fragment / FragmentManager? | <p>I am new to Android programming and I am totally lost about from which Activity and Fragment version i shall derive and which FragmentManager I shall use.
I want to support API level 15 and above and I want to use androidx/Jetpack.
So, from which Activity implementation should my MainActivity derive? And from which ... | I am new to Android programming and I am totally lost about from which Activity and Fragment version i shall derive and which FragmentManager I shall use. I want to support API level 15 and above and I want to use androidx/Jetpack. So, from which Activity implementation should my MainActivity derive? And from which Fra... | android|androidx|android-jetpack | 0 | 2020-02-08T19:21:20.530Z | 2,020 | 2 | 19 | 5 | 95 | 1 | 425 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
60,130,353 | Marking a custom coroutine dispatcher so that it is treated like Dispatchers.IO | <p>I am using a simple class to inject dispatchers to my objects, so I can have different dispatchers for testing and for actual work, the classes I use are :</p>
<pre><code>interface IDispatchers {
val IO: CoroutineDispatcher
val CPU: CoroutineDispatcher
val UI: CoroutineDispatcher
}
object AppDispatcher... | I am using a simple class to inject dispatchers to my objects, so I can have different dispatchers for testing and for actual work, the classes I use are : [CODE] this works great and does exactly what I want. my problem is with the latest update of android studio, when I have an operation that could be blocking (for e... | android|kotlin-coroutines | 1 | 2020-02-08T19:23:08.287Z | 2,020 | 2 | 19 | 5 | 675 | 0 | 927 | 79 | 2 | 2 | true | true | false | false | false | false | low |
60,130,850 | request android 9 permissions kotlin | <p>Hello I'm using this code to ask for permission to read and write but the permission request does not appear, does anyone know how to fix this?</p>
<p>in oncreate</p>
<p>code</p>
<pre><code> setupPermissions()
setupPermissions2()
</code></pre>
<p>after oncreate</p>
<p>-</p>
<pre><code>private fun setup... | Hello I'm using this code to ask for permission to read and write but the permission request does not appear, does anyone know how to fix this? in oncreate code [CODE] after oncreate - [CODE] | android-studio|kotlin | 1 | 2020-02-08T20:21:16.570Z | 2,020 | 2 | 20 | 5 | 290 | 0 | 191 | 36 | 2 | 2 | true | true | false | false | false | false | low |
60,131,049 | Non-static method startActivity(intent) cannot be referenced from static context | <p>How is it from static context if it's being used within the proper class?</p>
<pre><code>Intent intent = new Intent(context, MainActivity.class );
startActivity(intent);
</code></pre>
<p>full code</p>
<pre><code>package com.example.w3_p3;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle... | How is it from static context if it's being used within the proper class? [CODE] full code [CODE] This is all taking place within my MainActivity class in a method that is called from a button onClick. Does it need to be called with an Activity.startActivity? All the examples I see just show startActivity(intent); By t... | android | 0 | 2020-02-08T20:47:30.457Z | 2,020 | 2 | 20 | 5 | 566 | 1 | 506 | 80 | 1 | 2 | true | false | false | false | false | false | zero |
60,131,064 | Android Navigation with nested bottom navigation | <p>I'm new to Android Navigation Component and want to understand how can I use it in my relatively simple scenario where I want to have a single activity approach. I obviously want the system to handle the back stack, also for bottom navigation.</p>
<p>What I need is 2 very simple cases:</p>
<h3>1. Mixed destination... | I'm new to Android Navigation Component and want to understand how can I use it in my relatively simple scenario where I want to have a single activity approach. I obviously want the system to handle the back stack, also for bottom navigation. What I need is 2 very simple cases: 1. Mixed destinations Some of the destin... | android|android-architecture-components|android-architecture-navigation|android-navigation-graph | 1 | 2020-02-08T20:50:13.710Z | 2,020 | 2 | 20 | 5 | 1,017 | 1 | 1,230 | 48 | 4 | 0 | false | false | false | false | false | false | low |
60,131,143 | NullPointerException in adapter holding viewholders | <p>ElementAdapter class</p>
<pre class="lang-java prettyprint-override"><code>package com.example.sierendeelementeninbreda;
import android.content.Context;
import android.view.ViewGroup;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import and... | ElementAdapter class [CODE] NetworkUtils class [CODE] MainActivity class [CODE] Error [CODE] That is the error I get when I run the app, I have tried solving this by looking things up but it is not working. The NullPointerException happens in line 64 of my adapter class. The app basically uses an API to get data from a... | java|android | 0 | 2020-02-08T21:00:50.790Z | 2,020 | 2 | 21 | 5 | 44 | 2 | 365 | 51 | 2 | 4 | true | false | false | false | false | false | zero |
60,131,186 | Null reference for object class? TrafficService class? | <p>I have tried to make the Network Speed in Status bar in android. I have managed to remove the error but app get crashes. I tried to implement it in my sample project.
So far I have reomve the error from TrafficeService class. I want to call it from MainActivity but it showing error in android studio as null refrence... | I have tried to make the Network Speed in Status bar in android. I have managed to remove the error but app get crashes. I tried to implement it in my sample project. So far I have reomve the error from TrafficeService class. I want to call it from MainActivity but it showing error in android studio as null refrence. M... | java|android|android-studio|android-layout | 1 | 2020-02-08T21:06:42.417Z | 2,020 | 2 | 21 | 5 | 36 | 0 | 428 | 54 | 4 | 3 | true | true | false | false | false | false | low |
60,131,256 | Is it better to divide fragments between two activities, say between MainActivity and another some activity:(Performance)? | <p>so if i have 10 fragments i will put 6 in MainActivity and the other in the second activiy
the idea is to enhance performance(decrease the work on MainActivity).</p> | so if i have 10 fragments i will put 6 in MainActivity and the other in the second activiy the idea is to enhance performance(decrease the work on MainActivity). | java|android | 0 | 2020-02-08T21:17:07.107Z | 2,020 | 2 | 21 | 5 | 22 | 0 | 161 | 122 | 2 | 0 | false | true | false | false | false | false | zero |
60,131,341 | displaying my toolbar image as background to status bar effecting navigation bar in android | <p>I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity</p>
<pre><code>//for using status bar space
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
getWindow().setFlags(WindowManager... | I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity [CODE] The problem is this code make my activity layout take the full screen even the space with navigation bar so how to solve this? Here is a scr... | android|android-layout|android-toolbar|android-statusbar|android-navigation-bar | 5 | 2020-02-08T21:28:36.807Z | 2,020 | 2 | 21 | 5 | 3,736 | 3 | 328 | 91 | 5 | 1 | true | false | true | false | false | false | low |
60,131,479 | Uploading and retrieving image android studio Parse sever | <p>I'm trying to pick multiple images from users gallery and upload <strong>(parse server)</strong> this images to parse object then retrieve it and set it in an image view </p>
<p>and also i need to pick one image from gallery and save to the users profile </p>
<p>what i have already tried:</p>
<pre><code>//Before ... | I'm trying to pick multiple images from users gallery and upload (parse server) this images to parse object then retrieve it and set it in an image view and also i need to pick one image from gallery and save to the users profile what i have already tried: [CODE] | java|android|android-studio|parse-platform | 0 | 2020-02-08T21:44:53.910Z | 2,020 | 2 | 21 | 5 | 56 | 0 | 263 | 57 | 4 | 1 | true | true | false | false | false | false | zero |
60,131,549 | Android Room SQLITE Update Custom Query with MVVM | <p>I am trying to do a simple update query where ONE column in a row will be updated. Every example I've seen online does a blanket update where the entire row is updated. I'm using MVVM - Activity, Viewmodel, Repository, AsyncTask, DAO.</p>
<p>It all works fine until I get to the Async task. The doInBackground method... | I am trying to do a simple update query where ONE column in a row will be updated. Every example I've seen online does a blanket update where the entire row is updated. I'm using MVVM - Activity, Viewmodel, Repository, AsyncTask, DAO. It all works fine until I get to the Async task. The doInBackground method is expecti... | android|mvvm|android-asynctask|android-sqlite|android-room | 0 | 2020-02-08T21:54:55.757Z | 2,020 | 2 | 21 | 5 | 290 | 1 | 544 | 49 | 5 | 5 | true | false | false | false | false | false | zero |
60,131,554 | AdMob SmartBanner in Xamain Forms Grid with Auto height not showing up | <p>I created a Hello World Xamarin Forms app and added code to add AdMob Smart Banner ad following <a href="https://montemagno.com/xamarinforms-google-admob-ads-in-android/" rel="nofollow noreferrer">this</a> tutorial. This was working fine until I received an email from AdMob saying "Restricted Ad Serving". So I pulle... | I created a Hello World Xamarin Forms app and added code to add AdMob Smart Banner ad following this tutorial. This was working fine until I received an email from AdMob saying "Restricted Ad Serving". So I pulled out my old code gave it a run in Emulator, and the ad wasn't showing up at all, not even the white space(a... | xamarin|xamarin.forms|xamarin.android|admob | 0 | 2020-02-08T21:55:30.297Z | 2,020 | 2 | 21 | 5 | 399 | 2 | 727 | 70 | 4 | 2 | true | false | false | false | false | false | zero |
60,131,571 | Logging the Instance of runnable | <p>I am not much experienced in java, but from what i know, a <code>Runnable</code> is just an interface which will enforce the class to implement <code>run()</code> function with some code, which would be executed in the calling thread.<br>
I often like to use this functionality in a function like this: </p>
<pre cl... | I am not much experienced in java, but from what i know, a Runnable is just an interface which will enforce the class to implement run() function with some code, which would be executed in the calling thread. I often like to use this functionality in a function like this: [CODE] A simple function that could be used to ... | java|android | 0 | 2020-02-08T21:57:25.323Z | 2,020 | 2 | 21 | 5 | 483 | 1 | 431 | 32 | 2 | 1 | true | false | false | false | false | false | zero |
60,131,623 | Android: How to get more information of a bluetooth device? | <p>Is it possible to get more information about bondedDevices besides the name and the MAC Address? So you can, for example, determine what device it exactly is (like a Gear S3 or Samsung Wireless Earbuds ect..). I can't seem to get this information but it must be possible, right?</p> | Is it possible to get more information about bondedDevices besides the name and the MAC Address? So you can, for example, determine what device it exactly is (like a Gear S3 or Samsung Wireless Earbuds ect..). I can't seem to get this information but it must be possible, right? | android|kotlin|bluetooth | 0 | 2020-02-08T22:03:38.303Z | 2,020 | 2 | 22 | 5 | 1,015 | 1 | 278 | 59 | 3 | 0 | false | false | false | false | false | false | zero |
60,131,633 | Pass Application or ApplicationContext to ViewModel? | <p>I have a small question.
I am working on an Android app and I am using the MVVM design pattern.</p>
<p>I need to pass the Application Context to some of the ViewModels and to the Repository, because of actions like: instantiating the Room Database, playing sound files, saving small data into Shared Preferences. I d... | I have a small question. I am working on an Android app and I am using the MVVM design pattern. I need to pass the Application Context to some of the ViewModels and to the Repository, because of actions like: instantiating the Room Database, playing sound files, saving small data into Shared Preferences. I did that usi... | android|mvvm|android-context | 2 | 2020-02-08T22:04:33.043Z | 2,020 | 2 | 22 | 5 | 1,366 | 1 | 719 | 52 | 3 | 0 | false | false | false | false | false | false | low |
60,131,694 | Getting duplicate class error when adding eclipse paho mqtt dependencies to Andrdoid Studio project | <p>I can't compile the project anymore when I add the following dependencies </p>
<pre><code>dependencies {
...
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.0.2'
...
}
</code></pre>
<p>to the project as sugge... | I can't compile the project anymore when I add the following dependencies [CODE] to the project as suggested on the paho eclipse website: https://www.eclipse.org/paho/clients/android/ I get following errors: [CODE] and many more others duplicate class errors. My project setup is quite basic because I just started. So p... | java|android|maven|gradle | 0 | 2020-02-08T22:11:28.883Z | 2,020 | 2 | 22 | 5 | 406 | 2 | 593 | 99 | 4 | 2 | true | false | false | false | false | false | zero |
60,131,891 | Crash in Huawei Map Kit: MapsCore is not initialized | <p>I am trying to implement the Huawei Map Kit in one of my apps.</p>
<p>I can load the map correctly an even draw some markers. It is a single activity application with several fragments.</p>
<p>I can navigate correctly to the map, but when I change to any other fragment, I always get this error:</p>
<pre><code>err... | I am trying to implement the Huawei Map Kit in one of my apps. I can load the map correctly an even draw some markers. It is a single activity application with several fragments. I can navigate correctly to the map, but when I change to any other fragment, I always get this error: [CODE] I am using the latest version M... | android|huawei-mobile-services | 0 | 2020-02-08T22:40:17.850Z | 2,020 | 2 | 22 | 5 | 777 | 2 | 387 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
60,131,910 | Android Studio - getting input from EditText View | <p>Inside of my enteredName method, I want to be able to check to make sure the user has entered their name inside of the name text box. I know that I already made the input equal to name by using findViewById. What I'm having trouble with is how do you get that input so you can use in the enteredName method as well? D... | Inside of my enteredName method, I want to be able to check to make sure the user has entered their name inside of the name text box. I know that I already made the input equal to name by using findViewById. What I'm having trouble with is how do you get that input so you can use in the enteredName method as well? Do I... | android|android-studio|application-design | 1 | 2020-02-08T22:43:04.517Z | 2,020 | 2 | 22 | 5 | 40 | 1 | 415 | 49 | 3 | 1 | true | false | false | false | false | false | low |
60,131,918 | Spotify SDK get rid of authentication popup when already authenticated | <p>I have started to develop an app with the spotify sdk. I have noticed that everytime you start the app a popup appears with a loading spinner for a split second.</p>
<p>I have implemented my authentication flow exactly the way it is described on the <a href="https://developer.spotify.com/documentation/android/guide... | I have started to develop an app with the spotify sdk. I have noticed that everytime you start the app a popup appears with a loading spinner for a split second. I have implemented my authentication flow exactly the way it is described on the spotify docs . Isn't there a way to hide this popup in any way? | android|spotify | 0 | 2020-02-08T22:44:08.320Z | 2,020 | 2 | 22 | 5 | 56 | 0 | 306 | 70 | 2 | 0 | false | true | false | false | false | false | zero |
60,132,250 | Why does the stroke cause my drawable to not render? | <p>Ok so I have this drawable, it is just a rectangle with a border around it, nothing crazy.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="20dp"
android:co... | Ok so I have this drawable, it is just a rectangle with a border around it, nothing crazy. [CODE] and im just setting it as a src in my main activity [CODE] But it wont render. However if I remove this line: [CODE] From the stroke, it renders. If I remove the stroke color, it still wont render. I am really confused why... | android|xml|drawable | 0 | 2020-02-08T23:39:15.793Z | 2,020 | 2 | 23 | 5 | 18 | 0 | 379 | 52 | 3 | 3 | true | true | false | false | false | false | zero |
60,132,302 | How to reference androidx toolbar in main activity? | <p>I am trying to use my toolbar as my action bar but my reference to the toolbar is throwing an error. I am not using the previous <code>android.support.v7.widget</code> toolbar but the newer <code>androidx.appcompat.widget.Toolbar</code> toolbar. I believe there is a different syntax for androidx but could not find i... | I am trying to use my toolbar as my action bar but my reference to the toolbar is throwing an error. I am not using the previous android.support.v7.widget toolbar but the newer androidx.appcompat.widget.Toolbar toolbar. I believe there is a different syntax for androidx but could not find it. [CODE] | android|android-toolbar|androidx | 0 | 2020-02-08T23:48:15.300Z | 2,020 | 2 | 23 | 5 | 254 | 1 | 300 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
60,132,459 | Getting Manifest merger failed Error While Updating Places Api | <p>Hey My Google Places Api Was Not Working And i see in The Log They Asked To Updated Places Api .. So I tried To Do So They Asked to Add Few Dependencies</p>
<pre><code>implementation 'com.google.android.libraries.places:places:2.2.0'
implementation 'com.google.android.libraries.places:places-compat:2.2.0'
</code><... | Hey My Google Places Api Was Not Working And i see in The Log They Asked To Updated Places Api .. So I tried To Do So They Asked to Add Few Dependencies [CODE] When I Add Both These Dependencies Then i Get This Errror [CODE] But if i Add Only one Dependency Then its Work Okay Bu I Need Both These Dependencies in the co... | android|android-studio|android-maps | 1 | 2020-02-09T00:17:22.703Z | 2,020 | 2 | 0 | 6 | 266 | 1 | 376 | 62 | 3 | 2 | true | false | false | false | false | false | low |
60,132,629 | Delphi Tethering on Android Service | <p>I'm testing tethering on Delphi.</p>
<p>Everything works well in Windows 10 applications (both standard application and service).
Everything is also fine in the standard android app.</p>
<p>Problems are in Android service. I can connect from external client to tethering in android service, receive and send resourc... | I'm testing tethering on Delphi. Everything works well in Windows 10 applications (both standard application and service). Everything is also fine in the standard android app. Problems are in Android service. I can connect from external client to tethering in android service, receive and send resources and etc. But the... | android|delphi|delphi-10.3-rio|tethering | 0 | 2020-02-09T00:57:09.677Z | 2,020 | 2 | 0 | 6 | 491 | 2 | 598 | 35 | 4 | 0 | false | false | false | false | false | false | zero |
60,132,664 | Is creating an instance of a fragment inside an activity and reusing it bad coding practice? | <p>There is one activity and two fragments.
You can switch to the other fragment by pressing a button (in the action bar in the optionsMenu).
By pressing the button the fragment is being replaced by the respective other fragment.</p>
<p>To make sure that the right fragment is being put into the fragment container, fir... | There is one activity and two fragments. You can switch to the other fragment by pressing a button (in the action bar in the optionsMenu). By pressing the button the fragment is being replaced by the respective other fragment. To make sure that the right fragment is being put into the fragment container, first, the cur... | android|android-fragments|kotlin | 0 | 2020-02-09T01:03:20.610Z | 2,020 | 2 | 1 | 6 | 43 | 1 | 1,052 | 92 | 3 | 2 | true | false | false | false | false | false | zero |
60,132,936 | API Call in Android Studio using volley (JAVA) | <p>I am not sure what I am doing wrong. I am very new to this and just jumped straight into trying to make API calls. I am trying to retrieve information from rapidAPI for a simple project I am working on to view prices of stocks and so on. I am using the volley package from Android Studio to make my APIcalls to retrie... | I am not sure what I am doing wrong. I am very new to this and just jumped straight into trying to make API calls. I am trying to retrieve information from rapidAPI for a simple project I am working on to view prices of stocks and so on. I am using the volley package from Android Studio to make my APIcalls to retrieve ... | java|android|android-studio|android-volley | 1 | 2020-02-09T02:11:49.380Z | 2,020 | 2 | 2 | 6 | 272 | 1 | 631 | 46 | 4 | 1 | true | false | false | false | false | false | low |
60,132,941 | Changing the BackgroundResource of a ListView Object while it's off screen | <p>newbie doing a course assignment here.</p>
<p>I'm making a Xamarin C# application where you create a List of objects which are displayed in the UI with the goal of keeping track of turns in a tabletop / board game.
To show who is having their turn, when you hit a rotateButton the Object having their turn has their ... | newbie doing a course assignment here. I'm making a Xamarin C# application where you create a List of objects which are displayed in the UI with the goal of keeping track of turns in a tabletop / board game. To show who is having their turn, when you hit a rotateButton the Object having their turn has their ListView ce... | c#|android|listview|xamarin | 0 | 2020-02-09T02:13:35.920Z | 2,020 | 2 | 2 | 6 | 44 | 1 | 678 | 74 | 4 | 1 | true | false | false | false | false | false | zero |
60,133,037 | Search filter on listview of item returns wrong results on item click, | <p>I have a listview getting filtered by an edit text on top. However, when I click on the item searched I get the result of another item being selected. </p>
<p>I Know similar questions are asked and answered by many already, but I went through all the forum but I am breaking my head from long back and sorry newbie m... | I have a listview getting filtered by an edit text on top. However, when I click on the item searched I get the result of another item being selected. I Know similar questions are asked and answered by many already, but I went through all the forum but I am breaking my head from long back and sorry newbie much. Any hel... | java|android|android-studio|android-listview|onclicklistener | 1 | 2020-02-09T02:38:09.750Z | 2,020 | 2 | 2 | 6 | 177 | 0 | 438 | 70 | 5 | 3 | true | true | false | false | false | false | low |
60,133,135 | Difference between flutter android and Ios app | <p>I am currently developing apps only for android using flutter. But if I want to run the same app on ios, what changes do I have to make? </p> | I am currently developing apps only for android using flutter. But if I want to run the same app on ios, what changes do I have to make? | android|ios|flutter|dart | 0 | 2020-02-09T03:10:29.010Z | 2,020 | 2 | 3 | 6 | 650 | 1 | 136 | 46 | 4 | 0 | false | false | false | false | false | false | zero |
60,133,190 | Android DrawerLayout and NavigationView not fully expanded | <p>Hi I have build a DrawerLayout with a NavigationView and a Toolbar. The problem is that the NavigationView does not fully expand like in the picture. I tried to use android:fitsSystemWindows = true and false but none worked.
<a href="https://i.stack.imgur.com/5mSZz.png" rel="nofollow noreferrer"><img src="https://i.... | Hi I have build a DrawerLayout with a NavigationView and a Toolbar. The problem is that the NavigationView does not fully expand like in the picture. I tried to use android:fitsSystemWindows = true and false but none worked. This is my code in the layout file. [CODE] I want to remove the gray areas where the status bar... | android|android-layout|navigation-drawer|drawerlayout|navigationview | 0 | 2020-02-09T03:24:35.797Z | 2,020 | 2 | 3 | 6 | 83 | 1 | 473 | 58 | 5 | 1 | true | false | false | false | false | false | zero |
60,133,227 | Xamarin Android: Resource android: style/AppTheme.Base Not Found | <p>I'm new to Xamarin Android development.
I'm following the Microsoft Splash Screen tutorial: <a href="https://docs.microsoft.com/en-us/xamarin/android/user-interface/splash-screen" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/xamarin/android/user-interface/splash-screen</a></p>
<p>I have got the error ... | I'm new to Xamarin Android development. I'm following the Microsoft Splash Screen tutorial: https://docs.microsoft.com/en-us/xamarin/android/user-interface/splash-screen I have got the error saying The AppTheme.Base not found [CODE] | c#|android|visual-studio|xamarin | 0 | 2020-02-09T03:32:38.120Z | 2,020 | 2 | 3 | 6 | 1,655 | 2 | 232 | 64 | 4 | 1 | true | false | false | false | false | false | zero |
60,133,303 | How to fix Database already open when Im gonna Inserting Data to SQLite on React Native | <p>I wanna insert some text to My SQLite storage on React Native, but when I'm pressed Insert button, nothing happened on my screen, then I saw on Log said that:
database already open: mst_person.db
Database open</p>
<p>How to fix that when I'm gonna insert my value to SQLite</p>
<p>here's my code
database.js</p>
<p... | I wanna insert some text to My SQLite storage on React Native, but when I'm pressed Insert button, nothing happened on my screen, then I saw on Log said that: database already open: mst_person.db Database open How to fix that when I'm gonna insert my value to SQLite here's my code database.js [CODE] sometimes, when im ... | android|sqlite|react-native | 1 | 2020-02-09T03:50:25.313Z | 2,020 | 2 | 3 | 6 | 325 | 0 | 431 | 87 | 3 | 1 | true | true | false | false | false | false | low |
60,133,434 | How to use same Fragment class multiple times in a ViewPager and TabLayout? | <p>So, i'm trying to create multiple tabs on runtime depending on some values, each tab contains a fragment, and each fragment contains some charts. the problem is that only works when a single tab is created, when 2 or more tabs are supposed to be created the app crash because a null reference on a <code>RelativeLayou... | So, i'm trying to create multiple tabs on runtime depending on some values, each tab contains a fragment, and each fragment contains some charts. the problem is that only works when a single tab is created, when 2 or more tabs are supposed to be created the app crash because a null reference on a RelativeLayout inside ... | java|android|android-fragments | 1 | 2020-02-09T04:23:28.067Z | 2,020 | 2 | 4 | 6 | 326 | 1 | 735 | 75 | 3 | 6 | true | false | false | false | false | false | low |
60,133,456 | when I creating new project in Android Studio then color.xml file and some others xml file have some strange code in it | <p>when I am creating new project in Android studio then color.xml file code contains this code </p>
<pre><code>���� 3 8 ( ) * + styleable InnerClasses , style - string . mipmap / layout 0 integer 1 id 2 drawable 3 dimen 4 color 5 bool 6 attr 7 anim
<init> ()V Code
</code></pre>
<p>why this happening e... | when I am creating new project in Android studio then color.xml file code contains this code [CODE] why this happening every time . Any solution? | java|android|android-studio|android-layout|android-fragments | 0 | 2020-02-09T04:28:41.760Z | 2,020 | 2 | 4 | 6 | 71 | 0 | 145 | 119 | 5 | 1 | true | true | false | false | false | false | zero |
60,133,459 | Having issues with a scanner | <p>I am trying to understand whats wrong with this code. this submit button switches this activity to a QR generator which cannot have null values or else the activity crashes. This code scans the <code>EditText</code>s and the <code>RadioGroup</code>s to confirm that they are filled. The error is null values which cau... | I am trying to understand whats wrong with this code. this submit button switches this activity to a QR generator which cannot have null values or else the activity crashes. This code scans the EditText s and the RadioGroup s to confirm that they are filled. The error is null values which causes the QR code not to gene... | java|android | 0 | 2020-02-09T04:29:08.960Z | 2,020 | 2 | 4 | 6 | 42 | 1 | 583 | 28 | 2 | 3 | true | false | false | false | false | false | zero |
60,133,593 | Internet doesn't work on my android emulator? | <p>I'm developing a flutter app, I'm using Intelji as my IDE and Pixel_2_API_28 as my emulator, Everything working perfectly 2 days before and My internet connection is perfect and fast, I did not change anything in my connectivity or nothing else. What went wrong here? <a href="https://i.stack.imgur.com/3AFn6.png" re... | I'm developing a flutter app, I'm using Intelji as my IDE and Pixel_2_API_28 as my emulator, Everything working perfectly 2 days before and My internet connection is perfect and fast, I did not change anything in my connectivity or nothing else. What went wrong here? | flutter|dart|android-emulator|internet-connection | 3 | 2020-02-09T04:57:15.480Z | 2,020 | 2 | 4 | 6 | 1,990 | 2 | 267 | 45 | 4 | 0 | false | false | false | false | false | false | low |
60,133,595 | recyclerview in kotlin returns only 1 item | <p>I don't know why it presents only one item.</p>
<pre class="lang-java prettyprint-override"><code>class MyRecyclerviewAdapter : RecyclerView.Adapter<MyRecyclerviewAdapter.MyViewHolder>() {
val mData = arrayListOf<CardviewItem>(CardviewItem("TEST", "TEST1"), CardviewItem("TEST", "TEST2"), CardviewIte... | I don't know why it presents only one item. [CODE] | android|android-recyclerview | 1 | 2020-02-09T04:57:37.490Z | 2,020 | 2 | 4 | 6 | 44 | 1 | 50 | 42 | 2 | 1 | true | false | false | false | false | false | low |
60,133,634 | Android memory issue when scanning bluetooth with thread and handler | <p>I'm using a thread and handler to achieve a Bluetooth scanning service of certain scanning period and frequency (scan 1s, sleep 1s, scan 1s, etc) by BluetoothLeScanner (actually migrating from BluetoothAdapter). However, as times goes by, I realise it is eating up the memory. </p>
<p>Then I tried to use the profile... | I'm using a thread and handler to achieve a Bluetooth scanning service of certain scanning period and frequency (scan 1s, sleep 1s, scan 1s, etc) by BluetoothLeScanner (actually migrating from BluetoothAdapter). However, as times goes by, I realise it is eating up the memory. Then I tried to use the profiler to see wha... | android|multithreading|bluetooth|handler|profiler | 1 | 2020-02-09T05:06:44.003Z | 2,020 | 2 | 5 | 6 | 369 | 1 | 732 | 68 | 5 | 1 | true | false | false | false | false | false | low |
60,133,766 | how to implement MVVM | <p>I want to use MVVM architecture, I have a view pager which has two fragments. each fragment has a RecyclerView. I created a view model class that extends AndroidViewModel because I needed context to pass to my repository which gets data from an API class that gets data from the server using volley. I expected when a... | I want to use MVVM architecture, I have a view pager which has two fragments. each fragment has a RecyclerView. I created a view model class that extends AndroidViewModel because I needed context to pass to my repository which gets data from an API class that gets data from the server using volley. I expected when a ro... | kotlin|mvvm|android-livedata|android-viewmodel | 0 | 2020-02-09T05:34:18.657Z | 2,020 | 2 | 5 | 6 | 68 | 1 | 818 | 21 | 4 | 6 | true | false | false | false | false | false | zero |
60,133,780 | Button doesn't fully stick to bottom of screen in constraint layout | <p>I constrain a button to the bottom of the screen, but unfortunately there is a small gap between the bottom border of the screen and the bottom border of the buttom:</p>
<p><a href="https://i.stack.imgur.com/AgEdT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AgEdT.jpg" alt="enter image descrip... | I constrain a button to the bottom of the screen, but unfortunately there is a small gap between the bottom border of the screen and the bottom border of the buttom: My XML: [CODE] What causes this gap? And how can I get rid of it? | android|android-constraintlayout|android-button | 1 | 2020-02-09T05:37:19.200Z | 2,020 | 2 | 5 | 6 | 4,321 | 2 | 231 | 67 | 3 | 1 | true | false | true | false | false | false | low |
60,133,829 | Show alertDialog setpositiveButton only when some conditions are true | <p>I am trying to enable <code>positivebutton</code> of an <code>AlertDialog</code> only when text are set in both <code>editText</code> field, but this is not working, i.e. <code>PositiveButton</code> does not show up even when I have text in both field.</p>
<p>Of course, if I don't have text in both field, I am gett... | I am trying to enable positivebutton of an AlertDialog only when text are set in both editText field, but this is not working, i.e. PositiveButton does not show up even when I have text in both field. Of course, if I don't have text in both field, I am getting error NumberFormatException: empty String [CODE] Update [CO... | android|android-alertdialog | 1 | 2020-02-09T05:46:08.117Z | 2,020 | 2 | 5 | 6 | 132 | 2 | 323 | 69 | 2 | 2 | true | false | false | false | false | false | low |
60,133,930 | Retrofit and Kotlin Post Request 400 error | <p>I am trying to make a simple post request to googles dialogflow in retrofit using kotlin. I am modeling my code off of this <a href="https://medium.com/@elye.project/kotlin-and-retrofit-2-tutorial-with-working-codes-333a4422a890" rel="nofollow noreferrer">site</a>. However, I keep getting 400 errors when trying to... | I am trying to make a simple post request to googles dialogflow in retrofit using kotlin. I am modeling my code off of this site . However, I keep getting 400 errors when trying to make a search so there must be something wrong with my interface creating the message body I believe. I have working python code that does ... | android|http|retrofit2 | 0 | 2020-02-09T06:03:25.747Z | 2,020 | 2 | 6 | 6 | 209 | 1 | 863 | 42 | 3 | 5 | true | false | false | false | false | false | zero |
60,134,114 | Android Apache POI error when reading Microsoft Word document: org.apache.xmlbeans.SchemaTypeLoaderException Cannot resolve type for handle | <p>I am trying to use Apache POI in my Android application so that I can read Microsoft Word files. I am integrating the POIA library which enables Apache POI usage on Android (<a href="https://github.com/SUPERCILEX/poi-android" rel="nofollow noreferrer">https://github.com/SUPERCILEX/poi-android</a>). However, when I r... | I am trying to use Apache POI in my Android application so that I can read Microsoft Word files. I am integrating the POIA library which enables Apache POI usage on Android ( https://github.com/SUPERCILEX/poi-android ). However, when I run my code and read in a Word file, I receive the following error: Exception: org.a... | android|kotlin|ms-word|apache-poi|docx | 3 | 2020-02-09T06:36:46.697Z | 2,020 | 2 | 6 | 6 | 1,070 | 2 | 862 | 139 | 5 | 5 | true | false | false | false | false | false | low |
60,134,164 | How to replace a class at runtime? | <p>I have 2 classes. I want to replace one, class <code>A</code> so that ANY instance of it will actually behave like class <code>B</code>.</p>
<pre><code>class A {
fun test() = "a"
}
class B {
fun test() = "b"
}
</code></pre>
<p>I was trying to use the <code>ClassLoader</code> to do this but I couldn't get... | I have 2 classes. I want to replace one, class A so that ANY instance of it will actually behave like class B . [CODE] I was trying to use the ClassLoader to do this but I couldn't get the system to call MyClassLoader . [CODE] This has to happen at compile time or runtime because I cannot manually replace every instanc... | java|android|kotlin | 0 | 2020-02-09T06:46:40.087Z | 2,020 | 2 | 6 | 6 | 366 | 2 | 599 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
60,134,172 | Using protobuf imports (i.e. google/protobuf/timestamp.proto) with wire | <p>I am trying to generate files using the square's <a href="https://github.com/square/wire" rel="nofollow noreferrer">Wire</a>. I could run their sample all good, but as soon as I added
<code>import "google/protobuf/timestamp.proto";</code> to their .proto file
to check how wire treats timestamps, compiler broke with... | I am trying to generate files using the square's Wire . I could run their sample all good, but as soon as I added import "google/protobuf/timestamp.proto"; to their .proto file to check how wire treats timestamps, compiler broke with this exception: Exception in thread "main" java.io.FileNotFoundException: Failed to lo... | android-gradle-plugin|gradle-plugin|square|protoc|square-wire | 1 | 2020-02-09T06:48:26.560Z | 2,020 | 2 | 6 | 6 | 536 | 2 | 796 | 71 | 5 | 1 | true | false | false | false | false | false | low |
60,134,189 | Right way to add different configurations for different build types and product flavours | <p>In my application I have 4 environments i.e <strong>Dev</strong>, <strong>SIT</strong>, <strong>UAT</strong>, <strong>Release</strong>. For each environment I have a build type with it's own configuration. Much like the suggested way, e.g:</p>
<pre><code>buildTypes {
Dev {
buildConfigField "String", 'BA... | In my application I have 4 environments i.e Dev , SIT , UAT , Release . For each environment I have a build type with it's own configuration. Much like the suggested way, e.g: [CODE] But now I have 5-6 different such configurations, not just the BASE_URL . Like ClientId , ClientSecret etc.. Plus I have 2 product flavou... | android|gradle|build.gradle | -1 | 2020-02-09T06:51:21.397Z | 2,020 | 2 | 6 | 6 | 72 | 1 | 1,157 | 88 | 3 | 4 | true | false | false | false | false | true | negative |
60,134,242 | use static android context in static method | <p>I have a <code>PrefUtils</code> class like this: </p>
<pre class="lang-java prettyprint-override"><code>public class PrefUtils {
public PrefUtils() {
}
private static SharedPreferences getSharedPreferences(Context context) {
return context.getSharedPreferences("APP_PREF", Context.MODE_PRIVATE)... | I have a PrefUtils class like this: [CODE] In my MainActivity I have a static method and I should use a static Context for it : [CODE] Is it right to add Context to a static variable? Android Studio says: "Do not place Android Context class in static field". Does this cause an error like memory leak? And if answer is Y... | android|memory-leaks|android-context | 0 | 2020-02-09T07:00:33.060Z | 2,020 | 2 | 7 | 6 | 152 | 1 | 346 | 43 | 3 | 2 | true | false | false | false | false | false | zero |
60,134,274 | setData() returning 0 in MPAndroid Chart | <p>I'm using a vertical Bar Chart (from the library MPAndroidChart) to display data. However, it is not displaying it correctly.<br>
I need to say that I checked with breakpoints the value of this BarData, and it is not 0 (One bar has Y = 0, but another one has Y = 1), however, this values seem to be ignored, and when ... | I'm using a vertical Bar Chart (from the library MPAndroidChart) to display data. However, it is not displaying it correctly. I need to say that I checked with breakpoints the value of this BarData, and it is not 0 (One bar has Y = 0, but another one has Y = 1), however, this values seem to be ignored, and when that li... | java|android | 1 | 2020-02-09T07:05:23.607Z | 2,020 | 2 | 7 | 6 | 41 | 1 | 535 | 40 | 2 | 0 | false | false | false | false | false | false | low |
60,134,303 | I have a problem in the design of image view | <p>I want to show image of the item with its details vertical using Nested Scroll View but
I have problem in the image view down here it appear with pending and I don't know why.</p>
<pre><code>'''<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http:/... | I want to show image of the item with its details vertical using Nested Scroll View but I have problem in the image view down here it appear with pending and I don't know why. [CODE] here in the image there are green line in the left of the image and i want it to be match parent i want the image start from the left to ... | android|android-layout|imageview|android-toolbar|android-appbarlayout | 1 | 2020-02-09T07:10:34.300Z | 2,020 | 2 | 7 | 6 | 32 | 1 | 361 | 44 | 5 | 2 | true | false | false | false | false | false | low |
60,134,327 | How to share an Image and Text on whatsapp to a specific number? | <p>I already know how to send it on whatsapp but not to a number, the way I'm doing I got a list of contacts and I need to choose which one should I send. But I need to send the Message to a specific number.</p>
<pre><code>private void WhatsAppShare(ChannelEvent event){
Intent IntentW = new Intent(Intent.ACTION_SE... | I already know how to send it on whatsapp but not to a number, the way I'm doing I got a list of contacts and I need to choose which one should I send. But I need to send the Message to a specific number. [CODE] If I take the ComponentName works fine, and with, I get the whatsapp chat to this number but with no images ... | java|android | 0 | 2020-02-09T07:14:56.360Z | 2,020 | 2 | 7 | 6 | 653 | 1 | 328 | 64 | 2 | 1 | true | false | false | false | false | false | zero |
60,134,495 | Data inserted using REST API is lost after rebuilding ASP.NET project | <p>I'm trying to user retrofit 2 to handle the REST API requests from Android Studio to ASP.NET project and SQL Server. However, every time I rebuild the solution in Visual Studio (where I compile my ASP.NET code), and come back to run the Android app in Android Studio, the data inserted previously from Android is lost... | I'm trying to user retrofit 2 to handle the REST API requests from Android Studio to ASP.NET project and SQL Server. However, every time I rebuild the solution in Visual Studio (where I compile my ASP.NET code), and come back to run the Android app in Android Studio, the data inserted previously from Android is lost. T... | android|asp.net|sql-server|retrofit2 | 0 | 2020-02-09T07:43:39.877Z | 2,020 | 2 | 7 | 6 | 54 | 1 | 849 | 69 | 4 | 0 | false | false | false | false | false | false | zero |
60,134,529 | text view shape is shown as oval even though the shape is cirlce | <p>I created a circular shape called circle.xml:</p>
<pre><code><shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="#FFF" />
<size
android:width="5dp"
android:height="5dp"/>
<padding
android:... | I created a circular shape called circle.xml: [CODE] In the preview it looks circular and not oval. Then I implemented it in my text view: [CODE] Then the result is still an oval shape: The shape only becomes circular when the text is two digits such as "10". Why is it oval even though it should be circular? | android|xml|drawable | 0 | 2020-02-09T07:49:10.540Z | 2,020 | 2 | 7 | 6 | 162 | 1 | 309 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
60,134,532 | Is there an API to access location history on a mobile device? | <p>I can't seem to find any public API for a third party app to (once authorized) access a mobile user's location history (e.g. what is shown in <a href="https://www.google.com/maps/timeline" rel="nofollow noreferrer">https://www.google.com/maps/timeline</a>). I know I can track a user's current location and receive up... | I can't seem to find any public API for a third party app to (once authorized) access a mobile user's location history (e.g. what is shown in https://www.google.com/maps/timeline ). I know I can track a user's current location and receive updates, but it would be nice to not have to double up on something that a user's... | android|ios|google-maps|location | 1 | 2020-02-09T07:50:20.687Z | 2,020 | 2 | 7 | 6 | 671 | 1 | 468 | 62 | 4 | 0 | false | false | false | false | false | false | low |
60,134,630 | Bottom Navigation View Is Shown Incorrectly | <p>I have some full-screen activities in my app which have bottom navigation view at the bottom. When the app has the navigation bar on it looks fine, like this:</p>
<p><a href="https://i.stack.imgur.com/A9C0f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A9C0f.png" alt="enter image description he... | I have some full-screen activities in my app which have bottom navigation view at the bottom. When the app has the navigation bar on it looks fine, like this: When I remove the navigation bar, it seems like the bottom navigation view fills its place (instead of sticking to the bottom of the layout): This is how it look... | android|android-layout|view|bottomnavigationview | 1 | 2020-02-09T08:07:37.127Z | 2,020 | 2 | 8 | 6 | 232 | 1 | 511 | 43 | 4 | 2 | true | false | false | false | false | false | low |
60,134,678 | call function in fragment using viewPager | <p>I have 3 fragments in which, each one has a function for search.
in my MainActivity, I created a view pager and pass these fragments to it.
I also have an edit text in my MainActivity that gets user input. I want to pass this input to a function that is located in fragments. that function calls an API and does a sea... | I have 3 fragments in which, each one has a function for search. in my MainActivity, I created a view pager and pass these fragments to it. I also have an edit text in my MainActivity that gets user input. I want to pass this input to a function that is located in fragments. that function calls an API and does a search... | kotlin|search|android-viewpager|fragment | 0 | 2020-02-09T08:14:44.143Z | 2,020 | 2 | 8 | 6 | 57 | 1 | 438 | 41 | 4 | 0 | false | false | false | false | false | false | zero |
60,134,706 | My code doesn't render the drawer. "Path.op() not supported" | <p><a href="https://i.stack.imgur.com/Y1IT2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y1IT2.png" alt="enter image description here"></a></p>
<p>I encounter this kind of problem. I have to put a drawer toggle in my application but when I run it, it doesn't render the drawer. Does anyone have id... | I encounter this kind of problem. I have to put a drawer toggle in my application but when I run it, it doesn't render the drawer. Does anyone have idea on kind of error. Because when I check my code it doesn't have any error. By the way I don't know where in my code has to do something on this. [CODE] | android|android-studio | 1 | 2020-02-09T08:18:04.493Z | 2,020 | 2 | 8 | 6 | 1,404 | 0 | 303 | 60 | 2 | 1 | true | true | false | false | false | false | low |
60,134,709 | How to prevent the Display size from scaling? | <p>I have make the changes in the app so the fonts will scale by using the sp for the textsizes but at the same time i also want to restrict the display size to scale my app. For reference I have used this <a href="https://stackoverflow.com/questions/56779224/how-do-i-prevent-android-device-display-size-scaling-in-my-a... | I have make the changes in the app so the fonts will scale by using the sp for the textsizes but at the same time i also want to restrict the display size to scale my app. For reference I have used this link . But it will cause problems in some samsung devices when user changes the Resolution . e.g if user changes the ... | android|font-scaling | 3 | 2020-02-09T08:18:32.667Z | 2,020 | 2 | 8 | 6 | 141 | 0 | 470 | 45 | 2 | 0 | false | true | false | false | false | false | low |
60,134,734 | multidex class, class not found and keep crashing | <p>Well, i just added some gplay service dependencies and then i remove the dependency
then this just got pop up</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.app.yukngaji.transaksi.sandbox, PID: 31258
java.lang.RuntimeException: Unable to instantiate application com.app.yukngaji.MyAppli... | Well, i just added some gplay service dependencies and then i remove the dependency then this just got pop up [CODE] i already added MultiDex Enable, androidx.multidex.blablabla, and try all thing on the internet, but it won't work | android|android-studio | -1 | 2020-02-09T08:22:00.773Z | 2,020 | 2 | 8 | 6 | 43 | 1 | 231 | 49 | 2 | 1 | true | false | false | false | false | true | negative |
60,134,763 | A white symbol on a java class in Android Studio 3.5.3 | <p>There is a weird white symbol (Like hammer) in one of my <code>FirestoreStaticHelper.java</code>. Like this (top of <strong>C</strong>)</p>
<p><a href="https://i.stack.imgur.com/pkIxh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pkIxh.png" alt="weird_white_symbol"></a></p>
<p><a href="https:/... | There is a weird white symbol (Like hammer) in one of my FirestoreStaticHelper.java . Like this (top of C ) FirestoreStaticHelper class only have static methods and private constructor. I have other similar classes like this. but only this class is showing this symbol. What is this symbol? How to remove it? | android-studio | 0 | 2020-02-09T08:26:05.637Z | 2,020 | 2 | 8 | 6 | 53 | 1 | 308 | 54 | 1 | 0 | false | false | false | false | false | false | zero |
60,134,790 | Why isn't my Push Notification appearing on the device when the log shows that there is no error? | <p>I have deployed the following firebase function for implementing push notifications in my cloud firestore chat app. I am doing this for the first time after watching <a href="https://www.youtube.com/watch?v=Y6jMKQ9zo-o&lc=z22lzdth5reseha5h04t1aokgck50fd20sfpuvltsywkbk0h00410.1581234112955648&feature=em-comme... | I have deployed the following firebase function for implementing push notifications in my cloud firestore chat app. I am doing this for the first time after watching this tutorial . [CODE] While testing the function, the log shows the function to be properly working without any errors, however my device isn't actually ... | android|node.js|push-notification|google-cloud-firestore|android-notifications | 1 | 2020-02-09T08:30:05.860Z | 2,020 | 2 | 8 | 6 | 103 | 1 | 481 | 97 | 5 | 1 | true | false | false | false | false | false | low |
60,134,793 | java.lang.NullPointerException: Attempt to invoke virtual method 'float TallarRatingObject.getScore()' on a null object reference | <p>I want to build a model based on a json, but I encountered a null object error.</p>
<p>image of Json and models made in android studio</p>
<p><a href="https://i.stack.imgur.com/n4Cri.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n4Cri.jpg" alt="enter image description here"></a></p> | I want to build a model based on a json, but I encountered a null object error. image of Json and models made in android studio | android|json|model|nullpointerexception | -2 | 2020-02-09T08:30:52.227Z | 2,020 | 2 | 8 | 6 | 112 | 1 | 127 | 129 | 4 | 0 | false | false | false | false | false | true | negative |
60,134,802 | onPress fires more than once when using keyboard | <p>I am developing an app for Android and I have a Touchable Opacity which fires more than once. This touchable opacity is a separate component.</p>
<p>Here is the button component:</p>
<pre><code>import React, { Component } from 'react';
import {View, Text, TouchableOpacity, Animated, Easing} from 'react-native';
e... | I am developing an app for Android and I have a Touchable Opacity which fires more than once. This touchable opacity is a separate component. Here is the button component: [CODE] And here is the button in my App.js: [CODE] This button is inside a scrollview. It fires exactly 4 times when I pess return key on the keyboa... | javascript|android|react-native | 1 | 2020-02-09T08:31:51.400Z | 2,020 | 2 | 8 | 6 | 55 | 0 | 496 | 48 | 3 | 2 | true | true | false | false | false | false | low |
60,134,869 | Retrieving a BLOB type into Byte | <p>SQLiteDatabase DB = this.getReadableDatabase();
ImageModel ImageModel = new ImageModel();</p>
<blockquote>
<p>So here is my snippet</p>
</blockquote>
<pre><code> Cursor Cursor = DB.rawQuery("SELECT ImageFile FROM Image WHERE ID = '1'", null);
if(Cursor.getCount() < 1) {
System.out.prin... | SQLiteDatabase DB = this.getReadableDatabase(); ImageModel ImageModel = new ImageModel(); So here is my snippet [CODE] I got an error from this code byte[] byteArray = Cursor.getBlob(1); [CODE] | java|android|android-sqlite | 0 | 2020-02-09T08:43:25.727Z | 2,020 | 2 | 8 | 6 | 28 | 1 | 193 | 32 | 3 | 2 | true | false | false | false | false | false | zero |
60,134,882 | How to fix this memory leaks? | <p><a href="https://i.stack.imgur.com/7uF93.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7uF93.jpg" alt="enter image description here"></a></p>
<p>how i can fix this Memory Leaks i am using this code to work with handler.</p>
<pre><code>public static Handler handlerKillInfoBar = new MyHandler();... | how i can fix this Memory Leaks i am using this code to work with handler. [CODE] | android|performance|memory-leaks|leakcanary | 0 | 2020-02-09T08:45:38.627Z | 2,020 | 2 | 8 | 6 | 53 | 1 | 81 | 29 | 4 | 1 | true | false | false | false | false | false | zero |
60,134,913 | Google SceneForm transparency problems | <p>I'm trying to show a 3d model with alpha values in the baseColor of it's texture just to get used with arCore SDK for Android. The problem is that in Android studio the model looks good but once in runtime on my phone the alpaha channel is not being used.
I try all the blending option on my custom material, setting... | I'm trying to show a 3d model with alpha values in the baseColor of it's texture just to get used with arCore SDK for Android. The problem is that in Android studio the model looks good but once in runtime on my phone the alpaha channel is not being used. I try all the blending option on my custom material, setting the... | android|sceneform | 2 | 2020-02-09T08:51:40.453Z | 2,020 | 2 | 8 | 6 | 515 | 0 | 615 | 38 | 2 | 3 | true | true | false | false | false | false | low |
60,134,932 | Is notifications height adjustable to any value? | <p>I know the recommended <code>layout_height</code> for small notifications is <code>64dp</code>, but I want the notifications to be a little bigger (for example to be <code>128dp</code>). Is notifications height adjustable to any value or it has to be exactly <code>64dp</code> to make it look good on all devices with... | I know the recommended layout_height for small notifications is 64dp , but I want the notifications to be a little bigger (for example to be 128dp ). Is notifications height adjustable to any value or it has to be exactly 64dp to make it look good on all devices without problems? I use FCM to send notifications. | android|firebase-cloud-messaging|firebase-notifications | 1 | 2020-02-09T08:54:34.270Z | 2,020 | 2 | 8 | 6 | 156 | 1 | 313 | 48 | 3 | 0 | false | false | false | false | false | false | low |
60,134,935 | kotlin Corountines and live data integrations error in find class kotlin.coroutines.Continuation<? super androidx.lifecycle.LiveData< | <p>I am facing live data and coroutines problems in my project. I am getting following error </p>
<blockquote>
<p>kotlin.coroutines.Continuation> p1) {
^
symbol: class BookJson
location: class BookClientHelper</p>
</blockqu... | I am facing live data and coroutines problems in my project. I am getting following error kotlin.coroutines.Continuation> p1) { ^ symbol: class BookJson location: class BookClientHelper I have added co-routines in my project recently. I am getting above error. I have kapt,ktx and coroutines dependency in my gradle. My ... | android|android-livedata|coroutine|kotlin-coroutines | 0 | 2020-02-09T08:55:09.910Z | 2,020 | 2 | 8 | 6 | 190 | 0 | 576 | 133 | 4 | 1 | true | true | false | false | false | false | zero |
60,135,084 | How can I read from terminal (Ubuntu) output in Java code (output never ends / quit) | <p>Ubuntu 19.10
Using inellij latest version
Java</p>
<p>Purpose:
With java code use the terminal to monitor and verify tests on android device,
For example tcpdump command on android device
Logcat command and so on,</p>
<p>The problem is that if the output always listen / write the java can't get the strings,
Only i... | Ubuntu 19.10 Using inellij latest version Java Purpose: With java code use the terminal to monitor and verify tests on android device, For example tcpdump command on android device Logcat command and so on, The problem is that if the output always listen / write the java can't get the strings, Only if I am shutting the... | java|android|sockets|terminal | -1 | 2020-02-09T09:17:39.897Z | 2,020 | 2 | 9 | 6 | 127 | 1 | 606 | 84 | 4 | 0 | false | false | false | false | false | true | negative |
60,135,098 | noCompress "tflite" does not work with noCompress "pb" | <p>I use tensorflow mobile and lite on Android,assets contains model.pb and model2.tflite,build.gradle:</p>
<pre><code>android {
...
aaptOptions {
noCompress "tflite"
noCompress "pb"
}
}
dependencies {
...
implementation 'org.tensorflow:tensorflow-android:1.13.1'
implem... | I use tensorflow mobile and lite on Android,assets contains model.pb and model2.tflite,build.gradle: [CODE] When I run this code: [CODE] console logs: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed ,pb is work. When I remove noCompress "pb" ,tflite is work. de... | android|tensorflow-lite | 2 | 2020-02-09T09:19:30.117Z | 2,020 | 2 | 9 | 6 | 1,090 | 0 | 391 | 54 | 2 | 2 | true | true | false | false | false | false | low |
60,135,120 | How I make progress bar dialog for Kotlin | <p>How can I make progressbar dialog custom for kotlin</p>
<p>I think I should put it in setonclicklistener.</p>
<p>I already make custom progressbar XML
but I don't active this progressbar in kotlin</p>
<p>In Google</p>
<p><a href="https://i.stack.imgur.com/CzquC.png" rel="nofollow noreferrer"><img src="https://i.... | How can I make progressbar dialog custom for kotlin I think I should put it in setonclicklistener. I already make custom progressbar XML but I don't active this progressbar in kotlin In Google I don't know active in my code [CODE] | android|kotlin | 1 | 2020-02-09T09:23:56.570Z | 2,020 | 2 | 9 | 6 | 1,114 | 0 | 230 | 41 | 2 | 1 | true | true | false | false | false | false | low |
60,135,133 | Why we get ENOLOCAL in ReactNative | <p>i have created a fresh new React native application, however if i try to run the app using <code>npx react-native run-android</code> i'm getting the error.</p>
<pre><code>npm ERR! code ENOLOCAL
npm ERR! Could not install from "PC\AppData\Roaming\npm-cache\_npx\15180" as it does not contain a package.json file.
npm... | i have created a fresh new React native application, however if i try to run the app using npx react-native run-android i'm getting the error. [CODE] Why we receive this error?. | android|reactjs|react-native | 1 | 2020-02-09T09:25:31.963Z | 2,020 | 2 | 9 | 6 | 487 | 2 | 177 | 34 | 3 | 1 | true | false | false | false | false | false | low |
60,135,190 | Android TabLayout + ViewPager2 change tab without loading all tab in between | <p>In my application, I have a <code>ViewPager2</code> and a <code>TabLayout</code>. The app is composed of 4 tabs. The 3rd one dynamically loads a list fragment.</p>
<p>I have a problem opening the 4th tab, but only when I didn't opened the 3rd one before.
By example, this will crash:</p>
<p>Open app, show 1st tab. ... | In my application, I have a ViewPager2 and a TabLayout . The app is composed of 4 tabs. The 3rd one dynamically loads a list fragment. I have a problem opening the 4th tab, but only when I didn't opened the 3rd one before. By example, this will crash: Open app, show 1st tab. Click on 4th tab. => App will crash with fol... | android|kotlin|android-tablayout|android-viewpager2 | 1 | 2020-02-09T09:33:40.053Z | 2,020 | 2 | 9 | 6 | 5,886 | 1 | 1,233 | 76 | 4 | 5 | true | false | true | false | false | false | low |
60,135,228 | Prevent uploading additional "app-unspecified.aar" to Bintray | <p>I'm trying to create an android library and publish it to a Bintray repository.
But while running <code>bintrayUpload</code> Gradle task, there is an additional file called "app-unspecified.aar" which is uploaded to the Bintray along with the original artifact.</p>
<p><a href="https://i.stack.imgur.com/hyArG.png" r... | I'm trying to create an android library and publish it to a Bintray repository. But while running bintrayUpload Gradle task, there is an additional file called "app-unspecified.aar" which is uploaded to the Bintray along with the original artifact. publish.gradle [CODE] when I run gradle bintrayUpload I'm getting follo... | java|android|android-library|bintray | 4 | 2020-02-09T09:39:45.867Z | 2,020 | 2 | 9 | 6 | 138 | 1 | 415 | 61 | 4 | 2 | true | false | false | false | false | false | low |
60,135,261 | Creating a calculator | <p>I am trying to build a calculator on android studio. My problem is that in order to get a solution from either values, the user will have to press the "equals" button. I'm trying to avoid that and have real time calculations appear in the TextView (when two numbers are combined with the addition symbol, the sum will... | I am trying to build a calculator on android studio. My problem is that in order to get a solution from either values, the user will have to press the "equals" button. I'm trying to avoid that and have real time calculations appear in the TextView (when two numbers are combined with the addition symbol, the sum will ap... | java|android | 1 | 2020-02-09T09:42:41.497Z | 2,020 | 2 | 9 | 6 | 81 | 3 | 496 | 21 | 2 | 1 | true | false | false | false | false | false | low |
60,135,265 | Unable to get the flutter fragment programmatically as the host project uses androidx libs which are incompatible with v4 | <p>Have an issue with the FlutterFragment which extends from android.support.v4.app.Fragment support libs <strong>instead of androidx</strong>.</p>
<p><strong>So I am unable to get the flutter fragment programmatically as the host project uses androidx libs which are incompatible with v4.</strong></p>
<p><em>These ar... | Have an issue with the FlutterFragment which extends from android.support.v4.app.Fragment support libs instead of androidx . So I am unable to get the flutter fragment programmatically as the host project uses androidx libs which are incompatible with v4. These are my settings for both host and the flutter modules: - g... | flutter|androidx | 1 | 2020-02-09T09:43:55.133Z | 2,020 | 2 | 9 | 6 | 187 | 0 | 978 | 121 | 2 | 8 | true | true | false | false | false | false | low |
60,135,272 | How to remove bottom navigation shadow | <p>As i show in image below i want to remove the shadow of bottomnavigation .
<a href="https://i.stack.imgur.com/p6lUX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p6lUX.jpg" alt="enter image description here"></a></p>
<p>I try below solution and find noun of them useful :</p>
<p><a href="https... | As i show in image below i want to remove the shadow of bottomnavigation . I try below solution and find noun of them useful : Android: remove shadow from bottom navigation here is my xml file : [CODE] | android|bottomnavigationview | 0 | 2020-02-09T09:44:51.173Z | 2,020 | 2 | 9 | 6 | 866 | 2 | 201 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
60,135,306 | In a Xamarin Forms Android, what's the purpose of a styles.css in the Assets folder and how is it even used / called? | <p>I am trying to clean up code in my Android app and I find the styles.css file sitting there. </p>
<p>Can anyone tell me, what the purpose of this is and how is it used?</p>
<p><a href="https://i.stack.imgur.com/6fSgu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fSgu.png" alt="enter image des... | I am trying to clean up code in my Android app and I find the styles.css file sitting there. Can anyone tell me, what the purpose of this is and how is it used? | android|xamarin|xamarin.forms | -1 | 2020-02-09T09:49:28.700Z | 2,020 | 2 | 9 | 6 | 70 | 2 | 160 | 117 | 3 | 0 | false | false | false | false | false | true | negative |
60,135,349 | how to retrieve sub child values having same names from firebase database? | <p>my viewHolder class</p>
<pre><code>public TextView textAreaName,textAreaTotalCount,textAreaAvailCount;
public itemClickListener listener;
public AreaViewHolder(@NonNull View itemView)
{
super(itemView);
textAreaName = itemView.findViewById(R.id.area_area_name);
textAreaTotalCount = itemView.findViewById... | my viewHolder class [CODE] my model class [CODE] this is the code that i tried to get the values from the database [CODE] This is format of my firebase database structure. I want to retrieve the values of slot,available_count and total_count from both of sub child. my structure of values stored in firebase database ] 1 | android|firebase|firebase-realtime-database|firebaseui | 1 | 2020-02-09T09:55:25.493Z | 2,020 | 2 | 9 | 6 | 181 | 1 | 320 | 74 | 4 | 3 | true | false | false | false | false | false | low |
60,135,459 | i have used api but having a confusion how to take base url and the parameters using retrofit | <p>my api is : </p>
<p><a href="https://api.domainname.com/25/SmartService.svc/GetFundslistByPANIMEI=ODY2NzQxMDMzNDQwMjQx%0A&Fund=&APKVer=NC4zMg%3D%3D%0A&pan=QUZZUE01NzE5Qg%3D%3D%0A&Adminusername=c21hcnRzZXJ2aWNl&OS=QW5kcm9pZA%3D%3D%0A&Adminpassword=a2FydnkxMjM0JTI0" rel="nofollow noreferrer">h... | my api is : https://api.domainname.com/25/SmartService.svc/GetFundslistByPANIMEI=ODY2NzQxMDMzNDQwMjQx%0A&Fund=&APKVer=NC4zMg%3D%3D%0A&pan=QUZZUE01NzE5Qg%3D%3D%0A&Adminusername=c21hcnRzZXJ2aWNl&OS=QW5kcm9pZA%3D%3D%0A&Adminpassword=a2FydnkxMjM0JTI0 And the JSON respone in the above URL is as below [CODE] I have taken bas... | java|android|json|retrofit | 0 | 2020-02-09T10:09:10.653Z | 2,020 | 2 | 10 | 6 | 33 | 1 | 822 | 93 | 4 | 4 | true | false | false | false | false | false | zero |
60,135,521 | How to obtain device owner permission in Android? | <p>I'm working with a mobile application and I need to allow the app users to create customized <strong>APN(Access Point Name)</strong>. So According to the android developer documentation. I did as follows</p>
<pre><code>String host = "mms.example.com";
byte[] ipAddress = new byte[4];
InetAddress mmsProxy;
try {
... | I'm working with a mobile application and I need to allow the app users to create customized APN(Access Point Name) . So According to the android developer documentation. I did as follows [CODE] But there is an exception as follows. [CODE] The exception is throwing from int insertedId = pm.addOverrideApn(cm,apn); line.... | android|android-permissions|securityexception|apn | 1 | 2020-02-09T10:15:46.847Z | 2,020 | 2 | 10 | 6 | 530 | 0 | 495 | 49 | 4 | 2 | true | true | false | false | false | false | low |
60,135,535 | problem with recyclerView horizontal in fragment | <p>i use this code in fragment
when orientation is Vertical all thing good and work
but when change to Horizontal Not Showing in fragment</p>
<pre><code>
private var progressBar: ProgressBar? = null
private var linearParent: LinearLayout? = null
private var txtEmpty: TextView? = null
private var token : ... | i use this code in fragment when orientation is Vertical all thing good and work but when change to Horizontal Not Showing in fragment [CODE] and this is function for get [CODE] this is layout xml of fragment [CODE] when LinearLayoutManager(this.requireContext(),LinearLayoutManager.VERTICAL,false) load and word good bu... | android|android-recyclerview|fragment|horizontal-recyclerview | 0 | 2020-02-09T10:18:02.223Z | 2,020 | 2 | 10 | 6 | 252 | 1 | 432 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
60,135,538 | How to connect Genymotion to Android Studio version 3.5.3? | <p>I am using Android Studio version 3.5.3, when I connect to genymotion.</p>
<ol>
<li>file, settings, plugin </li>
<li>No browse repositories item found? </li>
<li>Can't get browse repositories</li>
</ol>
<p>My question is about Android Studio Version 3.5.3. I can't get the browser repositories to add genymotion to ... | I am using Android Studio version 3.5.3, when I connect to genymotion. file, settings, plugin No browse repositories item found? Can't get browse repositories My question is about Android Studio Version 3.5.3. I can't get the browser repositories to add genymotion to the latest Android Studio version. | android|android-studio|plugins|genymotion | -1 | 2020-02-09T10:18:12.307Z | 2,020 | 2 | 10 | 6 | 202 | 2 | 302 | 58 | 4 | 0 | false | false | false | false | false | true | negative |
60,135,600 | How to get Internet speed for API Level below 23? | <p>I am developing an android app where music is being streamed. Now I want to get the internet speed of the device, it may be wifi as well as mobile network speed. I want this to set the quality of the audio file according to the network speed, i.e. I want to introduce an auto streaming quality option. </p>
<p>So, I ... | I am developing an android app where music is being streamed. Now I want to get the internet speed of the device, it may be wifi as well as mobile network speed. I want this to set the quality of the audio file according to the network speed, i.e. I want to introduce an auto streaming quality option. So, I have read ma... | java|android|networking|connectivity | -1 | 2020-02-09T10:24:25.193Z | 2,020 | 2 | 10 | 6 | 216 | 2 | 859 | 49 | 4 | 0 | false | false | false | false | false | true | negative |
60,135,626 | Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path error with using retrofit application and spring boot | <p>I know this question has been asked before, but i seem to be struggling with fixing my error. I am hosting a local website from java using Spring Boot and now i have to implement an android application using retrofit. I am trying to get a simple task done of loading json objects from my website to a recycle view on ... | I know this question has been asked before, but i seem to be struggling with fixing my error. I am hosting a local website from java using Spring Boot and now i have to implement an android application using retrofit. I am trying to get a simple task done of loading json objects from my website to a recycle view on and... | android|spring-boot|intellij-idea|retrofit2 | 0 | 2020-02-09T10:28:12.250Z | 2,020 | 2 | 10 | 6 | 738 | 1 | 755 | 119 | 4 | 7 | true | false | false | false | false | false | zero |
60,135,631 | Sending Api requests from Android to Localhost | <p>Im trying to get my android app in my phone to talk with the spring boot backend. I tried setting the ip address of my pc instead of using it as the "localhost". but it does not work though.
Any idea on how to fix this and get by application to sent requests to my spring boot backend?</p>
<p>This is my code for the... | Im trying to get my android app in my phone to talk with the spring boot backend. I tried setting the ip address of my pc instead of using it as the "localhost". but it does not work though. Any idea on how to fix this and get by application to sent requests to my spring boot backend? This is my code for the api call a... | android|json|rest|spring-boot|android-volley | 0 | 2020-02-09T10:28:33.893Z | 2,020 | 2 | 10 | 6 | 227 | 1 | 444 | 46 | 5 | 1 | true | false | false | false | false | false | zero |
60,135,668 | In a Xamarin Forms (Android), what's the purpose of "Activity(Label =" in MainActivity.cs? | <p>Here is the code in my app:</p>
<pre><code>namespace JTest.Droid
{
[Activity(Label = "Test+", Theme = "@style/MainTheme")]
public class MainActivity : FormsAppCompatActivity
{
</code></pre>
<p>Does anyone know what the purpose of the <code>Label = "Test+",</code> is and why the developer might have inc... | Here is the code in my app: [CODE] Does anyone know what the purpose of the Label = "Test+", is and why the developer might have included this? | android|xamarin|xamarin.forms | 0 | 2020-02-09T10:32:39.640Z | 2,020 | 2 | 10 | 6 | 139 | 2 | 143 | 90 | 3 | 1 | true | false | false | false | false | false | zero |
60,135,694 | I got this error: java.lang.NumberFormatException: For input string: " " | <p>Basically I got this error when I try to convert String to int and when there isn't any string I got problem but still "" should be null, or "" and I can't Handle it.
As an example I want to create contacts that only has two fields name and age, but only name is important for me.</p>
<pre><code>public class Contact... | Basically I got this error when I try to convert String to int and when there isn't any string I got problem but still "" should be null, or "" and I can't Handle it. As an example I want to create contacts that only has two fields name and age, but only name is important for me. [CODE] } in the part of code for some r... | android | -2 | 2020-02-09T10:37:08.953Z | 2,020 | 2 | 10 | 6 | 340 | 2 | 534 | 72 | 1 | 4 | true | false | false | false | false | true | negative |
60,135,788 | How can I stop my app from opening itself when I process text? | <p>Whenever I click on my custom button to process some selected text, it takes me to the app screen. Any way to stop that?</p>
<p>AndroidManifest.xml:</p>
<pre class="lang-xml prettyprint-override"><code><activity
android:name=".ProcessTextActivity"
android:label="CHANGE ME">
<intent-filter>
... | Whenever I click on my custom button to process some selected text, it takes me to the app screen. Any way to stop that? AndroidManifest.xml: [CODE] ProcessTextActivity.java: [CODE] EDIT: Thanks to CommonsWare's comment , I found a nice solution: AndroidManifest.xml: [CODE] ProcessTextActivity.java: [CODE] | java|android | 0 | 2020-02-09T10:46:26.177Z | 2,020 | 2 | 10 | 6 | 67 | 0 | 307 | 62 | 2 | 4 | true | true | false | false | false | false | zero |
60,135,829 | Content of Edittext is not maintained on scrolling of ListView | <p>I have Object(name,qty) List which I am displaying in dialog box. User can enter the quantity in EditText of any item and I have a TextView outside of the List in which I have to show auto sum of complete list.</p>
<p>On scroll of List random behavior occurs and data of some items has gone.</p>
<p>my adapter code ... | I have Object(name,qty) List which I am displaying in dialog box. User can enter the quantity in EditText of any item and I have a TextView outside of the List in which I have to show auto sum of complete list. On scroll of List random behavior occurs and data of some items has gone. my adapter code is [CODE] And the a... | java|android|listview|custom-scrolling | 0 | 2020-02-09T10:51:42.930Z | 2,020 | 2 | 10 | 6 | 37 | 1 | 505 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
60,135,834 | ScrollView "inside" Imagebutton | <p>im having some troubles to achieve this kind of design in an android app.</p>
<p><a href="https://i.stack.imgur.com/VixWc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VixWc.png" alt="enter image description here"></a></p>
<p>What i first have is a <strong>ConstraintLayout</strong> that inside... | im having some troubles to achieve this kind of design in an android app. What i first have is a ConstraintLayout that inside have a ImageButton (wrapping his content). All ok. But i want also a HorizontalScreenView that has the same width that ImageButton have and inside of him a large ImageView that start at the hori... | android|layout|constraints|imagebutton | -1 | 2020-02-09T10:52:01.583Z | 2,020 | 2 | 10 | 6 | 37 | 1 | 424 | 31 | 4 | 1 | true | false | false | false | false | true | negative |
60,135,848 | More than one Higher Order Functions in kotlin | <p>Can we pass two <em>higher order functions</em> or more than one, in function's parameter?<br/>
If so, then how we going to call that function which contain those two or more than one <em>higher order functions</em> as a parameter...</p> | Can we pass two higher order functions or more than one, in function's parameter? If so, then how we going to call that function which contain those two or more than one higher order functions as a parameter... | android|kotlin|higher-order-functions | -1 | 2020-02-09T10:54:21.067Z | 2,020 | 2 | 10 | 6 | 1,328 | 3 | 210 | 46 | 3 | 0 | false | false | false | false | false | true | negative |
60,135,851 | One ViewModel for multiple Views or multiple ViewModels for a single View? | <p>I am working on an Android App that trains the ear of the player, by making them replay on guitar whatever they hear from the phone. I made the note (and chord) recognition part the following way: a main thread that displays the information and listens to the buttons, an <code>AsyncTask</code> that records the sound... | I am working on an Android App that trains the ear of the player, by making them replay on guitar whatever they hear from the phone. I made the note (and chord) recognition part the following way: a main thread that displays the information and listens to the buttons, an AsyncTask that records the sound and sends the d... | android|mvvm|android-asynctask | 2 | 2020-02-09T10:54:30.377Z | 2,020 | 2 | 10 | 6 | 960 | 1 | 1,373 | 74 | 3 | 0 | false | false | false | false | false | false | low |
60,135,906 | macOS Catalina :repo error: Exited sync due to fetch errors | <p>OS : macOS Catalina 10.15.2
it is failed with "error: Exited sync due to fetch errors"
why is that,anyone know why?</p>
<pre><code>repo version v1.13.8
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.26
(from /Users/louiswong/bin/repo)
(currently at 1.13.8)
repo User-Age... | OS : macOS Catalina 10.15.2 it is failed with "error: Exited sync due to fetch errors" why is that,anyone know why? [CODE] [CODE] | android|android-source | 0 | 2020-02-09T11:02:16.040Z | 2,020 | 2 | 11 | 6 | 84 | 1 | 129 | 59 | 2 | 2 | true | false | false | false | false | false | zero |
60,135,973 | View setEnabled() Error : NullPointerException | <p>I tried to set views to Enabled(false), but it keeps giving me this error:</p>
<pre><code>Caused by: java.lang.NullPointerException: Attempt to
invoke virtual method 'void android.widget.Button.setEnabled(boolean)'
on a null object reference
</code></pre>
<p>Something I don't understand is that the error didn't oc... | I tried to set views to Enabled(false), but it keeps giving me this error: [CODE] Something I don't understand is that the error didn't occur at ccl_stage11[][] but occured at vtl_stage11 and hrl_stage11[][] even though they're using same for in the same way. I tried to unroll the 'for' loop at the setEnabled part, but... | android|for-loop|view|nullpointerexception | 0 | 2020-02-09T11:11:06.047Z | 2,020 | 2 | 11 | 6 | 127 | 1 | 452 | 46 | 4 | 3 | true | false | false | false | false | false | zero |
60,135,990 | How does setting battery level/status in the emulator settings GUI or over telnet differ from adb dumpsys battery set? | <p>I'm trying to create an app that monitors battery levels, but since testing that in real time would be very cumbersome, I want to simulate different values and charging states through the emulator.</p>
<p>When I go into the emulator settings GUI by clicking "..." on the toolbar, then go to "Battery" and change valu... | I'm trying to create an app that monitors battery levels, but since testing that in real time would be very cumbersome, I want to simulate different values and charging states through the emulator. When I go into the emulator settings GUI by clicking "..." on the toolbar, then go to "Battery" and change values, it has ... | android|android-studio|android-emulator|battery | 0 | 2020-02-09T11:12:59.230Z | 2,020 | 2 | 11 | 6 | 648 | 1 | 1,146 | 118 | 4 | 0 | false | false | false | false | false | false | zero |
60,136,092 | Is it ok to use setAlarmClock to bypass Doze mode? | <p>I'm developing an app that requires the user's movements to be tracked continuously - using a foreground service. The app should work even when it's in background and screen is off. </p>
<p>I don't really need to track it in real time, so, to avoid draining battery, my first solution was a scheduled thread that wou... | I'm developing an app that requires the user's movements to be tracked continuously - using a foreground service. The app should work even when it's in background and screen is off. I don't really need to track it in real time, so, to avoid draining battery, my first solution was a scheduled thread that would fire ever... | android|location|android-doze | 0 | 2020-02-09T11:29:12.490Z | 2,020 | 2 | 11 | 6 | 151 | 0 | 1,643 | 50 | 3 | 0 | false | true | false | false | false | false | zero |
60,136,124 | chart Rest Api data not Updating in real time, | <p>First time Loading data correctly, but second time graph doesn't updating the data.
It is showing the previous graph data again and again.</p>
<pre><code> public class OpdIpdAnalysis extends AppCompatActivity implements NetworkReceiver.ConnectionChangeCallback {
AnyChartView anyChartView;
Set set1;
@Override
... | First time Loading data correctly, but second time graph doesn't updating the data. It is showing the previous graph data again and again. [CODE] I'm using trial version, how to reload Line Chart with new data? Any Idea, Why it's happening and how to solve this issue? Please help me to solve this issue. Thanks you. | android|graph|anychart | 0 | 2020-02-09T11:32:41.607Z | 2,020 | 2 | 11 | 6 | 290 | 1 | 316 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.