Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
- Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
- TextView textView = (TextView)findViewById(R.string.hello_world);
- textView.setText("Whaaat!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement