title: Here maps is not working
body: <p>I want to implement <strong><a href="https://www.here.com/" rel="nofollow">HERE Maps</a></strong> in my App. I just started to implement a sample app that just show <strong>HERE Maps</strong>. </p>
  
  <h2>My code:</h2>
  
  <pre><code>// map embedded in the map fragment
  private Map map = null;
  
  // map fragment embedded in this activity
  private MapFragment mapFragment = null;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_here_maps);
  
      // Search for the map fragment to finish setup by calling init().
      mapFragment = (MapFragment) getFragmentManager().findFragmentById(
              R.id.mapfragment);
  
        /*com.here.android.mpa.common.MapSettings.setIsolatedDiskCacheRootPath(
                  "/sdcard/foo/myservice"
                  , "com.here.android.mpa.service.MapService");*/
  
      mapFragment.init(new OnEngineInitListener() {
          @Override
          public void onEngineInitializationCompleted(
                  OnEngineInitListener.Error error) {
              if (error == OnEngineInitListener.Error.NONE) {
                  // retrieve a reference of the map from the map fragment
                  map = mapFragment.getMap();
                  // Set the map center to the Vancouver region (no animation)
                  map.setCenter(
                          new GeoCoordinate(49.196261, -123.004773, 0.0),
                          Map.Animation.NONE);
                  // Set the zoom level to the average between min and max
                  map.setZoomLevel((map.getMaxZoomLevel() + map
                          .getMinZoomLevel()) / 2);
              } else {
                  System.out.println("ERROR: Cannot initialize Map Fragment");
              }
          }
      });
  
  }
  </code></pre>
  
  <p>But unfortunately it's not working.</p>
  
  <h2>Layout:</h2>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" &gt;
  
  &lt;!-- Map Fragment embedded with the map object --&gt;
  
  &lt;fragment
      android:id="@+id/mapfragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      class="com.here.android.mpa.mapping.MapFragment" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <h2>Logcat:</h2>
  
  <pre><code>08-13 13:02:48.206: W/System.err(9062): org.xml.sax.SAXParseException: Unexpected end of document
  08-13 13:02:48.226: W/System.err(9062):     at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:125)
  08-13 13:02:48.226: W/System.err(9062):     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.fh.a(XmlToDocParser.java:24)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.ResourceManager.a(ResourceManager.java:212)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.ResourceManager.a(ResourceManager.java:138)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.as.&lt;init&gt;(GLConfigHelper.java:38)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.y.a(BaseTextureView.java:61)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.y.&lt;init&gt;(BaseTextureView.java:54)
  08-13 13:02:48.226: W/System.err(9062):     at com.nokia.maps.bx.&lt;init&gt;(MapTextureView.java:36)
  08-13 13:02:48.226: W/System.err(9062):     at com.here.android.mpa.mapping.MapView.a(MapView.java:320)
  08-13 13:02:48.231: W/System.err(9062):     at com.here.android.mpa.mapping.MapView.&lt;init&gt;(MapView.java:169)
  08-13 13:02:48.231: W/System.err(9062):     at com.nokia.maps.bk.a(MapFragmentImpl.java:143)
  08-13 13:02:48.231: W/System.err(9062):     at com.here.android.mpa.mapping.MapFragment.onCreateView(MapFragment.java:147)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.Fragment.performCreateView(Fragment.java:1699)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:879)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1053)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1155)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.Activity.onCreateView(Activity.java:4966)
  08-13 13:02:48.231: W/System.err(9062):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:695)
  08-13 13:02:48.231: W/System.err(9062):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
  08-13 13:02:48.231: W/System.err(9062):     at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
  08-13 13:02:48.231: W/System.err(9062):     at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
  08-13 13:02:48.231: W/System.err(9062):     at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
  08-13 13:02:48.231: W/System.err(9062):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:361)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.Activity.setContentView(Activity.java:1956)
  08-13 13:02:48.231: W/System.err(9062):     at com.globetech.gticket.activity.zonar.HereMapsActivity.onCreate(HereMapsActivity.java:30)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.Activity.performCreate(Activity.java:5372)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.ActivityThread.access$700(ActivityThread.java:159)
  08-13 13:02:48.231: W/System.err(9062):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
  08-13 13:02:48.236: W/System.err(9062):     at android.os.Handler.dispatchMessage(Handler.java:99)
  08-13 13:02:48.236: W/System.err(9062):     at android.os.Looper.loop(Looper.java:176)
  08-13 13:02:48.236: W/System.err(9062):     at android.app.ActivityThread.main(ActivityThread.java:5419).android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
  </code></pre>
  
  <p>I already add in <code>manifest.xml</code></p>
  
  <pre><code> &lt;!-- Here Maps Authenticate --&gt;
  
      &lt;meta-data
          android:name="com.here.android.maps.appid"
          android:value="AppId" /&gt;
      &lt;meta-data
          android:name="com.here.android.maps.apptoken"
          android:value="Apptoken" /&gt;
      &lt;meta-data
          android:name="com.here.android.maps.license.key"
          android:value="LIC" /&gt;
  </code></pre>
  
  <p>But still it's not working. Please some budy give me some hint.</p>
  
  <p>As i refer <a href="https://developer.here.com/mobile-sdks/documentation/android/topics/app-extended.html" rel="nofollow">https://developer.here.com/mobile-sdks/documentation/android/topics/app-extended.html</a></p>