Making the initial local Android mobile phone MobileFirst request
Guide
To provide a local Android app, MobileFirst Hosting server must be aware of it. For this purpose, IBM MobileFirst Foundation Basic foundation gives a Natural API selection, that contains some APIs and configuration records.http://www.androidappspace.com/mobile-app-development
This tutorial points out ways to create the Android os Indigenous API and how to assimilate it by using a local Android operating system application. These steps are needed so that you can put it to use at a later date to achieve projects like connecting to MobileFirst Hosting server, invoking adaptor processes, employing authentication methods, and many others.
Necessity . Developers has to be skillful with utilizing Google’s designer resources.
Constructing a MobileFirst Natural API
- In MobileFirst Studio, produce a MobileFirst undertaking and include a MobileFirst Indigenous API.
- Within the New MobileFirst Native API dialog, key in your application identify and select Android for your Environment field.
- Correct-select the made NativeAPI directory (located within your-undertakings/applications/your-nativeapi-app-name ) and choose Run As Andgt; Deploy Local API . This step is necessary for MobileFirst Server to acknowledge the application form if a demand grows to the hosting server.
- The MobileFirst indigenous API has various pieces:
- wlclient.houses has got the connections settings that the native Android os request utilizes.
- worklight-google android.bottle may be the MobileFirst API local library.
- gcm.jar and press.png are for Search engines drive notification expert services.
JSONStore file is for recommended JSONStore service in natural programs.
armabi. armabi-v7a. mips. and x86 folders are for additional Application Authenticity Safety in local applications.
Just like any MobileFirst job, you create the web server configuration by changing the records which can be on the server\conf folder.
You employ the request-descriptor.xml submit to establish application form metadata as well as to configure safety and security environments that MobileFirst Server enforces.
- wlclient.attributes
- The wlclient.houses report contains server configuration houses and is also consumer-editable.
- wlServerProtocol – The communicating process to MobileFirst Server, which can be sometimes http or https.
- wlServerHost – The hostname of MobileFirst Hosting server.
- wlServerPort – The dock of MobileFirst Hosting server.
- wlServerContext -The situation actual pathway from the request in the MobileFirst Host.
- wlAppId – The application ID as characterized in the application form-descriptor.xml report.
- wlAppVersion – The application form variation.
- wlEnvironment – The target surroundings of the local application form.
- wlUid – The home and property used by MTWW to identify this for a MobileFirst application.
- wlPlatformVersion – The MobileFirst Recording studio type.
- languagePreferences – Set of recommended locations.
- GcmSenderId – This home defines the GCM Sender ID to use for force notices. By default, this property or home is commented out.
- Making and configuring an Google android natural software
- Make a native Android mobile phone software or utilize an established an individual.
- Replicate the worklight-android.jar. uicandroid.bottle. bcprov.jar. and android-async-http.bottle documents coming from the WorklightAPI file for the new natural Google android request, in the /libs listing.
- Backup the record wlclient.attributes coming from the MobileFirst native API directory towards the new natural Google android app, on the /property directory.
- Put the next permissions into the AndroidManifest.xml data file:
- Include the MobileFirst UI action:
For more info, study the “Creating local applications for Android mobile phone” end user documentation issue As soon as the software is manage in Eclipse, one more result is a native software which has the MobileFirst API collection. The supplied Studio undertaking posesses a MobileFirst Studio task with all the made NativeAPI file. The provided Indigenous endeavor includes an Android mobile phone software actually build while using MobileFirst NativeAPI.
Small sample request