I have change the name of my project from "EAAS" to "Get Ambulance". It gave error in setContentView(R.layout.activity_login); The R was red lined so i clicked on it and imported R. package but then it gave error on activity_logic. so i changed my project name again to "Ambulance" the error in R.layout.activity_logic got solved. but now when i run my application on Emulator the name of the project is still "EAAS". its not changed. If anyone knows about these two issue please let me know :)
Asked
Active
Viewed 68 times
3 Answers
0
For the first one, the project name should not contain any spaces.
For the second - You can change the application name in the manifest.
-
What about R.layout.activity_logic? This time when i changed my project name add the java files got error. In "R.layout.activity_logic" the R is underlined red. when i import .R library "activity_logic" got red. – Jawad Rauf Mar 18 '14 at 21:37
0
Look into your strings.xml
file located in res/values/
and change the app_name
entry assuming your Android Manifest file is using app_name for the application name.

Nima
- 6,383
- 7
- 46
- 68
-
What about R.layout.activity_logic? This time when i changed my project name add the java files got error. In "R.layout.activity_logic" the R is underlined red. when i import .R library "activity_logic" got red. – Jawad Rauf Mar 18 '14 at 21:37
-