Name | Definition |
---|---|
Action | com.symbol.wfc.pttpro.ACTION_GET_GROUP_USERS |
Intent Type | broadcast |
Extra 0 | |
Type | String |
Name | group |
Value | If the extra name is group
|
Extra 1 | |
Type | String |
Name | presence |
Value | If the extra name is presence
Other than the above mentioned values, the client does not accept the Intent. |
adb shell am broadcast -a com.symbol.wfc.pttpro.ACTION_GET_GROUP_USERS --es group 'hunting' --ei presence 1
Name | Definition |
---|---|
Action | com.symbol.wfc.pttpro.ACTION_GET_GROUP_USERS_STATUS |
Extra 0 | |
Type | Integer |
Name | status |
Value |
|
Extra 1 | |
Type | String |
Name | results |
Value |
If the ACTION_GET_GROUP_USERS queried for available users, it returns a list of available users. If no users are available, the result is an empty list.Example
The Below are the presence states for the PTT Pro user The presence state of the PTT Pro user follows:
|
Extra 2 | |
Type | String |
Name | error_reason |
Value |
|
Extra 3 | |
Type | String |
Name | group |
Value |
|
Extra 4 | |
Type | String |
Name | presence |
Value |
|
Intent intent = new Intent(); intent.setAction("com.symbol.wfc.pttpro.ACTION_GET_GROUP_USERS"); intent.putExtra("group", hunting); intent.putExtra("presence", 1); sendBroadcast(intent);
IntentFilter intent= new IntentFilter(); intent.addAction("com.symbol.wfc.pttpro.ACTION_GET_GROUP_USERS_STATUS"); registerReceiver(mReceiver,intent); public void onReceive(Context context, Intent intent) { String action= intent.getAction(); if(intent.getAction().equals(MainActivity.INTENT_ACTION_GET_GROUP_USERS_STATUS)) { Log.d(TAG, "Received groupStatus status : " + intent.getIntExtra("status", -1) + " results : " + intent.getStringExtra("results") + " Error reason : " + intent.getStringExtra("error_reason") + " Group : " + intent.getStringExtra("group") + " Presence : " + intent.getStringExtra("presence")); } }