Mobile: Everything it takes to get MAF 2.3 App running for an Android Device!

In extension to my prior post to get MAF 2.3 Apps running for iOS, here is what it takes to be Android -

Your target environment:

  • MAF 2.3
  • JDeveloper 12.2
  • JDK 1.8
  • Android API Level 23

Here is how you accomplish this -

1 - Download the android studio from here

2 - Once installed, launch the SDK manager and install all the API Level 23 packages

3 - Setup your simulator:
        a) Click Tools > Manage AVDs
        b) Click Device Definitions > Select Nexus 5 > Click Create
        d) AVD configuration:
            

4 - Locate your Android SDK (This is required to be configured in Jdeveloper)
     a) For Windows:
         Android SDK: C:\Users\xyz\AppData\Local\Android\sdk
         Android Platform Location: C:\Users\xyz\AppData\Local\Android\sdk\platforms\android-23
         Android Build Tools Location C:\Users\xyz\AppData\Local\Android\sdk\build-tools\23.0.3

5 - Create a keystore to sign the application
      keytool -genkey -v -keystore myKey.keystore -alias myKey -keyalg RSA -keysize 2048 -validity 10000


6 - Open JDeveloper > Tools > Preference > MAF > Android Platform
      Key in the locations determined in the step#4
      Key in the keystore location within the Release Tab and provide the passwords for both Debug and Release.

You are all set to deploy your apps on Android platform! Click here for my notes on iOS platform.



Hope you find this information useful.Please share your feedback below. I would love to hear from you.

CaptiveCode



Mobile: Everything it takes to get MAF 2.3 App running for an iOS Device!

All you MAF developers out there are certainly aware of the amount of ordeal one has to go through to get a MAF 2.3 App up and running. Here are the steps I followed, hope this helps make your life easier!

Your Target Development Environment:

  • MAC OS X EL Captain (10.11)
  • JDK 1.8
  • JDev 12.2
  • Xcode 7.2

Here are the steps to achieve this state -

1 - Upgrade your MAC to OS X EL Captain (10.11).
Please be aware this will take you forever to download. Took me 2 days!

2 - Upgrade your Xcode to 7.2
Please do not install Xcode 7.2.1 it is not compatible with MAF 2.3.

3 - Download the latest Apple Worldwide Developer Relations Certificate from here

4 - Create your apple developer certificate

      a) To create your certificate you will need a CSR File. Follow these steps to use Keychain to generate the CSR
          
           In the Applications folder on your Mac, open the Utilities folder and launch Keychain Access.
    Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant >            Request a Certificate from a Certificate Authority.
  • In the Certificate Information window, enter the following information:
    • In the User Email Address field, enter your email address.
    • In the Common Name field, create a name for your private key (e.g., John Doe Dev Key).
    • The CA Email Address field should be left empty.
    • In the "Request is" group, select the "Saved to disk" option.
  • Click Continue within Keychain Access to complete the CSR generating process.

      b) Login to the apple.developer.com > Click Certificates > Click Add
          Upload the CSR file you just generated. This will create a new certificate.

      c) Click Download once the certificate is generated 
           > Double click the .cer file to add it to Keychain on your Mac.

5 - Get the UDID for your iOS Device. Here is a link that will help: http://get.udid.io

6 - Register your device on developer.apple.com
      a) Log onto developer.apple.com
      b) Click Devices > All > Click Add
      c) Provide a Name for the Device and the UDID

7 - Register your app ID on developer.apple.com
      a) Log onto developer.apple.com
      b) Click Identifiers > App IDs > Click Add
      c) Provide the App ID, description and the services you want enabled on the App.

8 - Create a provisioning profile to enable distribution of your app.
      a) Log onto developer.apple.com
      b) Select Provisioning Profiles > Development
      c) Click Add > Select iOS Development & Adhoc Distribution
      d) Select your App ID > Click Next
      e) Select your developer certificate and devices you wish to deploy the app with.

9 - Download the provisioning profile. Double click it to install in Keychain.

10 - Open Jdeveloper > Preferences > iOS Platform > Provisioning Profile > Select your provisioning profile from the drop down list.

11 - Open Jdeveloper > Preferences > iOS Platform >Signing Entity is the common name on your certificate

You are all set to deploy your app on an iOS device! Click here for my notes for Android platform.

Hope you find this information useful.Please share your feedback below. I would love to hear from you.

CaptiveCode