简体   繁体   中英

How to get android:name from <application>

我如何从<application android:theme="@style/AppTheme" android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:name="here custom path to java file from patch" android:debuggable="true" android:allowBackup="true" android:resizeableActivity="true"> (在清单中)使用 Java?

您可以像这样获取应用程序名称:-

 String appName =  getApplication().getApplicationInfo().name;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM