Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Android Application Stop Responding After Splash Screen

    • 0
    • 0
    • 0
    • 2
    • 0
    • 0
    • 0
    • 1.27k
    Answer it

    Recently I am trying to create an android app which is having a splash screen going into a blank screen. But the application is not functioning well and stop responding just after the splash screen when I am trying to load the next screen. Please help me to resolve the issue.

     

    Below are some error details: 

     

    04-12 13:28:30.809 1619-1619/? I/InstallerConnection: connecting...
                                                          
                                                          [ 04-12 13:28:30.812  1307: 1307 I/         ]
                                                          new connection
    04-12 13:28:30.878 1619-1619/? I/InstallerConnection: disconnecting...
                                                          
                                                          [ 04-12 13:28:30.878  1307: 1307 E/         ]
                                                          eof
                                                          
                                                          
                                                          [ 04-12 13:28:30.879  1307: 1307 E/         ]
                                                          failed to read size
                                                          
                                                          
                                                          [ 04-12 13:28:30.879  1307: 1307 I/         ]
                                                          closing connection
    04-12 13:28:32.281 1619-1619/? I/InstallerConnection: connecting...
                                                          
                                                          [ 04-12 13:28:32.281  1307: 1307 I/         ]
                                                          new connection
    04-12 13:28:55.943 1721-1721/com.android.inputmethod.latin W/RichInputConnection: Slow InputConnection: GET_TEXT_BEFORE_CURSOR took 247 ms.
    04-12 13:29:06.520 1619-1619/system_process W/IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection
    04-12 13:30:13.513 2440-2865/com.google.android.gms I/FA-SVC: App measurement is starting up, version: 10298
    04-12 13:30:15.044 2440-2985/com.google.android.gms I/FA-SVC: This instance being marked as an uploader
    04-12 13:31:05.818 2440-2449/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/networkstatistics.sqlite' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
    04-12 13:31:36.235 2440-2449/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/metrics.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
    04-12 13:31:36.241 2440-2449/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/help_responses.db.18' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
    04-12 13:31:36.244 2440-2449/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
    this is my debug logcat

 2 Answer(s)

  • Try this ..............
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash_screen);
            final int SPLASH_DISPLAY_LENGTH = 5000;
            new Handler().postDelayed(new Runnable(){
                @Override
                public void run() {
                    Intent mainIntent = new Intent(Splash_screen.this,Main_View.class);
                    startActivity(mainIntent);
                    finish();
                }
            }, SPLASH_DISPLAY_LENGTH);
        }
    }
    
    
    
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: