【发布时间】:2010-02-03 22:24:06
【问题描述】:
我正在运行一个 Wikiitude 应用程序,它显示了兴趣点 (兴趣点)。当应用程序启动时,我单击一个按钮来启动 ARView (增强现实),在那里我可以看到叠加的 POI 图像 在实时相机图像上。
现在我想经常更换这些图像。
我正在使用:
// Need handler for callbacks to the UI thread
final Handler mHandler = new Handler();
// Create runnable for posting
final Runnable mUpdateResults = new Runnable() {
public void run() {
updateResultsInUi();
}
};
protected void startLongRunningOperation() {
// Fire off a thread to do some work
Thread t = new Thread() {
public void run() {
Pi.computePi(800).toString(); //Do something for a while
mHandler.post(mUpdateResults); //then update image
}
};
t.start();
}
但没有任何效果。我确定我做错了什么......
提前谢谢大家。
【问题讨论】:
标签: android image point-of-interest