[android] error shown in Eclipse

0 Vincent Huang · December 6, 2014
Can someone help me understand the problems shown in the attached figure below?

1. the IDs defined in my xml files are not regonized in the java files. 

2. getApplicationContext().setWallpaper(bmp); tells me that the method setwallpaper(bmp) from the type context is deprecated.


/images/forum/upload/2014-12-06/1d4e4e854e80ec3f5f5e338d615c9d06.png

Post a Reply

Replies

Oldest  Newest  Rating
0 Doug Fresh · December 7, 2014
for number 1. Assuming your code is correct, try cleaning your project and restarting. This will allow for a fresh rebuild.
for number 2. try this:
WallpaperManager.set()
  • 1

Java / Android Development

103,407 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator