当前位置: 首页>>代码示例>>Java>>正文


Java AddressBookParsedResult.getAddressTypes方法代码示例

本文整理汇总了Java中com.google.zxing.client.result.AddressBookParsedResult.getAddressTypes方法的典型用法代码示例。如果您正苦于以下问题:Java AddressBookParsedResult.getAddressTypes方法的具体用法?Java AddressBookParsedResult.getAddressTypes怎么用?Java AddressBookParsedResult.getAddressTypes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.zxing.client.result.AddressBookParsedResult的用法示例。


在下文中一共展示了AddressBookParsedResult.getAddressTypes方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
  AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
  String[] addresses = addressResult.getAddresses();
  String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
  String[] addressTypes = addressResult.getAddressTypes();
  String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
  int action = mapIndexToAction(index);
  switch (action) {
    case 0:
      addContact(addressResult.getNames(),
                 addressResult.getNicknames(),
                 addressResult.getPronunciation(),
                 addressResult.getPhoneNumbers(),
                 addressResult.getPhoneTypes(),
                 addressResult.getEmails(),
                 addressResult.getEmailTypes(),
                 addressResult.getNote(),
                 addressResult.getInstantMessenger(),
                 address1,
                 address1Type,
                 addressResult.getOrg(),
                 addressResult.getTitle(),
                 addressResult.getURLs(),
                 addressResult.getBirthday(),
                 addressResult.getGeo());
      break;
    case 1:
      searchMap(address1);
      break;
    case 2:
      dialPhone(addressResult.getPhoneNumbers()[0]);
      break;
    case 3:
      sendEmail(addressResult.getEmails(), null, null, null, null);
      break;
    default:
      break;
  }
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:41,代码来源:AddressBookResultHandler.java

示例2: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
    AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
    String[] addresses = addressResult.getAddresses();
    String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
    String[] addressTypes = addressResult.getAddressTypes();
    String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
    int action = mapIndexToAction(index);
    switch (action) {
        case 0:
            addContact(addressResult.getNames(),
                    addressResult.getNicknames(),
                    addressResult.getPronunciation(),
                    addressResult.getPhoneNumbers(),
                    addressResult.getPhoneTypes(),
                    addressResult.getEmails(),
                    addressResult.getEmailTypes(),
                    addressResult.getNote(),
                    addressResult.getInstantMessenger(),
                    address1,
                    address1Type,
                    addressResult.getOrg(),
                    addressResult.getTitle(),
                    addressResult.getURLs(),
                    addressResult.getBirthday(),
                    addressResult.getGeo());
            break;
        case 1:
            searchMap(address1);
            break;
        case 2:
            dialPhone(addressResult.getPhoneNumbers()[0]);
            break;
        case 3:
            sendEmail(addressResult.getEmails(), null, null, null, null);
            break;
        default:
            break;
    }
}
 
开发者ID:xiong-it,项目名称:ZXingAndroidExt,代码行数:41,代码来源:AddressBookResultHandler.java

示例3: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
	AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
	String[] addresses = addressResult.getAddresses();
	String address1 = addresses == null || addresses.length < 1 ? null
			: addresses[0];
	String[] addressTypes = addressResult.getAddressTypes();
	String address1Type = addressTypes == null || addressTypes.length < 1 ? null
			: addressTypes[0];
	int action = mapIndexToAction(index);
	switch (action) {
	case 0:
		addContact(addressResult.getNames(), addressResult.getNicknames(),
				addressResult.getPronunciation(),
				addressResult.getPhoneNumbers(),
				addressResult.getPhoneTypes(), addressResult.getEmails(),
				addressResult.getEmailTypes(), addressResult.getNote(),
				addressResult.getInstantMessenger(), address1,
				address1Type, addressResult.getOrg(),
				addressResult.getTitle(), addressResult.getURLs(),
				addressResult.getBirthday(), addressResult.getGeo());
		break;
	case 1:
		searchMap(address1);
		break;
	case 2:
		dialPhone(addressResult.getPhoneNumbers()[0]);
		break;
	case 3:
		sendEmail(addressResult.getEmails(), null, null, null, null);
		break;
	default:
		break;
	}
}
 
开发者ID:yun2win,项目名称:tvConnect_android,代码行数:36,代码来源:AddressBookResultHandler.java

