// XML
// In anroidmainifest
Android: theme = "@ style/demo"
// JavaCodeIn
// Click a place other than the input box to hide the input method addfoodweight. setonfocuschangelistener (New onfocuschangelistener () {@ overridepublic void
Hello everyone, I haven't updated my blog for a long time. Recently, due to poor health, I 've been waiting for a long time. Now, let's go to the topic ~
AndroidThree data storage methods are provided. The first is file storage, and the second
Document directory
1.
Step 1: Set the simulator to support sdcard
Step 2: Set permissions in the Application
Note:
Suggestion:
There are multiple ways to store data, such as database storage, sharedpreferences storage, and file
In Android, you can play a video in three ways: the first method is to use mediaplayer and surfaceview to play the video, and the mediaplayer is used to control the playback, pause, and progress of the video, surfaceview is used to display the video
The side navigation bar is also known as the sliddingmenu, also known as the fly-in APP menu and side navigation. Of course, Google has now launched a component similar to this effect-Navigation drawer
Side navigation
Fly-in APP menu
Slide out
Try to use OTA for recovery imx51, put android_recovery.img in/Cache/partition, and then update the partition during the next restart. However, it is found that the file is deleted inexplicably, logcat searches for the recovery related log, and the
When obtaining GPS information on the simulator, use location loc = locationmanager. getlastknownlocation ("GPS"); To obtain location information, but LOC is usually null in debugging, because you need to manually add GPS information to the
First:
Of course, you cannot see the dynamic animation effect here. Of course, if you run the author's code, you can naturally see the animation effect. The effect here is the animation effect that is presented to us before each item in our list is
1. Differences between drawable-(hdpi, mdpi, ldpi)DPI is the abbreviation of "dot Per Inch". The number of dots per inch.Four density classifications: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extra high)Normal screen: ldpi is 120, mdpi is 1
In other words, it's okay to play Android games. A problem was found.
There is a lunarlander example in Google's android-sdk-windows-1.0_r2 sample. A very interesting game, very difficult. However, one problem found was that I did not introduce how
The zoomcontrols control is a zoomcontrols control that can be scaled but has the following effect:
The following are some of the main methods
Hasfocus (): determines the focus
Hide (): Hide
Ontouchevent (motionevent event): Now this method is used
The following is a demo of how to start, stop, pause, and continue the timer and timertask in Android.
There are two main issues to note:
1. timer and timertask cannot execute the schedule statement after cancel () is called to cancel. Otherwise, an
The MAKEFILE file Android. mk of the android compilation system is written as follows:
(1) In the Android. mk file, you must specify the local_path variable to find the source file. GenerallyAndroid. mk is in the same directory as the source file to
1. procrank (only for Android)
It reads information from/proc/Pid/maps for statistics. The source code is located at:/system/extras/procrank
Memory consumption: VSS/RSS/PSS/USS• VSS-virtual set size virtual memory consumption (including memory
1) configuration in AndroidManifest. xml of applications and skin programs
Package = ""Android: versionCode = "6"Android: versionName = "0.8.8"Android: sharedUserId = "com. timgor. skin">
2) the file name must be the same as the skin file name of
From http://hi.baidu.com/aokikyon/blog/item/2e8ca6130db328906438db18.html
1. Introduction to PixelflingerPixelflinger is a set of software renderer (renderer) provided for the OpenGL ES engine in the Android system ). When the system starts, you
JNI header file
The next step is to create the C header file based on the Fiblib Java file. How can we do this? We use Java's standard javah tool. If you want to install the Java Development Toolkit (JDK), you will find this tool in the JDK/bin
You need to perform the following steps to re-compile Android. jar with your own API on the basis of successful android source code compilation.
1. add your own source code. Create a folder under the framework/base Directory of the Android source
Now we have several boards on hand, 2410 and 2440 are used in the past. Now we mainly use 6410, one of which is the JFJ6410 development board of a company and the other is the 6410V1 embedded in the sky. today, I will summarize how many development
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