Do you actually have permission to run the activity that is in another
application?

For debugging issues, you should try to isolate your problem.  For example
here you should make sure that you can directly do startActivity() with that
Intent in your own app.  Once you have verified that works, then throw the
PendingIntent and status bar into the mix.

Also be sure to look at log output, because that often has useful messages
when things are going wrong.

On Wed, Jun 1, 2011 at 4:40 PM, ivan harmady <ivan.harm...@gmail.com> wrote:

> Hmmm, but how should I use it??  I am not using any uri(i dont even
> know what for is it). I only need to start an activity from the click
> on the notification. But the problem is, i want to run an activity
> from different application.
> There are usually examples like  Intent notifyIntent = new
> Intent(context, notify.class); -> but this is for notify.class in the
> same application, but i want to run activity in different application.
> When i use the example above it is ok and the notify.class runs, but
> when i want to run the activity as i described in my code
> -> intent.setClassName("com.iwaneez", "com.iwaneez.PlaceSettings");
> nothing happens on the click.
> Aren't there any permission or something else?? I really don't
> understand why i cannot run it this way..
>
> I really need this...pls help :(
>
> On 31. Máj, 03:20 h., TreKing <treking...@gmail.com> wrote:
> > On Mon, May 30, 2011 at 7:50 PM, ivan harmady <ivan.harm...@gmail.com
> >wrote:
> >
> > > but this activity never starts when i click on the notfication...can
> > > you help me please?? i really need this and I'm out of ideas.
> > > Every advice worth.
> >
> > Try this constructor:
> http://developer.android.com/reference/android/content/Intent.html#In...,
> > java.lang.Class<?>)
> >
> >
> ---------------------------------------------------------------------------
> ----------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices
>
> --
> 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
>



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