Skip to Content
0

SAP UI5 to (.Apk)Android Mobile App

Mar 05 at 11:09 AM

35

avatar image
Former Member

HI,

I was able to render map on my SAP UI5 Desktop app Successfully.

But now i am trying to create apk of it through android studio.

when i try to run the app through android studio on android emulator its shows my application launch page but map is not rendered,instead of map it shows me a blank space.

I am attaching the screenshots for both Desktop & Android Emulataor.

Kindly help me out.

Desktop

Android Studio Emulator

Thanks

Rahul Mantoo

10 |10000 characters needed characters left characters exceeded

Did you use a Kapsel project to start or SAPUI5. One challenge for Fiori Mobile is you have to have permissions and plugins. See example Kapsel Geo Location. I think there is a Web IDE sample here Web IDE Camera and Geolocation.

-kevin

0
Former Member
Kevin Bates

HI Kevin,

I have used SAP UI5 Project which i then imported to Android Studio for APK generation, The web web preview of SAP Ui5 app shows google maps but when i run the same app from android studio on emulator its shows me blank space

0

Just taking a guess, the web preview runs on the browser where the APK runs in Cordova. To access native features, you would need the plugins and code to use them. Did you look at the sample I sent?

-kevin

0
Former Member
Kevin Bates

Hi Kevin,

Yes, web preview runs on the browser and the apk which is generated from android studio, i try to run it on my samsung phone.

i have all the plugin downloaded and linked to my project, as its running perfectly on browser, the problem i am getting is on the android emulator of Android studio IDE as well as on my samsung phone.

Please help me out if am missing any other plugin to be used to make it run on emulator and device

0

You could check the logcat, but probably should open an incident.

Regards,

Kevin

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Mar 13 at 03:08 PM
0

How do you create .apk with Android studio?

In a WebView or using other plugin?

Have you checked in Chrome Debugger if the map's HTML element loaded in the background or if there is any console log error?

Share
10 |10000 characters needed characters left characters exceeded