Deploying Maqetta projects to Eclipse Android PhoneGap project

790 views
Skip to first unread message

Jack DOS

unread,
Apr 19, 2012, 5:19:09 AM4/19/12
to Maqetta Users
I am trying to develop applications with Maqetta be distributed on
Android devices. My application uses components dojox.mobile

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled</title>
<style>@import "themes/claro/claro.css";@import "app.css";
</style>
<link rel="stylesheet" type="text/css" category="android" href="./
dojo/dojox/mobile/themes/android/android.css"/>
<link rel="stylesheet" href="lib/dojo/dojox/mobile/themes/
buttons.css" type="text/css"/>
<link rel="stylesheet" href="lib/dojo/dojox/mobile/themes/
domButtons.css" type="text/css"/>
<style>@import "themes/claro/claro.css";@import "app.css";@import
"style.css";
</style>
<script type="text/javascript" src="maqetta/maqetta.js"></script>
<script type="text/javascript" src="maqetta/States.js"></script>
<script type="text/javascript" src="lib/dojo/dojo/dojo.js"
djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
require(["dojox/mobile"]);
require(["dojox/mobile/deviceTheme"]);
require(["dojox/mobile/compat"]);</script>
<meta name="viewport" content="width=device-width, initial-
scale=1.0, user-scalable=no"></meta>
</head>
<body class="claro" data-maqetta-device="android_340x480"
dvFlowLayout="true" data-davinci-ws="collapse" id="myapp">
<div id="View_1" data-dojo-type="dojox.mobile.View" style="height:
100%;" selected="selected">
<h1 label="Heading" data-dojo-type="dojox.mobile.Heading"></h1>
<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
<li data-dojo-type="dojox.mobile.ListItem" moveTo="View_2">
Item 1</li>
<li data-dojo-type="dojox.mobile.ListItem">
Item 2</li>
</ul>
</div>
<div id="View_2" data-dojo-type="dojox.mobile.View" style="display:
none; height: 100%;">
<h1 label="Heading 1" data-dojo-type="dojox.mobile.Heading"
moveTo="View_1" back="Home"></h1>
</div>

I have exported the Maqetta project with dojo library and imported in
the Eclipse project with PhoneGap library. When I run the poject on
Android 2.3 simulator, the app does not work ed it no read dojo
library.
I have read that there are problems with the Dojo libraries as they
are exported from Maqetta, because they contain files that start with
underscores, see

https://github.com/maqetta/maqetta/wiki/Deploying-Maqetta-projects-to-PhoneGap

I would like to know what is the right workaround to solve this
problem for create Android native App with Maqetta e PhoneGap.
Let me know if you are working on Maqetta to solve this problem.

Thanks.
Jack

Jon Ferraiolo

unread,
Apr 19, 2012, 7:41:14 AM4/19/12
to Maqetta Users
Jack,
I'm not the expert on this , but our expert in this area is in-and-out
this week, so I'll try my best to respond. Have you seen our wiki page
on deploying to PhoneGap?

https://github.com/maqetta/maqetta/wiki/Deploying-Maqetta-projects-to-PhoneGap

I'm not sure that wiki page provides all of the information you need.
It says "A manual build of Dojo dependencies on your page may solve
this problem". The "manual build" is a hyperlink to this page:

https://github.com/maqetta/maqetta/wiki/Optimizing-and-Deploying-your-Dojo-based-page

After reading those pages, I'll bet your response will be something
like "what a pain!". There are multiple things in the works on both
the Dojo side and Maqetta side to make all of this 'deploy to Android'
a whole bunch easier, but I'm not sure about the details or the timing
of when these easier steps will be available. (Although I would hope
that key improvements would be available within a couple of months)

At this point, I'll have to leave further help to other members of the
Maqetta team.

Jon Ferraiolo
> https://github.com/maqetta/maqetta/wiki/Deploying-Maqetta-projects-to...

Adam L. Peller

unread,
Apr 19, 2012, 8:13:49 AM4/19/12
to maqett...@googlegroups.com
We are working to automate the build step in a future Maqetta release, which is generally a good idea for running Dojo-based applications anyway, but in the meantime you are left with those manual steps to make your app work on PhoneGap/Android.  It's unfortunate that Google has not responded to the underscore bug.

Let us know if you run into any trouble.

Jack DOS

unread,
Apr 19, 2012, 9:04:37 AM4/19/12
to Maqetta Users
Could I know when you will implement the functionality to
automatically build the Dojo libraries for Android / Maqetta?

Thanks,
Jack

Adam L. Peller

unread,
Apr 20, 2012, 8:53:59 AM4/20/12
to maqett...@googlegroups.com
I'm working on something for the next milestone.

Jack DOS

unread,
May 23, 2012, 3:15:42 PM5/23/12
to Maqetta Users
Can I know when (which month) will be implemented this feature?

On 20 Apr, 14:53, "Adam L. Peller" <a...@peller.org> wrote:
> I'm working on something for the next milestone.
>

Adam L. Peller

unread,
May 23, 2012, 6:20:22 PM5/23/12
to maqett...@googlegroups.com
I'm expecting to have it working in the coming weeks (June).  Expect to see it in the next milestone, or you can look for the nightly builds.

Jack DOS

unread,
May 24, 2012, 6:34:45 AM5/24/12
to Maqetta Users
There is a branch on GitHub for this feature?

On 24 Mag, 00:20, "Adam L. Peller" <a...@peller.org> wrote:
> I'm expecting to have it working in the coming weeks (June).  Expect to see
> it in the next milestone, or you can look for the nightly builds.
>

Adam L. Peller

unread,
May 24, 2012, 10:13:49 AM5/24/12
to maqett...@googlegroups.com
Richard Backhouse has a fork of Maqetta on his github with Zazl support (zazl.org)


This will do on-the-fly optimization for previews and eventually may also help optimize code running within Maqetta itself.  The integration with the Dojo Web Builder is not yet on a public branch.

-Adam

Adam L. Peller

unread,
May 24, 2012, 12:50:56 PM5/24/12
to maqett...@googlegroups.com
Oh, I should also point out, the Android underscore bug has finally been fixed.   No idea when it will find its way into a release.

Jack DOS

unread,
May 28, 2012, 5:32:31 AM5/28/12
to Maqetta Users
In the next milestone of Maqetta (Maqetta Preview 6):
1. Can I export dojo libraries optimized and compatible with Android?
2. Can I downloading and copying the workspace in eclipse PhoneGap
project to generate a Android app that working?

Thanks

On 24 Mag, 18:50, "Adam L. Peller" <a...@peller.org> wrote:
> Oh, I should also point out, the Android underscore bug has finally been
> fixed.   No idea when it will find its way into a release.
>
> On Thu, May 24, 2012 at 10:13 AM, Adam L. Peller <a...@peller.org> wrote:
>
>
>
>
>
>
>
> > Richard Backhouse has a fork of Maqetta on his github with Zazl support (
> > zazl.org)
>
> >https://github.com/zazl/maqetta
>
> > This will do on-the-fly optimization for previews and eventually may also
> > help optimize code running within Maqetta itself.  The integration with the
> > Dojo Web Builder is not yet on a public branch.
>
> > -Adam
>

Adam L. Peller

unread,
May 28, 2012, 8:55:34 AM5/28/12
to maqett...@googlegroups.com
On Mon, May 28, 2012 at 5:32 AM, Jack DOS <jackdos....@gmail.com> wrote:
In the next milestone of Maqetta (Maqetta Preview 6):
1. Can I export dojo libraries optimized and compatible with Android?

Yes.  While it's not optimized, code generated by Maqetta should run on Android today as a web application, correct?
 
2. Can I downloading and copying the workspace in eclipse PhoneGap
project to generate a Android app that working?

Yes, with optimized Dojo code, the builder should eliminate files beginning with "_" which should avoid the bug mentioned previously.  Again, that bug has since been fixed, so it's possible the next release of the Android tools will address your problem.

Another short-term fix for you: you might be able to use the latest Dojo Web Builder site to generate optimized Dojo for your Android application and manually replace the copy of Dojo in your downloaded workspace.

-Adam

Antonio Cinque

unread,
May 28, 2012, 9:58:48 AM5/28/12
to Maqetta Users
Actually I have verified that a manual build of dojo libraries does
not resolve the problem of Deploying Maqetta projects with simple
EdgeList component to Eclipse Android PhoneGap project.
Do you have an Example of a manual build profile for a tweet Dojo App
that I can deploy on Eclipse Android PhoneGap project?

Tks,
Antonio

On 28 Mag, 14:55, "Adam L. Peller" <a...@peller.org> wrote:

Adam L. Peller

unread,
May 29, 2012, 9:19:01 AM5/29/12
to maqett...@googlegroups.com
Antonio,

Because the EdgeToEdgeList is included in mobile.js, the standard profile (standard.profile.js) should be all you need.

