用SharedPreferences存储EditText中数据,模拟器调试是出现“应用程序意外停止,请重试”.
用DDMS在data\data\<packagename>\shared_prefs下无建立的数据文件.

解决方案 »

  1.   

    声明:
    SharedPreferences sp;onCreate(.....)中读取
    sp=getSharedPreferences("wenjianming", MODE_PRIVATE);
    boolean init=sp.getBoolean("init", false);onDestory(..)中保存
    Editor editor=sp.edit();
    editor.putBoolean("init",init);
    editor.commit();
      

  2.   

    这个问题你什么都没事,叫人怎么回答你哦!要代码没代码,要Log没Log!你把代码或出错是显示的Log日志弄出来先!
      

  3.   

    建议你学习下这节课程
    http://blog.csdn.net/coolszy/archive/2011/05/21/6435970.aspx