示例4: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
	AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
	String[] addresses = addressResult.getAddresses();
	String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
	String[] addressTypes = addressResult.getAddressTypes();
	String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
	int action = mapIndexToAction(index);
	switch (action) {
	case 0:
		addContact(addressResult.getNames(), addressResult.getNicknames(), addressResult.getPronunciation(),
				addressResult.getPhoneNumbers(), addressResult.getPhoneTypes(), addressResult.getEmails(),
				addressResult.getEmailTypes(), addressResult.getNote(), addressResult.getInstantMessenger(),
				address1, address1Type, addressResult.getOrg(), addressResult.getTitle(), addressResult.getURLs(),
				addressResult.getBirthday(), addressResult.getGeo());
		break;
	case 1:
		searchMap(address1);
		break;
	case 2:
		dialPhone(addressResult.getPhoneNumbers()[0]);
		break;
	case 3:
		sendEmail(addressResult.getEmails(), null, null, null, null);
		break;
	default:
		break;
	}
}
 
开发者ID:xiong-it,项目名称:PortraitZXing,代码行数:30,代码来源:AddressBookResultHandler.java

示例5: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
  AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
  String[] addresses = addressResult.getAddresses();
  String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
  String[] addressTypes = addressResult.getAddressTypes();
  String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
  int action = mapIndexToAction(index);
  switch (action) {
    case 0:
      addContact(addressResult.getNames(),
                 addressResult.getPronunciation(),
                 addressResult.getPhoneNumbers(),
                 addressResult.getPhoneTypes(),
                 addressResult.getEmails(),
                 addressResult.getEmailTypes(),
                 addressResult.getNote(),
                 addressResult.getInstantMessenger(),
                 address1,
                 address1Type,
                 addressResult.getOrg(),
                 addressResult.getTitle(),
                 addressResult.getURL(),
                 addressResult.getBirthday());
      break;
    case 1:
      String[] names = addressResult.getNames();
      String title = names != null ? names[0] : null;
      searchMap(address1, title);
      break;
    case 2:
      dialPhone(addressResult.getPhoneNumbers()[0]);
      break;
    case 3:
      sendEmail(addressResult.getEmails()[0], null, null);
      break;
    default:
      break;
  }
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:41,代码来源:AddressBookResultHandler.java

示例6: handleClick

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleClick(int buttonID) {
  AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
  String[] addresses = addressResult.getAddresses();
  String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
  String[] addressTypes = addressResult.getAddressTypes();
  String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
  switch (buttonID) {
    case R.id.button_add_contact:
      addContact(addressResult.getNames(),
                 addressResult.getNicknames(),
                 addressResult.getPronunciation(),
                 addressResult.getPhoneNumbers(),
                 addressResult.getPhoneTypes(),
                 addressResult.getEmails(),
                 addressResult.getEmailTypes(),
                 addressResult.getInstantMessenger(),
                 addressResult.getNote(),
                 address1,
                 address1Type,
                 addressResult.getOrg(),
                 addressResult.getTitle(),
                 addressResult.getURLs(),
                 addressResult.getBirthday(),
                 addressResult.getGeo());
      break;
    case R.id.button_show_map:
      searchMap(address1);
      break;
    case R.id.button_dial:
      dialPhone(addressResult.getPhoneNumbers()[0]);
      break;
    case R.id.button_email:
      sendEmail(addressResult.getEmails(), null, null, null, null);
      break;
    default:
      break;
  }
}
 
开发者ID:srowen,项目名称:zxing-bsplus,代码行数:40,代码来源:AddressBookResultHandler.java

示例7: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
  AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
  String[] addresses = addressResult.getAddresses();
  String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
  String[] addressTypes = addressResult.getAddressTypes();
  String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
  int action = mapIndexToAction(index);
  switch (action) {
    case 0:
      addContact(addressResult.getNames(),
                 addressResult.getNicknames(),
                 addressResult.getPronunciation(),
                 addressResult.getPhoneNumbers(),
                 addressResult.getPhoneTypes(),
                 addressResult.getEmails(),
                 addressResult.getEmailTypes(),
                 addressResult.getNote(),
                 addressResult.getInstantMessenger(),
                 address1,
                 address1Type,
                 addressResult.getOrg(),
                 addressResult.getTitle(),
                 addressResult.getURLs(),
                 addressResult.getBirthday(),
                 addressResult.getGeo());
      break;
    case 1:
      searchMap(address1);
      break;
    case 2:
      dialPhone(addressResult.getPhoneNumbers()[0]);
      break;
    case 3:
      sendEmail(addressResult.getEmails()[0], null, null);
      break;
    default:
      break;
  }
}
 