Can you tell me a bit more about the problem you see?  Does your page load at all?  Have you tried loading it in a browser and looking at the network logs to make sure nothing is triggering the Android underscore bug?  Did you manually combine all of the require statements at the top of the page?

Adam

Jack DOS

unread,
May 31, 2012, 8:19:54 AM5/31/12
to Maqetta Users
Sorry,
I saw that, in version Preview 6, the functionality that
allows you to create a smaller version of the dojo library for support
Android/PhoneGap applications
was not included as it was announced.

Jack


On 24 Mag, 00:20, "Adam L. Peller" <a...@peller.org> wrote:
> I'm expecting to have it working in the coming weeks (June).  Expect to see
> it in the next milestone, or you can look for the nightly builds.
>

Adam L. Peller

unread,
May 31, 2012, 8:43:52 AM5/31/12
to maqett...@googlegroups.com
Jack, by next milestone, I meant preview 7. We had already completed work on preview 6 (released in May).   Sorry for any confusion. Preview 7 will take a couple of months, but you should expect to see checkins during the month of June.

Adam L. Peller

unread,
May 31, 2012, 8:48:11 AM5/31/12
to maqett...@googlegroups.com
Please note that the version of Dojo in the workspace is already built and may be sufficient for some dojox/mobile applications to run on Android.   I published my notes on the wiki [1] for how I was able to get maqetta apps to work with Android manually.  The provided Dojo build is often sufficient, but you also have to selectively download elements in your workspace to keep the size under the 10MB minimum.  (e.g. don't include unused libraries like yui, jquery)

Adam

Adam L. Peller

unread,
May 31, 2012, 1:55:59 PM5/31/12
to maqett...@googlegroups.com
You might also try using build.dojotoolkit.org to build a custom "dojo.js" for your app.  This is the builder we're using for our next milestone, but you can access the web service directly.  I'd be curious to know how well it works for you.  I'm working with the author now to make tweaks and better handle the content Maqetta is producing.

1) Do a preview of your app in Maqetta
2) Copy the url
3) Go to build.dojotoolkit.org and choose "auto-analyse"
4) Paste the url
5) Hit the "analyse" button

This should come back with a list of dependencies, then you can hit the "include" button and then the "build" button.  If it fails along the way, unfortunately, it's not very good about providing error messages.  For example, if the analyse step fails, it often will just re-enable the analyse button.  What you should get is a zip download.  Extract the dojo.js from that zip and replace the one Maqetta gives you when you download your workspace.  You can ignore all the other stuff in the zip file.

Note also that content created prior to Preview 6 may need to be tweaked a bit by hand to work.

Let me know how it goes.

Adam

Jack DOS

unread,
Jun 10, 2012, 5:35:10 AM6/10/12
to Maqetta Users
Adam,

I have downloaded the Preview 6.0.1.
I tried to execute the steps that you mentioned using the file
Sample-3-mobile.html
included in the draft of default Maqetta Preview 6.
In this way I got an unexpected error and not indicative.

Thanks,
Jack

On 31 Mag, 19:55, "Adam L. Peller" <a...@peller.org> wrote:
> You might also try using build.dojotoolkit.org to build a custom "dojo.js"
> for your app.  This is the builder we're using for our next milestone, but
> you can access the web service directly.  I'd be curious to know how well
> it works for you.  I'm working with the author now to make tweaks and
> better handle the content Maqetta is producing.
>
> 1) Do a preview of your app in Maqetta
> 2) Copy the url
> 3) Go to build.dojotoolkit.org and choose "auto-analyse"
> 4) Paste the url
> 5) Hit the "analyse" button
>
> This should come back with a list of dependencies, then you can hit the
> "include" button and then the "build" button.  If it fails along the way,
> unfortunately, it's not very good about providing error messages.  For
> example, if the analyse step fails, it often will just re-enable the
> analyse button.  What you should get is a zip download.  Extract the
> dojo.js from that zip and replace the one Maqetta gives you when you
> download your workspace.  You can ignore all the other stuff in the zip
> file.
>
> Note also that content created prior to Preview 6 may need to be tweaked a
> bit by hand to work.
>
> Let me know how it goes.
>
> Adam
>
> On Thu, May 31, 2012 at 8:48 AM, Adam L. Peller <a...@peller.org> wrote:
>
>
>
>
>
>
>
> > Please note that the version of Dojo in the workspace is already built and
> > may be sufficient for some dojox/mobile applications to run on Android.   I
> > published my notes on the wiki [1] for how I was able to get maqetta apps
> > to work with Android manually.  The provided Dojo build is often
> > sufficient, but you also have to selectively download elements in your
> > workspace to keep the size under the 10MB minimum.  (e.g. don't include
> > unused libraries like yui, jquery)
>
> > Adam
>
> > [1]
> >https://github.com/maqetta/maqetta/wiki/Deploying-Maqetta-projects-to...
>
> > On Thu, May 31, 2012 at 8:43 AM, Adam L. Peller <a...@peller.org> wrote:
>
> >> Jack, by next milestone, I meant preview 7. We had already completed work
> >> on preview 6 (released in May).   Sorry for any confusion. Preview 7 will
> >> take a couple of months, but you should expect to see checkins during the
> >> month of June.
>

