[android-developers] Widget inside a pre-existing application

2010-06-28 Thread Pinheiro
I've created a complex application that uses SQLite and would like to give the user an option to install a very simple widget on the homescreen (just a number taken from the database). Do I have to create a new .apk just for the widget? I've tried to cut- and-paste the WordWidget example but it

Re: [android-developers] Widget inside a pre-existing application

2010-06-28 Thread YuviDroid
You can have an application + homescreen widget in a single .apk. Make sure your main application has the intent-filter android:name=android.intent.action.MAIN and android:name=android.intent.category.LAUNCHER. Your widget receivers/activities instead shouldn't have any intent-filters with name