the desktop environment your system uses, and the next tutorial I'll explain to you.Create a shortcut under the GNOME desktopIn the GNOME desktop environment, you can easily create a desktop shortcut using Gnome-desktop-item-edit.In this example, Gnome-desktop-item-edit will automatically create a desktop launcher file in the directory ~/.local/share/application
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), Android
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
(Intent.extra_shortcut_intent,new Intent ( This,mainactivity.class)); Setresult (result_ok,returnintent); Finish ();}}}3. The above shortcut can only be added manually, if you want to add shortcut dynamically, you must send the broadcast. Android Launcher2 Source provides the followingThis also means that we send the broadcast must declare the permissions, as well as the designation Also in code calls (als
Taking Phpstorm as an exampleStay the fox.1. creating files and adding contentsudo vim/usr/share/applications/phpstorm.desktopAdd the following content[Desktop Entry] Name=phpstormname[zh_cn]=phpstormcomment=phpstorm PHP toolexec=/home/fox/program/phpstorm/bin/phpstorm.shicon=/ Home/fox/program/phpstorm/bin/webide.pngterminal=falsetype=applicationcategories=application;development; Startupnotify=trueName Shortcut namesExec represents the command execu
1. Create a file named "Eclipse.desktop" in/usr/share/applicationsThe specific command is: Gedit eclipse.desktopand add the following content:[Desktop Entry]Encoding=utf-8Name=eclipse PlatfromComment=eclipse IDEExec=/home/lgh/desktop/eclipse/eclipseicon=/home/lgh/desktop/eclipse/icon.xpmTerminal=falseStartupnotify=trueType=applicationCategories=application;development;Attention:Exec=/home/lgh/desktop/eclipse/eclipseicon=/home/lgh/desktop/eclipse/icon.xpmThis place to be modified for your install
Determine if Shutcut is installed"com.android.launcher.permission.READ_SETTINGS"/>这段代码在模拟器上运行没有问题,但是在htc s510e运行报异常Failed to find provider info for com.android.launcher2.settings通过但因htc所有包发现htc中的launcher被定制了改名为com.htc.launcher,所以这一段代码的通用行很差一般不对shortCut进行判断都是直接添加 public Boolean Isaddshortcut () {Boolean isinstallshortcut = false; Final Contentresolver cr = This.getcontentresolver (); int
Setting up the launcher (shortcut) process on the Ubuntu 12.04 Desktop explains:As shown, both Eclipse and Sqldeveloper can be opened directly by double-clicking them, and the initiators of those applications are under the/usr/share/applications folder and are then copied to the desktop.Here's how to set up this startup mode for your application under/usr/share/applications: Take Sqldeveloper as an exampleT
Many of the features on OS X can be created from Apple's own Automator.app, and you can use this method to create shortcuts for any program.1. First Step open Automator.app2. Select New, then select Service 3. Service received selected for no inputThen double-click Run AppleScript in the left sidebar So the AppleScript is written and saved as Open TerminalSimply change the "Terminal" in the Tell Application "Terminal" in the script to another program name, and you can set up
Decompression. Tar.gz's navicat later found that the initiator could not be automatically generated, and studied the discovery:
While many programs with graphical interfaces will automatically create shortcuts on the desktop during installation, there are some graphical interface programs or command-line programs that may require you to manually create shortcuts such as. tar.gz and other downloaded software.
Two methods are available for pro-testing:
Method One:
1. Search into "Launch applicati
Recently I have studied lancher, from the text message MMS framework to the bug and demand modification of launcher. Next I will explain the layout of the simplest home screen program of launcher, it gives readers a sense of getting started. The main screen of Android is divided into five screens, which are 0, 1, 2, 3, and 4 from left to right. So which programs or widgets you want to put on the home screen
relatively large, but the modifications to the launcher analysis are common.
This is based on the launcher interface modified by android4.0.3. Because the program is used in vehicle navigation, the icon is enlarged. Deleted unnecessary things.
The following is an analysis of the page modifications.
1. default configuration file on the Interface
When the machine is upgraded, the
Foreword: Has been looking at the Launcher module recently, after almost two months study, finally understood the launcher some main function realization, now continues still inGroping state. Did not see launcher, in my case, can only worship, thought that all functions are it to achieve; Getting started, only to discover that launcher's many functions are justIn
Os:ubuntu Linux 12.04I manually updated the Firefox browser the other day (see http://www.cnblogs.com/yzsatcnblogs/p/4266985.html), but then when I opened the browser, there was no Firefox icon on the launcher. This allows us to no longer open the minimized browser ... Nor can you quickly open the browser. So I learned how to add an icon to the launcher and change the icon pattern. summarized here.(1) Click
The most appealing thing about Android phones is its open source and the pleasure of other third-party apps. Experimenting with windows on Android phones is an exploration project for some mobile enthusiasts, whether remotely controlled or virtual, and there is a new way to do it. Today's small series to introduce a copy of the Desktop XP desktop software XP Mod Launcher.
XP Mod Launcher is a desktop appli
Note: Please download the game first.1. C5 "Settings" in Samsung.2. Then find the "Advanced features" option in the interface after opening the entry.3. After entering, click on the "game" effect as follows.4. Click on the "Game Launcher", right here, we click to enter to open it.5. Click on the right slider switch, show "open" Representative has been opened.6. After opening the game launcher, we return to
Sometimes, for launcher development, you need to remove the search box and protipwidget on the launcher. In addition, protipwidget is added after Android 2.2. After searching for N for a long time, the original definition file is in launcher2/RES/XML/default_workspace.xml, and the file is pasted below:
Then,
These two are the search box we are looking for and protipwidget (I don't know how to translate t
Android Launcher: get the list of apps installed on your mobile phone. Android launcher
The most important of Launcher is to obtain the entries and icons of all application lists. Generally, there are two methods to obtain them:
PackageInfo
ResolveInfo
Run and obtain the Launcher of all apps and allow click events to g
After the boot is complete and unlocked, if there is more than one launcher on the Android system, a selection box pops up to let the user choose to enter a launcher. If the user does not want to choose, but want to go directly to a default launcher, how to modify?Note: This modification is not valid for Google Now Launcher
The research code starts with: Androidmanifest.xml, custom Application.java.When the Android system starts, the system needs a home application to be responsible for displaying the applications, that is, the application is intended to be the first application launched by the Android system. On Android, this default home application is launcher.To use an application as a home, simply add a category to the Android.xml file:For several property descriptions in the Androidmanifest.xml file:Where And
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.