If you use startActivityForResult() you will AWLAYS get a call to onActivityResult() when the activity you called finished. But it's NOT the other intent "calling you back." Please familirize yourself with the activity life cycle documentation.
PS: It is NOT ok to Chat request me or prviate e-mail me. As much as I should enjoy talking to a Guru, I don't. On Jun 26, 3:03 pm, guru sagar <[email protected]> wrote: > Hi Treking, > > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > //finish(); > Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://")); > > startActivityForResult(intent, 0); > > } > > @Override > public void onActivityResult(int requestCode, int resultCode, Intent data) { > > if (resultCode == 0) { > System.out.println("hi am in browser in callback "); > > } > } > > am getting call back here ., and its opening in > inbuilt browser only. can you please clarify this > > > > On Sun, Jun 26, 2011 at 12:24 PM, TreKing <[email protected]> wrote: > > On Sun, Jun 26, 2011 at 1:00 AM, guru sagar <[email protected]>wrote: > > >> Is there any possibility to get call back from the in built browser when > >> we start from our activity > > > No. And please do not assume that using the intent you posted will > > automatically always start the "in built browser". > > > ------------------------------------------------------------------------------------------------- > > 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 [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-developers?hl=en- 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 [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-developers?hl=en

