Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- LoggingIn();
- }
- public void LoggingIn ()
- {
- if (isNetworkAvailable())
- {
- if (findViewById(R.id.InternetConnection).getVisibility() == View.VISIBLE)
- {
- findViewById(R.id.InternetConnection).setVisibility(View.GONE);
- }
- AttemptLoggingIn();
- }
- else
- {
- findViewById(R.id.InternetConnection).setVisibility(View.VISIBLE);
- LoggingIn();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement