Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi
Accepted Solution

Problem with super-simple wall-paper setting app

I have a simple app where I'm trying to set the Wallpaper. It's based off the Web-Works example on Github but instead of using a user provided picture I'm using one that is packaged within the app. 

 

I simple have a button that when clicked calls the following function.

 

function setPaper() {
blackberry.system.setWallpaper('img/img1.jpg');
blackberry.ui.toast.show("Wallpaper Set");
};

 

I've posted the simple app on my Dropbox if anyone can take a look and help me out it would be much appreciated!

 

https://dl.dropbox.com/u/32351813/Archive.zip

 

Thanks,

 

P.S.

 

I set the following in the config file

 

<feature id="blackberry.app.orientation">
<param name="mode" value="portrait" />
</feature>

<feature id="blackberry.invoke.card" />
<feature id="blackberry.ui.toast" />
<feature id="blackberry.system" />

<rim:smileytongue:ermissions>
<rim:smileytongue:ermit>access_shared</rim:smileytongue:ermit>
<rim:smileytongue:ermit>use_camera</rim:smileytongue:ermit>
</rim:smileytongue:ermissions>

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Problem with super-simple wall-paper setting app

Figured this one out.

You must refer to the files with

local:///
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.