I am new to Eclipse and androids app.
I want a simple app to Androids phones. User starts this app and will directly been redirected to my homesite www.mypage.com
Can Someone help me? I try to use Eclipse to make this..
I am new to Eclipse and androids app.
I want a simple app to Androids phones. User starts this app and will directly been redirected to my homesite www.mypage.com
Can Someone help me? I try to use Eclipse to make this..
create a new Android project . File New Android Application Project choose defaults and then in your MainActivity class: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
if (savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.add(R.id.container, new PlaceholderFragment()).commit();
}
// add these two lines
Intent browserIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.mypage.com")); startActivity(browserIntent); }