Adam L. Peller

unread,
Jun 10, 2012, 10:35:31 PM6/10/12
to maqett...@googlegroups.com
Jack - I just tried and it worked for me, but I forgot one important step... for pages where the Maqetta preview shows a device silhouette, as is that case of this page, you'll need to extract the inner URL to send to the web builder, e.g. on my account, previewing the Sample3-Mobile.html on maqetta.org yields this url


but you'll want just the part after the file= to get the actual HTML page and use that for the "auto-analyse" input


If that still fails, let me know if there's any info at all in the network panel, or perhaps what time you ran the command and I'll have someone check the logs  The Dojo Web Builder is not very good about error reporting to the client.  You can try using my url, above, also, and see if it works for you.

-Adam

Rubi

unread,
Jun 14, 2012, 3:50:33 PM6/14/12
to maqett...@googlegroups.com
Hi,

Unfortunately this is still not working.. let me describe what I have already attempted at this week:
1. First, I attempted my own simple web page with only 2 tabs and a button. Did not succeed deploying it to device.
2. I tried building dojo.js manually, after some day or two of work I managed to get something out of the builder, but it still did not work.
3. I than reverted to the "simple mobile sample" that comes with Maqetta, no success.
4. Ok, I studied some more, and found out there's a web builder. Ha, I thought! how did I miss that.. It failed analysing.
5. Gee, that Maqetta piece of software is just what I need. I JUST GOT TO TRY HARDER :) It just might solve the hunger in Africa or something..
6. I learned some more. Checked this forum, and the dojo support forum for one or two days (at least I got payed for this .. god forgive me)
7. I finally found out that: Dojo 1.7.1 uses _base.* were dojo 1.7.2 don't. So, I can try as much as I want, but nothing will come out from this.
    In fact Android Firefox does show everything perfectly, but I must have it in the native WebKit, so I can embed the thing in a MoSync/Marmalade app.
8. But heyyyy, I am a ex Nokia/Symbian developer... I am used to being in a state of suffering.. so, I will just ask again:

Is there a way, today (or at least before 1.8 on August..) to get Maqetta to work (not perfectly, just the basics) on android?

Thanks,
Rubi

Adam L. Peller

unread,
Jun 14, 2012, 4:00:00 PM6/14/12
to maqett...@googlegroups.com
Honest, Dojo 1.7.1 and 1.7.2 have the *exact* same APIs and files.  1.7.2 is a drop-in replacement for 1.7.1.  Perhaps you did not have a complete copy of 1.7.2?

When you say "deploying it" to the device, what method did you use?  Have you tried just browsing to the application in a browser on the device, perhaps bookmarking it?   Or are you using phonegap/cordova?  Running the Dojo build tool will make it load much faster in a browser, and is required for incorporating in a native app due to the aforementioned underscore bug in the Android tools.

If you can provide some details or examples, perhaps I can help.  The Dojo Web Builder, unfortunately, does not produce any error messages, but if we report a particular test case to the developer he can look it up in his logs and find out what's going on.

Adam

Rubi

unread,
Jun 14, 2012, 4:10:12 PM6/14/12
to maqett...@googlegroups.com
What I did was pretty straight forward:
1. Downloaded Maqetta Preview 6, and actually also the nightly build (8 of june)
2. Downloaded the trunk of the dojo web builder sources
3. For the DWB to work, I downloaded also Maven 3.0.4
4. I am using Java 1.7, alternatively I also tried 1.6.27 and 1.6.31 (JDKs)
5. I opened a web preview of the simple mobile application sample (as is did not touch) and copied everything that is on the right of html= (in the middle of the line like was described in one of the threads in the forum.
6. I put that link in the analyze tab of DWB (which ran locally on my PC)
7. The analyze partly succeeded, because it has managed to collect the requirements. But build has failed with some exception "map == null" or something. I could see that in the console of the DWB server.
8. Now, what I could see in the list of required items in the DWB is 4 _base.<somthing> rows. And I could not find these in the 1.7.2 sources of dojo toolkit. I believe this is when I just gave up, because the dojo version in Maqetta Preview 6 is 1.7.1. and I did see that there is a problem with a number of libraries starting with underscore.

Hope you followed ;)

