How to open Screen on core from an activity in android modul

Forum for the book "Beginning Android Games", see http://www.apress.com/9781430230427

How to open Screen on core from an activity in android modul

Postby aaronceng » Wed Jun 07, 2017 8:35 am

I am developing a game that uses google maps. I have made my game to check the availability of internet connection. So, when there is no internet connection , there is offline mode for the game which works very fine but when there is internet connection, game displays specific place with the help of google maps. I have kept markers on the place that needs to be shown on maps. And i want to open game screen when i click on markers on the maps. Code for google map is in Android module and screen is in core module. Can anyone help me out how can i open screen when i click on markers using the method provided by google maps which is as follow:
Code: Select all
    public boolean onMarkerClick(Marker marker) {
        mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {
            @Override
            public boolean onMarkerClick(Marker marker) {

               );
        return false;
    }
}
aaronceng
 
Posts: 1
Joined: Wed Jun 07, 2017 7:44 am

Return to Beginning Android Games

Who is online

Users browsing this forum: No registered users and 1 guest