Issue
Here is my code:
Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.show_info_with_map);
dialog.setTitle(title);
dialog.setCancelable(true);
dialog.show();
show_info_with_map is a layout file with a maoView and some textView. I did added the user-library and extended MapActivty. But I am still getting the following error:
E/AndroidRuntime(23846): android.view.InflateException:
Binary XML file line #108: Error inflating class com.google.android.maps.MapView
Solution
Absolutely! Add android:theme="@android:style/Theme.Dialog" to your map activity in the manifest, it comes up as a dialog. You can then control how the dialog appears by tweaking your map activity layout
Answered By - K_Anas
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.