공부방/Android

How to change android app name(안드로이드 앱 이름 변경 방법)

soycrab 2020. 1. 22. 11:58

프로젝트 생성 후 앱 이름을 변경하고 싶다면 어떻게 해야 할까?

 

먼저 string.xml 파일을 들어가보면  (파일을 쉽게 찾고 싶다면 shift를 두 번 연속 누르고 검색하면 된다.)

 

<resources>
    <string name="app_name">AppName</string>
</resources>
    

위의 app_name 이라는 Resource 가 있을 것이다.

 

해당 부분을 원하는 이름으로 변경 후 

 

 

 

 

AndroidManifest.xml  로 이동한다. 

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="패키지명">

    <application
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

 

@string/app_name 이 사용된 곳이 두 곳이 보일 것이다. 

 

해당 부분을 변경해 주면

 

앱 이름이 변경된다.

 

 

 

반응형