mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	adding a launcher black splash activity
This commit is contained in:
		| @@ -20,15 +20,21 @@ | ||||
|         android:label="@string/app_launcher_name" | ||||
|         android:roundIcon="@mipmap/ic_launcher_round" | ||||
|         android:theme="@style/AppTheme"> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.MainActivity" | ||||
|             android:screenOrientation="portrait" | ||||
|             android:theme="@style/FullScreenTheme"> | ||||
|             android:name=".activities.SplashActivity" | ||||
|             android:theme="@style/SplashTheme"> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.MAIN"/> | ||||
|  | ||||
|                 <category android:name="android.intent.category.LAUNCHER"/> | ||||
|             </intent-filter> | ||||
|         </activity> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.MainActivity" | ||||
|             android:screenOrientation="portrait" | ||||
|             android:theme="@style/FullScreenTheme"> | ||||
|  | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.media.action.IMAGE_CAPTURE"/> | ||||
|   | ||||
| @@ -0,0 +1,13 @@ | ||||
| package com.simplemobiletools.camera.activities | ||||
|  | ||||
| import android.content.Intent | ||||
| import android.os.Bundle | ||||
| import com.simplemobiletools.commons.activities.BaseSimpleActivity | ||||
|  | ||||
| open class SplashActivity : BaseSimpleActivity() { | ||||
|     override fun onCreate(savedInstanceState: Bundle?) { | ||||
|         super.onCreate(savedInstanceState) | ||||
|         startActivity(Intent(this, MainActivity::class.java)) | ||||
|         finish() | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user