Page 3 of 4

Re: JMG ALPHA 003

Posted: Thu Apr 14, 2016 4:44 pm
by claudiotedesco
Hola Roberto

Te informo que encontre el error, tenia unos paths mal.
Funciona todo perfecto
Gracias y saludos
Claudio

Re: JMG ALPHA 003

Posted: Thu Apr 14, 2016 6:57 pm
by Roberto Lopez
claudiotedesco wrote:Hola Roberto

Te informo que encontre el error, tenia unos paths mal.
Funciona todo perfecto
Gracias y saludos
Claudio
Me alegro de saberlo. Estoy trabajando en un nuevo release, que espero publicar pronto.

I'm glad to know that. I'm working in a new release, that I hope publish soon.

Re: JMG ALPHA 003

Posted: Fri Apr 15, 2016 4:01 pm
by Roberto Lopez
Hi All,

I've managed to create an application for Android from JMG main demo, using PhoneGap cloud service.

EDIT: I've uploaded a new full-working apk (including AJAX). Look ahead on this thread.

Re: JMG ALPHA 003

Posted: Fri Apr 15, 2016 4:07 pm
by Rathinagiri
Wonderful Roberto.

I was also successful in creating a JMG app using Cordova and Android Studio.

Re: JMG ALPHA 003

Posted: Fri Apr 15, 2016 5:36 pm
by Roberto Lopez
Rathinagiri wrote:Wonderful Roberto.

I was also successful in creating a JMG app using Cordova and Android Studio.
I've started the Cordova installation, but at some point I've realized that it could require a lot of time to get all things working.

Since you've already done... Could be you so kind to post a basic guide?

TIA.

Re: JMG ALPHA 003

Posted: Fri Apr 15, 2016 5:37 pm
by Roberto Lopez
Rathinagiri wrote:Wonderful Roberto.

I was also successful in creating a JMG app using Cordova and Android Studio.
[/quote]

And... does cordova requires changes to index.html to be made to get it working?

Re: JMG ALPHA 003

Posted: Fri Apr 15, 2016 5:45 pm
by Rathinagiri
Sure I will make a basic guide. But as you have mentioned for using Cordova, you should have already installed Android Studio.

I have modified some code and in particular index.html also to make it work. I will check it up and tell you.

Re: JMG ALPHA 003

Posted: Fri Apr 15, 2016 7:02 pm
by Roberto Lopez
Rathinagiri wrote:Sure I will make a basic guide. But as you have mentioned for using Cordova, you should have already installed Android Studio.

I have modified some code and in particular index.html also to make it work. I will check it up and tell you.
Thanks!

Re: JMG ALPHA 003

Posted: Sat Apr 16, 2016 12:55 am
by Roberto Lopez
This is an updated android apk for JMG Main Demo.

All works now (including AJAX demo). You must specify the address of the server were database 'test' (with 'people' table) and php procedures are located. You can do using a textbox I've added to the demo.

Re: JMG ALPHA 003

Posted: Sat Apr 16, 2016 1:08 am
by Roberto Lopez
Something more:

The only thing you need to add to a JMG application, to successfully create an apk from it, is a file called 'config.xml' to the project root folder:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
    <widget xmlns   = "http://www.w3.org/ns/widgets"
        xmlns:gap   = "http://phonegap.com/ns/1.0"
        id          = "com.phonegap.example"
        versionCode = "1" 
        version     = "1.0.0" >

    <!-- versionCode is optional and Android only -->

    <name>JMG Main Demo</name>

    <description>
        An example for JMG on Android. 
    </description>

    <author href="http://www.hmgforum.com" email="">
	
    </author>

   <plugin name="cordova-plugin-whitelist" spec="1" />
   <allow-navigation href="*" />
	
    <platform name="android">
       <preference name="AndroidLaunchMode" value="singleTop"/>
       <preference name="android-minSdkVersion" value="11" />
   </platform>

</widget>
Phonegap allows to build Windows and IOS apps from the same code too, but that requires additional info on 'config.xml' file (I've not tested yet).