Generating the initial native Android operating system MobileFirst application
Generating the initial native Android operating system MobileFirst application
Review
To provide a native Android application, MobileFirst Hosting server should be aware it. For this specific purpose, IBM MobileFirst System Basic foundation supplies a Natural API catalogue, which contains a set of APIs and design records.mobitechstudio.com
This tutorial describes how you can make the Android operating system Local API and the way to include it by using a indigenous Android operating system program. These ways are necessary to be able to make use of it at a later time to realize duties including joining to MobileFirst Host, invoking adapter procedures, using authorization methods, for example.
Precondition . Builders must be skillful with employing Google’s programmer tools.
Constructing a MobileFirst Local API
- In MobileFirst Recording studio, develop a MobileFirst undertaking and put in a MobileFirst Indigenous API.
- Inside the New MobileFirst Native API dialogue, enter the application identify and select Google android to the Natural environment discipline.
- Right-select the made NativeAPI folder (located in your-projects/applications/your-nativeapi-software-label ) and select Manage As Andgt; Deploy Local API . This step is needed for MobileFirst Host to identify the application when a ask for actually reaches the hosting server.
- The MobileFirst local API is made up of quite a few pieces:
- wlclient.components has got the connections adjustments that any natural Google android app utilizes.
- worklight-google android.jar will be the MobileFirst API local library.
- gcm.jar and press.png are for Yahoo push alert professional services.
JSONStore file is for optionally available JSONStore assist in native purposes.
armabi. armabi-v7a. mips. and x86 folders are for suggested Application Authenticity Security in indigenous purposes.
As with all MobileFirst endeavor, you produce the machine settings by adjusting the documents which might be inside the server\conf folder.
You employ the request-descriptor.xml file to clearly define application form metadata and also to configure stability options that MobileFirst Server enforces.
- wlclient.homes
- The wlclient.components record holds machine setting homes which is individual-editable.
- wlServerProtocol - The conversation protocol to MobileFirst Hosting server, which may be possibly http or https.
- wlServerHost - The hostname of MobileFirst Hosting server.
- wlServerPort - The port of MobileFirst Server.
- wlServerContext -The context root way on the program on the MobileFirst Host.
- wlAppId - The application form Identification as described within the request-descriptor.xml record.
- wlAppVersion - The application form edition.
- wlEnvironment - Whatever target ecosystem with the local request.
- wlUid - The home applied by MTWW to recognize this being a MobileFirst application.
- wlPlatformVersion - The MobileFirst Studio room variation.
- languagePreferences - Set of preferred locales.
- GcmSenderId - This property defines the GCM Sender ID to be utilized for push notices. By default, this property is commented out.
- Developing and configuring an Android indigenous software
- Make a indigenous Google android application or utilize an present one.
- Version the worklight-android.bottle. uicandroid.jar. bcprov.bottle. and android mobile phone-async-http.jar records coming from the WorklightAPI file into the new local Android os software, from the /libs website directory.
- Copy the submit wlclient.attributes through the MobileFirst indigenous API folder on the new natural Android os software, from the /resources directory site.
- Put the next permissions on the AndroidManifest.xml submit:
- Include the MobileFirst UI pastime:
For more information, review the “Producing native purposes for Android operating system” person paperwork topic Following your application form is function in Eclipse, one more outcome is a local program consisting of the MobileFirst API selection. The offered Business project posesses a MobileFirst Studio room undertaking using the developed NativeAPI directory. The offered Natural venture is made up of an Android software currently startup using the MobileFirst NativeAPI.
Example program