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();
}
}
hemm... how to add icon for this programm???
ReplyDeleteHi! my rank is Jully. I would like to meemeet good boy :)
ReplyDeleteThis is my homepage [url=]http://jskdh5jkd7djh4.com/[/url]l
Hi! my rank is Jully. I would like to meemeet admissible boy :)
ReplyDeleteThis is my homepage [url=]http://jskdh5jkd7djh4.com/[/url]l