0

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 :)

Jawad Rauf
  • 109
  • 1
  • 3
  • 8

3 Answers3

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.

Community
  • 1
  • 1
MByD
  • 129,681
  • 25
  • 254
  • 263
  • 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 G
  • 6,161
  • 5
  • 43
  • 66
  • 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
  • I guess you imported `android.R`, remove it and you should be fine. – Nima G Mar 19 '14 at 15:36
0

Application names cannot have any space in between.

artist
  • 5,751
  • 8
  • 22
  • 34