Help with splash screen

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 2

Oct 10, 2017, 12:28:26 PM via Website

i try to add splash screen in my project and insert some admob ad code
but i have some error
here is my project
For splash screen i try this code
and few more but all of them give me some error
this source
give me this errors .
Can somebody help me
Error:(16, 32) error: cannot find symbol variable activity_splash
Error:Execution failed for task ':livewallpaper:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

package com.customlivewallpapercreator.live_wallpaper.amin;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreen extends Activity {

// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;

protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_splash); - --- the error

   new Handler().postDelayed(new Runnable() {

        * Showing splash screen with a timer. This will be useful when you
        * want to show case your app logo / company

       public void run() {
           // This method will be executed once the timer is over
           // Start your app main activity
           Intent i = new Intent(SplashScreen.this, MainActivity.class);

           // close this activity



  • Forum posts: 2

Oct 10, 2017, 12:58:33 PM via Website

and now this code is working :)
before give me error :)

i can make a build but app is crashing
in debug give me this
Error running SplashScreen: The activity must be exported or contain an intent-filter

— modified on Oct 10, 2017, 1:09:47 PM

Recommended by NextPit