I have tried doing a finish after calling startActivity. But this is causing a white screen on my emulator for some time, then the browser is getting launched.
So now I called finish() on onPause and its works fine. Thanks Sam On Feb 2, 11:51 am, SAM <gulati...@gmail.com> wrote: > Hi, > This works for me. I have a further requirement. > > I want the 'close' my application, once I launched the browser. I need > this because I dont' want to see my applicaiton in the task stack if i > press Back from the Browser. > > Thanks > Sam > > On Jan 11, 5:13 pm, jwei512 <jwei...@gmail.com> wrote: > > > > > Try setting something like: > > > Intent myIntent = new Intent(Intent.VIEW_ACTION, > > Uri.parse("http://www.google.com")); //you can make this URL dynamic > > startActivity(i); > > > In the onListItemClick() method of your activity. > > > - jwei > > >http://thinkandroid.wordpress.com > > Examples, Code, and Tutorials > > > On Jan 11, 4:09 am, Manjunatha M <man...@gmail.com> wrote: > > > > Hi folks, > > > I want to List Item in Preference activity. and I want to launch a Browser > > > with a URL which can change dynamically, When I click on that Item. Can > > > anyone let me know how can i Achieve??? > > > > -- > > > Regards, > > > Manjunatha- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- 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