I have setup my app as a Launcher app.
On start, my app plays an animation from Activity Main.
However, this is not "fluid".
After I get the "Android is Starting" message, the screen "flashes" the animation, then the "Home" screen wallpaper is displayed - then the last ~25% displayed.
My Manifest file:
My Activity Main:
I don't know what is causing the animation to "Flash" and then subsequently not play from the begining
On start, my app plays an animation from Activity Main.
However, this is not "fluid".
After I get the "Android is Starting" message, the screen "flashes" the animation, then the "Home" screen wallpaper is displayed - then the last ~25% displayed.
My Manifest file:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="23"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddActivityText(main, <intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>)
B4X:
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
' Animation Splash
Dim vvv As VideoViewExt
Dim w,h As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
vvv.Initialize("vvv")
w = Activity.Width * 1'.5
h = Activity.Height * 1'.5
vvv.LoadVideo(File.DirRootExternal, "/eBuki/eBukiMedia/2sec10inch.mp4")'m4v")
Activity.AddView(vvv,-600dip,0dip,Activity.Width * 3,Activity.Height)
vvv.Play
'End If
End Sub
Sub vvv_Complete
LogColor("Splash Playing Complete" ,Colors.Green)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub