Recent Posts
-
Java – Android studio – AVD cannot recognize gestures (simulator cannot be unlocked)
I've just started learning to program for Android. Unfortunately, I've encountered a problem after making a program (H…… -
Java – Android calculates minutes / hours / days from a point in time
I'm parsing twitter. I want to show how long it's been since twitter was released. But it doesn't seem to calculate co…… -
Use Android MAC address as unique identifier
I've been reading some posts on stack overflow where Android doesn't have a unique identifier. But can't I use the MAC…… -
Android – animation of action bar actions
I am using Android 4.2 and the latest version of appcompat. I use these methods to show and hide my action bar: final …… -
Java – use collections.sort to sort the list strings of custom class arrays
I tried to sort my list of custom class arrays using collections. Sort by declaring my own anonymous comparator. But t…… -
Android – listview hides some items
I want to hide some items in the listview according to some standards. I found two solutions, but none of them is vali…… -
Android – tablet paintable folder for tablet [copy]
See the English answer > setting drawable folder to use for different resolutions. Three of my designers provide im…… -
Android – progress bar passing floating point parameters
I try to build a progress bar in Android, because you know that the progress bar gets the int of the progress, but I n…… -
Android database connection and cursor Oh, my
When using Android, I have read a lot of blogs and tutorials on how to create and use database connections. Although I…… -
Android – how do I refresh the last activity after pressing the back button?
I'm building an alarm application. I currently have a listactivity that displays a list of alarms and another activity…… -
Advise error parsing XML unbound prefix Android
I let AdMob work for a while. After the error, I made a mistake and scrapped the whole thing more than once. Now I get…… -
Android – my application leaked randomly shaped bitmaps that are not in my drawable folder
I have a strange memory leak problem. My application keeps leaking bitmap objects and other related objects, such as v…… -
Android – try to call the virtual method for the null object reference of SharedPreferences in the fragment of actionbaractivity
My application needs to access the shared preferences file in the background. Since I started using the actionbar acti…… -
Android – how to query complex nested objects in the room?
I have several entities, as you can see below. The problem is how to correctly select nested lists when you have multi…… -
Android – change the default design theme to a custom color
I am new to Android studio. As a beginner, I have created a simple application for testing purposes only and see the a…… -
Android – using the material button will result in a classnotfound runtime error
I am replacing buttons and material buttons in my application with < com.google.android.material.button.materialbut…… -
Database in Android studio
I am a Windows Mobile developer. Recently, I began to use Android studio to develop Android applications I need to cre…… -
Android passes the firebase auth object to another activity to exit
I log in to the user in the main activity, but I want to log out of the user in another activity through the button. H…… -
Android – Method getactivity() does not define type mainactivity
I'm trying to use this demo. When I pull it into my mainactivity, I receive the error "method getactivity() does not d…… -
Android – horizontalscrollview: the customadapter with getview () does not reuse convertviews like listview
In my past project, I implemented a "time picker carousel". It is based on horizontalscrollview. Users can select the …… -
Android Kotlin .visibility
I have this code to make the image visible, but I don't know how it should be written for kotlin I'm trying to use. Vi…… -
Android ble cannot receive GATT feature notifications from the device
When I write a value on a feature, I'm trying to receive a notification from the device, but I don't receive anything.…… -
Java – Android error filling array in asynctask
I want to fill an array, so I can attach the results to textview, but the application keeps crashing: 04-02 23:45:29.2…… -
Bitmap circular clipping in Android
I have a square bitmap displayed under a translucent circle. Users can touch and drag the bitmap to locate it. I want …… -
Android – java.lang.illegalargumentexception: for kotlin and WebView, the parameter specified as non null is null
I tried to populate my WebView with a custom HTML string and try to show progress when not loaded and hide it when fin…… -
Android gradle unit tests migration from jars – copied hamcrest files from JUnit and mockito
I eventually migrated the old unit tests run using jar files to gradle, but I had a lot of trouble getting the right c…… -
How do I clear all map overlays or tags of Google maps in Android?
I want to clear all map overlays or markers from Google maps and use the following code if(!mapOverlays.isEmpty()) …… -
Java – how to add icons to the navigation drawer template in Android studio?
I am currently developing an application in which there are icons next to the text of each drawer. My goal is that the…… -
Java – expected property getter or setter in kotlin
I'm learning kotlin from the official documentation. I'm trying to create a class to perform arithmetic operations cla…… -
Android – is it safe to convert using getactivity()?
I am writing an application with a parent activity and several child fragments. I try to make the fragment communicate…… -
Java – retrieve WiFi connection status (Android)
I follow the following link to connect to my local WiFi. It works perfectly. I can connect to my local WiFi However, I……