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

Adobe AIR Development

Reply
New Contributor
Posts: 3
Registered: ‎09-03-2011
My Device: playbook
My Carrier: none

how to turn a website into a playbook app?

hello, 

I am wanting to turn a website into a playbook app, I am really new to devolping and a don't have a clue what to do, please can somebody show me how to turn a website into a playbook app because from what i've seen it is quite simple. 

 

Thank you. 

Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: how to turn a website into a playbook app?

For this you should take a look at WebWorks. You can find the getting started guide on that page.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
New Contributor
Posts: 3
Registered: ‎09-03-2011
My Device: playbook
My Carrier: none

Re: how to turn a website into a playbook app?

thanks i have the webworks sdk but i want a detailed explanation on how to do it because I am new to coding; thanks anyway.
Developer
Posts: 350
Registered: ‎01-21-2011
My Device: Curve 8900 (Personal) / Bold 9650 (Work)
My Carrier: Regional

Re: how to turn a website into a playbook app?

Personally, I hate the appification of the web.

Take a look at this:
http://www.blackberry.com/developers/docs/airapi/1.1.0/qnx/media/QNXStageWebView.html
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: how to turn a website into a playbook app?

Hi connorwigby,

 

Agreed with your fellow forums members, the WebWorks SDK gives you an easy path to taking existing Web assets and transforming them into a standalone BlackBerry application (for both Smartphones and PlayBook).  This can be content you recycle from an exsiting Web site (e.g. images, CSS, JavaScript libraries) or the entire Website itself.

 

In fact, here is the complete source code for the most basic WebWorks application you can create (we call these "web launchers"):

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
		xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.1">
	
	<name>devBlog</name>
	<content src="http://devblog.blackberry.com/"/>	
	<access uri="*" subdomains="true"/>
  
</widget>

 This instructs the WebWorks SDK to produce a Webview container that when launched from the homescreen will immediate load the URL http://devblog.blackbery.com.

 

What I like to encourage developers to do, is use the above example as a starting point for understanding how the WebWorks SDK "works".  The next step of creating your Web application is moving some/all of the relevant Web assets that are deployed on your remote web server "into" the local WebWorks application (so your users can interact with it even when they are offline).

 

Please feel free to ask questions if you need help - lots of great developers on this forum.

 

Adam

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.