android - Android list 中的多个应用程序名称

标签 android android-studio android-volley

我是 volley 的新手。我有两个类,AppController Singleton 类和 ImageController Singleton 类。但是在 Manifest 中,它只允许一个应用程序名称。那么我该如何解决呢?

最佳答案

你可以这样试试:

应用类无人:

public class MyApplication extends Application {
}

应用类二:

public class MyApplication2 extends MyApplication  {
}

在您的 list 中:

<application
    android:name=".MyApplication2"
    android:allowBackup="false"
    android:icon="@drawable/app_icon"
    android:label="@string/app_name"
    android:supportsRtl="true"/>

关于android - Android list 中的多个应用程序名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37454231/

相关文章:

android - 使用 PhoneGap 插件点击推送通知时无法打开应用程序?

java - 如何修复 org.json.JSONException : on Volley?

android - 无法在 Android 的 Volley 请求监听器中更新 ListView 适配器

java - Google Play 服务和 Google map 错误

android-studio - 尽管显示 "flutter devices"命令,但在 Flutter Android Studio 中未检测到 iPhone

java - 如何自定义 Lollipop 上的 Activity 转换,以在某些 View 上以不同方式工作?

java - 自动设置内容

syntax - 需要帮助来了解android.volley.requestQueue文档示例的语法

javascript - Webview 无法在 onPageFinished 加载 javascript

android - BOOT_COMPLETE 和 ACTION_SHUTDOWN 从不调用 BroadcastReceiver