Featured Bloopers

19
May

Generating your first native Android MobileFirst request

Written by useradmin5. Posted in Uncategorized

Generating your first native Android MobileFirst request

Analysis

To serve a local Android os application form, MobileFirst Server should be aware it. For this reason, IBM MobileFirst Base Foundation provides for a Indigenous API local library, which contains a pair of APIs and configuration files.mobitech studio

This training describes how to create the Android os Local API and ways to assimilate it with a indigenous Android application form. These techniques are crucial so you can use it down the road to obtain responsibilities such as linking to MobileFirst Machine, invoking adaptor processes, utilizing authentication techniques, etc.

Requirement . Developers must be efficient with using Google’s builder methods.

Developing a MobileFirst Indigenous API

  1. In MobileFirst Recording studio, generate a MobileFirst undertaking and put in a MobileFirst Indigenous API.
  2. During the New MobileFirst Native API dialogue, type in your application name and choose Android os for that Ecosystem area.
  3. Perfect-select the gained NativeAPI folder (based in your-tasks/applications/your-nativeapi-app-name ) and select Jog As Andgt; Deploy Natural API . This step is essential for MobileFirst Host to identify the application form whenever a require gets to the host.
  4. The MobileFirst local API includes a number of parts:

  • wlclient.components has got the connections controls a native Android mobile phone software makes use of.
  • worklight-google android.jar could be the MobileFirst API library.
  • gcm.jar and force.png are for Google and yahoo force notification products and services.

JSONStore folder is designed for suggested JSONStore help in local software programs.

armabi. armabi-v7a. mips. and x86 folders are for optional Program Validity Coverage in local programs.

As with every MobileFirst venture, you make the hosting server setting by changing the data which might be from the server\conf file.

You use the program-descriptor.xml data file to outline request metadata as well as to configure safety and security controls that MobileFirst Web server enforces.

  • wlclient.houses
  • The wlclient.components data file has host arrangement homes and its end user-editable.
  • wlServerProtocol – The communication protocol to MobileFirst Host, that may be often http or https.
  • wlServerHost – The hostname of MobileFirst Server.
  • wlServerPort – The port of MobileFirst Web server.
  • wlServerContext -The context root path of the program for the MobileFirst Machine.
  • wlAppId – The application form ID as determined on the program-descriptor.xml document.
  • wlAppVersion – The application model.
  • wlEnvironment – Whatever target natural environment in the indigenous program.
  • wlUid – The real estate utilized by MTWW to recognize this like a MobileFirst program.
  • wlPlatformVersion – The MobileFirst Recording studio variation.
  • languagePreferences – Listing of recommended locales.
  • GcmSenderId – This property defines the GCM Sender Identification used for thrust notices. Automatically, this home is commented out.
  • Creating and configuring an Android operating system natural application form
  • Create a natural Android os application or use an current an individual.
  • Backup the worklight-android.bottle. uicandroid.jar. bcprov.bottle. and android-async-http.bottle data from your WorklightAPI directory into the new natural Android os program, inside the /libs directory website.
  • Backup the submit wlclient.homes through the MobileFirst indigenous API folder into the new native Android software, during the /belongings web directory.
  • Increase the next permissions for the AndroidManifest.xml submit:
  • Put the MobileFirst UI process:

For more info, review the “Building local software programs for Android” person paperwork theme Right after the application is jog in Eclipse, the ultimate end result is a native application form which has the MobileFirst API collection. The offered Recording studio task posesses a MobileFirst Business endeavor together with the generated NativeAPI folder. The furnished Natural project contains an Android mobile phone app previously build with the MobileFirst NativeAPI.

Test program

Leave a comment

You must be logged in to post a comment.