SHARE
TWEET

Untitled

a guest Nov 1st, 2013 34 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class EntityActivity extends Activity{
  2.     @Override
  3.     public void onCreate(Bundle savedInstanceState) {
  4.         super.onCreate(savedInstanceState);
  5.         if (isOnline()) {
  6.                 // ???  
  7.         } else {
  8.             offlineRun(???);
  9.         }
  10.     }
  11. }
  12.  
  13. class MyActivity extends EntityActivity {
  14.     @Override
  15.     public void onCreate(Bundle savedInstanceState) {
  16.         super.onCreate(savedInstanceState);
  17.         setContentView(R.layout.main);
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top