title: Class java.util.Map has generic type parameters, please use GenericTypeIndicator instead
body: <p>I am using firebase to retrieve data from database n use</p>
  
  <p><code>Map&lt;String, String&gt; map = dataSnapshot.getValue(Map.class);</code></p>
  
  <p>to get values, but it shows error</p>
  
  <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
                                                                   Process: com.rana.sahaj.myyu, PID: 13179
                                                                   com.google.firebase.database.DatabaseException: Class java.util.Map has generic type parameters, please use GenericTypeIndicator instead
                                                                       at com.google.android.gms.internal.zzaix.zzb(Unknown Source)
                                                                       at com.google.android.gms.internal.zzaix.zza(Unknown Source)
                                                                       at com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
                                                                       at com.rana.sahaj.myyu.profile.Profile$2.onDataChange(Profile.java:158)
                                                                       at com.google.android.gms.internal.zzafp.zza(Unknown Source)
                                                                       at com.google.android.gms.internal.zzagp.zzSu(Unknown Source)
                                                                       at com.google.android.gms.internal.zzags$1.run(Unknown Source)
                                                                       at android.os.Handler.handleCallback(Handler.java:733)
                                                                       at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                       at android.os.Looper.loop(Looper.java:136)
                                                                       at android.app.ActivityThread.main(ActivityThread.java:5052)
                                                                       at java.lang.reflect.Method.invokeNative(Native Method)
                                                                       at java.lang.reflect.Method.invoke(Method.java:515)
                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
                                                                       at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>here's the code</p>
  
  <pre><code> DatabaseReference profileRef=mFirebaseRef.child(EEmail);
      profileRef.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
  
      --&gt;     Map&lt;String, String&gt; map = (Map&lt;String,String&gt;)dataSnapshot.getValue(Map.class);
  
              name = (TextView)findViewById(R.id.UserInActivity);
              EmailView= (TextView)findViewById(R.id.emailUser);
  
              PhotoUrl = map.get("picurl");
               emmaill=map.get("userEmail");
  
              UserNam = map.get("userNAME");
  
              name.setText(UserNam);
              EmailView.setText(emmaill);
  
  
          }
  
          @Override
          public void onCancelled(DatabaseError firebaseError) {
  
          }
      });
  </code></pre>
  
  <p>n there is no problem with key n values in database.
  used the solution but not working</p>