cancel
Showing results for 
Search instead for 
Did you mean: 

Using Phonegap (Cordova) Developing My Application For Android

01-06-2014 5:28 AM
667 views 8 comments
0 Likes
SAP Managed Tags
Subscribe

Hey Friends,

I have Created an Sapui5 Application, and now I want to Develop The Same Applcation In Phonegap For the Android. i Am Totally Helpless , Can anyone Guide me friends . i Think Step By Step Process Explanation Shall Be very Helpful For me .

And For more clarity my application is Getting data from Backend Json and its Not a Mobile app....

0 Likes

Accepted Solutions (0)

Answers (5)

Answers (5)

brian_keenan
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

The error below is not because of your code,  normally this is because the project has been corrupted in someway.   Did you generate this project just for this android app or did you copy any of it from another like an IOS app?

if you copied any of it from another project it can give strange errors.   I would create a new clean phonegap app, run a android build and then copy the files across to the assets ..... and cross your fingers

 

Former Member
0 Likes

Hey After reading many Threads and some R&D  i Run my SAPUI5 app in android device .....Basically  in my SAPUI5 app i am getting Table data from Localhost and I have put a alert If no Data comes and ....When i run in android device its Pops up ALERT Error and (That means my code is working ?).  then after that i receive error message 😮 Help me friends

Where i am Going wrong

Former Member
0 Likes

Hi Shri,

If you want load data per HTTP from your computer, on which the emulator is running, you have to use the IP address 10.0.2.2 instead of localhost. You can get more information about that from here.

Regards Michael

Former Member
0 Likes

hi Vishnu,

I was also getting the same error, and i figured it out why its happening.

Its coming because u have set timeout for your activity.

Inside you MainActivity.java class there is a line inside oncreate method....

super.setIntegerProperty("loadUrlTimeoutValue", 60000);

just increase the timeout value...thats it...then it will run properly.Try it

Regards

Syed Shadan Quaiser

Virinchy
Active Contributor
0 Likes

This thread has very good explanation to package ui5 apps to phonegap.

http://scn.sap.com/thread/3287821

Please run the examples and post a new thread if you face any issues.

Regards

VIru

Former Member
0 Likes

Hi,

This is a very good tutorial:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09bea9c-359d-3010-3086-ce1577116...

It is actually a SAP HANA tutorial, but it explains very well how to set up eclipse and create an android application (apk).

When you run your sapui5 application in the android emulator (end of tutorial), go to the "\bin" folder of your project.

e.g. C:\Dev\eclipse\workspace\Espm_Shopping_Mobile_Android\bin

There you'll find the .apk file. If you open this file on your android device, you can install the application.

Regards,

RW

ChandrashekharMahajan
Active Contributor
0 Likes
Former Member
0 Likes

i studied all those threads friend but , for me its not working

I tried all those methods , Not working i dont know where I am Going wrong