我正在运行一个 Wikitude 应用程序,它显示了兴趣点 (POI)。当应用程序启动时,我单击一个按钮来启动 ARView(增强现实),在那里我可以看到 POI 图像叠加在 Live Camera 图像上。
现在我想经常更改这些图像。
我在用着 :
// 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();
}
但没有任何工作。我确定我做错了什么...
提前谢谢大家。