Try using a theme. You can specify that in the manifest:
<application android:icon="@drawable/icon" android:label="@string/
app_name" android:theme="@style/Theme.Standard">
Then in your theme:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Standard" parent="android:Theme.Light">
<item
name="android:windowBackground">@drawable/background</item>
</style>
</resources>
No code required at all.
An added benefit is the background comes up virtually instantly. A
downside is (I believe) the image stays in memory until the app ends.
I don't believe there is a way to unload it.
-John Coryat
On Aug 8, 12:46 pm, Avtar Khalsa <[email protected]> wrote:
> Hi guys
>
> I am a bit new to android development, and am trying to implement a
> splash screen on top of an existing APK. The idea would be that the
> APK still runs exactly the same as before, but before it does, a
> splash screen displaying the developer's logo comes up for a few
> seconds.
>
> I know this is easy to do directly in the code for the original APK,
> but I am hoping to be able to accomplish it without editing that
> code.
>
> Can anyone point me in the right direction for doing that? I am not
> even sure if it is possible, but it seems like I just need to make a
> new APK file that runs just the splash screen and then calls the other
> application.
>
> Thanks in advance!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en