最新回答 / Forest_Deer
deleteFilesByDirectory(context.getCacheDir());//getCacheDir()获取缓存路径详情可见http://mobile.51cto.com/abased-401823.htm
2015-05-19
最赞回答 / _爱吃猫的鱼
八成是tv.setText(getResources().getString(R.string.content));写错了,我第一次写成tv.setText(getResources().getString(R.id.content));后显示即为false
2015-05-17
add方法报错的, 点了后退直接退了activity的。看看你是不是用了ActionBarActivity(老师是Activity)
如果是ActionBarActivity,要这样
android.support.v4.app.FragmentManager manager = getSupportFragmentManager();
android.support.v4.app.FragmentTransaction transaction = manager.beginTransaction();
MyFragment 继承 android.support.v4.app.Fragment
如果是ActionBarActivity,要这样
android.support.v4.app.FragmentManager manager = getSupportFragmentManager();
android.support.v4.app.FragmentTransaction transaction = manager.beginTransaction();
MyFragment 继承 android.support.v4.app.Fragment
2015-05-16