Start Page Use this as a background imageThere is also a picture copyright.pngAll right, let's do it now.Start, black screen white screen change this picture look, haha ~Launcheractivity interface installed after start-upAdjust to Mainactivity interfaceIn this way, originally wanted to give GIF animation, with the film Down, AO ao do not know how to send to the computer whining ~ ~ ~ later know can be sent to the Web page ...Download link later send it up, damn it, going to bed ~~ ~~Three
Transfer from http://hi.baidu.com/hfutonline/blog/item/62b1e4de8bdf4b2e5882dd28.htmlRecently when doing Android project encountered a problem, the application initialization needs to batch to SQLite to insert a large number of numbers, causing the application to start too slow.Android using SQLite database, SQLite is a relatively lightweight database, after Google found that the problem of sqlite transaction processing, when SQLite inserts the data by
Programme one:Implement onkeydown in activity@Overridepublic boolean onKeyDown (int keycode, keyevent event) {if (keycode = = Keyevent.keycode_menu) {return true;} if (keycode = = Keyevent.keycode_back event.getrepeatcount () = = 0) {this.finish ();// The action to handle the event is written here Super.onkeydown (KeyCode, event); return true;} return true;}Scenario Two:The following scenarios are implemented in the activity@Overridepublic void onbackpressed () {//TODO auto-generated method Stu
Transferred from: http://my.eoe.cn/864234/archive/5162.html1:handler
12345678
This Handler class should is static or leaks might occur:incominghandler @SuppressLint("Handlerleak") c7>) Handlerhandlemessage(msg};
Workaround:
123456
Handler(Handler. Callbackhandlemessage(msgfalse});
Warning Reason:2:simpledateformat
123456
To get local formatting with getdateinstance (), getdatet
(typically because 5037 ports are occupied), open the Windows Task Manager, terminate the Adb.exe process, and re-execute the ADB start-serverIf an unknown process occupies port 5037, use the following 1th command to locate the PID of the process, then terminate the process, and finally re-execute the ADB start-serverNetstat-ano, check the port occupancy of this machine, find the PID of Port 5037 listening tasklist/fi "pid eq???" Terminates a process based on PID nbsp;
ANR (Activity not Respone) (no response) Introduce the next main thread (also known as the UI thread, the main threaded) Features: 1. Creating UI Controls 2. Updating UI control state 3. Event handling Limitation: The main thread does not recommend events that have more than 5 seconds Conditions to appear: The ANR dialog box pops up when the user input event 5s does not get a response Broadcast recipient's onreceive () execution time exceeds 10s Solution (Principle): All possible time-consumin
Android Studio development RecyclerView Problems and Solutions (2), studiorecyclerview
When developing RecyclerView, You need to import other people's examples. I imported them from github. Download The github compressed package and decompress it to check whether the file you want to import is priject or Module. (most of the app folders are projects)
After the import, the program may not run quickly. Yo
Android ListView asynchronously loads image misplacement, repetition, blinking analysis, and solutions,
When we use ListView to asynchronously load images, problems such as misplacement, repetition, and flickering may occur when the image is quickly slide or the network is poor. In fact, these problems are summarized as a problem, we need to optimize ListView for these problems.
For example, if the ListView
Method One:Only the thumbnails are loaded when the picture is loaded from the network or locally.This method does not occupy a lot of memory, but its fatal disadvantage is that because the load is thumbnail, so the picture distortion is more serious, for the image quality requirements of high application, you can use the following method.Method Two:The use of Java Soft reference, image caching, will often need to load the picture, stored in the cache, to avoid repeated loading.Method Three:Destr
Three solutions for black screen and white screen when Android starts an APPYou may wonder why some apps appear on the Activity page after a black or white screen for a while starting, but some apps are not like QQ mobile phones, it is true that we need to handle it here. Here, let's first look at why such a phenomenon occurs. In fact, it is very simple. A simple example of resume can be understood. In fact
1. Error: (1, 0) Plugin is too old, please update to a more recent version, or set android_daily_override environment Varia ble to "A9a2a70e41cb49bb8b88d10e05a9f3661217deef"# Solution:In the project's Build.gradle file, replace the higher version of Gradle with the lower version.The original is: Classpath ' com.android.tools.build:gradle:2.1.0-alpha4 'Instead: Classpath ' com.android.tools.build:gradle:1.3.0 'Android Studio Exceptions and
The term fingerprint recognition sounds familiar, but it's not used much in the actual development process. Google started with Android6.0 (API23) to provide standard fingerprint recognition support, and to provide external fingerprint identification related interface. In addition to fit 6.0 and above system, the main also provides 6.0 of the following equipment adaptation solutions.
Fingerprint identification use
A few of the uses of fingerprint id
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.