PhoneGap的:摄像头API Getpicture中扩大对话 [英] PhoneGap: Camera API getPicture dialog enlarged

查看:332
本文介绍了PhoneGap的:摄像头API Getpicture中扩大对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android 4.4系统,采用摄像头API Getpicture中API将导致扩大的对话框。

In Android 4.4, using Camera API getPicture API will result in a enlarged dialog.

在code是如下:

        var sourceType = pictureSource.SAVEDPHOTOALBUM;
        navigator.camera.getPicture(function(fileURI) {
                        // Success callback
        }, function(message) {
                       // Fail callback
        }, {quality: 50, destinationType: destinationType.FILE_URI, sourceType: sourceType, mediaType: mediaType, correctOrientation: false, saveToPhotoAlbum: true});

推荐答案

更改安卓:在AndroidManifest.xml anyDensity属性从假变为真解决问题。

Change android:anyDensity property in the AndroidManifest.xml from false to true fix the problem

这篇关于PhoneGap的:摄像头API Getpicture中扩大对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