Last active
October 15, 2016 14:18
-
-
Save Jonsnow21/724d8fbe020f28521cb3a4303493b192 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 MainActivity extends Activity { | |
private SomeFragement sf; | |
void onCreate(){ | |
sf = new SomeFragment(); | |
int newId = sf.getId(); | |
} | |
} | |
public class SomeFragment extends Fragment { | |
int id; | |
int getId() { | |
return id | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment