Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. @Override
  2. protected void onCreate(Bundle savedInstanceState) {
  3. super.onCreate(savedInstanceState);
  4. setContentView(R.layout.activity_main);
  5. LoggingIn();
  6. }
  7.  
  8. public void LoggingIn ()
  9. {
  10. if (isNetworkAvailable())
  11. {
  12. if (findViewById(R.id.InternetConnection).getVisibility() == View.VISIBLE)
  13. {
  14. findViewById(R.id.InternetConnection).setVisibility(View.GONE);
  15. }
  16. AttemptLoggingIn();
  17. }
  18. else
  19. {
  20. findViewById(R.id.InternetConnection).setVisibility(View.VISIBLE);
  21. LoggingIn();
  22.  
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement