Android4.4, extents PreferenceActivity, Runtime Exception 解决办法。
来源:互联网 发布:搜狐邮箱 imap 端口 编辑:程序博客网 时间:2024/06/05 17:53
在Android4.4中,如果一个class继承自PreferenceActivity。执行startActivity跳转到该类时,会报运行时错误:Caused by: java.lang.RuntimeException: Subclasses of PreferenceActivity must override isValidFragment(String) to verify that the Fragment class is valid!
解决办法时重写isValidFragment方法
@Override
protected boolean isValidFragment(String fragmentName) {
return true;
}
0 0
- Android4.4, extents PreferenceActivity, Runtime Exception 解决办法。
- Android4.0 PreferenceActivity
- Android4.0 PreferenceActivity
- runtime exception
- Extents
- Runtime Exception vs Exception
- check exception , runtime exception
- ORA-1693: max # extents 505 错误解决办法
- runtime exception和checked exception
- :runtime exception和checked exception
- runtime exception和checked exception
- 常见的runtime exception
- 常见的 Runtime Exception
- android4.4中addjavascriptinterface失效的解决办法
- Checked Exception与Runtime Exception 的区别
- 关于runtime exception和checked exception
- runtime exception和checked exception的区别?
- difference-between-unchecked-exception-or-runtime-exception
- 常用控件(二) : RecyclerView
- android 之加载图片(二)
- cortex m0 lpc1114_GPIO引脚寄存器综述
- 分布式系统的事务处理
- 正则表达式 验证日期合法性(包括匹配闰年)
- Android4.4, extents PreferenceActivity, Runtime Exception 解决办法。
- 详细解析Java中抽象类和接口的区别
- 课程设计RIP协议路由表调整算法
- jsp显示优酷视频
- 购物网站建设购物车设计的6个关键点
- 关于切换程序输入法变成全角。
- 经典代码 南阳 oj 单调(递减)递增最长子序列
- jquery实现table列合并
- 手机屏幕卡住调试