Android Splash Screen only displays on app start via icon click #272

This commit is contained in:
mhutti1 2016-08-06 10:09:50 +01:00
parent e4cdeed17c
commit 5892b66eec
4 changed files with 31 additions and 4 deletions

View File

@ -25,9 +25,9 @@
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:supportsRtl="true">
<activity
android:name=".KiwixMobileActivity"
android:configChanges="orientation|keyboardHidden|screenSize|locale"
android:name=".utils.SplashActivity"
android:theme="@style/AppTheme.Launcher"
android:label="@string/app_name">
<intent-filter>
@ -35,6 +35,14 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".KiwixMobileActivity"
android:configChanges="orientation|keyboardHidden|screenSize|locale"
android:theme="@style/AppTheme"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

View File

@ -32,7 +32,7 @@
<section id="where-do-i-find-content">
<h2>Where is the content?</h2>
<p>Our content is hosted on the <a href="http://kiwix.org/m/">kiwix website</a>.</p>
<p>Our content is hosted on the kiwix website.</p>
<p>They are available as ZIM files. There are <strong>a lot</strong> of them:</p>
<ul>

View File

@ -272,7 +272,6 @@ public class KiwixMobileActivity extends AppCompatActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_PROGRESS);
setTheme(R.style.AppTheme);
super.onCreate(savedInstanceState);
handleLocaleCheck();
setContentView(R.layout.main);

View File

@ -0,0 +1,20 @@
package org.kiwix.kiwixmobile.utils;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import org.kiwix.kiwixmobile.KiwixMobileActivity;
public class SplashActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = new Intent(this, KiwixMobileActivity.class);
startActivity(intent);
finish();
}
}