Issue
In my application, based on a MapActivity
, I want to use different content views. One is a Google map view and the others are "standard" views.
My problem is simple :
- I start with the map view using
setContentView(R.layout.myMapView)
: OK - I switch to another view with
setContentView(R.layout.myOtherView)
: OK - I go back to the map view, again using
setContentView(R.layout.myMapView)
: the application crashes.
What am I doing wrong?
Thanks in advance for the time you will spend trying to help me.
Solution
Why are you using two different layouts with only one activity? Why don't you use two different activities each based on one single layout?
I think it would be easier to handle.
Answered By - Romain Piel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.