mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:33:20 +08:00
Update camera.android.ts
This commit is contained in:
@ -23,7 +23,6 @@ export var takePicture = function (options?): Promise<any> {
|
|||||||
var takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
|
var takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
var dateStamp = createDateTimeStamp();
|
var dateStamp = createDateTimeStamp();
|
||||||
|
|
||||||
var fileSystem: typeof fileSystemModule = require("file-system");
|
|
||||||
if (saveToGallery) {
|
if (saveToGallery) {
|
||||||
var picturePath = android.os.Environment.getExternalStoragePublicDirectory(
|
var picturePath = android.os.Environment.getExternalStoragePublicDirectory(
|
||||||
android.os.Environment.DIRECTORY_PICTURES).getAbsolutePath() + "/" + "cameraPicture_" + dateStamp + ".jpg";
|
android.os.Environment.DIRECTORY_PICTURES).getAbsolutePath() + "/" + "cameraPicture_" + dateStamp + ".jpg";
|
||||||
|
Reference in New Issue
Block a user