This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One project gives error other not

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whe i use import com.google.android.maps.MapView in one project it gives errror.But if i use it in another projectno error.
where is the error?
I have attached a screenshot
error.png
[Thumbnail for error.png]
 
Tim Moores
Bartender
Posts: 2790
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe one project includes the corresponding library, whereas the other does not?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added maps.jar file.Then some of the errors gone.But still there are errors.
what is the jar file for IntentReceiver?

I am refereing this example.

http://www.anddev.org/viewtopic.php?t=87
 
Tim Moores
Bartender
Posts: 2790
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the jar file for IntentReceiver?

There is no class of that name in any package of the Android API; a check of the API docs would have told you that quickly and easily. That article is from before Android 1.0 got released; that class must have been removed or renamed.
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see one of the project uses GoogleAPI 2.2 and other uses Android 2.2....
I dont know but can this be.....
 
Tim Moores
Bartender
Posts: 2790
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishal Trivedi wrote:I see one of the project uses GoogleAPI 2.2 and other uses Android 2.2....
I dont know but can this be.....

Easily - by setting the projects up that way. But that has nothing to do with the IntentReceiver class.
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK
I just asked Mr. Google about it and he said the IntentReciever has been removed but you can use BroadcastReciever though
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic