04-14-2011 11:21 PM
I was just walking my dog and i had a small brainfart I figured I'd share.
I imagined how awesome it would be if there could be some small system service that would allow access to some sandboxed directory structure through SFTP in which we could edit application files on the fly. Ideally even with a text editor on the device itself. Just edit a file, save and then relaunch the app to see the changes.
It would be something kind of revolutionary that no other vendor has. It would speed up development enormously. RIM folks, what do you think?
I'd totally LOVE this.
Staff UI Prototyper (read: full-time hacker)
04-15-2011 08:49 AM
Yes this is definitely a good idea, are you looking to simplify your development/deployment process? If so here's how you do it:
1) Deploy you WebWorks resources to your test Web server: http://mytestdomain.com/index.html
2) Create and deploy a WebWorks application to your sim / device, based on the following config.xml document:
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns=" http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="126.96.36.199"> <name>My App</name> <icon src="icon.png"/> <content src="http://mytestdomain.com/index.html"/> <access uri="http://mytestdomain.com/" subdomains="true"> <feature id="blackberry.app" required="true" version="188.8.131.52"/> <feature id="blackberry.invoke" required="true" version="184.108.40.206"/> <feature id="blackberry.system" required="true" version="220.127.116.11"/> <!-- Add any necessary feature elements here --> </access> </widget>
3) Now you only need to deploy the app once. Since the content exists in a remote location, you can simply make changes to your Web assets on your live Web server, and test from your sim / device.
However it sounds like you are looking for a way to develop *from* the PlayBook? Interesting idea Your proposed solution does sound doable, and I'd love to see the results of a prototype. Do you think coding from the device is an effective way to develop apps (or would it be too slow to interact w the virtual keyboard)?
04-15-2011 09:57 AM
Thanks astanley that's really cool. I didn't know that was possible. I'll definitely start working like that from now on.
As for the on-device editing: I don't think it would be useful to do huge chunks of development in that way but it would definitely be great for tweaking/tinkering I think. And the whole aspect of being able to continue some development while sitting on a commuter train / bus etc. sounds pretty awesome to me as well.
Staff UI Prototyper (read: full-time hacker)
04-15-2011 02:41 PM
The on-device development platform occurred to me a week or so ago as well.
The essentials of such a project are fairly simple as you device-hosted mini-IDE doens't need much more than a text editor and a control menu at the most basic level.
Loading the resources you may want for an on-device developed app could be a little more tricky but not greatly so as long as you've got a server you can 'download' the stuff from
I mean, you can link from one page to another within an app so what's to stop your main index being the mini-IDE which then loads the app you're developing on the device?
You'd obviously need to have an 'Exit' function on the app under development which, rather than existing, returned back to your mini-IDE.
OK - it's not going to be Eclipse but it'd be fine while commuting to work or whatever
No worries about virtual keyboards or whatnot - just buy a bluetooth one
I like the thought on the other way of doing this (via a web server). The Simulator it rather a resoure hog so it, like me, your kit is a few years old then running the Simulator all by itself on one machine whilst developing on anpther nicely eradicates the slowdown that offurs when Eclipse and the Simulator are both running (on my PC)
My laptop won't even think of starting the Simulator up
04-15-2011 07:15 PM
Great idea Marcos. I would definitely use on device tools to test and tweak an app. Writing an entire app on the device is probably not something I would be interested in though.
04-15-2011 07:37 PM
If you like I'll put some code together after the PB launch to explore the concept
Simply a proof of concept
I'll GPL it all if we get anything past that
WebOS is on the way so I have to get into that, albeit briefly, in the next month (I still haven't read the 3b2 stuff as I've been so busy on PB projects)
04-15-2011 09:11 PM
You'll like the Web Inspector features then
This can be done on a live device or in the simulator.....
I see that Berry Review has uncovered the features on their pre-release PlayBook
04-16-2011 03:40 AM
I'd definitely love to Develop AIR apps on the PB! but I like the idea of developing either WebWorks or AIR!!
I spend over 2 hours a day riding transit in commuting to work, it could be time well spent if I could develop on-device!!