select count('number') from(select count(*) from km_lore_doc_sort t0 inner join km_lore_depot_sort t2 on t0.sortid=t2.id where ( (t2.leftnum between :leftnum667 and :leftnum668 )) and t0.scurrent=:scurrent669 GROUP BY t0.editionid) number [ (leftnum667=>'1') (leftnum668=>'50') (scurrent669=>'Current') ]select count('number') from(select count(*) from km_lore_doc_sort t0 inner join km_lore_depot_sort t2 on t0.sortid=t2.id where ( (t2.leftnum between :leftnum667 and :leftnum668 )) and t0.scurrent=:scurrent669 GROUP BY t0.editionid) number [ (leftnum667=>'1') (leftnum668=>'50') (scurrent669=>'Current') ]select count('number') from(select count(*) from km_lore_doc_sort t0 inner join km_lore_depot_sort t2 on t0.sortid=t2.id where ( (t2.leftnum between :leftnum667 and :leftnum668 )) and t0.scurrent=:scurrent669 GROUP BY t0.editionid) number [ (leftnum667=>'1') (leftnum668=>'50') (scurrent669=>'Current') ]select count('number') from(select count(*) from km_lore_doc_sort t0 inner join km_lore_depot_sort t2 on t0.sortid=t2.id where ( (t2.leftnum between :leftnum667 and :leftnum668 )) and t0.scurrent=:scurrent669 GROUP BY t0.editionid) number [ (leftnum667=>'1') (leftnum668=>'50') (scurrent669=>'Current') ]
// TODO 自动生成的方法存根
super.onCreate();
//new LogUtil().record("全局变量初始化");new LogUtil().record("初始化全局");}
你需要在 onCreate() 中加上
context=this;
试试看
// TODO 自动生成的方法存根
super.onCreate();
MyApp.context = getApplicationContext();
new LogUtil().record("初始化全局");}
在程序首次运行都很正常,就是退出后通过日志观察到在小内存低版本的机器上(256M)发现应用又重新进行MyApp的onCreat,然后就崩溃,在大内存高版本的机器上没出现这个情况
public void handleMessage(Message msg){
switch(msg.what){
case 0:
Toast.makeText(MyApp.getAppContext(), "亲爱的,没有找到你的小苹果,重新设定再次寻找", Toast.LENGTH_LONG).show();
break;
case 1:
.....................
break;
}}}
意义你懂的。