[Android Studio] enginesha:
SplashAcvtivity.java File

package com[.]nijinsha.didyouknow;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import android.os.Handler;

/**
* Created by Digit on 3/17/2016.
*/
public class SplashActivity extends AppCompatActivity {

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

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

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
*/

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

// close this activity
finish();
}
}, SPLASH_TIME_OUT);
}

Manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.nijinsha.didyouknow">

<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true">
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"
android:name=".MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize">
</activity>
</application>

</manifest>

LOG FILE

03-17 14:53:21.490 7053-7053/com.nijinsha.didyouknow E/AndroidRuntime: FATAL EXCEPTION: main

Process: com.nijinsha.didyouknow, PID: 7053

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nijinsha.didyouknow/com.nijinsha.didyouknow.SplashActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2378)

at android.app.ActivityThread.access$800(ActivityThread.java:155)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:136)

at android.app.ActivityThread.main(ActivityThread.java:5433)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)

at dalvik.system.NativeStart.main(Native Method)

Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:340)

at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:309)

at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:273)

at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)

at com.nijinsha.didyouknow.SplashActivity.onCreate(SplashActivity.java:21)

at android.app.Activity.performCreate(Activity.java:5301)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2291)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2378)*

at android.app.ActivityThread.access$800(ActivityThread.java:155)*

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)*

at android.os.Handler.dispatchMessage(Handler.java:102)*

at android.os.Looper.loop(Looper.java:136)*

at android.app.ActivityThread.main(ActivityThread.java:5433)*

at java.lang.reflect.Method.invokeNative(Native Method)*

at java.lang.reflect.Method.invoke(Method.java:515)*