Skip to content

Instantly share code, notes, and snippets.

@Velmm
Created January 5, 2018 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Velmm/a5137cab151c3eeeb577ce12f9cadc77 to your computer and use it in GitHub Desktop.
Save Velmm/a5137cab151c3eeeb577ce12f9cadc77 to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
User user = new User(1,"velm",25);
Intent i = new Intent(getApplicationContext(),UserActvity.class);
i.putExtra("user",user);
startActivity(i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment