Wednesday, June 26, 2019 ..:: Home ::.. Register  Login

Peter Henry on Facebook  Peter Henry on LinkedIn  Peter Henry on Twitter

All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
   TechTidBits (Blog)  

The fastest splash screen you'll ever make! (for the WP7)

Mar 17

Written by:
Wednesday, March 17, 2010 11:29 PM  RssIcon

My personal splash screenHave you written a splash screen for your application before?  Want to write one for your WP7 app?  Read on for the FASTEST splash screen you'll EVER do!

My personal splash screenPPPPPSSSSTTTTTT  Want to know a little secret?!  Want to know the FASTEST way to make a splash screen for your WP7 app?  COOL!

Create a JPEG image that's 480X800, name it SplashScreenImage.jpg and put it in the root of your application.  Uh,NO!  Don't save that as a PNG and expect it to work, I said JPG!  (ya, you can try, but it didn't work when I did it, haha)

Solution Explorer with the SplashScreenImage.jpg file

This behaves much like the app.ico or app.config does in other Visual Studio applications, it's a magic file for VS to process/do something automagically upon running/compiling your application.  In THIS case it creates your first splash screen for your application!  Beautiful eh?!

Have you EVER created a splash screen faster than that before?  I highly doubt it! LOL  Now that you have one more trick up your sleeves, it's time to grab a coffee and get coding!



Source Code:

Location: Blogs Parent Separator TechTidBits

6 comment(s) so far...

Re: The fastest splash screen you'll ever make! (for the WP7)

One more trick I found out tonight, if you're just cutting'n'pasting any ol'400X800 jpg into your application, make sure to change the Build Action to Content (from the default of Resource), otherwise you could end up frustrated like I was tonight trying to figure out why my 400X800 jpg wasn's showing up. Well, it's cause it's not a Content Build Action.

By phenry on   Sunday, April 04, 2010 10:00 PM

Re: The fastest splash screen you'll ever make! (for the WP7)

PBrooks also has done this too! Some more screen caps there and a vid.

By phenry on   Wednesday, April 07, 2010 2:07 PM

Re: The fastest splash screen you'll ever make! (for the WP7)

Have you seen the splashscreenimage.jpg did not show on WP emulator with Windows Vista install VS2010 WP7 CTP ?
The same project on WIndows 7 with VS2010 WP7 CTP, the splash svreen showed up no problem.

By Ble on   Tuesday, May 11, 2010 1:09 PM

Re: The fastest splash screen you'll ever make! (for the WP7)

Hi Ble. There could be a couple things in play here.

Does the app come up at all? If you see the splash screen FLASH really fast, then I think you have a problem with the known bug about WP7 emulator incapable of leading signed assemblies (ya, I found that one out last night! ggggrrrrrr).

You say it showed up in the emulator under Win7 but not under Vista? Is that true? WOW! I haven't tried this under Vista, sorry, but that would surprise me there are differences in the emulator based on the base OS! WOW! That's a good bug if THAT were true! I would ask that question on the WP7 forums!

Please post back here if/when you find something out! I'd love to read about it. Thanks again for commenting! Much appreciated!

By phenry on   Tuesday, May 11, 2010 1:12 PM

Re: The fastest splash screen you'll ever make! (for the WP7)

The problem that I have with it is that this only works well in portrait orientation. If the user has the phone in landscape orientation when the app is opened this will look very odd unless the image is round or such that it looks roughly the same either way.

By Geoff on   Monday, October 04, 2010 8:58 AM

Re: The fastest splash screen you'll ever make! (for the WP7)

HAHA Great point Geoff! I did think about this but obviously not long enough to blog about it. Thanks for catching that! Maybe I might have caught it if I had my own phone?!!?!?!?! DOH! Sorry, not a shot against you Geoff, just that I really want one and not knowing when they're being released in CAN is an ongoing frustration!

Back to your point. I think the main reason for the lack of orientation change is it's just a simple "autexec.bat" kind of thing (showing my age with a DOS reference eh? LOL). In otherwords, if it's there, it's used, if not present, it's not used.

I see this MUCH more for SL/LOB/business apps than XNA games (not even sure if it's supported in games?).

HAHA, I thought of something, flip the phone upside down and the splashscreen will be upside down too I would imagine? DOH! Oh well, this is a small thing IMHO, I'm sure they'll iron out these kinks later on.

Thanks Geoff for posting, I appreciate it! Are you playing around with WP7 or are you seriously getting into it? Either way, very cool!

By phenry on   Monday, October 04, 2010 9:04 AM

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Add Comment   Cancel 
Copyright 1999-2012 by   Terms Of Use  Privacy Statement