Re: [android-developers] Re: Intercept launching of apps

2010-09-23 Thread Dianne Hackborn
You can't do this with apps started from launcher, since the icon represents a concrete app (the exact app is set in the intent), so there will never be a point where there is another possible app to run. This approach is for intents that are abstract -- such as "view this data" -- for which there

[android-developers] Re: Intercept launching of apps

2010-09-23 Thread DanH
There is Intent.createChooser, which kind of nibbles at the edges of this topic. On Sep 23, 11:42 am, TreKing wrote: > On Thu, Sep 23, 2010 at 8:07 AM, Dirk Vranckaert > wrote: > > > So when I intercept, and the user choses my application to start default, > > when I want to let open the applicat

Re: [android-developers] Re: Intercept launching of apps

2010-09-23 Thread TreKing
On Thu, Sep 23, 2010 at 8:07 AM, Dirk Vranckaert wrote: > So when I intercept, and the user choses my application to start default, > when I want to let open the application I intercept is that still possible > or will it always return to mine? > I'm guessing it would return to yours, if you used

[android-developers] Re: Intercept launching of apps

2010-09-23 Thread Dirk Vranckaert
So when I intercept, and the user choses my application to start default, when I want to let open the application I intercept is that still possible or will it always return to mine? Dirk On Sep 23, 3:02 pm, patrick wrote: > If you do this, the user will see a pop-up asking to choose netween > y

[android-developers] Re: Intercept launching of apps

2010-09-23 Thread Dirk Vranckaert
I found this in the emulator logging upon opening the message application: 09-23 12:45:32.149: INFO/ActivityManager(582): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.android.mms/com.android.mms.ui.Conversati

[android-developers] Re: Intercept launching of apps

2010-09-23 Thread patrick
If you do this, the user will see a pop-up asking to choose netween your app and the messaging app. The user can choose to set your app as default handler. On Sep 23, 1:54 pm, Dirk Vranckaert wrote: > Hey, > > I'm walking around with a little idea for a new Android app although I > have my doubts

[android-developers] Re: Intercept launching of apps

2010-09-23 Thread Dirk Vranckaert
When I started an emulator and looked in the loggings I found this: 09-23 12:45:32.149: INFO/ActivityManager(582): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.android.mms/com.android.mms.ui.ConversationList}