Yeah, I was wondering why you would not want it to show in the launcher.

The user will know they downloaded and installed it correctly simply by
downloading it from the Market, no?
And if you explain clearly in your description how this system works they
should know to go to the main app and unlock the features from there, no?
You could always register a broadcast receiver in your main free app to
detect when the paid upgrade app is installed and show a message from there.
I think, I haven't done much with receivers.

And no, I don't think you can remove the icon from the launcher in code,
though I could be wrong.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Thu, Dec 3, 2009 at 11:51 AM, Mike <[email protected]>wrote:

> Here's my use case that will hopefully explain why I even want to do
> this:
>
> 1) I have a free app
> 2) I wrote another app that serves strictly as a token which the user
> can purchase to "upgrade" features in the free app
> 3) When they purchase the upgrade app, I want to give them the
> impression they actually downloaded it and it installed correctly.
> Simply having it install without any confirmation will, I assure you,
> result in countless emails to me.
> 4) I really don't want to have to show the "upgrade" app in their app
> tray since they now would have two icons.
>
> So, with all that's been discussed, let me ask a different question.
> Is there a way to programmatically remove an icon from the tray after
> the activity has been shown and still keep the app installed on the
> phone?
>
> - Mike
>
> On Dec 3, 10:44 am, "Mark Murphy" <[email protected]> wrote:
> > > Thanks.  That works.
> >
> > > BUT... I should have clarified myself a little bit.  Not only do I
> > > want to prevent the icon from getting placed in the app tray, but I
> > > still need the main activity to run and display a message to the
> > > user.
> >
> > Fortunately, that's not possible. The only way the user will be able to
> > launch your application is if you put an icon in the launcher.
> >
> > > I suppose I can write my own class that extends Application and
> > > create an Intent that shows this Activity in onCreate?
> >
> > Except that your Application will never run unless it is launched, and
> the
> > first launch has to be by the user.
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > Android App Developer Books:http://commonsware.com/books.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to