Skip to content

Sample application for custom widget for Android. This sample exposes the android native map as a custom widget into Kony application.

Notifications You must be signed in to change notification settings

kony/Android-Custom-Widget-NativeMap

Repository files navigation

Android-Custom-Widget-NativeMap

Application to showcase Android custom widget import in Kony Visualizer Enterprise. There are 2 projects here. One is android native project that exposes the native map as a Kony custom widget. Other project is Kony Visualizer project that consumes this custom widget.

Purpose

Sample Application to showcase how to develop a custom widget for android and integrate the same into Visualizer.
Following properties/events/methods are supported by the map custom widget. Setting/calling the below properties/methods would cause invocation of the appropriate native APIs to achieve the desired behaviour

Properties:
displayMode
zoomLevel
showZoomControl
width
height
locationData
address

Events:
onPinClick
onBoundsChange
onMapClick

Methods:
clear
dismissCallout
animateToLocation
navigateToIndex


Note: To see the mappings in Visualizer, please navigate Integrate Thirdparty->Manage custom widget -> Android

To run the Kony application

  1. Download the zip file and extract it.
  2. Import the CustomMap application present in the Android-Custom-Widget-NativeMap-master\KonyVisualizerProject folder into Visualizer Enterprise
  3. Change the map key in the application settings
  4. Also add the following entry in the "Project settings->Native->Android->Tags->Child tag entries" by giving your map key
  5. Build & run the app.

Supported platforms:

Mobile

  • Android Mobile

Supported Kony Visualizer Enterprise Version: 7.1

How to handle changes to the Android Studio Project?

The Android studio project to implement map as a custom widget is available in the folder AndroidStudioProject\SampleAppsCustomWidgetNativeProj For making any changes to this,

  1. import it into Android studio
  2. Make the changes in the library module named 'sampleappslib'
  3. Build it to generate the .aar file
  4. Open the .aar with 7-zip and remove the konywidgets.jar file from the lib folder
  5. Copy the resultant .aar file into the Kony Application folder \CustomMap\resources\customwidgets\lib\android
  6. Build and launch the application

#Sample screens

Screen 1

Screen 2

Screen 3

Screen 4

Screen 5

About

Sample application for custom widget for Android. This sample exposes the android native map as a custom widget into Kony application.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages