0

I have a GoogleMaps object and I want to hide it when the phone is not connected to the internet. GoogleMaps V2

Chrys
  • 343
  • 1
  • 3
  • 13
  • what is your question ? have you tried anything ? – N Sharma Dec 27 '14 at 09:40
  • possible duplicate of [Google Map api 2 how to show/hide GoogleMap?](http://stackoverflow.com/questions/16936624/google-map-api-2-how-to-show-hide-googlemap) – Sufiyan Ghori Dec 27 '14 at 09:40
  • I've tried the first solution from this question but Android Studio says: expected Fragment found com.....GoogleMap – Chrys Dec 27 '14 at 12:02

1 Answers1

0

I've found a possible solution, I put it in a liearlayout then I can hide this layout:

mLinearLayout.setVisibility(View.INVISIBLE);
Chrys
  • 343
  • 1
  • 3
  • 13