学了下aidl 怎么都NullPointExcption 哎 找一下发现少了
<application android:icon="@drawable/icon" android:label="@string/app_name">
<service android:name=".TestService" >
<intent-filter><!-- AIDL完整路径名。必须指明,客户端能够通过AIDL类名查找到它的实现类 -->
<action android:name="com.aidl.LoginServices" />
</intent-filter>
</service>
</application>
加上这个 就行了 呵呵
本文介绍了解决AIDL中出现NullPointerException的方法。通过在AndroidManifest.xml文件中正确配置服务组件和服务的Intent过滤器,确保客户端能够通过AIDL类名找到对应的服务实现。
1736

被折叠的 条评论
为什么被折叠?



