Producing the initial native Android os MobileFirst application
Review
To serve a native Android mobile phone app, MobileFirst Server must be aware of it. For this purpose, IBM MobileFirst Program Groundwork provides a Indigenous API selection, which contains a set of APIs and setting documents.androidappspace.com
This tutorial points out how to crank out the Android mobile phone Indigenous API and approaches to incorporate it by using a native Android os request. These steps are necessary so you can use it at a later time to achieve responsibilities for example attaching to MobileFirst Hosting server, invoking adaptor operations, putting into action authorization methods, and the like.
Qualification . Designers have to be skillful with by using Google’s builder instruments.
Building a MobileFirst Indigenous API
- In MobileFirst Studio room, create a MobileFirst venture and give a MobileFirst Indigenous API.
- On the New MobileFirst Native API dialogue, type in the application identity and select Android mobile phone for your Setting niche.
- Perfect-go through the generated NativeAPI file (situated in your-undertakings/programs/your-nativeapi-application-name ) and choose Operate As Andgt; Deploy Indigenous API . This step becomes necessary for MobileFirst Server to acknowledge the applying if a ask for reaches the server.
- The MobileFirst local API consists of various parts:
- wlclient.components provides the connections options that the natural Android os application utilizes.
- worklight-android.jar is the MobileFirst API selection.
- gcm.bottle and thrust.png are for Yahoo press notification professional services.
JSONStore directory is ideal for optionally available JSONStore service in indigenous applications.
armabi. armabi-v7a. mips. and x86 folders are for optionally available Application Credibility Security in indigenous apps.
As with all MobileFirst job, you make the machine design by changing the records which can be from the server\conf folder.
You use the application-descriptor.xml record to determine software metadata as well as to set up protection adjustments that MobileFirst Hosting server enforces.
- wlclient.houses
- The wlclient.attributes submit holds machine design qualities and is also end user-editable.
- wlServerProtocol – The conversation process to MobileFirst Hosting server, which may be possibly http or https.
- wlServerHost – The hostname of MobileFirst Machine.
- wlServerPort – The dock of MobileFirst Hosting server.
- wlServerContext -The perspective main pathway of your app for the MobileFirst Machine.
- wlAppId – The application form ID as described on the application form-descriptor.xml document.
- wlAppVersion – The application form variation.
- wlEnvironment – The goal surroundings with the local program.
- wlUid – The real estate utilized by MTWW to recognize this like a MobileFirst app.
- wlPlatformVersion – The MobileFirst Business version.
- languagePreferences – List of chosen locales.
- GcmSenderId – This house defines the GCM Sender ID to get used for press notices. Automatically, this residence is commented out.
- Building and configuring an Android mobile phone local software
- Develop a indigenous Android os software or make use of current just one.
- Backup the worklight-android.jar. uicandroid.jar. bcprov.bottle. and android os-async-http.jar computer files coming from the WorklightAPI folder into the new indigenous Google android request, on the /libs directory website.
- Replicate the file wlclient.qualities coming from the MobileFirst indigenous API directory on the new local Android request, on the /investments website directory.
- Add more these particular permissions on the AndroidManifest.xml document:
- Create the MobileFirst UI exercise:
For additional information, study the „Creating indigenous applications for Android operating system” customer documentation subject matter Following your app is jog in Eclipse, the actual result is a local application form which has the MobileFirst API library. The offered Business job contains a MobileFirst Business venture using the made NativeAPI file. The provided Natural job features an Android operating system application definitely setup using the MobileFirst NativeAPI.
Example app
