Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. interface SaveScore {
  2. public void saveScore(int score);
  3. }
  4.  
  5. public class SaveScoreAndroid implements SaveScore {
  6. public void saveScore(int score) {
  7. //Platform specific code goes here
  8. }
  9. }
  10.  
  11. protected void onCreate (Bundle savedInstanceState) {
  12. super.onCreate(savedInstanceState);
  13. AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
  14. initialize(new MyGame(new SaveScoreAndroid()), config);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement