@Rpc(
     description = "Displays a list of phone numbers to pick from.",
     returns = "The selected phone number.")
 public String pickPhone() throws JSONException {
   String result = null;
   Intent data = mCommonIntentsFacade.pick("content://contacts/phones");
   if (data != null) {
     Uri phoneData = data.getData();
     Cursor cursor = mService.getContentResolver().query(phoneData, null, null, null, null);
     if (cursor != null) {
       if (cursor.moveToFirst()) {
         result = cursor.getString(cursor.getColumnIndexOrThrow(PhonesColumns.NUMBER));
       }
       cursor.close();
     }
   }
   return result;
 }
 @Rpc(
     description = "Displays a list of contacts to pick from.",
     returns = "A map of result values.")
 public Intent pickContact() throws JSONException {
   return mCommonIntentsFacade.pick("content://contacts/people");
 }