Android模拟器相机自定义图片

2023-04-23移动开发问题
58

本文介绍了Android模拟器相机自定义图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

有人知道模拟器相机启动时可以打开一些个人照片吗?

Does anybody know is it possible to open some personal picture when emulator camera starts?

我有一个基于图像分析的应用程序,我希望当我单击相机的按钮时,相机会打开而不是默认的 Android 模拟器移动图像.我希望它打开一些我设置为默认图像的图像.因此,当我选择拍照时,它只会显示该图像,而当我拍照时,该图像将保存到图库,而不是 Android 默认图像.

I have an application which is based on image analysis and I would like when I click a button for camera that camera opens not that default Android emulator moving image. I want it to open some image which I set as a default image. So when I choose to take a picture it will show only that image and when I take a take a picture, that image will be saved to gallery, not Android default image.

推荐答案

从以下网址下载源码.这是模拟器中的另一个画廊.在传递从相机捕获图像的意图时,选择此图库.这看起来像三星移动 3d 画廊.. 这将返回默认图像.. 在模拟器中.还有一件事,它只在 3.0 版本之后才能正常工作.

Download the source from following url . This is work as the another Gallery in the emulator. While passing intent to capture image from camera choose this gallery. this is looks like samsung mobile 3d gallery.. this will return the default images.. in emulators . one more thing it will work fine after 3.0 versions only.

https://github.com/c-jiang/Gallery3D-Mod

这篇关于Android模拟器相机自定义图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

Cocos2d - 对 CCSprite 应用 GLImageProcessing 效果
Cocos2d - apply GLImageProcessing effect to CCSprite(Cocos2d - 对 CCSprite 应用 GLImageProcessing 效果)...
2024-08-12 移动开发问题
10

如何在 COCOS2d Android 中使用 CClistview?
How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)...
2024-08-12 移动开发问题
5

未找到 SpriteBuilder 图像文件
SpriteBuilder image file not found(未找到 SpriteBuilder 图像文件)...
2024-08-12 移动开发问题
8

如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像
How to add seperate iPad and iPhone images in spritebuilder- Cocos2d 3.2(如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像)...
2024-08-12 移动开发问题
4

带有大图像的Objective C iPad动画-使用什么方法?
Objective C iPad Animation with large images - What method to use?(带有大图像的Objective C iPad动画-使用什么方法?)...
2024-08-12 移动开发问题
10

iOS 和 Cocos2d - 更改 CCSprite 的图像和新尺寸 = FAIL
iOS and Cocos2d - Changing CCSprite#39;s image AND new dimensions = FAIL(iOS 和 Cocos2d - 更改 CCSprite 的图像和新尺寸 = FAIL)...
2024-08-12 移动开发问题
8