Creating the first local Android MobileFirst application

Creating the first local Android MobileFirst application


To offer a local Google android request, MobileFirst Host should be aware it. For this function, IBM MobileFirst Base Base gives a Local API catalogue, which contains a couple of APIs and setup

This tutorial explains ways to bring in the Android operating system Natural API and the way integrate it by using a native Android operating system software. These ways are required so that you can work with it afterwards to realize duties for instance joining to MobileFirst Web server, invoking adaptor processes, employing authentication techniques, and many others.

Requirement . Makers must be adept with making use of Google’s creator methods.

Building a MobileFirst Natural API

  1. In MobileFirst Recording studio, produce a MobileFirst undertaking and put a MobileFirst Indigenous API.
  2. Within the New MobileFirst Natural API dialogue, type in your application identity and select Android mobile phone for the Setting subject.
  3. Proper-select the created NativeAPI file (situated in your-projects/programs/your-nativeapi-application-identify ) and choose Operate As > Deploy Local API . This step is called for for MobileFirst Server to identify the application any time a obtain gets to the machine.
  4. The MobileFirst local API has several elements:

  • has got the online connectivity configurations that any native Android os software utilizes.
  • worklight-android operating system.jar could be the MobileFirst API collection.
  • gcm.bottle and drive.png are for Yahoo and google drive notification expert services.

JSONStore file is good for optional JSONStore service in native software programs.

armabi. armabi-v7a. mips. and x86 folders are for recommended Request Credibility Coverage in native software.

As with every MobileFirst endeavor, you produce the machine setting by modifying the documents which are during the server\conf folder.

You apply the request-descriptor.xml document to outline application metadata as well as to set up security configurations that MobileFirst Machine enforces.

  • wlclient.components
  • The submit holds hosting server setting houses as well as being customer-editable.
  • wlServerProtocol – The connection protocol to MobileFirst Machine, which may be possibly http or https.
  • wlServerHost – The hostname of MobileFirst Host.
  • wlServerPort – The port of MobileFirst Host.
  • wlServerContext -The context actual route in the application form on the MobileFirst Machine.
  • wlAppId – The applying Identification as outlined in the program-descriptor.xml file.
  • wlAppVersion – The application form type.
  • wlEnvironment – The marked environment with the native request.
  • wlUid – Your property employed by MTWW to find this to be a MobileFirst application form.
  • wlPlatformVersion – The MobileFirst Recording studio version.
  • languagePreferences – Selection of recommended locations.
  • GcmSenderId – This house describes the GCM Sender Identification to be used for force notifications. By default, this property or home is commented out.
  • Developing and configuring an Android local software
  • Make a indigenous Android app or utilize an existing one particular.
  • Backup the worklight-android os.bottle. uicandroid.jar. bcprov.bottle. and android operating system-async-http.jar documents out of the WorklightAPI file to the new indigenous Android mobile phone application, during the /libs directory site.
  • Replicate the document wlclient.houses from the MobileFirst natural API directory on the new native Google android program, in the /property website directory.
  • Put the next permissions on the AndroidManifest.xml submit:
  • Include the MobileFirst UI exercise:

To find out more, look at the “Building native software for Android operating system” consumer paperwork subject Right after the software is jog in Eclipse, the last end result is a local program that contains the MobileFirst API selection. The furnished Studio task has a MobileFirst Studio room endeavor with all the made NativeAPI file. The provided Local job has an Google android software definitely set up with the MobileFirst NativeAPI.

Test app

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>