java - How to reload web site each time the app is called -


i new android programming , trying find way make app loads web site each time called below code , works great first time if go app 2nd time displays app view , not web site. guess oncreate not right funcation use can please me

public class mysite extends activity {     /** called when activity first created. */     @override     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.main);          string url = "http://www.mysite.com";         uri uri = uri.parse(url);         intent = new intent(intent.action_view, uri);         startactivity(i);      } } 

your app isn't exiting, it's hiding... want onresume() not oncreate()

http://developer.android.com/reference/android/app/activity.html#activitylifecycle


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -