A recent need to customize the launcher,android version of a MTK handheld device is the 4.4.2,launcher version of Launcher 3. In fact, there are a lot of articles online about how to import Android 4.0 Launcher 2 source into eclipse run. Like what:1. http://blog.csdn.net/chenshaoyang0011/article/details/78576342. http://blog.csdn.net/klpchan/article/details/11843295.At the same time I found a piece about ho
Source code analysis of the main process of Android M Launcher3Background
I think there is no need to emphasize the question about Launcher. For some reason, I have been forced to study the Launcher3 Source Code recently. In order not to be as stupid as before (to study the Settings and other code without taking notes), I will quickly organize my insights into articles, for future viewing convenience. In fa
settings.On the mobile device we have to preserve as much compatibility as possible without killing the marquee, in the Set-top box development most manufacturers in order to diversion and push their own video services will generally modify the framework layer of the Activitymanagerservice service to write the entrance to Die (I was in the company that was so dry!!!) )。is actually the Android system boot launcher The approximate process, as follows:W
settings.On the mobile device we have to preserve as much compatibility as possible without killing the marquee, in the Set-top box development most manufacturers in order to diversion and push their own video services will generally modify the framework layer of the Activitymanagerservice service to write the entrance to Die (I was in the company that was so dry!!!) )。is actually the Android system boot launcher The approximate process, as follows:W
/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center "/>Compress package Download:After download, unzip, folder such as the following:Then import Eclipse. Due to some new features of Launcher3. The build target needs to be set to API level 19 (not required, for convenience of research purposes.) Launcher3 source code can be compatible with large API16). Then import the project depends on the
Launcher3 custom wallpaper cannot be restored after being stretched after rotation, launcher3 stretch
Copyright. For more information, see the source:
Http://www.cnblogs.com/sickworm/p/3966857.html
MTK8382/8121 platform.
Description: After setting a custom image as a wallpaper, the portrait screen is rotated when the screen is displayed. The image is stretched because the resolution is too small. The imag
, Launcher3 onCreate twice.
We know that in order to re-layout, the Launcher will re-create onCreate each screen conversion. When the screen is placed on a horizontal screen, the screen is converted again in a short time in the default vertical screen state.
After reading AndroidManifest. xml, we found that the android: screenOrientation attribute is nosensor, so each start is default (portrait screen ). A
(8) Launcher3 customized ContentProvider content provider, which allows other applications to modify Database updates and perform other operations. launcher3
First, add two permissions.
These two are the permissions to modify the desktop database.
It cannot be modified without being added.
Get data directly through the content provider,
static ArrayListSimilarly, you can modify the URL,
I will not write
Android4.4 on the Launcher3 Source: http://download.csdn.net/detail/deng0zhaotai/8281391Modified Android4.4 Launcher3 code that can be debugged on eclipse: http://download.csdn.net/detail/deng0zhaotai/8284961You can download two projects to compare and know where to change the place1. Deletion of two files Src/com/android/lau
Mtk8382/8121 platform.
Description: After setting a custom image as a wallpaper, the portrait screen is rotated when the screen is displayed. The image is stretched because the resolution is too small. The image is then rotated to the landscape screen without restoration.
This problem has been solved in the past two days. It has been studied for a long time and has taken many detours. Finally, it was found that the launcher had a bug in reading sharepreferences.
The bug is generated as follows
Launcher Series Catalogue:First, android7.x Launcher3 source Parsing (1)-Start processSecond, android7.x Launcher3 source Code Analysis (2)-Frame structureThird, android7.x Launcher3 source Code Analysis (3)-workspace and AllApps loading processThe first two blogs analyze the Lancher's start-up and launcher frame structure, which will focus on analyzing the loadi
Launcher3 Wallpaper Specifications By default is: wallpaper height = screen height, wallpaper broadband = screen width * twice timesAndroid4.4 Wallpaper information is stored in the/data/system/users/0/directory, Wallpapermanagerservice startup, will generate the following two files in the/data/system/users/0/directory: Static final String wallpaper = "wallpaper"; Set the wallpaper picture, generally for the JPEG format static final String wal
Launcher Series Catalogue:First, android7.x Launcher3 source code parsing (1)-Start processSecond, android7.x Launcher3 source Code Analysis (2)-Frame structureIii. android7.x Launcher3 Source code parsing (3)-workspace and AllApps loading processThe first two blogs have carried out some analysis on the Lancher and launcher frame structure respectively. This arti
Recently very busy, record, Launcher3 wallpaper modification. Lest forget. It took me nearly half a day.
Environment: RK3288 + Androidll
Step: Enter Launcher3, long press the desktop blank section, set up a built-in wallpaper.
Phenomenon: The discovery is blurred because it has been stretched.The first article of this kind. Talk about the solution to the idea.
Train of thought: This kind of view is relative
First of all, my idea:The logic for changing the icon inside the Luancher3 is as follows:Check the app resource bundle first--database query--Other places to query iconTherefore, we just need to get the icon code from the database forward to extract from the app resource bundle.Come on, our external app simply adds an icon to the Launcher.db's icon field. Then notify the desktop to update the icon, you can complete the entire desktop icon automatic replacement effect.Advantages of doing this:Wit
First of all, my idea:The logic for changing the icons inside the Luancher3 is as follows:Query the app resource bundle first--database query--Other places to query iconTherefore, we just need to get the icon code from the database early to extract from the app resource bundle.Our external app just needs to add an icon to the Launcher.db's icon field. We can.Then notify the desktop to update the icon. You can complete the entire desktop icon itself to replace the effect of the active.Advantages
Add two permissions FirstThese two are permissions to modify the desktop's databaseYou can't change it without adding it!Get data directly from content providers,Static arraylistModify the content similarly by the URL to modify,I will not write the code specifically.(8) Launcher3 customized ContentProvider content providers, implementing other applications to modify database updates and other operations
(7) Launcher3 customization: After modifying the single screen, the system reports an error when you delete the Hotseat drag application. launcher3hotseat
After modifying the single screen, drag the icon in the workspace and release it on the delete button, an error is reported.
The dragged icon cannot be displayed again.
Triggered when dragging and releasing a hand
Public void onDropCompleted (final View target, final DragObject d, final boolean isF
The launcher icons for dynamic clocks and dynamic calendars were implemented in the previous article, but today's test shows that dynamic calendars have leakreceived problems and cannot cancel received bindings. So today a different way to implement
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.