Fragment初始化的问题
07-23 15:09:24.730: E/AndroidRuntime(27782): Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.cloud.weidao.MainActivity: make sure class name exists, is public, and has an empty constructor that is public
请问怎么解决
07-23 15:09:24.730: E/AndroidRuntime(27782): Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.cloud.weidao.MainActivity: make sure class name exists, is public, and has an empty constructor that is public
请问怎么解决
解决方案 »
- PC机与Android开放板进行USB Socket通信 报错 求解答
- Android onItemSelected 事件的一点问题
- ListView布局,里面的值显示不出来,把代码贴出来,各位帮分析下
- 这种XML该怎么解析。
- Android数据库sqlite的db文件如何维护
- 为什么observer在service中不能启动,请大侠们帮忙看看
- Android收不到WAP PUSH的信息(验证方法:发送8000到10658000可以立即收到push信息)
- 横竖屏切换 listener
- 网上那个HelloWorld出错了
- 关于listview绑定问题
- 关于跳转的问题
- Android Sensor的问题
这是APIDemos中关于fragment的代码。你看看class节点是否正确?
<fragment
android:id="@+id/titles"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.uestc.fragment.FragmentLayout$TitlesFragment" />