Skip to content

Instantly share code, notes, and snippets.

@raultm
Created November 18, 2012 22:36
Show Gist options
  • Save raultm/4107911 to your computer and use it in GitHub Desktop.
Save raultm/4107911 to your computer and use it in GitHub Desktop.
Android : Beginner Tips & Snippets
// Call from a Context(e.g. an Activity)
public void openTargetActivity(){
startActivity(new Intent(this, TargetActivity.class))
}
//Don't forget to add the activity in the manifest
<application>
<!-- [...] -->
<activity android:name="com.raulete.beginner.TargetActivity"/>
</application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment