Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created November 12, 2016 14:04
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 tassioauad/d95be5778024e4cff5005a5a37d5e64c to your computer and use it in GitHub Desktop.
Save tassioauad/d95be5778024e4cff5005a5a37d5e64c to your computer and use it in GitHub Desktop.
public class MyObjectActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_myobject);
int id = 10;
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.fragment_showmyobject, ShowMyObjectFragment.newInstance(id))
.commit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment