Skip to content

Latest commit

 

History

History

Kaazing Android WebSocket JMS Tutorial

This Android app communicates with an JMS server via Kaazing WebSocket Gateway. The app publishes text messages to a JMS server and listens for messages from the JMS server over WebSocket.

Minimum Requirements for Running or Building Kaazing Android JMS WebSocket tutorial

  • Java 1.8
  • Gradle 2.10 or higher
  • Android Studio 2.10 or higher
  • Android SDK 4.4 or higher

Steps for Building and Running the Project

  • Build the application using Android Studio
    • Open the project in Android Studio by navigating to the project directory
    • Build the project by selecting Build/Rebuild Project
  • Run the application in Android Simulator
    • Create Android Virtual Device (AVD) for API level 19 (KitKat) or higher. For more information refer to Create and Manage Virtual Devices
    • Run the application from Android Studio by selecting Run/Run Project. Refer to Running Your App for more information.

After installing Android Studio, update the following files with the Android SDK path or version (if necessary):

  • local.properties
  • project.properties
  • AndroidManifest.xml
  • app/build.gradle

In you experience the error Could not find or load main class org.gradle.wrapper.GradleWrapperMain, add a wrapper in the build.gradle file:

task wrapper(type: Wrapper) {
gradleVersion = <gradle-version-installed>
}

Interact with Kaazing Android JMS Client API

Documentation on how to create a Kaazing Android JMS app from scratch can be found here.

API Documentation

API Documentation for Kaazing Java WebSocket JMS Client library is available: