【发布时间】:2016-02-10 09:11:23
【问题描述】:
按照这篇文章参考
getApplicationContext()' on a null object reference using volley in non-activity
这是我的舞台:
登录 >(呼叫客户)Cliente.class> 转到“Welcome.class”
运动 >(调用运动帐户)Movimientos.class>返回运动
帐户 >(调用列表帐户)Cuentas.class>返回帐户
但我只能添加到 AndroidManifest android:name="restful.dao.Cliente"
<application
android:name="restful.dao.Cliente"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
所有这些都使用 URL volley 和 JSON。
他们,如何为所有非活动添加属性上下文? - Cliente.class - Movimientos.class - Cuentas.class
考虑到我不能添加多个标签
- android:name="restful.dao.Cliente"
- android:name="restful.dao.Movimientos"
- android:name="restful.dao.Cuentas"
【问题讨论】:
标签: android json rest android-volley