本文整理了Java中android.content.Intent.getDoubleArrayExtra()
方法的一些代码示例,展示了Intent.getDoubleArrayExtra()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Intent.getDoubleArrayExtra()
方法的具体详情如下:
包路径:android.content.Intent
类名称:Intent
方法名:getDoubleArrayExtra
暂无
代码示例来源:origin: JackWHLiu/jackknife
public static double[] getDoubleArrayExtra(Intent intent, String name) {
if (intent != null || !hasExtra(intent, name)) return null;
return intent.getDoubleArrayExtra(name);
}
代码示例来源:origin: xiaolongonly/Ticket-Analysis
public static double[] getDoubleArrayExtra(Intent intent, String name) {
if (!hasIntent(intent) || !hasExtra(intent, name)) return null;
return intent.getDoubleArrayExtra(name);
}
代码示例来源:origin: TellH/AutoGo
return checkNull(intent.getLongArrayExtra(key), defValue);
} else if ("double[]".equals(type)) {
return checkNull(intent.getDoubleArrayExtra(key), defValue);
} else if ("byte[]".equals(type)) {
return checkNull(intent.getByteArrayExtra(key), defValue);
代码示例来源:origin: GeoODK/collect
if (intent != null && intent.getExtras() != null) {
if ( intent.hasExtra(GeoPointWidget.LOCATION) ) {
double[] location = intent.getDoubleArrayExtra(GeoPointWidget.LOCATION);
mLatLng = new LatLng(location[0], location[1]);
代码示例来源:origin: GeoODK/collect
if (intent != null && intent.getExtras() != null) {
if ( intent.hasExtra(GeoPointWidget.LOCATION) ) {
double[] location = intent.getDoubleArrayExtra(GeoPointWidget.LOCATION);
mGeoPoint = new GeoPoint((int) (location[0] * 1E6), (int) (location[1] * 1E6));
内容来源于网络,如有侵权,请联系作者删除!