another problem with splash screen example

Put your problem here if it does not fit any of the other categories.

another problem with splash screen example

Postby neel » Mon Feb 18, 2008 5:07 am


1) i have tried copying the same code u have given but keep geting errors


in this line i get the error "R.layout.splashscreen" cannot be resolved. if i change it to R.layout.main then thee error goes away.

2) also i have added a png image to the drawable directory. and i have put that image name in
android:src="@drawable/image.png" in the splashscreen.xml file.

i get the message in console of eclipse that ERROR: Failure processing PNG image C:\workspace\Splash\res\drawable\image.png

please help
Posts: 31
Joined: Fri Feb 15, 2008 5:09 am
Location: San Jose


Re: anotehr error in splash screen example

Postby plusminus » Mon Feb 18, 2008 9:51 am

Hello neel,

referencing resources works without the file ending
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. android:src="@drawable/image"
Parsed in 0.030 seconds, using GeSHi

The error-message is strange, perhaps try another image... :?

Image | Android Development Community / Tutorials
User avatar
Site Admin
Site Admin
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany


Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 14 guests