Hi All,
I am launching browser by code:

                Intent myIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(urlString));
                startActivity(myIntent);

as its working fine.

Now the issue is OEM behavior while launching it. My app is a network
app that registers with a server for some registration data and
depending on response acts accordingly eg if i get a URL in response
launch it otherwise launch default URL.

Case:
Launch my app on android simulator/device. Network communication
starts. While network process is in progress. Press 'Home' button on
device. Wait for some time.(say 10 seconds)

"Behaviour in Android emulator/device ver 1.6:"
Nothing will happen. But when now i click browser icon explicitly the
site I requested(URL from my server) will be displayed.

"Behaviour in Android emulator/device ver 2.2:"
Suddenly browser will launch and will start getting the content for
the URL (that I got from my server and launched browser).

So the difference is how the OEM is launching the activity. A1.6
launched it in background but A2.2 will launch it in foreground.

Can anyone help me can I pass on some parameters in startActivity so
that the behavior is uniform and I can control it rather than OEM
dependent.

Thanks
sam g

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