Latest News and Offers

Fri July 3rd, 2015 - Generating the first local Android mobile phone MobileFirst application

Generating the first local Android mobile phone MobileFirst application


To offer a local Android os program, MobileFirst Machine must be aware of it. For this purpose, IBM MobileFirst Foundation Base gives a Natural API library, that contains a collection of APIs and design

This training points out how you can make the Android operating system Natural API and the ways to incorporate it using a local Android operating system program. These techniques are needed to help you work with it at a later time to realize jobs such as attaching to MobileFirst Web server, invoking adaptor processes, implementing authentication methods, and the like.

Requirement . Creators must be proficient with utilizing Google’s builder instruments.

Creating a MobileFirst Native API

  1. In MobileFirst Studio, make a MobileFirst job and put in a MobileFirst Natural API.
  2. From the New MobileFirst Local API dialog, enter your application identity and select Android operating system for those Atmosphere subject.
  3. Proper-click the produced NativeAPI file (located within your-projects/applications/your-nativeapi-software-identity ) and select Manage As > Deploy Native API . This step is needed for MobileFirst Server to identify the application form any time a get actually reaches the server.
  4. The MobileFirst native API consists of various ingredients:
  • has got the online connectivity options that your particular native Android operating system program employs.
  • worklight-android mobile phone.bottle could be the MobileFirst API local library.
  • gcm.jar and thrust.png are for The search engines push alert expert services.

JSONStore directory is good for suggested JSONStore assist in native software programs.

armabi. armabi-v7a. mips. and x86 folders are for recommended Request Genuineness Safety in natural programs.

As with any MobileFirst endeavor, you create the server setup by altering the data files that are inside the server\conf directory.

You apply the application-descriptor.xml report to establish program metadata and configure safety and security configurations that MobileFirst Host enforces.

  • The wlclient.qualities file retains web server arrangement properties and is also customer-editable.
  • wlServerProtocol – The correspondence process to MobileFirst Hosting server, that can be often http or https.
  • wlServerHost – The hostname of MobileFirst Machine.
  • wlServerPort – The dock of MobileFirst Host.
  • wlServerContext -The perspective actual pathway of the app about the MobileFirst Web server.
  • wlAppId – The application form Identification as characterized during the application-descriptor.xml document.
  • wlAppVersion – The application edition.
  • wlEnvironment – Whatever target atmosphere in the local request.
  • wlUid – The real estate utilized by MTWW to recognize this being a MobileFirst program.
  • wlPlatformVersion – The MobileFirst Studio room release.
  • languagePreferences – Number of chosen locales.
  • GcmSenderId – This house specifies the GCM Sender ID used for force notices. By default, this property or home is commented out.
  • Building and configuring an Android operating system indigenous application form
  • Create a indigenous Android os app or utilize an pre-existing one particular.
  • Duplicate the worklight-android.jar. uicandroid.jar. bcprov.jar. and google android-async-http.jar computer files coming from the WorklightAPI directory to the new native Android mobile phone request, from the /libs listing.
  • Duplicate the record coming from the MobileFirst local API file to the new natural Google android application, inside the /belongings directory.
  • Create the following permissions to your AndroidManifest.xml submit:
  • Increase the MobileFirst UI process:

To learn more, assess the “Producing indigenous software for Google android” end user paperwork theme As soon as the application form is work in Eclipse, the last end result is a local application form consisting of the MobileFirst API library. The presented Recording studio job has a MobileFirst Studio job with all the created NativeAPI file. The offered Local project features an Android os software previously startup while using MobileFirst NativeAPI.

Sample app