TeleMessage Android sdk

Download 37.75 Kb.
Size37.75 Kb.

TeleMessage Android SDK

TeleMessage Android SDK
Version Control Information:







Ori Solomon

Original version



Ori Solomon

Customization section



Ofer Dangoor



1.General 3

2.Setting up your project in Firebase 3

3.Add the TeleMessage SDK library to your project using Android Studio 4

4.Modifying your build.gradle 7

5.GUI based SDK 8

a.Launching TeleMessage app 8

b.SDK Customization: Adding your own resources and changing the app’s colors 9

i.Drawables: 9

ii.Bubbles (9Patch): 11

iii.Colors: 12

6.Feature based SDK 13

a.Functionality 13

  1. General

The SDK may be utilized as a full featured GUI supported library, or for methods utilization as a way to implement specific functionality of the service.

The TeleMessage SDK library supports Android version 4.1 and higher.

  1. Setting up your project in Firebase

  1. Go to the Firebase console:

  1. Click on ‘Create New Project’.

  2. Insert your project name and choose a country. Click ‘Create Project’.

  3. Click on ‘Add Firebase to your Android app’. Insert your package name and click ‘Add App’.

  4. A file named ‘google-services.json’ was downloaded to your computer. Follow the directions on the Firebase console to add this file to your project and click ‘Continue’.

  5. Follow the directions on the Firebase console to modify your build.gradle files and click ‘Finish’.

  1. Add the TeleMessage SDK library to your project using Android Studio

  1. Right click on your project in Android Studio and choose ‘Open Module Settings’:


  1. Click on ‘+’ at the top left corner:structure.jpg

  1. Choose ‘Import .JAR/.AAR Package’ and click ‘Next’:


  1. Choose the TeleMessage SDK .aar file that you downloaded earlier and click ‘Finish’. A gradle sync will start automatically.

  1. Click ‘OK’ to close the ‘Project Structure’ window.

  1. Modifying your build.gradle

  1. Open your app-level build.gradle file.

  1. Under ‘android’, add the following lines:

dexOptions {

preDexLibraries = false

jumboMode = false

javaMaxHeapSize = “2048M”


  1. Under ‘dependencies’, add the following lines:

compile ‘’

compile ''

compile ''

compile project(‘:TeleMessageClientApp-telemessage-debug’)

  1. At the end of the build.gradle file, add the following line:

Apply plugin: ‘’

  1. Click ‘Sync Project with Gradle Files’.

*Note: If one or more of these lines already exist, do not add them again.

  1. GUI based SDK

The GUI supported version enable you to utilize the full capabilities and design of the app.

Using the full GUI version is being done by calling the main activity of the TeleMessage app from the hosted app.

The TeleMessage app may be modified to use the hosted application branding as described below.

    1. Launching TeleMessage app

Send your ‘google-services.json’ file to TeleMessage.

On your activity call TeleMessage splash screen:
Intent intent;

intent = new Intent(MainActivity.this, SplashActivity.class);

MainActivity is the activity on your app that calls TeleMessage app

    1. SDK Customization: Adding your own resources and changing the app’s colors

You can customize the SDK by overriding some of the drawables in the app. In order to do that, just replace the existing drawables.

      1. Drawables:


Drawable Name



sign up logo


notification icon


logo on thread header


Conversation list background


Chat list background

sky_blue_header.9.png (9Patch)

Actionbar image


Landscape background





      1. Bubbles (9Patch):


Drawable Name












      1. Colors:

To edit colors change the value on you colors.xml file.

Action bar background:

<color name="ColorPrimary">#ff0000color>
Pressable links inside messages:

<color name="link_color">#0096D4color>
ActionBar subtitle color:
<color name="subtitle_color">#000000color>

  1. Feature based SDK

The feature based SDK enable you to build your own GUI and application logic while utilizing specific methods from the TeleMessage SDK.

    1. Functionality

The SDK expose interface for the following functionalities:

  • Registration and Authentication – the SDK allow the developer to utilize 2 processes:

    • TeleMessage registration/ authentication process

    • Embedding within the customers’ registration/authentication process.

  • Send a message – utilize the SDK to send a message thru the TeleMessage servers

  • Receive a message – implement a broadcast listener to intercept the incoming messages

| Page

Directory: wp-content -> uploads -> 2017
2017 -> Leadership ohio
2017 -> Ascension Lutheran Church Counter’s Schedule January to December 2017
2017 -> Board of directors juanita Gibbons-Delaney, mha, rn president 390 Stone Castle Pass Atlanta, ga 30331
2017 -> Military History Anniversaries 16 thru 31 January Events in History over the next 15 day period that had U. S. military involvement or impacted in some way on U. S military operations or American interests
2017 -> The Or Shalom Cemetery Community Teaching on related issues of Integral
2017 -> Ford onthult samenwerking met Amazon Alexa en introduceert nieuwe navigatiemogelijkheden van Ford sync® 3 met Applink
2017 -> Start Learn and Increase gk. Question (1) Name the term used for talking on internet with the help of text messege?
2017 -> Press release from 24. 03. 2017 From a Charleston Car to a Mafia Sedan
2017 -> Tage Participants
2017 -> Citi Chicago Debate Championship Varsity and jv previews

Download 37.75 Kb.

Share with your friends:

The database is protected by copyright © 2022
send message

    Main page