Deploy a SAPUI5 Mobile App to Android Device

Similar documents
How the Standard Integration between SAP EM and SAP TM Can Be Tested with SE37

Moving BCM to different IP range

How to Use a Customer Specific UIBB in MDG Application 'Create Change Request' Author: Matthias Hubert Company: SAP Created on 5th July 2013

Installing and configuring PhoneGap/Cordova. EntwicklerCamp 2012

A Sample PhoneGap Application Using SUP

Passing Parameters via Web Dynpro Application

Managing Substitutions in My Inbox 2.0 app

Disclosure Management US SEC. Preview

Disclosure Management. Default font on styles in Disclosure Management

UI Changes for SAP Portfolio and Project Management Depending on NW Release

Create and run apps on HANA Cloud in SAP River RDE

SAP Directory Content Migration Tool

SAP Sybase Replication Server Change DATA Capture Configuration. Example Configuration

SAP HANA Cloud End-to-End-Development Scenarios. ESPM Mobile Shopping Scenario. Version 3.0

BW Workspaces Data Cleansing during Flat File Upload

How to Setup Notifications in Fiori 2.0 Step-by-Step

CREATION AND CONFIGURATION OF WEB SERVICE FROM RFC AND DEPLOYMENT IN ANOTHER SYSTEM

How To - Extend MDG-M content by new attributes for customer Z-fields in standard tables

SAP EM How to Display the Planned Route on the Geo-Map

Experience SAP HANA Cloud Portal. Use SAP HANA Cloud Portal to Create Engaging Websites in 5 Simple Steps

MII - Crystal Reports Configuration Guide

SAP BusinessObjects Dashboard Design Component SDK Installation Guide

SAP Business Communications Management (BCM) Release Notes 7.0 SP04 Patch 1 ( )

SAP Fiori Toolkit February 2014

How to Install SMP in a Cluster Environment Using ASE DB Without MBO Runtime SAP Mobile Platform (3.0 SP05)

Introduction to BW Workspaces and its usage with SAP BusinessObjects BI Tools

How To... MDG-M: Replace Enterprise Search with database base search or an alternative search provider

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Creating Application Definitions in Hana Cloud Platform Mobile Services

How-to Connect your HANA Cloud Platform Mobile Service Account to your On-Premise OData Service

How To... MDG-M: Replace Enterprise Search with database base search or an alternative search provider. Applicable Releases: From MDG 6.

SAP NetWeaver Identity Management Identity Center. Implementation guide. Version 7.2 Rev 4. - Optimizing dispatcher performance

Information Design Tool User Guide SAP BusinessObjects Business Intelligence platform 4.0 Support Package 4

Dashboards Batch Utility User Guide

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

SAP ESP: Keyed Streams in CCL New feature in SP08

How to setup My Inbox 2.0 app

SAP NetWeaver Cloud Security Tutorial Single Sign-On and Identity Federation with SAP NetWeaver Single Sign-On

How-to guide: OS Command Adapter

How to Transport KPI Tile Application Step-by-Step Guide in S/4HANA On-Premise

Disclosure Management Financial Consolidation. Troubleshooting Data Import Interface

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

SAP Fiori Toolkit. Marc Anderegg, RIG, SAP February, Provided by Rapid Innovation Group (RIG)

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

SAP BusinessObjects Integration Option for Microsoft SharePoint Getting Started Guide

MDG100 Master Data Governance

How to... MDG-M: Best Practice for Maintenance Status. Applicable Releases: From EHP6 FOR SAP ERP 6.0 and from SAP S/4HANA 1511

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Defining Associations in Business Object Builder

AFA461 SAP Afaria 7.0 System Administration (SP03)

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BC480 PDF-Based Print Forms

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

Implementation steps for Note

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

ADM920 SAP Identity Management

EDB785 SAP IQ Administration

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

Configurable Notifications in Planner

DEV523 Customizing and Extending PowerDesigner

How to... Master Data Governance for Material: Use the Data Import Framework for Material. Applicable Releases: From EhP6

SAP White Paper SAP Sybase Adaptive Server Enterprise. New Features in SAP Sybase Adaptive Server Enterprise 15.7 ESD2

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

HA150 SQL Basics for SAP HANA

SAP NetWeaver Cloud Security Tutorial Single Sign-On and Identity Federation with ForgeRock OpenAM

How to setup My Inbox 2.0 app

How to Configure Fiori Launchpad and Web Dispatcher to Support SAML2 Using SAP Identity Provider Step-by-Step

ADM900 SAP System Security Fundamentals

