This is working as intended, and there is no plan at this point to change
it.

On Wed, Jun 17, 2009 at 10:49 PM, Raj <lal.ra...@gmail.com> wrote:

>
> Thanks erictcrook for the idea, but it wont work unless and untill you
> start the application manually once.
>
> Hi Dianne, so there is no way out in Android for the application to
> run on install, correct?
> But I feel that this feature should have been there, as it is
> available in all other mobile platform like Symbian, WinCE,RIM etc. As
> there is NO silent installation API available in Android hence, it is
> the user only which is going to install the application, then what is
> the harm on making the application up on install complete?
> Or Andoird is having the future plan on this?
>
> Thanks,
> Raj
>
> On Jun 18, 1:55 am, Dianne Hackborn <hack...@android.com> wrote:
> > There is a button in market to launch the app.  So you see in the status
> bar
> > that the download is down, select the notification, now you are in market
> > about the app saying it is installed, and you can press the button there
> to
> > launch the app for the first time.
> >
> >
> >
> >
> >
> > On Wed, Jun 17, 2009 at 12:05 PM, MrSnowflake <mrsnowfl...@gmail.com>
> wrote:
> >
> > > I think that's a very good reason not to send it to a newly installed
> > > app. Though you could give the user the option to start the app
> > > immediately after install, with a button for example.
> >
> > > On Jun 17, 8:55 pm, Dianne Hackborn <hack...@android.com> wrote:
> > > > We deliberately don't send this broadcast to an app when it is first
> > > > installed (as of cupcake you -will- get the broadcast when being
> updated
> > > > from a previous install).  It is generally up to the user to launch
> your
> > > app
> > > > when they want to.
> >
> > > > On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com <
> > > erictcr...@gmail.com
> >
> > > > > wrote:
> >
> > > > > I'm not sure, but I believe the following code may help.
> >
> > > > > put the folling in your AndroidManifest.xml as a child of your
> > > > > Application tag
> >
> > > > >       <receiver android:name="com.ericcrook.InstallReceiver"
> > > > > android:enabled="true">
> > > > >                <intent-filter>
> > > > >                        <action
> > > > > android:name="android.intent.action.PACKAGE_ADDED" /
> >
> > > > >                        <data android:scheme="package" />
> > > > >                </intent-filter>
> > > > >        </receiver>
> >
> > > > > Then create a class that extends BroadcastReceiver, and use it's
> > > > > onReceive method to start your activity
> >
> > > > >   public class InstallReceiver extends BroadcastReceiver {
> >
> > > > >   public void onReceive(Context context, Intent intent) {
> >
> > > > >      String data = intent.getDataString();
> >
> > > > >      if (data.equals("package:com.ericcrook.InstallReceiver")) {
> > > > >         //Start your application using startActivity or whatever is
> > > > > appropriate for
> > > > >         //your project
> > > > >      }
> > > > >   }
> > > > > }
> >
> > > > > I'm not very good with the Intent system, so some of this may be
> > > > > correct, but hopefully this is better than nothing.
> >
> > > > > On Jun 16, 6:21 am, Raj <lal.ra...@gmail.com> wrote:
> > > > > > Hi,
> > > > > > I want to start my application just after it gets installed on
> the
> > > > > > device. Is there any way out in Android to do so.
> > > > > > I was wondering if there is any receiver to get informed on
> package
> > > > > > installed.
> > > > > > Regards
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > 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.
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > 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.- Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to