Adam L. Peller

unread,
Jun 14, 2012, 4:51:27 PM6/14/12
to maqett...@googlegroups.com
Ok, I have no experience installing DWB locally.  Perhaps there's some sort of problem with your local DWB install, or perhaps you have a slightly different version of DWB from what I've tested.  Have you tried using the public DWB instance at build.dojotoolkit.org?  Passing a url to that service won't work unless your installation of Maqetta is outside a firewall.  For my test, I used the public maqetta.org instance, analyzing this url representing the sample from my workspace (feel free to try it as well)


You could verify that this works on build.dojotoolkit.org or run it against your local DWB.

When you say there is no _base directory, where are you seeing this?  Here's a reference to the sources:


I'd be interested in following up on the DWB error you're seeing.  Perhaps you can send me the full error text by e-mail?

-Adam

Rubi

unread,
Jun 14, 2012, 5:20:41 PM6/14/12
to maqett...@googlegroups.com
When I installed the local DWB I didn't create a custom build package but rather just copied the /packages/ folder (a required procedure?) straight from
dojo-dwb\src\main\config\packages
to:
C:\Dev\dojo-dwb\src\main\webapp\WEB-INF\config\packages
My run.bat file
cd ..\dojo-dwb
start /b mvn -Ddojo.source=..\dojo-release-1.7.2-src jetty:run
"C:\Program Files (x86)\Mozilla Firefox\firefox" -new-window http://localhost:8080


In the instructions of the DWB deployment, I say that I should run:
dojo-dwb\src\main\resources\package_scripts\generateNewPackageMetaData.js
.. if I wanted a custom build, which I don't. I wanted the standard.

Rubi

unread,
Jun 14, 2012, 5:39:58 PM6/14/12
to maqett...@googlegroups.com
Hmmm, the remote builder works fine ! So this is an issue of my local install..
Yet, I can't get the page to appear as it should (in preview), even in firefox.
My steps:
I used the Maqetta.org editor, and downloaded the workspace (I checked lib/maqetta only, because the rest should be in the dojo.js / theme from the builder right?)
I used the online builder, which successfully created the dojo.js and theme folder. I copied the dojo.js into lib/dojo/dojo/dojo.js.
I now just copied the following described folder to the phone:

./lib (with dojo/dojo/dojo.js)
./themes (with the carlo theme)
./Sample3-Mobile.html

Trying to use the phone browser/firefox did not display properly.

Should I add phonegap manually ??

Rubi

unread,
Jun 14, 2012, 6:07:48 PM6/14/12
to maqett...@googlegroups.com
Online phonegap build failed the same..
So, now I got the dojo.js but still I cannot see this working..

Jack DOS

unread,
Jun 16, 2012, 8:17:34 AM6/16/12
to Maqetta Users
Adam,
I have used the link http://maqet ta.org:55556/maqetta/user/
apel...@us.ibm.com/ws/workspace/project1/Sample3-Mobile.html in Dojo
Web Toolkit.
I have downloaded from the Dojo Web Toolkit the files:
custom_layer.js
dojo.js
dojo.js.uncompressed.js

How can I use these files with the file Sample3-Mobile.html to create
an application that works on firefox and I can use for PhoneGap on
Android????

Thanks,
Jack

