i have a bit of an issue retrieving the uuid in android. I've seen the documentation the method that needs to be called to retrieve it but when i call that function, i cannot see that id being retrived

Rookie Contributor
Andriod UUID is not being retrieved
2 REPLIES 2

i have a bit of an issue retrieving the uuid in android. I've seen the documentation the method that needs to be called to retrieve it but when i call that function, i cannot see that id being retrived

Rookie Contributor
This is my method. mContext.getSharedPreferences("tealium.sp",0).getAll(). This outputs all the data in the object. This is the result {extension={"trackVideo":"true" "sort":"0" "scope":"global" "status":"active" "trackIvars":"true" "appid":"" "customTracking":"true" "type":"new" "mobileCompanionOn":"true" "powerSaveCallLimit":"0" "id":"100030" "title":"No Title" "_id":"1" "mobilePowerSaveOn":"false" "trackAllEvents":"true" "notes":"" "trackAllViews":"true"} config_loaded=true published_at=1406903400000}

i have a bit of an issue retrieving the uuid in android. I've seen the documentation the method that needs to be called to retrieve it but when i call that function, i cannot see that id being retrived

Employee Emeritus

David,

 

The method you're using retrieves the library's remote configuration from the Mobile Library Manager Extension found in your TIQ account. To access the UUID info, and any other globalCustomData info, see the following example:

// Prints out all Tealium GlobalCustomData
Map keys = Tealium.getGlobalCustomData().getAll(); 
for(Map.Entry entry : keys.entrySet()){ 
Log.v("TEALIUM MAP",
entry.getKey() + ": " + entry.getValue().toString()); 
} 

// Print out UUID specifically 
Log.v("TEALIUM UUID", Tealium.getGlobalCustomData().getString("uuid", null)); 

Output: 

08-05 10:07:11.976: V/TEALIUM MAP(1776): platform: android 
08-05 10:07:11.976: V/TEALIUM MAP(1776): device_resolution: 480x800 
08-05 10:07:11.976: V/TEALIUM MAP(1776): library_version: 3 
08-05 10:07:11.976: V/TEALIUM MAP(1776): origin: mobile 
08-05 10:07:11.976: V/TEALIUM MAP(1776): app_version: 1.0 
08-05 10:07:11.976: V/TEALIUM MAP(1776): app_rdns: com.tealium.blankapp 
08-05 10:07:11.976: V/TEALIUM MAP(1776): app_name: BlankApp 
08-05 10:07:11.976: V/TEALIUM MAP(1776): os_version: 16 
08-05 10:07:11.976: V/TEALIUM MAP(1776): platform_version: android 16 
08-05 10:07:11.976: V/TEALIUM MAP(1776): device: Samsung Nexus S 
08-05 10:07:11.976: V/TEALIUM MAP(1776): app_id: BlankApp 1.0 
08-05 10:07:11.976: V/TEALIUM MAP(1776): device_cputype: armv7l 
08-05 10:07:11.976: V/TEALIUM MAP(1776): uuid: bfxb0668-fc34-5adf-bd9a-868493170b3d 
08-05 10:07:11.976: V/TEALIUM UUID(1776): bfxb0668-fc34-5adf-bd9a-868493170b3d

Replace the Log.v's with a variable assignment to use this data.

Public