社区
J2ME
帖子详情
Is it OK to record?
nuaaduan2006
2007-04-09 01:27:25
在WTK中搞了一个控制摄像头拍照的程序,但是运行后,点击“拍照”后会出现
** wants to record the snapshot image? Is it OK to record?并在下面有两个按钮,分别对应“No”“Yes”。后面就不能实现了。我该怎么处理呢?谢谢
...全文
191
4
打赏
收藏
Is it OK to record?
在WTK中搞了一个控制摄像头拍照的程序,但是运行后,点击“拍照”后会出现 ** wants to record the snapshot image? Is it OK to record?并在下面有两个按钮,分别对应“No”“Yes”。后面就不能实现了。我该怎么处理呢?谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hxt1227
2008-12-22
打赏
举报
回复
不过我的程序在wtk上运行没有出现上边的错误。。而是在sony虚拟器上才出现的。。。
hxt1227
2008-12-22
打赏
举报
回复
我也遇到这个问题了。。。郁闷了好几天。。调试了一个sonyericsson上demo。。终于知道怎么回事了。。是线程的问题。。我的解决办法是:把
private void takeSnapshot() {
if (player != null) {
try {
//取得拍摄到的图片
byte[] pngImage = videoControl.getSnapshot(null);
midlet.cameraCanvasCaptured(pngImage);
} catch (MediaException me) {
message1 = "MediaException;";
message2 = me.getMessage();
}
catch(Exception me){
}
}
}
改成:private void takeSnapshot(){
new Thread() {
public void run() {
if (player != null) {
try {
//取得拍摄到的图片
byte[] pngImage = videoControl.getSnapshot(null);
midlet.cameraCanvasCaptured1D(pngImage);
} catch (MediaException me) {
message1 = "MediaException;";
message2 = me.getMessage();
}
}
}
}.start();
}
OK啦。。。。
saltedfish_zl
2007-04-09
打赏
举报
回复
把拍照的代码,另外起一个线程执行,不要放在commandAction同一个线程里.
saltedfish
yanhan0615
2007-04-09
打赏
举报
回复
你的镜头盖打开了吗?关于程序,可以看WTK自带的例子
Power Query For Excel数据处理利器(高级篇)
数据源的获取函数 Table高级函数 List列表高级函数
Record
记录高级函数 日期函数 时间函数 正则表达式应用 网页抓取函数
How to play sample bag of ouster?And how to set up network to
record
ouster bag?
cause the short of the learning material about ouster ... Today i will
record
the learning material about how to operate the ouster Lidar how to
record
personal bag for SLAM. about the output of Li...
What Is Web 2.0 ? --by Tim O'Reilly (六)
Questions or comments for Tim about this article? Ask them here. You must be logged in to the OReilly Network to post a talkback. Showing messages 1 through 137 of 137.
硬盘挂载报错 $MFTMirr does not match $MFT (
record
0).Failed to mount
Failed to mount '/dev/sdb1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot...
系统启动过程
The Master Boot
Record
(MBR) ...Why it is Necessary? If you have arrived here through a search engine, and there's no menu to the left click here! When you turn on your PC, the processor atte
J2ME
13,100
社区成员
26,495
社区内容
发帖
与我相关
我的任务
J2ME
Java J2ME
复制链接
扫一扫
分享
社区描述
Java J2ME
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章