Postingan

Menampilkan postingan dari Mei, 2022

How to change an Android app's name?

Is there a way to change the name (Launcher App Label) of an app without creating a new project? Note: Name of the App and The label shown on the Launcher Icon on Home Screen on Mobiles can be different. Example: On the home page in my Mobile where my apps are, I have an icon and the name Foo, but I want to change the name to Bar. Can I do this? Yes you can. By changing the android:label field in your application node in AndroidManifest.xml. Note: If you have added a Splash Screen and added  <activity     android:name=".SplashActivity"     android:label="@string/title_activity_splash_screen"     android:theme="@style/AppTheme">     <intent-filter>         <action android:name="android.intent.action.MAIN" />         <action android:name="android.intent.action.VIEW" />         <category android:name="android.intent.category.LAUNCHER" />     </...

How do Make a Splash Screen

When you open any android app you will get by default a some what black screen with the title and icon of the app on top, you can change that by using a style/theme. First, create a style.xml in values folder and add a style to it. <style name="splashScreenTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">     <item name="android:windowBackground">@drawable/splash_screen</item> </style> Instead of using @android:style/Theme.DeviceDefault.Light.NoActionBar you can use any other theme as a parent. Second, in your app Manifest.xml add android:theme="@style/splashScreenTheme" to your main activity. <activity         android:name="MainActivity"         android:label="@string/app_name"         android:theme="@style/splashScreenTheme" > Third, Update your theme in your onCreate() launch activity. protected void onCreate(Bundle savedInstanceState) {     // Make sure t...