Results 1 to 2 of 2

Thread: SKMaps.CONNECTIVITY_MODE_OFFLINE usage

  1. #1
    Etablierter skobbler
    Join Date
    11.04.2015
    Posts
    41

    SKMaps.CONNECTIVITY_MODE_OFFLINE usage

    I noticed that if I use SKMaps.CONNECTIVITY_MODE_OFFLINE on fresh version of the App then I never can install new offline packages ..

    I've spent hours thinking what's wrong and why newly downloaded maps won't install through addOfflinePackage ..

    Then I found this post http://www.gdomc.com/0426/unable-to-...e-use-android/ and removed my line from onLibraryInitialized(boolean isSuccessful) ..

    But how then I can use maps just OFFLINE ? I don't need that user can browse map in Afrika or anywhere else without downloading required maps ..

    I've tried to use this method here:

    Code:
        public static int newMapVersionDetected = 0;
    
        @Override
        public void onNewVersionDetected(int i) {
            Log.e("onNewVersionDetected"," New version = " + i);
            newMapVersionDetected = i;
            SKMaps.getInstance().setConnectivityMode(SKMaps.CONNECTIVITY_MODE_OFFLINE);
        }
    But without any success ..

    Any suggestions of correct usage of SKMaps.CONNECTIVITY_MODE_OFFLINE ?

    thanks

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    SKMapUpdateListener provides a method to notify the user if some of the installed offline packages can be updated.
    The Map Update feature allows the client to update the version of the maps to a newer version available on the server. The SKVersioningManager class provides information related to the current map version, the available versions and provides functionality for updating the library to a newer map version.
    http://developer.skobbler.com/gettin...android#sec038

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •