Swipe google MapView to go to another scren/activity in Android
<p>I want to go to another activity or screen after I swipe the Google Map View. But it's giving me exceptions. I am trying to achieve this using "<strong>ViewPager</strong>" API. Is it possible to swipe to another activity.</p>

<p>The exceptions:</p>

<blockquote>
  <p>07-23 12:22:08.906: E/AndroidRuntime(806): FATAL EXCEPTION: main 07-23
  12:22:08.906: E/AndroidRuntime(806): android.view.InflateException:
  Binary XML file line #7: Error inflating class
  com.google.android.maps.MapView 07-23 12:22:08.906:
  E/AndroidRuntime(806):    at
  android.view.LayoutInflater.createView(LayoutInflater.java:518) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.LayoutInflater.rInflate(LayoutInflater.java:623) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.LayoutInflater.inflate(LayoutInflater.java:408) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.LayoutInflater.inflate(LayoutInflater.java:320) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.LayoutInflater.inflate(LayoutInflater.java:276) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  com.sample.swipeusingviewpager.SwipeUsingViewPagerActivity$SamplePagerAdapter.instantiateItem(SwipeUsingViewPagerActivity.java:61)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.support.v4.view.ViewPager.addNewItem(ViewPager.java:321) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.support.v4.view.ViewPager.populate(ViewPager.java:441) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.support.v4.view.ViewPager.onAttachedToWindow(ViewPager.java:563)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.View.dispatchAttachedToWindow(View.java:6156) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1122)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1127)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1127)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1127)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1127)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  android.view.ViewRoot.performTraversals(ViewRoot.java:765) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.ViewRoot.handleMessage(ViewRoot.java:1859) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.os.Handler.dispatchMessage(Handler.java:99) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.os.Looper.loop(Looper.java:130) 07-23 12:22:08.906:
  E/AndroidRuntime(806):    at
  android.app.ActivityThread.main(ActivityThread.java:3683) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  java.lang.reflect.Method.invokeNative(Native Method) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  java.lang.reflect.Method.invoke(Method.java:507) 07-23 12:22:08.906:
  E/AndroidRuntime(806):    at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  07-23 12:22:08.906: E/AndroidRuntime(806):    at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  dalvik.system.NativeStart.main(Native Method) 07-23 12:22:08.906:
  E/AndroidRuntime(806): Caused by:
  java.lang.reflect.InvocationTargetException 07-23 12:22:08.906:
  E/AndroidRuntime(806):    at
  java.lang.reflect.Constructor.constructNative(Native Method) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  java.lang.reflect.Constructor.newInstance(Constructor.java:415) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  android.view.LayoutInflater.createView(LayoutInflater.java:505) 07-23
  12:22:08.906: E/AndroidRuntime(806):  ... 25 more 07-23 12:22:08.906:
  E/AndroidRuntime(806): Caused by: java.lang.IllegalArgumentException:
  MapViews can only be created inside instances of MapActivity. 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  com.google.android.maps.MapView.(MapView.java:291) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  com.google.android.maps.MapView.(MapView.java:264) 07-23
  12:22:08.906: E/AndroidRuntime(806):  at
  com.google.android.maps.MapView.(MapView.java:247) 07-23
  12:22:08.906: E/AndroidRuntime(806):  ... 28 more</p>
</blockquote>

<p>Thanks.</p>
