Search code examples
androidskmaps

Skobbler - ResourceNotFoundException for application label


In a basic Skobbler application, when calling InitializeSKMaps, a ResourceNotFoundException is thrown with a reference to "string resource ID #0x0". Why would this be?


Solution

  • This can occur because the Skobbler SDK (2.3) in InitializeSKMaps is expecting your manifest to have a label as shown below (along with corresponding strings.xml entry), and not a "fixed" string.

    <application android:label="@string/app_name">
    

    It is doing something like:

    int i = context.getApplicationInfo().labelRes;
    String str1 = context.getString(i);