Cube Designer User Guide SAP BusinessObjects Financial Consolidation, Cube Designer 10.0

SAP HA Installations on z/os and Windows Application Servers

ADM100 AS ABAP - Administration

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

BC405 Programming ABAP Reports

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Visual Business Configuration with SAP TM

TBW30 SAP BW Modeling & Implementation

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

BC430 ABAP Dictionary

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

Contents at a Glance

SAP Cloud Reference Systems. Scenario Outline. Product Definition

BC490 ABAP Performance Tuning

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to setup My Inbox 2.0

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

SAP BusinessObjects Explorer API Guide SAP BusinessObjects Explorer XI 3.2 SP2

Cordova (Phonegap) Installing Cordova (Phonegap)

BC400 Introduction to the ABAP Workbench

Build Delightful User Interfaces in the Cloud with SAP UI 5 Framework

SAP BusinessObjects Predictive Analysis 1.0 Supported Platforms

Dashboards LiveCycle Data Services Gateway Installation Guide SAP BusinessObjects 4.0 Support Package 4

TBIT44 PI Mapping and ccbpm

SAP Discovery System V5 Users and Passwords

Transcription:

TABLE OF CONTENTS PREREQUISITE... 3 http://developer.android.com/sdk/installing/installing-adt.html... 3 STEPS TO DEPLOY AN SAPUI5 APP TO ANDROID DEVICE USING PHONEGAP... 3 2

PREREQUISITE You should have installed Android SDK and Android tools for Eclipse http://developer.android.com/sdk/installing/installing-adt.html STEPS TO DEPLOY AN SAPUI5 APP TO ANDROID DEVICE USING PHONEGAP 1. Launch Eclipse and go to Java perspective 2. Click on File -> New -> Android Application Project 3. Enter the application name as refapp-msapandroid-companylist as shown in the below pic, select the minimum required SDK, Target SDK, Compile With, Theme as shown in below pic and click on Next button 3

4. Click on Next button with the default selection 4

5. Click on Next button with the default selection 6. Click on Next button with the default selection 5

7. Use the default names and click on Finish button to complete the project creation 8. The following window will be opened after the project creation 6

9. Select the Assets folder in the project explorer and select New -> Folder 10. Enter the folder name as www and click on Finish button 7

11. Download PhoneGap libraries (2.9 Version) from the location and extract it to a folder in your system. Extract the zip file and copy paste the cordova.js, cordova-2.9.0.jar and res folder to your project hierarchy as shown in the below picture 12. After this, the libraries should be visible in the project build path libraries section 8

13. Add the below two lines in the MainActivity.java file. Also, change the Extends to DroidGap super.setintegerproperty("loadurltimeoutvalue", 60000); super.loadurl("file:///android_asset/www/index.html"); 14. Copy and paste the following content into the AndroidManifest.xml. Paste it below the use sdk section. supports-screens android:largescreens="true" android:normalscreens="true" android:smallscreens="true" android:resizeable="true" android:anydensity="true" /> <uses-permission android:name="android.permission.vibrate" /> <uses-permission android:name="android.permission.access_coarse_location" /> <uses-permission android:name="android.permission.access_fine_location" /> <uses-permission android:name="android.permission.access_location_extra_commands" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.receive_sms" /> <uses-permission android:name="android.permission.record_audio" /> <uses-permission android:name="android.permission.modify_audio_settings" /> <uses-permission android:name="android.permission.read_contacts" /> <uses-permission android:name="android.permission.write_contacts" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.get_accounts" /> <uses-permission android:name="android.permission.broadcast_sticky" /> android:configchanges="orientation keyboardhidden keyboard screensize locale" 9

10

15. Copy and paste the content of WebContent directory under your SAPUI5 project to www directory of the Android project 16. Download SAPUI5 resources from http://scn.sap.com/community/developer-center/front-end In the download section, download the available version accepting the license agreement. Extract the zip file to a location and copy the resources folder to folder www in your project. 11

17. Open the index.html and add the following lines as shown below <script type="text/javascript" src="resources/sap/ui/thirdparty/jquery/jquery-1.7.1.js"></script> <script type="text/javascript" src="resources/sap/ui/thirdparty/jqueryui/jquery-ui-position.js"></script> <script src="resources/sap-ui-core-nojquery.js" <script type="text/javascript" src="cordova.js"></script> 18. Congratulation. You have successfully wrapped your SAPUI5 application in PhoneGap container that can be run on Android Emulator and devices 12

www.sap.com 2013 SAP AG. All rights reserved. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, ianywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company. Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.