Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add global varible to android manifest file

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I add a global class to my android project as below




I have added my Global class to manifest like below.



when i run the programm
it gives me below error

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does this tell you?

Caused by: java.lang.ClassNotFoundException: com.connection.phonedetails.Global
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why it gives classnotfound exception.I have already define the class in manifest file as below.

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Programming is all about paying attention to details. So: Which class, exactly, is it complaining about? And which class, exactly, are you trying to use?
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
test class is my main activity.Global class is use to get global varible.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class name is not the issue; the package name is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic