Google Maps widget does not show up on some Android devices -


i have android application google maps widged built in. linked widget conditionally, code loading widget looks this:

public class starter extends activity {   @override   public void oncreate(bundle savedinstancestate)   {     super.oncreate(savedinstancestate);     setcontentview(r.layout.starter);      try     {       class.forname("com.google.android.maps.mapview");        intent = new intent();       i.setclass(this, googlemapsactivity.class);        startactivity(i);       finish();     }     catch(classnotfoundexception e)     {       textview tv = (textview)findviewbyid(r.id.google_maps_start);       tv.settext(r.string.not_found);     }   } } 

and androidmanifest contains line:

<uses-library android:name="com.google.android.maps" android:required="false" /> 

the widget works in emulator , in real devices, there device, see "google maps not found" message, initiated classnotfoundexception handler. nevertheless, same device have google maps on board , work ok. question wrong application, or possibly specific device, , how fix problem?


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -