com.netmera.mobile
Class Netmera

java.lang.Object
  extended by com.netmera.mobile.Netmera

public class Netmera
extends java.lang.Object

Netmera class contains initial configuration method and methods that are used to get general data of the application and user.


Method Summary
static android.content.Context getContext()
           
static java.lang.String getInstallationID()
          Use to get unique installation ID for the device
static java.lang.String getSecurityToken(android.content.Context context)
          Use to get application's Netmera api key.
static void init(android.content.Context context, java.lang.String apiKey)
          Authenticates user and application.
static void setContext(android.content.Context context)
          You can set a context and get it from anywhere you want.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(android.content.Context context,
                        java.lang.String apiKey)
Authenticates user and application. It is recommended to call this method at the beginning of the program.

Parameters:
context - Context
apiKey - User and Application specific key

setContext

public static void setContext(android.content.Context context)
You can set a context and get it from anywhere you want. After calling init(Context, String), this will be set a Context instance.

Parameters:
context -

getContext

public static android.content.Context getContext()
Returns:
a Context instance to be able to use where ever you want.

getInstallationID

public static java.lang.String getInstallationID()
Use to get unique installation ID for the device

Returns:
installationId

getSecurityToken

public static java.lang.String getSecurityToken(android.content.Context context)
Use to get application's Netmera api key.

Parameters:
context - Context
Returns:
Your application's Netmera api key.