开发者ID:xiaowei4895,项目名称:zxing-android-portrait,代码行数:41,代码来源:AddressBookResultHandler.java

示例8: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
    AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
    String[] addresses = addressResult.getAddresses();
    String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
    String[] addressTypes = addressResult.getAddressTypes();
    String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
    int action = mapIndexToAction(index);
    switch (action) {
    case 0:
        addContact(addressResult.getNames(), addressResult.getPronunciation(), addressResult.getPhoneNumbers(),
                addressResult.getPhoneTypes(), addressResult.getEmails(), addressResult.getEmailTypes(),
                addressResult.getNote(), addressResult.getInstantMessenger(), address1, address1Type,
                addressResult.getOrg(), addressResult.getTitle(), addressResult.getURL(),
                addressResult.getBirthday());
        break;
    case 1:
        String[] names = addressResult.getNames();
        String title = names != null ? names[0] : null;
        searchMap(address1, title);
        break;
    case 2:
        dialPhone(addressResult.getPhoneNumbers()[0]);
        break;
    case 3:
        sendEmail(addressResult.getEmails()[0], null, null);
        break;
    default:
        break;
    }
}
 
开发者ID:thomas-bornschlegel,项目名称:AndroidMultiChannelMiddleware,代码行数:32,代码来源:AddressBookResultHandler.java

示例9: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
  AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
  String[] addresses = addressResult.getAddresses();
  String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
  String[] addressTypes = addressResult.getAddressTypes();
  String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
  int action = mapIndexToAction(index);
  switch (action) {
    case 0:
      addContact(addressResult.getNames(),
                 addressResult.getNicknames(),
                 addressResult.getPronunciation(),
                 addressResult.getPhoneNumbers(),
                 addressResult.getPhoneTypes(),
                 addressResult.getEmails(),
                 addressResult.getEmailTypes(),
                 addressResult.getNote(),
                 addressResult.getInstantMessenger(),
                 address1,
                 address1Type,
                 addressResult.getOrg(),
                 addressResult.getTitle(),
                 addressResult.getURLs(),
                 addressResult.getBirthday(),
                 addressResult.getGeo());
      break;
    case 1:
      String[] names = addressResult.getNames();
      String title = names != null ? names[0] : null;
      searchMap(address1, title);
      break;
    case 2:
      dialPhone(addressResult.getPhoneNumbers()[0]);
      break;
    case 3:
      sendEmail(addressResult.getEmails()[0], null, null);
      break;
    default:
      break;
  }
}
 
开发者ID:PhilippC,项目名称:keepass2android,代码行数:43,代码来源:AddressBookResultHandler.java

示例10: handleButtonPress

import com.google.zxing.client.result.AddressBookParsedResult; //导入方法依赖的package包/类
@Override
public void handleButtonPress(int index) {
    AddressBookParsedResult addressResult = (AddressBookParsedResult) getResult();
    String[] addresses = addressResult.getAddresses();
    String address1 = addresses == null || addresses.length < 1 ? null : addresses[0];
    String[] addressTypes = addressResult.getAddressTypes();
    String address1Type = addressTypes == null || addressTypes.length < 1 ? null : addressTypes[0];
    int action = mapIndexToAction(index);
    switch (action) {
        case 0:
            addContact(addressResult.getNames(),
                    addressResult.getNicknames(),
                    addressResult.getPronunciation(),
                    addressResult.getPhoneNumbers(),
                    addressResult.getPhoneTypes(),
                    addressResult.getEmails(),
                    addressResult.getEmailTypes(),
                    addressResult.getNote(),
                    addressResult.getInstantMessenger(),
                    address1,
                    address1Type,
                    addressResult.getOrg(),
                    addressResult.getTitle(),
                    addressResult.getURLs(),
                    addressResult.getBirthday(),
                    addressResult.getGeo());
            break;
        case 1:
            String[] names = addressResult.getNames();
            String title = names != null ? names[0] : null;
            searchMap(address1, title);
            break;
        case 2:
            dialPhone(addressResult.getPhoneNumbers()[0]);
            break;
        case 3:
            sendEmail(addressResult.getEmails()[0], null, null);
            break;
        default:
            break;
    }
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:43,代码来源:AddressBookResultHandler.java


注:本文中的com.google.zxing.client.result.AddressBookParsedResult.getAddressTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。