Created
November 12, 2016 14:08
-
-
Save tassioauad/f36b376f069b77af9f608e91222fd6f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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