开发者

Naming your android app

I have created an app on Android and for some reason it is unnamed when seen on the phone My manifest file is

<application android:icon="@drawable/bampong" android:label="BAM! Pong" android:debuggable="true">


<activity android:label="@string/app_name" android:screenOrientation="portrait" android:name=".Start"><intent-filter><action android:name="android.intent.action.MAIN"></action>

开发者_StackOverflow

I tried adding android:name="appname",but gives an error


You need to add a string resource "app_name." (The file will be res/values/string.xml.) See the Android Hello World example for more information.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello, Android! I am a string resource!</string>
    <string name="app_name">Hello, Android</string>
</resources>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