01-14-2013 03:09 PM
I am trying to set device wallpaper, however, i keep getting errors when using the API
I have been following this documentation, regarding setting the device wallpaper:
I am downloading an image from the internet, saving it to device, and then trying to set it as wallpaper. Here is where I set as wallpaper.
bool result = homeScreen.setWallpaper(QUrl("file:///accounts/100
It gives me a couple errors. The first line shows
"undefined reference to `bb:latform::HomeScreen::HomeScreen(QObject*)'"
and the 2nd line shows
"undefined reference to `bb:latform::HomeScreen::setWallpaper(QUrl const&)'"
I am mimicking the documentation exactly, however it still gives me error. I tried cleaning project and all. I also made sure to add
Not sure what to do. Any help would be appreciated.
Solved! Go to Solution.
01-14-2013 07:36 PM
Hi, did you ensure to add the library to your .pro file?
i.e. LIBS += -lbbplatform
You have to make sure you link to it. also you have to add the Library dependency in Momentics. With the root of the project selected do the following:
i'm on a mac so do the equiv. if you're on another platform: SHIFT-CMD-L
Then choose "Standard Blackberry platform Library" add "Blackberry Application Platform" if not already selected.