android.content.Intent.getCharArrayExtra()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(212)

本文整理了Java中android.content.Intent.getCharArrayExtra()方法的一些代码示例,展示了Intent.getCharArrayExtra()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Intent.getCharArrayExtra()方法的具体详情如下:
包路径:android.content.Intent
类名称:Intent
方法名:getCharArrayExtra

Intent.getCharArrayExtra介绍

暂无

代码示例

代码示例来源:origin: ukanth/afwall

ListPreference itemList = (ListPreference) findPreference("passSetting");
if (resultCode == getActivity().RESULT_OK) {
  char[] pattern = data.getCharArrayExtra(
      EXTRA_PATTERN);
  final SharedPreferences.Editor editor = G.sPrefs.edit();

代码示例来源:origin: hansenji/pocketknife

@Override
  public String get(Intent intent, String data, String keyPrefix) {
    char[] inArray = intent.getCharArrayExtra(keyPrefix);
    char[] outArray = new char[inArray.length - keyPrefix.length()];
    System.arraycopy(inArray, keyPrefix.length(), outArray, 0, outArray.length);
    return new String(outArray);
  }
}

代码示例来源:origin: JackWHLiu/jackknife

public static char[] getCharArrayExtra(Intent intent, String name) {
  if (intent != null || !hasExtra(intent, name)) return null;
  return intent.getCharArrayExtra(name);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

public static char[] getCharArrayExtra(Intent intent, String name) {
  if (!hasIntent(intent) || !hasExtra(intent, name)) return null;
  return intent.getCharArrayExtra(name);
}

代码示例来源:origin: duaiyun1314/BankCardScanner

@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_result);

    TextView result = (TextView) findViewById(R.id.number);
    ImageView imageView = (ImageView) findViewById(R.id.image);
    int[] picR = getIntent().getIntArrayExtra("PicR");
    char[] StringR = getIntent().getCharArrayExtra("StringR");
    result.setText(String.valueOf(StringR));
    Bitmap bitmap = Bitmap.createBitmap(picR, 400, 80, Bitmap.Config.ARGB_8888);
    imageView.setImageBitmap(bitmap);
  }
}

代码示例来源:origin: TellH/AutoGo

return checkNull(intent.getBooleanArrayExtra(key), defValue);
} else if ("char[]".equals(type)) {
  return checkNull(intent.getCharArrayExtra(key), defValue);
} else if ("short[]".equals(type)) {
  return checkNull(intent.getShortArrayExtra(key), defValue);

相关文章

Intent类方法