每次我运行库附带的示例浮动应用程序时,应用程序都会崩溃,并且我会在 logcat 中找到类未找到错误。如果我删除了对相关类的所有引用,我只会得到另一个类的类未找到错误。我不确定如何添加 logcat,所以我把它放在这里。这是主类的代码。
package wei.mark.example;
import wei.mark.standout.StandOutWindow;
import android.app.Activity;
import android.os.Bundle;
public class StandOutExampleActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StandOutWindow.closeAll(this, SimpleWindow.class);
StandOutWindow.closeAll(this, MultiWindow.class);
StandOutWindow.closeAll(this, WidgetsWindow.class);
// show a MultiWindow, SimpleWindow
StandOutWindow
.show(this, SimpleWindow.class, StandOutWindow.DEFAULT_ID);
StandOutWindow.show(this, MultiWindow.class, StandOutWindow.DEFAULT_ID);
StandOutWindow.show(this, WidgetsWindow.class,
StandOutWindow.DEFAULT_ID);
// show a MostBasicWindow. It is commented out because it does not
// support closing.
StandOutWindow.show(this, MostBasicWindow.class,
StandOutWindow.DEFAULT_ID);
finish();
}
}