Professional Documents
Culture Documents
Step 1:
Install node.js.
After completion, you can check if node.js is installed properly by executing “npm”
command in command prompt.
Step 2:
Install Cordova.
Step 4:
Create a folder using cordova.
Step 5:
Add android platform
In case your app is using a third party plugin, you can add it using the below command
Further, there are two javascript files provided by Cordova utility to use the plugins
• Cordova.js
• Cordova_plugins.js
</script>
But if you plan to run your app offline then change the sapui5 library path as shown
below.
<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-xx-bindingSyntax="complex">
</script>
Also down load the sapui5 library from the below url.
http://openui5.org/download.html
Extract the zip file and locate the resources folder paste the resources folder inside
below path.
Your_application_Directory \www
Step 7:
Adding files and building the .apk file.
• Add all your application files into your directory’s “www” folder.
• Add all contents of
Your_application_Directory\platforms\android\assets\www
To:
Your_application_Directory \www
The file will have a default name “android-debug.apk”. You can even change the name of
the file.
Step 8:
Running the .apk in an emulator
This will deploy the application to the emulator from the command line.
Alternatively, you can connect your android device directly to your system and push the
app to the device from the command line using the following command:
Cordova run
Android windowSoftInputMode
On appearance of an input box in your application, you can ensure that the keyboard
doesn’t overlaps with your content by using this mode. When using this mode, it scrolls
the application window so that the selected view is visible and shows the soft-keyboard.
To do so: