@sujay
dude,
try
Notification n=new Notification();
        n.setLatestEventInfo(context, contentTitle, contentText,
contentIntent);
the contentIntent is the target intent...

jus tell me if it works out for u.

cheer!
On Thu, Jun 4, 2009 at 8:53 PM, sheik <sheik...@gmail.com> wrote:

>
> i tried ur method by considering keyevent...but i want the activity to
> go background ... not  able to call onpause method in the keyvent
> method..
>
> Kindly suggest on the above written scenario...just like how it works
> on MyTracks and BuddyRunner..
>
> Hope my explaintion on the scenario is clear..if not let me know ..i
> shall brief again ...
>
>
> thanks for the suggestion and replying back..
> regards,
> sheik
>
> On Jun 4, 11:53 am, Sujay Krishna Suresh <sujay.coold...@gmail.com>
> wrote:
> > i don't think its possible as of now... its handled by the os... so i
> guess
> > it might not be possible in the future as well...
> > but i hv heard of DONT_KILL_APP somewhere... i think its a flag... try
> > searchin for it....
> >
> >
> >
> > On Thu, Jun 4, 2009 at 11:45 AM, sheik <sheik...@gmail.com> wrote:
> >
> > > Hi...
> > >  Is it possible for an activity to avoid destroy mode ... and make
> > > activity in pause mode instead...
> >
> > > Kindly let me know..
> > > thanks
> >
> > > regards
> > > sheik
> >
> > > On Jun 3, 7:45 pm, Sujay Krishna Suresh <sujay.coold...@gmail.com>
> > > wrote:
> > > > use onkeylistener check if keycode matches back....
> > > > start ur service here & finish....
> > > > the rest i'm not sure on how to do... n u shd wait till u get a
> reply..
> >
> > > > On Wed, Jun 3, 2009 at 8:10 PM, sheik <sheik...@gmail.com> wrote:
> >
> > > > > Hello android developers..
> >
> > > > >  i am not much familiar with service's and use of aidl...here is
> the
> > > > > scenario i look to put fwd Kindly help on it...Working on android
> sdk
> > > > > 1.1
> >
> > > > > 1) Activity is launched and location updates are taken and they are
> > > > > print on the activity using textview..
> > > > > 2)On click of BACK (arrow key on dev) .. activity goes to destroy
> mode
> > > > > (which i dont want)...and call the service with dispatches the
> > > > > notification with the icon ..Still the location updates are ON..
> > > > > 3)When i click the notification icon..i must get back the same
> > > > > activity which was getting the updates and updated values printed
> on
> > > > > the text view...
> >
> > > > > I wonder is this possible .. i have gone through some apps such as
> My
> > > > > Tracks, Buddy Runner...which works well on this scenario...
> >
> > > > > I hope some android developers give a favorable reply and help in
> > > > > solving the problem...
> >
> > > > > I referred the LocalService and LocalServiceController examples
> from
> > > > > API demo ..but the activity is destroyed on the click of BACK ...
> >
> > > > > Kindly help on this...
> > > > > Regards,
> > > > > Sheik
> > > > > ---------- Forwarded message ----------
> > > > > From: sheik <sheik...@gmail.com>
> > > > > Date: Jun 3, 6:17 pm
> > > > > Subject: Activity to service on click of BACK (arrow key on dev)
> and
> > > > > bring the same activity on click of notification
> > > > > To: Android Developers
> >
> > > > > Hello android developers..
> >
> > > > >  i am not much familiar with service's and use of aidl...here is
> the
> > > > > scenario i look to put fwd Kindly help on it...Working on android
> sdk
> > > > > 1.1
> >
> > > > > 1) Activity is launched and location updates are taken and they are
> > > > > print on the activity using textview..
> > > > > 2)On click of BACK (arrow key on dev) .. activity goes to destroy
> mode
> > > > > (which i dont want)...and call the service with dispatches the
> > > > > notification with the icon ..Still the location updates are ON..
> > > > > 3)When i click the notification icon..i must get back the same
> > > > > activity which was getting the updates and updated values printed
> on
> > > > > the text view...
> >
> > > > > I wonder is this possible .. i have gone through some apps such as
> My
> > > > > Tracks, Buddy Runner...which works well on this scenario...
> >
> > > > > I hope some android developers give a favorable reply and help in
> > > > > solving the problem...
> >
> > > > > I referred the LocalService and LocalServiceController examples
> from
> > > > > API demo ..but the activity is destroyed on the click of BACK ...
> >
> > > > > Kindly help on this...
> > > > > Regards,
> > > > > Sheik
> >
> > > > --
> > > > Regards,
> > > > Sujay
> > > > H. L. Mencken <
> > >http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html>
> > > > - "Nobody ever went broke underestimating the taste of the American
> > > > public."
> >
> > --
> > Regards,
> > Sujay
> > George Bernard Shaw<
> http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html>
> > - "A government that robs Peter to pay Paul can always depend on the
> > support of Paul."
> >
>

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