Name | Definition |
---|---|
Action | com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE |
Intent Type | broadcast |
Extra 0 | Returns the user's LAS Information. |
Type | String |
Name | user |
Value |
|
adb shell am broadcast -a com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE --es user 'Gabriel'
Name | Definition |
---|---|
Action | com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_STATUS |
Extra 0 | Returns locate_status |
Type | Int |
Name | locate_status |
Value |
|
Extra 1 | Returns locate_result |
Type | String |
Name | locate_result |
Value | If locate_status is 1, the user's LAS Information will be shared if locate_status returns 1. The user's friendly name is returned in JSON format.Example:
|
Extra 2 | Returns locate_error_reason |
Type | String |
Name | locate_error_reason |
Value | If locate_status is returned as 0, the locate_error_reason provides the details about the failure. The reason can be one of the following:
|
Extra 3 | Returns las_user_name |
Type | String |
Name | las_user_name |
Value | Returns the username that is passed as part of the com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE intent. |
Intent intent = new Intent(); intent.setAction("com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE"); intent.putExtra("user", userName); sendBroadcast(intent);
IntentFilter locate_intent= new IntentFilter(); locate_intent.addAction("com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_STATUS"); registerReceiver(mReceiver,locate_intent); public void onReceive(Context context, Intent intent) { String action= intent.getAction(); if(action.equals("com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_STATUS")) { int locate_status = intent.getIntExtra("locate_status" , 0); String locate_result = intent.getStringExtra("locate_result"); Log.i(TAG, "locate_status : "+locate_status+" locate_result : "+locate_result); } } }