...
Code Block | ||
---|---|---|
| ||
Visilabs.CreateAPI("OrganizasyonID", "SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext(), "http://s.visilabs.net/json", "http://s.visilabs.net/actjson", requestTimeout); |
Add the required getActivity() parameter to all customEvent() calls.
Example:
Code Block | ||
---|---|---|
| ||
HashMap<String,String> map = new HashMap<String, String>(); map.put("CustomParamKey", "CustomParamValue"); Visilabs.CallAPI().customEvent("pageName", map, getActivity()); |
To display full screen messages you need to add the following lines to your application’s AndroidManifest.xml file:
Code Block | ||
---|---|---|
| ||
<activity android:name= "com.visilabs.android.notifications.VisilabsNotificationActivity" android:theme="@style/com_visilabs_android_VisilabsNotificationActivityTheme"/> |