0
我試圖讓圖片,但與我的代碼,是必要的,以確認通過「點擊」手勢的形象。沒有「點擊」cofirmation的谷歌玻璃上的圖片
這裏是我的代碼:
private void takePicture() {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, TAKE_PICTURE_REQUEST);
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == TAKE_PICTURE_REQUEST && resultCode == RESULT_OK) {
String thumbnailPath = data.getStringExtra(Intents.EXTRA_THUMBNAIL_FILE_PATH);
String picturePath = data.getStringExtra(Intents.EXTRA_PICTURE_FILE_PATH);
processPictureWhenReady(picturePath);
// TODO: Show the thumbnail to the user while the full picture is being
// processed.
}
else{
takePicture();
}
super.onActivityResult(requestCode, resultCode, data);
}
我看到這個帖子:
Is it possible to take a photo using Google Glass without "tap to accept"?
但是,如果沒有點擊,我不能得到的圖片。 有沒有例子?
謝謝!