iOS调用系统功能
[1] 相册、相机
相机:
Intent intent = new Intent();
intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
intent.addCategory(Intent.CATEGORY_DEFAULT);
startActivityForResult(intent,1);
相册:
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent,1);
[2] WiFi、BlueTooth
WiFi:
startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));
BlueTooth:
startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));
网友评论