January 2011
4 posts
1 tag
Android Home Screen Shortcuts Part III: Remove...
One topic left for the Android Home Screen Shortcuts: Removing shortcuts.
First add the UNINSTALL_SHORTCUT permission to your AndroidManifest.xml:
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
To be able to remove shortcuts from the home screen you need to recreate the shortcut I described in Part I: Add Shortcuts along with it’s exact...
1 tag
Android Home Screen Shortcuts Part II: Add App to...
In Part I: Add Shortcuts I described the basic code for adding a shortcut to the home screen. Part II is all about adding your app to the “Select shortcut” menu (accessible from home screen → long press → Shortcuts).
In order to achieve this, you need an Activity which is getting called in the “Select shortcut” menu. You should add the code from Part I somewhere in this...
2 tags
Migrate Your Existing SVN Repository Into Git
I have to extensively branch and merge different code bases for a current project. And since merging can get very ugly with Subversion, I decided to migrate the current Subversion repository to Git.
Install Git
Very easy on a Mac with MacPorts:
sudo port install git-core +svn
Very important is that you don’t forget the svn variant.
There are very good step-by-step instructions...
1 tag
Android Home Screen Shortcuts Part I: Add...
Another great feature in Android, although not really documented, is the ability to add a shortcut to the home screen.
Here’s how it works:
First declare that your application is using the INSTALL_SHORTCUT permission in the AndroidManifest.xml.
Then use the following code.
Intent shortcutIntent = new Intent();
shortcutIntent.setClassName("com.example.androidapp",...