包含标签:Android 的文章
-
Java – dynamically add a button to LinearLayout in Android
I'm developing a project that needs to add buttons dynamically. But whenever I run my application, the application clo…… -
Talk Android together (the 132nd time: Android custom view 9)
Hello, everyone. Last time we talked about the example of custom view in Android. This time we continue to talk about …… -
Java – Android fragment conversion error of the second fragmenttransaction. Replace() call
I'm in my mainactivity.java classic_ Fragment in menu.xml_ Three types of fragments are saved in the container. I star…… -
Java – unable to load (find) j2v8_ android_ X86 Library
I have a gradle project that uses j2v8_ Android 2.2.1 Library (provides Java binding for V8 JS engine – Android port).…… -
Android – reads and retains instances of objects from SharedPreferences
scene I have a class that uses the request list set by the user. The request list is stored in SharedPreferences. The …… -
Android – scheduledthreadpoolexecutor is used for periodic tasks (using retrofit) that only need to be triggered once and will not be repeated
I have the following code to poll the unread notification count from the server every x seconds I start this process t…… -
Android – surfaceview onmeasure() does not set the measured dimension by calling setmeasureddimension()
I have a surfaceview. I just draw it manually from another thread It works well. But after an average of 10-20 minutes…… -
Android – how to prevent java.lang.illegalstateexception generated by mediacodec.dequeueinputbuffer
The following code occasionally generates a java.lang.illegalstateexception: Among them_ Mcdoder is an example of medi…… -
Android – the implicit intent of the contact group list
I want to select a group (contact group). I found the code to open contact activity, but I didn't find groups Intent i…… -
Android – assign static IP to Ethernet card from OTG
I want to assign a static IP to the Ethernet card and connect to the Android device through the OTG cable. It should b…… -
Java – how to smooth the paint path when painting with variable width strokes
I created a sample drawing application. Users can draw with variable width strokes. So far, the drawing path of variab…… -
Android – Google Places autocomplete API restrictions
I have questions about the restrictions on Google's local APIs. The use restrictions section of Google doc indicates t…… -
Android – unfortunately appName has stopped the error
When I run my application according to the error message, it gives: I have the following mainactivity.java file: packa…… -
How to parse JSON array with gson in Android
See English answers > how to parse JSON array with gson 7. I'm developing Android applications. I'm using gson to p…… -
Android – use intent.action_ Pick open image
I'm trying to use intent.action_ Pick opens the image, but when I start the activity using startactivityforresoult, my…… -
Android – upload videos programmatically to Youtube
I'm trying to upload videos to YouTube programmatically. I've tried YouTubeService service = new YouTubeService(client…… -
Default interface methods are only supported starting with Android N
Operating environment Click the green hammer "make project" and the following error appears Default interface methods …… -
Several common operations of Android bitmap: zoom, crop, rotate and offset
Android bitmap related operations Several common operations: scaling, clipping, rotation, offset Many operations need …… -
Duplicate class android.support.v4.widget.TintableCompoundButton found in modules classes.jar
For an old Android project, change support-v4 in gradle to the reference of Android x, and compile and report an error…… -
Android mediaplayer plays audio
Link to this article: playing audio with Android mediaplayer It mainly introduces how to play audio with mediaplayer. …… -
Building an adaptive interface for Android constraintlayout
Original link Constraintlayout lets you create complex large layouts using a flat view hierarchy (no nested view group…… -
Android downloads audio files using urlconnection
Link to this article: Android downloads audio files using urlconnection Use mediaplayer to play online audio, please r…… -
Introduction to Android thread pool
This article mainly uses kotlin to discuss the usage of thread pool in Android development. When we want to use thread…… -
Introduction to Android MediaPlayer Basics
Link to this article: introduction to Android MediaPlayer Foundation Briefly introduce the basic concept, status, comm…… -
Android View Post method
Resolve the view.post method. Analyze the flow of this method. Speaking of the post method, we can easily think of the…… -
Android seekbar custom thumb, thumb rotation animation effect
On the interface of some music or video playback, when resources are still loaded, the origin (thumb) of the progress …… -
Android constraintlayout uses chains to control linear groups
A chain is a set of views that are linked to each other by bidirectional position constraints. Views in the chain can …… -
Getting started with Android workmanager
Work manager provides task scheduling function, and we can mark or name work. Let's use an example to demonstrate how …… -
Getting started with Android kotlin collaboration
Android officials recommend using concurrency to deal with asynchronous problems. The following are the characteristic…… -
Android jetpack compose introduction example project
Go to GitHub to find the sample project of compose https://github.com/android/compose-samples , clone to local Student…… -
Use compose for existing Android projects
After looking at the example project of compose, we also want to use compose. Based on the current situation, the comp…… -
Android tutorial 2020 – recyclerview displays multiple items
Android tutorial 2020 - series overview Article link The previous list shows similar data. What if you want to display……