Good reputation for plate tectonics

Creating the first natural Android MobileFirst request

Creating the first natural Android MobileFirst request


To serve a native Android application, MobileFirst Web server must be aware of it. For this reason, IBM MobileFirst Platform Basic foundation delivers a Indigenous API collection, which contains a set of APIs and configuration computer files.androidappspace

This tutorial describes the way to produce the Google android Indigenous API and approaches to incorporate it by using a natural Android operating system application form. These methods are required to enable you to use it down the road to attain tasks including linking to MobileFirst Hosting server, invoking adaptor operations, employing authentication solutions, and so on.

Requirement . Creators need to be skillful with by using Google’s designer resources.

Constructing a MobileFirst Native API

  1. In MobileFirst Business, make a MobileFirst project and include a MobileFirst Local API.
  2. In the New MobileFirst Local API dialogue, enter into your application identity and choose Android operating system for your Setting subject.
  3. Appropriate-select the developed NativeAPI file (positioned in your-undertakings/software/your-nativeapi-application-identify ) and choose Operate As Andgt; Deploy Natural API . This action is necessary for MobileFirst Host to identify the application form every time a require reaches the machine.
  4. The MobileFirst native API includes many pieces:
  • wlclient.qualities contains the connectivity configurations that the native Android app employs.
  • worklight-android operating system.jar could be the MobileFirst API library.
  • gcm.jar and propel.png are for Google and yahoo force alert expert services.

JSONStore folder is ideal for additional JSONStore support in local purposes.

armabi. armabi-v7a. mips. and x86 folders are for optional Request Genuineness Defense in indigenous apps.

As with any MobileFirst undertaking, you make the machine settings by adjusting the data files which can be on the server\conf folder.

You employ the software-descriptor.xml document to clearly define software metadata and to set up safety and security adjustments that MobileFirst Machine enforces.

  • wlclient.attributes
  • The wlclient.qualities submit has host setting attributes as well as being person-editable.
  • wlServerProtocol – The communication protocol to MobileFirst Web server, which is often sometimes http or https.
  • wlServerHost – The hostname of MobileFirst Web server.
  • wlServerPort – The harbour of MobileFirst Hosting server.
  • wlServerContext -The context underlying pathway on the application form about the MobileFirst Host.
  • wlAppId – The applying ID as determined from the application form-descriptor.xml document.
  • wlAppVersion – The application form model.
  • wlEnvironment – The target setting from the indigenous application form.
  • wlUid – The real estate made use of by MTWW to distinguish this being a MobileFirst software.
  • wlPlatformVersion – The MobileFirst Business edition.
  • languagePreferences – List of recommended locations.
  • GcmSenderId – This house identifies the GCM Sender Identification to be utilized for force notices. Automatically, this property or home is commented out.
  • Making and configuring an Android os local request
  • Make a natural Android operating system software or work with an current an individual.
  • Replicate the worklight-google android.bottle. uicandroid.jar. bcprov.jar. and google android-async-http.bottle records in the WorklightAPI file into the new local Android operating system program, within the /libs directory.
  • Backup the record wlclient.components coming from the MobileFirst indigenous API file towards the new natural Android program, on the /possessions website directory.
  • Add the subsequent permissions into the AndroidManifest.xml document:
  • Increase the MobileFirst UI process:

For additional information, review the “Creating native software programs for Android os” individual documentation issue Following your application form is work in Eclipse, the very last result is a native program consisting of the MobileFirst API library. The supplied Studio project has a MobileFirst Studio endeavor with all the gained NativeAPI directory. The provided Indigenous endeavor has an Google android request previously startup with all the MobileFirst NativeAPI.

Example app

Ingen kommentarer endnu

Der er endnu ingen kommentarer til indlægget. Hvis du synes indlægget er interessant, så vær den første til at kommentere på indlægget.

Skriv et svar

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *


Næste indlæg

Good reputation for plate tectonics