Guest User

Untitled

a guest
Feb 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package com.example.hello_android_sanfoundry;
  2.  
  3. import android.os.Bundle;
  4. import android.app.Activity;
  5. import android.view.Menu;
  6.  
  7. public class MainActivity extends Activity {
  8.  
  9. @Override
  10. protected void onCreate(Bundle savedInstanceState) {
  11. super.onCreate(savedInstanceState);
  12. setContentView(R.layout.activity_main);
  13. }
  14.  
  15. @Override
  16. public boolean onCreateOptionsMenu(Menu menu) {
  17. // Inflate the menu; this adds items to the action bar if it is present.
  18. getMenuInflater().inflate(R.menu.main, menu);
  19. return true;
  20. }
  21.  
  22. }
Add Comment
Please, Sign In to add comment