Name | Definition |
|---|---|
Action | com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_LAS_FRIENDLY_NAME
|
Intent Type | broadcast |
Extra 0 | Returns the user's LAS Information. |
Type | String |
Name | friendlyName |
Value |
|
adb shell am broadcast -a com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_LAS_FRIENDLY_NAME --es friendlyName 'Reception'
Name | Definition |
|---|---|
Action | com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_LAS_FRIENDLY_NAME_STATUS
|
Extra 0 | Returns
friendly_name_status
|
Type | Int |
Name | friendly_name_status |
Value |
|
Extra 1 | Returns
locate_result
|
Type | String |
Name | friendly_name_result |
Value | If
friendly_name_status
is 1: List of users belonging to that friendly name will be shared if
friendly_name_status
is returned as 1, as shown belowThis will return list of users belonging to that friendly name as an array of String.
Example:
|
Extra 2 | Returns
friendly_name_error_reason
|
Type | String |
Name | friendly_name_error_reason |
Value | If
friendly_name_status
is returned as 0,
friendly_name_error_reason
provides details about the failure. The reason can be one of the following:
The first two error messages are ended with the friendly name. |
Extra 3 | Returns
friendly_name
|
Type | String |
Name | friendly_name |
Value | Returns the friendly LAS name passed as part of the
com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE_LAS_FRIENDLY_NAME
intent |
Intent intent = new Intent();
intent.setAction("com.symbol.wfc.pttpro.ACTION_PTT_
PRO_LOCATE_LAS_FRIENDLY_NAME");
intent.putExtra("friendlyName","Reception");
sendBroadcast(intent);
IntentFilter intent = new IntentFilter();
intent.addAction("com.symbol.wfc.pttpro.ACTION_PTT
_PRO_LOCATE_LAS_FRIENDLY_NAME_STATUS");
registerReceiver(mReceiver,intent);
public void onReceive(Context context, Intent intent) {
String action= intent.getAction();
if(action.equals("com.symbol.wfc.pttpro.ACTION_PTT_PRO_LOCATE
_LAS_FRIENDLY_NAME_STATUS")) {
int status = intent.getIntExtra("friendly_name_status" , 0);
String friendlyName = intent.getStringExtra("friendly_name");
if (status == 0) {
String error_reason = intent.getStringExtra("friendly_name_error_reason");
Log.i(TAG, "friendlyName: "+friendlyName+" error_reason : "+ error_reason );
}else if (status == 1){
String friendly_name_result = intent.getStringExtra("friendly_name_result");
Log.i(TAG, "friendly_name_result : "+friendly_name_result +" friendlyName: "+friendly_name);
}
}
}