Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread PhoneGap basics
Tue, Feb 18 2014 10:15 AMPermanent Link

Leslie

Hi,

I am having some trouble  with PhoneGap. A few months back I did some testing and it looked all good. Now with the the latest version (3.30)  installed  my test  app often starts with a blank screen.  It depends on what the from contains. So a few question to those who already had success with EWB+PhoneGap:

1. What the  index.html should look like (a working example would be useful)
2. Which version of PhoneGap is working for you?
3  Anything else needs to be considered?

Cheers,
Leslie
Tue, Feb 18 2014 10:16 AMPermanent Link

Leslie

= It depends on what the FORM contains.

Cheers,
Leslie
Tue, Feb 18 2014 12:05 PMPermanent Link

Matthew Jones

My index.html contains:

--------------
<!doctype html>
<html>
<head>
  <title>Loading Interact HE...</title>
  <script>
    window.location='./poll123.html';
  </script>
 <body>
    <p>Loading Interact HE...</p>
 </body>
</html>
--------------

The poll123.html is the normal Elevate output file.

I'm trying to remember if there was anything else, but I don't think so. I set it
up in a virtual machine, and got it going there. The Android virtual devices are
handy to get debug info from IIRC.

My notes on "how to build" say:
--------
You need to check the files into subversion and then use the PhoneGap virtual
machine.

Build the project

Export the Android Application

You need the certificate password from the database
It is used twice
--------


/Matthew Jones/
Tue, Feb 18 2014 1:17 PMPermanent Link

Leslie

Matthew,

you have saved the day. Smile A new  index.html based on yours all it needed.

Thanks a lot,
Leslie

Cheers,
Leslie
Wed, Feb 19 2014 4:26 AMPermanent Link

Matthew Jones

IIRC there is a time limit on how long you have to start your app, so a redirect
makes it fast.

/Matthew Jones/
Fri, Feb 21 2014 4:03 AMPermanent Link

Leslie

Thanks.

An other question: I could not get TAudio  working with PhoneGap. If I load the app to a browser on the same device it works fine. Any experience with that? As always working sample is probably the best and fastest way to get things straight. Smile

Cheers,
Leslie
Fri, Feb 21 2014 4:28 AMPermanent Link

Matthew Jones

Audio was not part of my app so I have no clues to give. Key is that EWB is just
javascript, so you need to find out how to do it in javascript, and then you can
work out how to make it happen in EWB.

/Matthew Jones/
Fri, Feb 21 2014 12:15 PMPermanent Link

Leslie

Ok. Thanks
Image