The default AVD path is generally in the System user directory, and c: \ Users \ Administrator \ In win7 \
The complete directory is c: \ Users \ Administrator \. Android. The subsequent. Android directory should be created by default when the
1. The recognized official development tool under eclipse Android is the ADT plug-in developed by IBM eclipse + Google. In fact, it is not only Android, but also the world of Java Development is basically eclipse, various plug-ins meet various
Android source code compilation only supports 6 languages, the result is that if the system APK (such as settings.apk and accountandsync.apk) of the Set class is compiled, the problem that the compiled APK is copied to the system and does not
How to dynamically switch menus in the same activity:
It is very simple, because in oncreateoptionsmenu, after the menu is created, and then press the menu key multiple times, the oncreateoptionsmenu will not be executed again, and this function
It is often opened from other file browsers, and the file path may contain Chinese characters. In this case, opening Chinese characters in the path will become garbled, resulting in filenotfoundexception, which cannot achieve the original purpose,
In Android, the address is obtained based on coordinates. geocoder is generally used, which is roughly like the following:
Try {geocoder GEO = new geocoder (newcommentactivity. this, locale. getdefault (); List addresses = GEO. getfromlocation
1. Custom font
Android typeface uses TTF font files to set fonts
We can put the TTF font file in the program and set the font using typeface in the program.Step 1: Create the fonts directory under the Assets Directory and put the TTF font file
1. Android background Tile
Android achieves a tiled effect similar to the Windows desktop background. It defines a bitmap object, both in XML and code, and sets its tilemode to repeat. Create the following tilebg. xml file in the drawable
Join us for innovation!
Competition schedule
Competition: submit entriesJune 22 ~ October 10
Semi-finals: announce the winnersNovember 1
National Finals: Modified entries submittedNovember 1 ~ November 23
National Finals: Review and online
In Android, broadcast is a very useful function. Broadcast can notify other broadcasts to accept this event. Such as insufficient power supply and poor signal.
Below I made a simple demo, first look at the activity
As we all know, many Android mobile phones are equipped with a gravity sensor to respond to the flip of mobile phones. For example, it is applied to automatic screen flip and gravity sensing games.
You only need to add the sensor attribute to the
From: http://blog.csdn.net/android_tutor/article/details/5522913
Hello everyone, what we talked about in the previous section is:LayoutinflaterAnd I will talk about this section.MenuinflaterAs the name suggests,LayoutinflaterIs used to parse the
From: http://www.eoeandroid.com/thread-96512-1-1.html
In the previous examplePendingintentIt is similar to the intent you have learned before. Therefore, Baidu makes a summary based on its own understanding:
Intent is an intent, which describes the
Document directory
Solution:
When the application allocates memory, it calls Dalvik/Vm/alloc/heapsource. the dvmtrackexternalallocation () method in C, and then calls the externalallocpossible () method. This method requires the size of the
This article from my android learning experience and summary, reprinted please declare the Source: http://blog.csdn.net/chenshaoyang0011
In the Android platform, the list is one of the most frequently used components. The design of the List directly
1. Example of creating a notification object:Intent I = new intent (this, notifiedactivity. Class );Pendingintent Pi = pendingintent. getactivity (this, 0, I, 0 );Notification mynotification = new notification (); // create a notification
Update a new technical blog article per week as planned. Article 2: customized restart function for Android system
I. Implementation of Android system restart
1. broadcast modeThe previous blog post introduced this method: shutdown and restart
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