On 15 Giu, 00:07, Rubi <r...@mailvision.com> wrote:
> Online phonegap build failed the same..
> So, now I got the dojo.js but still I cannot see this working..
>
>
>
>
>
>
>
> On Friday, June 15, 2012 12:39:58 AM UTC+3, Rubi wrote:
>
> > Hmmm, the remote builder works fine ! So this is an issue of my local
> > install..
> > Yet, I can't get the page to appear as it should (in preview), even in
> > firefox.
> > My steps:
> > I used the Maqetta.org editor, and downloaded the workspace (I checked
> > lib/maqetta only, because the rest should be in the dojo.js / theme from
> > the builder right?)
> > I used the online builder, which successfully created the dojo.js and
> > theme folder. I copied the dojo.js into lib/dojo/dojo/dojo.js.
> > I now just copied the following described folder to the phone:
>
> > ./lib (with dojo/dojo/dojo.js)
> > ./themes (with the carlo theme)
> > ./Sample3-Mobile.html
>
> > Trying to use the phone browser/firefox did not display properly.
>
> > Should I add phonegap manually ??
>
> > On Friday, June 15, 2012 12:20:41 AM UTC+3, Rubi wrote:
>
> >> When I installed the local DWB I didn't create a custom build package but
> >> rather just copied the /packages/ folder (a required procedure?) straight
> >> from
> >> *dojo-dwb\src\main\config\packages*
> >> to:
> >> *C:\Dev\dojo-dwb\src\main\webapp\WEB-INF\config\packages*
> >> *My run.bat file**
> >> cd ..\dojo-dwb
> >> start /b mvn -Ddojo.source=..\dojo-release-1.7.2-src jetty:run
> >> "C:\Program Files (x86)\Mozilla Firefox\firefox" -new-window
> >>http://localhost:8080*
>
> >> In the instructions of the DWB deployment, I say that I should run:
> >> *
> >> dojo-dwb\src\main\resources\package_scripts\generateNewPackageMetaData.js
> >> *
> >> .. if I wanted a custom build, which I don't. I wanted the standard.
>
> >> On Thursday, June 14, 2012 11:51:27 PM UTC+3, Adam L. Peller wrote:
>
> >>> Ok, I have no experience installing DWB locally.  Perhaps there's some
> >>> sort of problem with your local DWB install, or perhaps you have a slightly
> >>> different version of DWB from what I've tested.  Have you tried using the
> >>> public DWB instance at build.dojotoolkit.org?  Passing a url to that
> >>> service won't work unless your installation of Maqetta is outside a
> >>> firewall.  For my test, I used the public maqetta.org instance,
> >>> analyzing this url representing the sample from my workspace (feel free to
> >>> try it as well)
>
> >>> http://maqetta.org:55556/maqetta/user/apel...@us.ibm.com/ws/workspace/project1/Sample3-Mobile.html
>
> >>> You could verify that this works on build.dojotoolkit.org or run it
> >>> against your local DWB.
>
> >>> When you say there is no _base directory, where are you seeing this?
> >>>  Here's a reference to the sources:
>
> >>>http://download.dojotoolkit.org/release-1.7.2/dojo-release-1.7.2/dojo...
>
> >>> I'd be interested in following up on the DWB error you're seeing.
> >>>  Perhaps you can send me the full error text by e-mail?
>
> >>> -Adam
>
> >>>>>>>http://maqetta.org:55556/**maqet**ta/?preview=1&device=**iphone&**
> >>>>>>> file=http://maqetta.**org:55556/**maqetta/user/**apel...@us.ibm.**
> >>>>>>> com/ws/**workspace/project1/**Sample3-**Mobile.html<http://maqetta.org:55556/maqetta/?preview=1&device=iphone&file=http://maqet ta.org:55556/maqetta/user/apel...@us.ibm.com/ws/workspace/project1/Sample3-Mobile.html>
>
> >>>>>>> but you'll want just the part after the file= to get the actual HTML
> >>>>>>> page and use that for the "auto-analyse" input
>
> >>>>>>> http://maqetta.org:55556/**maqet**ta/user/apel...@us.ibm.**com/ws/**
> >>>>>>> workspace/project1/**Sample3-**Mobile.html<http://maqetta.org:55556/maqetta/user/apel...@us.ibm.com/ws/workspace/project1/Sample3-Mobile.html>
> ...
>
> leggi tutto

Adam L. Peller

unread,
Jun 16, 2012, 9:25:03 AM6/16/12
to maqett...@googlegroups.com
Jack, if you create a download of your workspace (minus unused packages like yui, jquery-ui, clipart, etc.) you then can substitute the dojo.js that you got from the Dojo Web Builder for the one in the zip under lib/dojo/dojo/dojo.js.  That will significantly reduce the number of .js files brought down over the network when you load your app, which is a significant performance factor, particularly on mobile connections.  Try running this on a desktop browser first to confirm it works, then you should be able to bring all that content over to your mobile device via a phonegap build as I had documented on the wiki.

As Rubi has pointed out, this is still far more content on disk (and therefore in your native app) than you need.   We need to work on reducing the dependencies in the download and build, but for now you'd have to manually craft a smaller set by looking at the network panel and determining which files are needed.

-Adam
Reply all
Reply to author
Forward
0 new messages