Android : Android development - Drawing Google Maps inside a Drawer Navigation Activity Class

on Tuesday, October 7, 2014


Ok, so I just begun with Android Development and basically my issue is what title describes. What I tried until now is to create a default Drawer Navigation Activity project and "grab" the default code produced from a Google Maps Activity project and try to inject it inside the Drawer Navigation project.


The reason I want this to work is because Drawer Nav Activity looks nice and it would be nice to have google maps in the main screen of it.


I tried various stuff and I tried playing with it a lot, but always I end up with an error or the App Force Closing. One of the ways that I tried to make this happen, is by creating an intent and calling the map activity class inside the OnCreate() function of Drawer Class, but I keep receiving a Null Pointer error.


So, I can post the current code if you need it, but I would like first to hear opinions about a good way to implement the above idea.


Well, if someone could provide with a simple working example, this would definitely be awesome.


~ Thank you all, any comment/opinion/suggestion is warmly welcome.


0 comments:

Post a Comment