Esempio n. 1
0
 /**
  * Called after we've been unloaded from memory and are restarting. E.g., 1st launch after
  * power-up; relaunch after going Home.
  */
 protected void onStart() {
   super.onStart();
   Log.d(TAG, "onStart");
   SharedPreferences settings = getSharedPreferences(PREFS_NAME, 3);
   if (settings.getInt("currentLayout", currentLayout) == R.layout.snet_main) {
     setLayoutMain();
     currentLayout = R.layout.snet_main;
   } else {
     Log.d(TAG, "Layout is contact");
     setLayoutContact();
     currentLayout = R.layout.snet_contact;
   }
   // save my context so that this app can retrieve it later
   ContextManager.setActivityContext(this);
 }
Esempio n. 2
0
 public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
   // An item was selected. Store that item
   currentSelection = (String) parent.getItemAtPosition(pos);
   Log.d(TAG, "User selected: " + currentSelection);
   ContextManager.setActivityContext(this);
 }
Esempio n. 3
0
 /**
  * When the Update Pictures button is clicked ...
  *
  * @param b
  */
 public void onExchange(View b) {
   Log.d(TAG, "Update Pictures selected");
   setLayoutContact();
   // save my context so that this app can retrieve it later
   ContextManager.setActivityContext(this);
 }