Source language: Translate to:

My first app...

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

My first app...

Postby David de Argentina » Thu Jan 22, 2015 11:06 am

Hi all,

Thanks Dave, awesome !!!

Here is my first app.

The download link is

http://www.neobook.com.ar/myapp.zip

Very simple, only display some variable objects (RadioButtons, InputBox, CheckBox) values.

AppBuilder has compiled fine, but when upload it at phonegap, i receive an error, and the apk is not generated.

Error is : "Error - Malformed config.xml"

here is the log file:

Code: Select all
Build Date: 2015-01-22 04:53:31 +0000
----------------------------------------------
debug: Creating Cordova project for the Android platform:
   Path: ../../../../../../project
   Package: com.en_ayunas_yahoo.com.ar.SecondProgram
   Name: MyFirstApp
   Android target: android-19
Copying template files...
Running: android update project --subprojects --path "../../../../../../project" --target android-19 --library "CordovaLib"
Resolved location of library project to: /project/CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'MyFirstApp'.
If you wish to change it, edit the first line of build.xml.
Added file ../../../../../../project/build.xml
Added file ../../../../../../project/proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file ../../../../../../project/CordovaLib/build.xml
Added file ../../../../../../project/CordovaLib/proguard-project.txt

Project successfully created.


I downloaded the html5toapk program, and the apk is generated normally.
The only tip is apk is 18 MB size (and uses 50MB ram) !

My App was tested on :

Sony Xperia U, running Android 4.04 and works fine.
LG Optimus One p500h, running Android 2.21, and does not work.

Any ideas about error ?

Thanks in advance,
David de Argentina

Added later:
MyApp runs fine into debugger under Win XP SP3 / IE8.
Some console js errors are reported, but program runs fine.
User avatar
David de Argentina
 
Posts: 1562
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: My first app...

Postby David de Argentina » Thu Jan 22, 2015 11:26 am

html5 programmers:

Are there any way to insert some html (webpage) stuff into the program directly ?

How ?

Thanks in advance,
David de Argentina
User avatar
David de Argentina
 
Posts: 1562
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: My first app...

Postby Neosoft Support » Thu Jan 22, 2015 11:28 am

Error is : "Error - Malformed config.xml"


Sorry about that. There does seem to be something wrong with the config.xml file generated by the compiler. I think the specs may have changed very recently. I'll try to release a fix later today.

Are there any way to insert some html (webpage) stuff into the program directly ?


Yes, you can add html code to the container object's "html" property.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: My first app...

Postby David de Argentina » Thu Jan 22, 2015 12:31 pm

Dave,

Yes, you can add html code to the container object's "html" property.


it works when you <iframe src="http://www.yourwebpage.com"></iframe> the address

My 0.01
David de Argentina
User avatar
David de Argentina
 
Posts: 1562
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: My first app...

Postby David de Argentina » Thu Jan 22, 2015 10:12 pm

Thanks Dave for the update.

Now, the phonegap compile is ok.
The apk runs ok in Sony Xperia U / Android 4.04 and LG Optimus One p500h / Android 2.21

The apk is near 420 kb, and can be downloaded at

http://www.neobook.com.ar/files/MyFirstApp.zip

please, tell me if apk runs fine in your mobile.

I had added some stuff to myapp.
Now, i can select between two websites (Neosoftware.com & Neobook.com.ar) and display the webpage into the screen

Tips for Dave:

In LG Optimus One p500h / Android 2.21, the AlertBox is displaying outside the screen and the Ok button is never visible.

Image

The phone is native 320 x 480 pixels.

Thanks again !

David de Argentina
User avatar
David de Argentina
 
Posts: 1562
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: My first app...

Postby Neosoft Support » Fri Jan 23, 2015 11:53 am

Looks like something is wrong with the AlertBox. I'll check it out.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: My first app...

Postby David de Argentina » Fri Jan 23, 2015 4:28 pm

Hi Dave,

I have a <div> tag that shows an Iframe.

Iframe content is displayed well.

I have a button that starts this actions:

Syntax: [ Download ] [ Hide ]
Using Javascript Syntax Highlighting
beginjs
  var myIFrame = document.getElementById("MyIframe");
  alert(myIFrame);
  var content = myIFrame.contentWindow.document.body.innerHTML;
  alert(content);
endjs
Parsed in 0.003 seconds, using GeSHi 1.0.8.10


First alert display [object HTMLIframeElement]
Second alert does not appairs. Seems to be an error.

I had checked and rechecked the syntax of the javascript, and looks good,

Perhaps there are any wrong in the javascript library ?

Thanks in advance,
David de Argentina
User avatar
David de Argentina
 
Posts: 1562
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: My first app...

Postby Neosoft Support » Mon Jan 26, 2015 11:42 am

First alert display [object HTMLIframeElement]
Second alert does not appairs. Seems to be an error.


When JavaScript encounters an error is simply stops executing the code. However, try test running your pub in Chrome or FireFox and once there press F12 to start the debugger. Look at the console window and you should see some information if there are any JavaScript errors.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: My first app...

Postby David de Argentina » Wed Feb 04, 2015 6:21 pm

Hi all,

After trying a lot of possible solutions, i cant get the iframe content.
the iframe is well displayed, and the data appairs into the container object

When i try to get the iframe content, i received this message: (chrome debugger)

Error: Blocked a frame with origin "null" from accessing a cross-origin frame.

Any ideas ?

Thanks in advance,
David de Argentina
User avatar
David de Argentina
 
Posts: 1562
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: My first app...

Postby Neosoft Support » Thu Feb 05, 2015 11:52 am

When i try to get the iframe content, i received this message: (chrome debugger)

Error: Blocked a frame with origin "null" from accessing a cross-origin frame.


See same-origin policy:

http://en.wikipedia.org/wiki/Same-origin_policy

Also, a bug in Chrome causes problems with file names that have commas (and possibly other unusual characters). Do other browsers also report this error?
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron