I tried the code at this link, but its not working on Galaxy Young device.
Having fragment exception at layout file.
at code:- *setContentView(R.layout.activity_main);*
01-30 14:01:41.089: E/AndroidRuntime(451): FATAL EXCEPTION: main
01-30 14:01:41.089: E/AndroidRuntime(451): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.example.androidmapsv2/com.example.androidmapsv2.MainActivity}:
android.view.InflateException: Binary XML file line #12: Error inflating
class fragment
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.os.Looper.loop(Looper.java:130)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.ActivityThread.main(ActivityThread.java:3683)
01-30 14:01:41.089: E/AndroidRuntime(451): at
java.lang.reflect.Method.invokeNative(Native Method)
01-30 14:01:41.089: E/AndroidRuntime(451): at
java.lang.reflect.Method.invoke(Method.java:507)
01-30 14:01:41.089: E/AndroidRuntime(451): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
01-30 14:01:41.089: E/AndroidRuntime(451): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
01-30 14:01:41.089: E/AndroidRuntime(451): at
dalvik.system.NativeStart.main(Native Method)
01-30 14:01:41.089: E/AndroidRuntime(451): Caused by:
android.view.InflateException: Binary XML file line #12: Error inflating
class fragment
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.view.LayoutInflater.inflate(LayoutInflater.java:408)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-30 14:01:41.089: E/AndroidRuntime(451): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.Activity.setContentView(Activity.java:1657)
01-30 14:01:41.089: E/AndroidRuntime(451): at
com.example.androidmapsv2.MainActivity.onCreate(MainActivity.java:35)
01-30 14:01:41.089: E/AndroidRuntime(451): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
On Wed, Jan 30, 2013 at 10:33 AM, sree android
<[email protected]>wrote:
> see these link,it is usefull to u.
>
> http://android-er.blogspot.in/2013/01/using-mapfragment-instead-of.html
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Thanks !!!
Harpreet Singh
Mobile: 9041132001 & 9988780509
email: [email protected]
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.