We will use the power of Android Intent. Here is example of the code:
package tnto.info.android.sitelauncher;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class SiteLauncher extends Activity {
Intent intent;
public SiteLauncher(){
String webAddress="http://ipb.ac.id";
intent=new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(webAddress));
}
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startActivity(intent);
finish();
}
}