Making the first natural Android operating system MobileFirst software

Summary

To provide a native Google android program, MobileFirst Web server should be aware it. For this specific purpose, IBM MobileFirst Program Groundwork offers a Indigenous API collection, which contains a pair of APIs and setting computer files.android app space

This training clarifies ways to generate the Android operating system Native API and the ways to combine it which has a local Android application. These measures are essential so you can put it to use at a later time to realize duties for example relating to MobileFirst Machine, invoking adapter methods, employing authentication solutions, and many others.

Qualification . Builders needs to be skilled with using Google’s developer resources.

Setting up a MobileFirst Local API

  1. In MobileFirst Studio room, produce a MobileFirst undertaking and incorporate a MobileFirst Local API.
  2. In the New MobileFirst Natural API dialog, enter into the application brand and choose Android os for those Natural environment field.
  3. Proper-select the developed NativeAPI folder (situated in your-jobs/applications/your-nativeapi-software-identify ) and choose Function As Andgt; Deploy Natural API . This action is required for MobileFirst Machine to understand the application any time a ask for grows to the web server.
  4. The MobileFirst native API features a number of parts:

  • wlclient.attributes provides the connection settings that any local Google android app makes use of.
  • worklight-android os.bottle may be the MobileFirst API local library.
  • gcm.bottle and press.png are for Google force alert products and services.

JSONStore folder is good for optionally available JSONStore service in indigenous software programs.

armabi. armabi-v7a. mips. and x86 folders are for optional Application Genuineness Safeguard in local apps.

Just like any MobileFirst project, you create the host setting by altering the files that happen to be inside the server\conf file.

You use the application-descriptor.xml file to outline application form metadata and to set up stability adjustments that MobileFirst Machine enforces.

  • wlclient.properties
  • The wlclient.attributes record holds host setting houses and is customer-editable.
  • wlServerProtocol – The communication process to MobileFirst Server, that may be possibly http or https.
  • wlServerHost – The hostname of MobileFirst Server.
  • wlServerPort – The port of MobileFirst Hosting server.
  • wlServerContext -The situation underlying path on the app around the MobileFirst Hosting server.
  • wlAppId – The application ID as outlined inside the application form-descriptor.xml record.
  • wlAppVersion – The applying model.
  • wlEnvironment – The objective setting from the local program.
  • wlUid – The property applied by MTWW to recognize this for a MobileFirst program.
  • wlPlatformVersion – The MobileFirst Studio edition.
  • languagePreferences – List of preferred locales.
  • GcmSenderId – This property or home identifies the GCM Sender Identification to be utilized for force notifications. By default, this residence is commented out.
  • Making and configuring an Google android natural application
  • Develop a native Android application form or use an active one particular.
  • Version the worklight-android operating system.bottle. uicandroid.bottle. bcprov.jar. and google android-async-http.jar computer files from your WorklightAPI folder to your new native Android operating system application, within the /libs web directory.
  • Backup the data file wlclient.qualities through the MobileFirst local API directory into the new local Android operating system software, in the /resources web directory.
  • Add the subsequent permissions towards the AndroidManifest.xml document:
  • Add the MobileFirst UI exercise:

To acquire more information, study the « Establishing native applications for Android » individual proof topic Right after the software is run in Eclipse, the ultimate outcome is a native application form made up of the MobileFirst API selection. The presented Studio endeavor contains a MobileFirst Studio room undertaking with all the made NativeAPI file. The provided Indigenous undertaking contains an Android mobile phone application form presently set-up together with the MobileFirst NativeAPI.

Trial app