解决方案 »
- 有关于启动了多个service如何关闭
- 如何启动系统自带闹钟?
- android操作oracle数据库
- android c
- Android Service的问题
- android 里的后台服务中想显示对话框,怎么实现?
- Android 定时开关机
- Failed to install *.apk on device 'emulator-5554': timeout
- 关于Object的toString()方法
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 银联
- 求这种效果的demo
- [一维条码扫描][移动开发]如何在安卓的pad上实现一维条码扫描?
public static class LoadPage {
static Dialog dialog = new Dialog(MainActivity.ma, R.style.laoding);
static LayoutInflater inflater = LayoutInflater.from(MainActivity.ma);
//static View layout = inflater.inflate(R.layout.load, null);
public static void open(){
dialog.setContentView(R.layout.load);
if (ma.isChild()) {
}
dialog.show();
} public static void closer() {
dialog.dismiss();
}
}
但是 每次app 有缓存启动时就会报
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41a62d70 is not valid; is your activity running?这个错误