Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.drawable.AnimationDrawable;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.google.firebase.database.FirebaseDatabase;
Expand All @@ -33,15 +35,16 @@ protected void onCreate(Bundle savedInstanceState) {
anim.start();

}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);

new DelayTask().execute(); // This will delay the spalsh scrren and redierct to the login/register screen based
//on the ststus of the user.

}
// @Override
// protected void onCreate(Bundle savedInstanceState) {
// super.onCreate(savedInstanceState);
// setContentView(R.layout.activity_splash);
//
// new DelayTask().execute(); // This will delay the spalsh scrren and redierct to the login/register screen based
// //on the ststus of the user.
//
// }

class DelayTask extends AsyncTask<Void,Void,Void>{

Expand Down
10 changes: 8 additions & 2 deletions kute-android-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

buildscript {
repositories {
google()
jcenter()
mavenCentral()
google()
maven {
url "https://maven.google.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
Expand All @@ -17,9 +20,12 @@ buildscript {

allprojects {
repositories {
google()
jcenter()
mavenCentral()
google()
maven {
url "https://maven.google.com"
}
}
}

Expand Down