|mahadevan v||Nov 16, 2007 4:34 pm|
|dasGrunge||Nov 17, 2007 7:50 pm|
|Dmit...@gmail.com||Dec 4, 2007 6:38 am|
|Dan Morrill||Dec 4, 2007 9:11 am|
|Dmit...@gmail.com||Dec 4, 2007 9:51 am|
|Dmit...@gmail.com||Dec 4, 2007 10:20 am|
|adamac||Dec 4, 2007 11:38 am|
|Maxim Yudin||Dec 5, 2007 12:11 am|
|mahadevan v||Dec 5, 2007 6:01 pm|
|Subject:||Re: [android-developers] Re: Replace Home Screen with a different app|
|From:||Dan Morrill (morr...@google.com)|
|Date:||Dec 4, 2007 9:11:10 am|
Actually, you shouldn't need to hack the system images at all; you should be able to do this simply by writing an app and using the correct intents. Specifically, you'll want these three, I believe:
Here's a sample intent-filter:
<intent-filter> <action android:value="android.intent.action.MAIN" /> <category android:value="android.intent.category.HOME"/> <category android:value="android.intent.category.DEFAULT" /> </intent-filter>
If you set up your Activity to have those 3 Intents in its intent-filter, it should be fired when the Home screen would normally appear. However, since we currently don't have a way to let users specify the preferred Activity to use for a given Intent filter, the user will get a prompt to pick the correct Activity. We plan to improve that in a future SDK release.
We haven't tested this recently, though, so let us know if you run into problems.
Hope that helps,
you can replace in the following way:
- create dierctory on local drive: like c:\mydevice\system\app - place Home.apk into app folder - run emulator - use "adb sync c:\mydevice\system" command - start ddms.bat and use "halt VM" to restart emulator
the problem is that you will get a lot of exceptions at startup... because you should completely implement functionality of the 3 activities: Home, AllApps and Wallpaper
any clues how to decompile original app and make your own app the same? :-)
On Nov 17, 3:34 am, mahadevan v <maha...@gmail.com> wrote:
Has anyone tried replacing the default home screen with a different application? The default Home.apk is in /system/app folder. I deleted this and downloaded a different Home.apk using the adb and restarted the emuator. I found that the emulator reconfigures itself (sort of a self healing!!) and scraps my Home.apk and rewrites it with the default one and launches the same. I dont know from where it brings in this backup default apk. I guess my approch is incorrect. I read the following statement at the groups home page.
All applications are equal: Android does not differentiate between the phone's basic and third-party applications -- even the dialer or home screen can be replaced.
Said that there should be a cleaner way to replace the default apps. Any suggestions?