Recently in doing Android development, just getting started, encountered a lot of problems, accumulated the habit of doing refactoring, encountered problems, a good solution, a good summary, and then sorted as follows:
One. Eclipse Error1. '
Kotlin android Extension: Goodbye to findViewById (KAD 04), kotlinfindviewbyid
By Antonio Leiva
Time: Dec 12,201 6
Link: http://antonioleiva.com/kotlin-android-extensions/
You may be tired of using findViewById to write Android views day after
Details about the screen direction and display mode when the Android Activity is running. androidactivity
Currently, our mobile phones generally have built-in orientation sensors. The mobile phone screen will automatically switch between the
No exceptions are captured during APP-level processing, while the APP-level processing captures
Preface:
The project APP sometimes has Crash, and then the system forced exit dialog box pops up. Click close app.
Some apps handle this and find that
How to Create Menu 3: Android Development 2, menuandroid
Three menu creation methods
I. OptionsMenu --- option menu
Menus in Android applications are hidden by default. Menus are displayed only when you click the MENU key on your mobile phone. This
Android Studio 2.2.2 import the project created in Eclipse, androideclipse
Recently, I used the video tutorial to learn about Android. I used Adt to write Android programs. I replaced the tutorial with Android Studio in the middle. So I installed
Fun Handler and fun Handler
Let's take a look at a simple message first.
privateProgressBar mProgressBar;
privateint i =0;
PrivateHandler mHandler = newHandler () {// create a Handle
@Override
publicvoid handleMessage(Message msg){
Android Studio multi-channel packaging and androidstudio Packaging
The multi-channel packaging described in this article is based on umeng statistics.
Multi-channel packaging steps:
1. Set dynamic channel variables in AndroidManifest. xml
Refresh ViewPager, restrict preload, cache all, and cache viewpager
[Framework ]:
Public part: Left menu, TitleBar, and RadioGroup (three RadioButton: X, Y, and Z)
Select X page: Indicator + ViewPager
[Effects to be achieved ]:
(1) Select A on
Android Gradle Build Error: Some file crunching failed, see logs for details solution, gradlecrunching
Error Log: Error: java. lang. RuntimeException: Some file crunching failed, see logs for details
Log:
FAILURE: Build failed with an exception.
Android studio incremental upgrades on Mac and Windows platforms, macandroidstudioWhen is the incremental upgrade of Android Studio the most suitable?
For example, if the current as version is 2.2 and your as version is 2.0, Check For Updates will
Android Network request library volley method details, androidvolley
Using volley for network requests: you must first import the volley package to androidstudio.
Project Structrue under File, click the plus sign to export the package
Volley
Android Serial Port Data Reading service, android serial port
2016-09-1813: 10: 03
Inherit from the Service and define the abstract method onDataReceived. The subclass obtains the received data callback by implementing the abstract method.
1
Imitation QQ image selector-Android,
As an APP, when you need to select a local image, the first consideration is undoubtedly the system album, but the Android mobile phone is varied, and the pixel increase of the mobile phone, the big picture
Handler mechanism (4) --- Handler source code parsing, handler --- handler
Handler has two main purposes: (1) to execute a message or a runnable at a certain time in the future, (2) to send a message to the message queue.
Mainly rely on post
Eclipse import project garbled (Chinese garbled), eclipse garbled
1. The encoding is incorrect.
A. Change the code for a file or project:
Move the mouse to the project name or file name, right-click-> Properties-> Resource-> Text file enCoding->
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service