||
Skip to end of metadata
Go to start of metadata

Introduction

This sample demonstrates a simple and clean calculator app, which can be used in Android devices. It supports both generic and scientific calculator functions. You can change the color of the user interface of this calculator as preferred. You can find the source code of the calculator app in <APPM-HOME>/samples/mobileapps/CleanCalc/Source/ directory. 

Prerequisites

  • Download WSO2 EMM, WSO2 MDM or any other MDM, and start the server with a port offset of one. 

    To set a port offset of 1 in WSO2 EMM or WSO2 MDM, change the value of the  <Offset>  element in  <CDM_HOME>/repository/conf/carbon.xml  file as follows:  <Offset>1</Offset>

  • Download WSO2 AppM, and start the server. 

Executing the sample

Follow the steps below to execute the sample.

In this guide <PRODUCT_HOME> refers to the directory of the product, if you built it by downloading the source.

Creating CleanCalc mobile application

You need to create a new mobile app to use the CleanCalc app as an enterprise Android application.

Uploading the application

Follow the steps below to upload the app.

  1. Log in to App Manager publisher console using admin/admin as username and password.

  2. Click Mobile Applications in the top menu.

  3. Click Add New Mobile Application.

  4. Enter Android for Platform and Enterprise for Store Type as shown below.

  5. Download the CleanCalc.apk file, and save it in your computer.

    If you have the source of the product downloaded, you can use the <PRODUCT_HOME>/webapps/mobileapps/ CleanCalc/Resources/CleanCalc.apk file.

  6. Click SELECT .APK FILE, and select the CleanCalc.apk file, which you downloaded above. When the file is selected you see the screen as shown below.

    create new mobile app

  7. Click Next.

Entering the application details

Follow the steps below to enter the details of the app.

  1. Enter CleanCalc for Title, and a preferred description about the app for Description.
  2. Download the banner.png image, and upload it for Banner.

    If you have the source of the product downloaded, use the <PRODUCT_HOME>/webapps/mobileapps/ CleanCalc/Resources/banner.png image for the banner.

  3. Download the screen1.pngscreen2.png, and screen3.png images, and upload them for Screen Shots.

    If you have the source of the product downloaded, use the following images for the screenshots.

    • <PRODUCT_HOME>/webapps/mobileapps/CleanCalc/Resources/screen1.png 

    • <PRODUCT_HOME>/webapps/mobileapps/CleanCalc/Resources/screen2.png

    • <PRODUCT_HOME>/webapps/mobileapps/CleanCalc/Resources/screen3.png

  4. Download the icon.png image, and upload them for Icon file.

    If you have the source of the product downloaded, use the <PRODUCT_HOME>/webapps/mobileapps/ CleanCalc/Resources/icon.png image for the icon file.

    enter app details

  5.  Click Submit.

    When the CleanCalc app is created in WSO2 App Manager, you see it in the list as shown below.

    submit created app for review

  6. Click Submit for Review, click Approve, and then click Publish.

Using CleanCalc mobile application

By default, App Manager store is not connected to CDM. Therefore, it acts as a catalog. Follow the steps below to view it.

  1. Access the App Manager store using the following URL: https://localhost:9443/store/
  2. Log in to the store with admin/admin as username and password.
  3. Click on the published app to view it.
Integrating a Mobile Device Manager (MDM)

If you have already integrated WSO2 App Manager with WSO2 EMM, WSO2 MDM or any other MDM you can skip this section.

Follow the steps below to integrate WSO2 App Manager with a MDM.

  1. Integrate a mobile device manager with WSO2 AppM. For instructions, see Integrating a Mobile Device Manager.

  2. Restart WSO2 App Manager.
Installing the mobile app

Follow the steps below to install the CleanCalc app on your mobile device.

  1. Access the store using the following URL: https://localhost:9443/store/

  2. Click on the app. You view the app as shown below.
    CleanCalc app on APPM store
  3. Click Install.
  4. Select the device from the displayed list as shown below.

    Now, the CleanCalc app will be provisioned to the selected mobile device.
Click My Apps in the App Manger store to reinstall the app.
  • No labels