Producing the initial natural Android os MobileFirst application form

Producing the initial natural Android os MobileFirst application form


To offer a native Android os application form, MobileFirst Web server must be aware of it. For this function, IBM MobileFirst Program Base supplies a Native API library, that contains a pair of APIs and setup

This training points out how to create the Google android Natural API and how to integrate it that has a indigenous Google android program. These steps are necessary to help you use it down the road to attain responsibilities for instance linking to MobileFirst Machine, invoking adapter procedures, employing authentication methods, and many others.

Precondition . Makers should be good with working with Google’s designer methods.

Setting up a MobileFirst Indigenous API

  1. In MobileFirst Recording studio, make a MobileFirst undertaking and give a MobileFirst Indigenous API.
  2. From the New MobileFirst Natural API dialog, enter into the application label and select Android mobile phone to the Environment field.
  3. Correct-click on the created NativeAPI directory (located within your-jobs/apps/your-nativeapi-software-brand ) and choose Run As Andgt; Deploy Indigenous API . This step is essential for MobileFirst Web server to identify the application whenever a obtain extends to the host.
  4. The MobileFirst indigenous API is made up of several elements:

  • wlclient.houses provides the connectivity options which a native Android operating system application purposes.
  • worklight-android os.bottle is definitely the MobileFirst API selection.
  • gcm.bottle and push.png are for Search engines push notification providers.

JSONStore directory is ideal for recommended JSONStore help in indigenous programs.

armabi. armabi-v7a. mips. and x86 folders are for optional App Legitimateness Safeguard in natural programs.

As with any MobileFirst project, you make the hosting server setup by adjusting the data files which might be in the server\conf directory.

You apply the software-descriptor.xml submit to identify request metadata and to set up security options that MobileFirst Machine enforces.

  • wlclient.houses
  • The wlclient.components record retains server design qualities and is also customer-editable.
  • wlServerProtocol – The communicating process to MobileFirst Host, which is often either http or https.
  • wlServerHost – The hostname of MobileFirst Server.
  • wlServerPort – The port of MobileFirst Host.
  • wlServerContext -The framework actual path from the program around the MobileFirst Server.
  • wlAppId – The applying ID as outlined from the app-descriptor.xml submit.
  • wlAppVersion – The application version.
  • wlEnvironment – The target atmosphere on the local application.
  • wlUid – Your property used by MTWW to determine this for a MobileFirst software.
  • wlPlatformVersion – The MobileFirst Studio edition.
  • languagePreferences – Directory of ideal locales.
  • GcmSenderId – This property or home identifies the GCM Sender Identification used for drive notifications. By default, this home is commented out.
  • Making and configuring an Android os natural program
  • Build a local Android operating system application or utilize an existing just one.
  • Clone the worklight-android.bottle. uicandroid.bottle. bcprov.jar. and google android-async-http.jar records from your WorklightAPI folder towards the new native Android os app, within the /libs listing.
  • Replicate the report wlclient.attributes through the MobileFirst native API folder to your new native Android os request, from the /property web directory.
  • Create this permissions into the AndroidManifest.xml file:
  • Add more the MobileFirst UI activity:

To learn more, assess the “Getting natural software for Google android” end user records subject matter Following your application is work in Eclipse, the ultimate end result is a local request which contains the MobileFirst API catalogue. The furnished Business job includes a MobileFirst Studio room venture while using gained NativeAPI folder. The given Indigenous job has an Android operating system request presently set-up together with the MobileFirst NativeAPI.

Sample request

Posted in Uncategorized | Leave a comment

Leave a Reply