JMG ALPHA 003

claudiotedesco
Posts: 132
Joined: Thu Jul 31, 2008 12:05 pm

Re: JMG ALPHA 003

Post by claudiotedesco »

Hola Roberto

Te informo que encontre el error, tenia unos paths mal.
Funciona todo perfecto
Gracias y saludos
Claudio
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: JMG ALPHA 003

Post by Rathinagiri »

Wonderful Roberto.

I was also successful in creating a JMG app using Cordova and Android Studio.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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?
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: JMG ALPHA 003

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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.
Attachments
JMGMainDemo.7z
(289.83 KiB) Downloaded 241 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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).
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply