Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set splash screen in window phone 8 Application development

I am new in Window Phone Apps Development .So I just Want to Add Splash Screen When the application launch without using any extra Page navigation for splash screen.

like image 393
Karu Avatar asked Oct 18 '13 13:10

Karu


People also ask

What is splash screen in app development?

Android Splash Screen is the first screen visible to the user when the application's launched. Splash screen is one of the most vital screens in the application since it's the user's first experience with the application.

How do I create a splash screen image?

The most straightforward way to create a simple splash screen was to create a dedicated theme overriding android:windowBackground with a drawable containing branding colors or a bitmap of a logo. The theme was set as an attribute of the launcher activity in AndroidManifest. xml.


2 Answers

If you want to add just single image, then create a pic in the size of 480*800 and name it as SplashScreenImage.jpg and put that image in the root folder.

Done! Splash Screen will be displayed on the app.

If you want to add several images with respect to the screen resolution, then create three pictures in the sizes of 480*800, 768*1280, and 720*1280 and name those pic as

SplashScreenImage.screen-WVGA.jpg,

SplashScreenImage.screen-WXGA.jpg,

SplashScreenImage.screen-720p.jpg and put these pictures in the root folder.

Done! Splash Screen will be displayed on the app with respect to phone's native screen resolution.

NOTE:

To modify the displaying time of SplashScreen, following code may be useful. Paste below code after InitializeComponent();

Thread.Sleep(2000);

It means, the app will be activated after 2000 milli seconds. You can change as per your wish. Hope, this solves your doubt.!!

like image 62
Mohamed Thaufeeq Avatar answered Oct 25 '22 04:10

Mohamed Thaufeeq


See: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769511(v=vs.105).aspx

From this article:

If you’re using a single image, you should add an image file that is 768 × 1,280 and named SplashScreenImage.jpg to your app project. The phone automatically scales the image to the correct size. If you want to provide pixel-perfect splash screens for all resolutions, you can add the following images to the root folder of your app project.

Resolution Dimensions in pixels File name

WVGA 480 × 800 SplashScreenImage.screen-WVGA.jpg

WXGA 768 × 1,280 SplashScreenImage.screen-WXGA.jpg

720p 720 x× 1,280 SplashScreenImage.screen-720p.jpg

You must set the Build Action property of the image(s) to Content.

Each new Windows Phone OS 7.1 project includes a SplashScreenImage.jpg file. To customize the splash screen, you can substitute your own image for the default image. You can replace the default image with any image you choose, but it must be 480 × 800 pixels in size, and it must be named SplashScreenImage.jpg. You must set the Build Action property of the image to Content.

Windows Phone 8 apps load quickly, so a Windows Phone 8 app usually doesn’t need a splash screen. New Windows Phone 8 projects don’t include a default splash screen image file. However, if you want to use a splash screen in your Windows Phone 8 app, add an existing JPG image file to the root folder of your Windows Phone 8 project, and name the file SplashScreenImage.jpg.

like image 26
Emond Avatar answered Oct 25 '22 02:10

Emond