Sometimes you may not like the Default Application icons, instead of some personalized icons. In fact, it is possible for Android users to change the desktop icon. You only need some applications such as LauncherPro, GO Launcher EX, Apex Launcher, and Nova Launcher to help you replace the icons. There are a lot of icon
. For example, the email client can use this intent and requires the user to select a contact from the contact list.In addition to the two important attributes of action and data, there are also some additional attributes:
Category (category), additional information about the executed action. For example, launcher_category indicates that the receiver of intent should appear as a top-level application in launcher, while alternative_category indicates
Figure Description: Moving, backup after the launch of Android virtual machine appears
Solution to the problem of panic:could not open D:\java2\android\android-sdk-windows\.android\avd\test.ini
A few days ago, I am sorting some files, the previously installed on the Android
Android Launcher2 source code analysisThe Android Launcher2 source code analysis Android source code program has an application portal. The official Chinese translation is "starter ". Let's take a look at the source code analysis of Launcher. Launcher, starting with AndroidM
, why not open, in fact, Google is now making up a mistake, that is, because Android is too open to cause Android fragmentation, Google has no control over Android, domestic manufacturers that is even more. Thus, on Android for wearable devices, Google estimates that it would like to unify the interface to enhance the
Home screen is the most important application of a mobile phone, just like the homepage of a portal website, which directly determines the user's first impression. The following is a brief analysis of home screen.
The home screen code is located in the packages/apps/launcher directory. The UI structure of home screen can be learned from the launcher. xml and workspace_screen.xml files, as shown in:
The wh
Android preset application icons, shortcut icons, or widgets on the desktopModify the res/xml/default_workspace.xml file and add the following code:
Launcher: packageName = "" // complete package name
Launcher: className = "" // complete package name. Class Name (class for processing main intent)
Launcher: scr
/data/system/appwidgets. xml and initialize mhosts and mappwidgetids;
Register the required broadcast receivers.
(2) launcher registers with startlistening () of appwidgethost.
Appwidgethost constructs the iappwidgethost object, and passes the list of callback, hostid, and remoteviews to the service through startlistening () of the iappwidgetservice. The implementation in appwidgetservice is as follows:
public int[] startListening(IAppWidgetHo
I previously wrote about how to create, delete, and determine shortcuts. However, I found that the methods used to determine shortcuts are not always effective. I checked them online and found that all the problems were solved after version 2.2. incorrect
Paste the original judgment method here
Java codePrivate boolean hasShortCut (){ContentResolver resolver = getContentResolver ();Cursor cursor = resolver. query (Uri. parse ("content: // com. android
Pain points in Android model adaptation [sharing dry goods]
The birth of the Android platform has made great contributions to the popularity of smart mobile phones, but its biggest drawback is becoming increasingly prominent, that is, serious fragmentation: a wide range of devices, a large number of brands, and different versions, chips, cameras, and inconsistent resolutions all gradually become obstacles t
);
(activity). Finish ();
If the phone is installed with multiple launcher (such as 360 desktop type of app) will be a bit more trouble, need to show a list of users to choose which launcher, this in product form may make users feel a little puzzled.
Now, if you click the Home button in another app, it jumps to our lock screen activity and jumps to the real launc
/southeast "Width=" 520 "height=" 520 ">
2. Create/launch Android Wear simulatorThis should be very easy. Just choose Androidwearround/square on the simulator interface.When you're done, click Start to3. Android Wear Preivew program installed on mobile deviceThe program is actually a launcher, which is the default launch
main menu (only the activity in alarmclock.apk contains android. intent. category. launcher attribute), but method A generates com.android.alarmclock.apk in/data/app, and method B generates alarmclo Ck.apk. When using method A, if alarmclock has been installed, you must first ADB uninstall it, and method B does not need. The B method is recommended. Similarly, you can use ADB uninstall or ADB shell RM xxx/
activity selected for display; when used together with add_shortcut_action, it describes the shortcut to be added. "Android. Intent. Extra. intent"
String label_extra additional data: character tag starting with an upper-case letter, used together with add_shortcut_action. "Android. Intent. Extra. Label"
String launcher_category category: the activity should be displayed in the top-level
with ADD_SHORTCUT_ACTION, it describes the shortcut to be added. "Android. intent. extra. INTENT"StringLABEL_EXTRA additional data: character tag starting with an uppercase letter, used together with ADD_SHORTCUT_ACTION. "Android. intent. extra. LABEL"StringLAUNCHER_CATEGORY category: the Activity should be displayed in the top-level launcher. "
/hudan2714/article/category/1130450
For a Better Tomorrow
Http://www.zhaoweihua.name/category/android
Third Pole
Http://disanji.net/
Http://blog.csdn.net/hmg25
Launcher Research
Http://blog.csdn.net/chenjie19891104/article/details/7008962
[Android] search toolbar
Http://www.devdiv.com/article-2715-1.html
Foundation of An
well-known HTML5 browser;More than 10 of it best-selling authors;Six , training content
First day
1th topic: The Secrets of Android architectureHow does Google support and control the world's hardware vendors and application developers through Android?What is the source of Android control power? How is it technically implemented?1,3
: All the application packages we can test are in this directory.
C: \ Documents ents and Settings \ Administrator> ADB Shell
# Ls data/Data
Ls data/Data
Com. Google. Android. btrouter
Com. Android. providers. Telephony
Com. Android. MMS
Com. Android. providers. downloads
Com. Andr
the notepaper application (the action is Android. App. Action. Main ). Android. App. Category. launcher indicates that the activity will be listed in launcher.
2. The second is when the type is vnd. android. cursor. DIR/vnd. google. note, you can view the available notes (t
Objective
Before we begin, we hope you can best meet the following conditions:
1, have a compiled Android source code (hands-on practice will have a more in-depth understanding)
2, a certain understanding of the binder mechanism
This article starts the process analysis based on the Android 5.1 source code. Why is 5.1 of the source code? Because the code compiled at hand only this version ... In addition
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.