我已经安装了eclipse juno 4.2.1 Android SDK,我创建了一个Android应用程序,在创建新的AVD时,Ok按钮总是被禁用,尽管我已经确定了它的所有规格
这是我输入的规格

我不知道为什么有任何想法!谢谢.
我已经尝试过这项工作1. 捕获照片 2. 从它保存的地方获取照片 3. 以base64的形式阅读照片
我遵循了这种方法:
var cameraOptions = {};
function capturePhoto() {
console.log("capture photo");
cameraOptions = { quality: 70, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, saveToPhotoAlbum: true };
doIt();
}
function doIt() {
navigator.camera.getPicture(onCameraSuccess, onCameraFail, cameraOptions);
}
function onCameraSuccess(imageURI) {
console.log("Camera Success");
$('#MokhalfaPhotoLocation').val(imageURI);
console.log("Image URI: " + imageURI);
window.resolveLocalFileSystemURI(imageURI, onResolveImageSuccess, onFail); //get the file from the physical path...
}
function onResolveImageSuccess(fileEntry) {
fileEntry.file(gotFile, onFail);
}
function gotFile(file) {
readDataUrl(file);
}
function readDataUrl(file) {
console.log("read file as dataUrl");
var reader = …Run Code Online (Sandbox Code Playgroud) 我有一个双语网站 en 和 ar 每种语言都有自己的样式表,我想根据所选语言动态加载样式表
知道如何使用 Angular2 来实现这样的要求吗?
这是组件装饰器
@Component({
selector: 'recent-recognition',
template: require('./recent.recognition.component.html'),
styles:
[
//I want to load only one of these based on if condition
require('./recent.recognition.component.css'),
require('./recent.recognition.component.ar.css')
]
})
Run Code Online (Sandbox Code Playgroud)
我还有translate.service,它包含当前语言并在该组件中成功引用。
我尝试以并行方式实现"蒙特卡罗"算法,因此我需要使用随机数生成器的线程安全版本.
我搜索了很多,最后发现
int qrand ()
哪个是标准C++ rand()函数的线程安全版本(在<cstdlib>和中定义<stdlib.h>).当我使用它时,VS解雇了"找不到标识符"错误.
我使用MS visual studio'10并使用OMP在C++中编写我的代码.
有帮助吗?
android ×1
angular ×1
c++ ×1
camera ×1
components ×1
cordova ×1
file ×1
localization ×1
stylesheet ×1
uri ×1