I haven't had time to try a PendingIntent object yet, but I am curious
how it will help?

The problem isn't that I can't get my app to launch when the camera
button is pressed... The problem is that is launches the Camera app
and then launches my app.

Since there is no guarantee as to the order that applications will be
notified, it is almost like I would have to find some way to
unregister everything else that is listening for the camera button...
Given Android's security measures, is that even possible?

Thanks,
Justin

On Sep 15, 11:08 am, Justin Anderson <[email protected]> wrote:
> All I have to do is change the code below to use a PendingIntent and pass
> that to startActivity?
>
> public void onReceive(Context context, Intent intent)
>        {
>                if (intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT) !=
> null)
>                {
>                        Intent newIntent = new Intent(Intent.ACTION_MAIN);
>                        newIntent.setClass(context, ActivityListView.class);
>                        newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>                        context.startActivity(newIntent);
>                }
>        }
>
> ----------------------------------------------------------------------
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> ----------------------------------------------------------------------
>
> On Tue, Sep 15, 2009 at 11:00 AM, Paul Turchenko
> <[email protected]>wrote:
>
>
>
> > Use PendingIntent
>
> > On Sep 14, 8:01 pm, Tikoze <[email protected]> wrote:
> > > Anyone?
>
> > > On Aug 31, 4:26 pm, Tikoze <[email protected]> wrote:
>
> > > > Any info on this would be appreciated.  I know it can be done because
> > > > I have installed a few apps that are able to launch via the camera
> > > > button without having the camera app launch as well.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to