काम नहीं कर रहा है इसलिए मुझे एक जेनरेट की गई लॉगिन स्क्रीन (जिसे आप सीधे ग्रहण से बना सकते हैं) के साथ एक एंड्रॉइड ऐप प्राप्त कर लिया है। यह काम कर रहा है समस्या यह है: मैंने लॉन्चर गतिविधि होने के लिए लॉगिन स्क्रीन सेट की है। यह काम। दुर्भाग्य से ऐप को लॉगिन गतिविधि के लेबल पैरामीटर के रूप में जाना जाता है। एंड्रॉइड का मतलब है: एप्लिकेशन का लेबल वैल्यू बस अनदेखा किया जाता है।एप्लिकेशन लेबल में ऐप का नाम सेट करना
यहाँ मेरी कोड के रूप में मेरे सवाल का काफी अस्पष्ट लगता है:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" <!-- the app name i want it to have -->
android:theme="@style/AppTheme" >
<activity
android:name="com.test.testytest.MainActivity"
android:configChanges="orientation"
android:label="@string/app_name" >
</activity>
<!-- some more activities -->
<activity
android:name="com.test.testytest.LoginActivity"
android:label="@string/title_activity_login" <!-- the name the app is called in the drawer etc. -->
android:windowSoftInputMode="adjustResize|stateVisible" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
strings.xml:
<string name="app_name">Testy Test!</string>
strings_activity_login:
<string name="title_activity_login">Sign in</string>
जब मैं प्रवेश गतिविधि की स्ट्रिंग को बदलने app_name के लिए, ऐप का नाम भी बदलता है। लेकिन मुझे पूरा यकीन है कि ऐप को एंड्रॉइड में परिभाषित किया जाना चाहिए:
आशा है कि आप मेरी मदद कर सकते हैं या मुझे मेरी गलती पर इंगित कर सकते हैं (शायद मुझे थोड़ी सी जानकारी याद आ रही है)।
थोड़ा संपादित करें: मैं अपनी लॉगिन गतिविधि के लेबल को बदलना नहीं चाहता क्योंकि यह "लॉगिन" होना चाहिए। और इसे कॉल करने वाली पहली गतिविधि भी रहनी चाहिए। लेकिन दराज में ऐप नाम एक परिभाषित किया जाना चाहिए।
मुझे धन्यवाद मत करो, मार्क Renouf धन्यवाद। यदि यह आपके लिए काम करता है, तो आपको [उसका जवाब] अपनाना चाहिए (http://stackoverflow.com/a/7250902/752320)। – Geobits
यह मेरी समस्या तय है। स्पष्ट स्पष्टीकरण वास्तव में सहायक था, धन्यवाद! – Panda4Man