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

hi

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

setContentView(R.layout.splashscreen);

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
neel
Developer
Developer
 
Posts: 31
Joined: Fri Feb 15, 2008 5:09 am
Location: San Jose

Top

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
:arrow:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. android:src="@drawable/image"
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


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

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

Top

Return to Other Coding-Problems

Who is online

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