Hi Dianne,

When I make the change like so:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="mypackage"
      android:versionCode="5"
      android:versionName="1.0.3">
    <application android:label="@string/app_name">
        <activity android:name=".MyActivity" android:label="@string/
app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.INFO" /
>
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest>

The app will run, but it will not display MyActivity.  I'm trying this
on a G1 running Android 1.6.

- Mike

On Dec 3, 11:03 am, Dianne Hackborn <[email protected]> wrote:
> Make your activity have the MAIN action and INFO category (instead of
> LAUNCHER).  Then the user can launch it from market, and you can tell the
> user what you are, but it will not show up in all apps.
>
>
>
> On Thu, Dec 3, 2009 at 9: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
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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