android intent start a new activity

https:‮w//‬ww.lautturi.com
android intent start a new activity
Intent intent = new Intent(this, newActivity.class);
intent.putExtra(key:,value:);
startActivity(intent);

one line code:

startActivity(new Intent(this, newActivity.class));

startActivity(new Intent(getApplicationContext(), newActivity.class));
Created Time:2017-10-09 23:02:42  Author:lautturi