running Android 2.2 or higher
You can download the SDK and platform tools the Android Developer Portal.2.Project SetupLaunch Eclipse and create a new Android application project.I ' m naming the application simplelauncher, but can name it anything you want. Make sure-a unique package. The lowest SDK version our
: bindWorkspace ---> LoaderTask: bindWorkspaceItems ---> Launcher: bindItems
[Edit] 1.3 Data Loading Problem During SIM card insertion 1. Launcher will execute onDestory () onCreate () on Launcher Activtiy because of low memory, and will execute again
StartLoader --> loadAndBindWorkSpace ----> loadAndBindAllApps
2.
View plaincopy to clipboardprint?
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/Android_Tutor/archive/2010/04/14/5486804.aspx
I recently studied lanucher, read the source code, and found the slidingdrawer class, which is also called the "drawer" class. It is easy to use, including handle, and content.
Handle is when you click it, the content is either drawer or close the drawer. The specific steps are as follows.
1. Create an
); dragController.setMoveTarget(workspace);
Setdockdraglistener is a user-defined function and is added to startdrag of dragcontroller. For details, see the source code.
//hmg25 add for dock { if(mDockListener!=null){ mDockListener.onDragStart(source, dragInfo, dragAction); } //hmg25 add for dock }
3,
// The order here is bottom to top. dragController.addDropTarget(workspace); dragController.a
Demand:1, using the Android system Launcher hide the main menu all the applications displayed on the desktop is workspace;2, hide launcher above the default Google search;3, switch A set of launcher theme.Implementation results:An
Android Custom Application drawer Launcher
You can sort the application by application name and installation time, and view the specific project code on my GitHub. The link is shown at the end of the article ,:
Core code:
Package com. zms. launcher; import java. util. arrayList; import java. util. hashMap; import java. util. list; import
Recently, the application just needs to add shortcuts. After referring to the source code and some other information on the Internet, it is done.
There were two problems at the same time,
1. After the program is uninstalled, the desktop shortcut still exists:
For this question, the old or current version of many online applications still exists. after referring to the source code, I found a solution: when creating the export cut, you need to set the extre_shortcut_intent action. and category to
Android UI collection-1. Android Drawable Classification summary (2/3)
This section introduces:
In the previous section, we have learned about four Android Drawable, which are:
ColorDrawable, NinePatchDrawable, ShapeDrawable and GradientDrawable!
In this section, we will co
The Android operating system displays an activity for
In addition, if the user wants to add a shortcut to the appliance's home screen, the app's icon can be launcher in the Android system, and it will automatically add a shortcut to the home screen for the application. The name and icon are the same as in launcher.
Q: Nima Android 4.1 jelly bean has been released. You still have bb2.3, right?
A: Sorry, It is a feature of diaosi.
Q: What is the purpose?
A: It is very irresponsible to say that the launcher drag process has not changed since 2.2.
Q: What is the basic concept? There are still changes.
A: "Okay, you win ".
Bytes ----------------------------------------------------------------------------------------------
display, the page between the smooth switch, the icon zooms out smoothly.
(2) in the focus of each icon to enlarge the display, the icon is surrounded by a shadow or the focus of the highlighted frame, such as highlighting, drop the focus of the time to revert to normal display.
(3) the icon corresponding to the app link can be configured in the XML file.
(4) page number can be configured, you can
exploration to the left
3. Right Exploration --> the right side is occupied by folder and the right side of exploration is stopped.
4. On the basis of the current continuous area (), explore up --> judge that cells 1 and 2 are empty, and add them to cellinfo. At this time, the continuous space becomes [,]; --> continue to explore up --> occupied, stop exploring up
5. On the basis of the current continuous
Work needs to be summarized, so as to ensure that the Foundation is solid and can climb higher;
----
Reprinted please indicate the source: Http://blog.csdn.net/wdaming1986/article/details/8478533
Some time ago I studied the loading process of launcher's allapps and made some modifications to it. Haha, it's not that difficult, as long as I can view all the launcher code as 80%, it's basically how to change it! What is allapps? Click mainmenu on the id
system or using Oracle VM VirtualBox. I will not talk about installing the dual-system here. You can check it online. Here is a link for your reference: http://jingyan.baidu.com/article/76a7e409bea83efc3b6e1507.html. To install Ubuntu through Oracle VM VirtualBox in a Windows environment, see: http://jingyan.baidu.com/article/db55b609909c084ba20a2f5e.html
Note:
(1) it must be Windows 7. If it is Windows 8, unexpected things may occur. In short, you can use Windows 7 if you don't want to have tr
1. Introduction to favorites on the desktop
The launcher desktop has four elements in the middle, which are the window widgets of a clock. The following lines are respectively a camera, an Amazon bookmarks, and a folder (the folder contains settings and clock ).
In the code, they are all favorites: appwidget, application, shortcut, and folder.2. view the database
Favorites is stored in the database.
Export
that the TV size is relatively large, your UI display should be able to look at the appropriate size on the TV screen, and the display should be simple and comfortable. Don't look at the various small icons like native Launcher, and the second is to facilitate remote control operations, the focus navigation display is correct, because it is too inconvenient for you to give the set-top box an external mouse to imitate the touch operation. So everyone
Today the main analysis of the Android Launcher source code in the relationship between some important classes, the basic loading process. Take a look at a class diagram firstLauncher.java is the primary activity that initializes the Launchermode instance within the OnCreate method.Launcherapplication app = ((launcherapplication) getapplication ());Mmodel = App.setlauncher (this);The method of directly ente
get down to the truth. If we want to write the same launcher ourselves, we have to look at the simulator or the Android system first, so that we can look at this simple but hidden starter that starts the first one each time. Through some tossing, You can roughly divide the functions implemented by launcher into the following:
1. Long-pressed in an empty position
Android operating system for In addition, if the user wants to add an app shortcut to the device's home screen, you can press and hold the app's icon in launcher, and the Android system will automatically add a shortcut to the app on the home screen. The name and icon are the same as in launcher.In addition to supporting shortcuts to apps (main activity),
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.