Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import android.app.Activity;
  2. import android.os.Bundle;
  3. import co.myapp.AppPreferences;
  4.  
  5. public class Loading extends Activity {
  6. /** Called when the activity is first created. */
  7. @Override
  8. public void onCreate(Bundle savedInstanceState) {
  9. super.onCreate(savedInstanceState);
  10. setContentView(R.layout.lo_loading);
  11. AppPreferences.class.checkInternet()
  12. }
  13. }
  14.  
  15. public class AppPreferences {
  16.  
  17.  
  18. public void checkInternet(){
  19.  
  20. Log.v("Pref", "checking internet");
  21.  
  22. }
  23.  
  24. }
  25.  
  26. @Override
  27. public void onCreate(Bundle savedInstanceState) {
  28. super.onCreate(savedInstanceState);
  29. setContentView(R.layout.lo_loading);
  30. AppPreferences appPrefs = new AppPreferences()
  31. appPrefs.checkInternet()
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement