Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created November 12, 2016 14:08
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/f36b376f069b77af9f608e91222fd6f9 to your computer and use it in GitHub Desktop.
Save tassioauad/f36b376f069b77af9f608e91222fd6f9 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;
if (savedInstanceState == null) {
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