Created
November 12, 2016 14:04
-
-
Save tassioauad/d95be5778024e4cff5005a5a37d5e64c 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; | |
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