Maps on Corona Enterprise

Hi,

I’m trying to work with native.newMapView() on Corona Enterprise.

I used the Corona SampleCode -> Interface -> MapView, with the code below.

I have no problem running it on XCode iOS with Corona Enterprise.

When I compile it using Corona Pro for Android, it works perfectly.

But when I compile it using the Corona Enterprise, I get only the “loading” signal on the “map native view”, and the following error on the terminal (no map is showed):

E/Web Console(19722): Uncaught TypeError: Object [object Object] has no method ‘getCurrentLocationMarkerUrlCount’:30

Do you have any idea what can it be?

I’m using Corona SDK and Enterprise 2013.1259.

Thanks.


– Abstract: MapView sample project

– Demonstrates the API for embedded maps and location data

– 

– Update History:

–  v1.0    First release. Supports iOS only.

–  v1.1    Added Android support.

– Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license

– Copyright © 2010 Corona Labs Inc. All Rights Reserved.


– Display the status bar.

display.setStatusBar( display.DefaultStatusBar )

– Load external Lua libraries (from project directory)

local widget = require( “widget” )

local locationNumber = 1 – a counter to display on location labels

local currentLocation, currentLatitude, currentLongitude

local background = display.newImage( “bkg_grass.png”, true )

background.x = display.contentWidth / 2

background.y = display.contentHeight / 2

local shadow = display.newRect( 7, 7, 306, 226 )

shadow:setFillColor( 0, 0, 0, 120 )

local simulatorMessage = “Maps not supported in Corona Simulator.\n\nYou must build for iOS or Android to test MapView support.”

local label = display.newText( simulatorMessage, 20, 70, shadow.contentWidth - 10, 0, native.systemFont, 14 )

– Create a native MapView (requires Xcode Simulator build or device build)

– You can create multiple maps, if you like…

local myMap = native.newMapView( 20, 20, 300, 220 )

if myMap then

    – Display a normal map with vector drawings of the streets.

    – Other mapType options are “satellite” and “hybrid”.

    myMap.mapType = “normal”

    – The MapView is just another Corona display object and can be moved, resized, etc.

    myMap.x = display.contentWidth / 2

    myMap.y = 120

    – Initialize map to a real location, since default location (0,0) is not very interesting

    myMap:setCenter( 37.331692, -122.030456 )

end

– A handler for the native keyboard

local fieldHandler = function( event )

    – Hide keyboard when the user clicks “Return” in this field

    if ( “submitted” == event.phase ) then

        native.setKeyboardFocus( nil )

    end

end

– A native text input field (requires Xcode Simulator build or device build)

local inputField = native.newTextField( 10, 247, 300, 38 )

inputField.font = native.newFont( native.systemFont, 16 )

inputField.text = “Broadway and Columbus, San Francisco” – example of searchable location

inputField:setTextColor( 45, 45, 45 )

inputField:addEventListener( “userInput”, fieldHandler )

– A function to handle the “mapAddress” event (also known as “reverse geocoding”, ie: coordinates -> string).

local mapAddressHandler = function( event )

    if event.isError then

        – Failed to receive location information.

        native.showAlert( “Error”, event.errorMessage, { “OK” } )

    else

        – Location information received. Display it.

        local locationText =

                "Latitude: " … currentLatitude … 

                ", Longitude: " … currentLongitude …

                ", Address: " … ( event.streetDetail or “” ) …

                " " … ( event.street or “” ) …

                ", " … ( event.city or “” ) …

                ", " … ( event.region or “” ) …

                ", " … ( event.country or “” ) …

                ", " … ( event.postalCode or “” )

        native.showAlert( “You Are Here”, locationText, { “OK” } )

    end

end

– A function to handle the “mapLocation” event (also known as “forward geocoding”, ie: string -> coordinates).

local mapLocationHandler = function( event )

    if event.isError then

        – Location name not found.

        native.showAlert( “Error”, event.errorMessage, { “OK” } )

    else

        – Move map so this location is at the center

        – (The final parameter toggles map animation, which may not be visible if moving a large distance)

        myMap:setCenter( event.latitude, event.longitude, true )

        – Add a pin to the map at the new location

        markerTitle = "Location " … locationNumber

        locationNumber = locationNumber + 1

        myMap:addMarker( event.latitude, event.longitude, { title=markerTitle, subtitle=inputField.text } )

    end

end

– Create buttons and their functions:

local button1Release = function( event )

    – This finds the location of the submitted string.

    – Valid strings include addresses, intersections, and landmarks like “Golden Gate Bridge”, “Eiffel Tower” or “Buckingham Palace”.

    – The result is returned in a “mapLocation” event, handled above).

    if myMap then

        myMap:requestLocation( inputField.text, mapLocationHandler )

    end

end

local button2Release = function( event )

    – Do not continue if a MapView has not been created.

    if myMap == nil then

        return

    end

    – Fetch the user’s current location

    – Note: in Xcode Simulator, the current location defaults to Apple headquarters in Cupertino, CA

    currentLocation = myMap:getUserLocation()

    if currentLocation.errorCode then

        – Current location is unknown if the “errorCode” property is not nil.

        currentLatitude = 0

        currentLongitude = 0

        native.showAlert( “Error”, currentLocation.errorMessage, { “OK” } )

    else

        – Current location data was received.

        – Move map so that current location is at the center.

        currentLatitude = currentLocation.latitude

        currentLongitude = currentLocation.longitude

        myMap:setRegion( currentLatitude, currentLongitude, 0.01, 0.01, true )

        

        – Look up nearest address to this location (this is returned as a “mapAddress” event, handled above)

        myMap:nearestAddress( currentLatitude, currentLongitude, mapAddressHandler )

    end

end

local button3Release = function( event )

    if myMap then

        myMap:removeAllMarkers()

        locationNumber = 1 – reset counter for popup labels

    end

end

local button1 = widget.newButton

{

    defaultFile = “buttonGreen.png”,

    overFile = “buttonGreenOver.png”,

    label = “Find Location”,

    emboss = true,

    onRelease = button1Release,

}

local button2 = widget.newButton

{

    defaultFile = “buttonOrange.png”,

    overFile = “buttonOrangeOver.png”,

    label = “Current Location”,

    emboss = true,

    onRelease = button2Release,

}

local button3 = widget.newButton

{

    defaultFile = “buttonRed.png”,

    overFile = “buttonRedOver.png”,

    label = “Remove All Markers”,

    emboss = true,

    onRelease = button3Release,

}

button1.x = display.contentWidth / 2; button1.y = 320

button2.x = display.contentWidth / 2; button2.y = 380

button3.x = display.contentWidth / 2; button3.y = 440


It sounds like our Corona Android library project’s resources are not getting included into your application.

Are you referencing our Corona library via the “project.properties” file?

Because if you are, then the Android SDK build tools will automatically include/merge all of Corona’s libraries (*.jar and *.so files) and resources into your application project.  See our sample project under Corona Enterprise for an example on how to do this.

In fact, you can simply add a call to native.newMapView() to one of our existing enterprise sample projects and it’ll work.  Give it a go.

Note that I highly recommend that you do *not* drag and drop our libraries into your project’s “libs” directory.  That is a much more error prone approach.  You should only do that for 3rd party libraries which do not offer an “Android library project”, such as most ad libraries.  For example, facebook provides an Android library project which you can simply reference in your “project.properties” file and the Android SDK build tools will automatically include all of facebook’s libraries and resources under its “res” directory into your APK when you build it.  The reason this is a better solution is because you can easily upgrade the 3rd party library to a new version without having to change anything in your application project (like dragging and dropping new files in).

Anyways, I hope this helps!

Hi, Joshua,

I just checked the things you said.

My project.properties looks like this:

This file is automatically generated by Android Tools.

Do not modify this file – YOUR CHANGES WILL BE ERASED!

This file must be checked in Version Control Systems.

To customize properties used by the Ant build system edit

“ant.properties”, and override values to adapt the script to your

project structure.

To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):

#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

Project target.

target=Google Inc.:Google APIs:18

android.library.reference.1=${CoronaEnterpriseDir}/Corona/android/lib/Corona

And in my /libs directory I have only the Plugin licensing-google jar file. I tried without it, and it still does not work. I used it there because I was getting a google licensing error on logcat.

I’m copying some parts of my build.sh output:

-dex:

      [dex] input: /Users/apertvs/Documents/YouHome/android/bin/classes

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/classes.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/network.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/android-async-http.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/JNLua.jar

      [dex] input: /Users/apertvs/Documents/YouHome/android/libs/licensing-google.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/Corona.jar

      [dex] Using Pre-Dexed classes-9023e61488191619fca3c4486ebacb18.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/classes.jar

      [dex] Using Pre-Dexed network-c73d956bee50e67e52636c67ae4c722b.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/network.jar

      [dex] Using Pre-Dexed android-async-http-8067b9856d6b79f2ca5367d371d82d6a.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/android-async-http.jar

      [dex] Using Pre-Dexed JNLua-b11eae511c170ddd0d41760fe8506a8a.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/JNLua.jar

      [dex] Using Pre-Dexed licensing-google-42df33bd8df6c63c1ec0fd55432a6db6.jar <- /Users/apertvs/Documents/YouHome/android/libs/licensing-google.jar

      [dex] Using Pre-Dexed Corona-2df7050299f0a2186de60f3be677bf33.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/Corona.jar

      [dex] Found modified input file

      [dex] Converting compiled files and external libraries into /Users/apertvs/Documents/YouHome/android/bin/classes.dex…

       [dx] Merged dex A (28 defs/22,4KiB) with dex B (13 defs/45,2KiB). Result is 41 defs/78,0KiB. Took 0,1s

       [dx] Merged dex A (41 defs/78,0KiB) with dex B (10 defs/16,6KiB). Result is 51 defs/111,6KiB. Took 0,1s

       [dx] Merged dex A (51 defs/111,6KiB) with dex B (110 defs/92,2KiB). Result is 161 defs/248,5KiB. Took 0,1s

       [dx] Merged dex A (161 defs/248,5KiB) with dex B (33 defs/45,8KiB). Result is 194 defs/375,0KiB. Took 0,1s

       [dx] Merged dex A (194 defs/375,0KiB) with dex B (409 defs/470,6KiB). Result is 603 defs/1092,4KiB. Took 0,6s

And a copy of my signing output:

   adding: META-INF/MANIFEST.MF

   adding: META-INF/PALAVRAS.SF

   adding: META-INF/PALAVRAS.RSA

  signing: assets/imgs/myPhotos1.jpg

  signing: assets/imgs/myPhotos2.jpg

  signing: assets/imgs/myPhotos3.jpg

  signing: assets/imgs/myPhotos4.jpg

  signing: assets/360.png

  signing: assets/Default-568h@2x.png

  signing: assets/Default-Landscape-568h@2x.png

  signing: assets/Default-Landscape.png

  signing: assets/Default-Landscape@2x.png

  signing: assets/Default-Landscape@2x~ipad.png

  signing: assets/Default-Landscape~ipad.png

  signing: assets/Default.png

  signing: assets/Default@2x.png

  signing: assets/Default@2x~ipad.png

  signing: assets/Default~ipad.png

  signing: assets/EarthRealEstate_fundo.jpg

  signing: assets/EarthRealEstate_logo.png

  signing: assets/EarthRealEstate_logo2.png

  signing: assets/Icon-60.png

  signing: assets/Icon-60@2x.png

  signing: assets/Icon-72.png

  signing: assets/Icon-72@2x.png

  signing: assets/Icon-76.png

  signing: assets/Icon-76@2x.png

  signing: assets/Icon-Small-40.png

  signing: assets/Icon-Small-40@2x.png

  signing: assets/Icon-Small-50.png

  signing: assets/Icon-Small-50@2x.png

  signing: assets/Icon-Small.png

  signing: assets/Icon-Small@2x.png

  signing: assets/Icon-hdpi.png

  signing: assets/Icon-ldpi.png

  signing: assets/Icon-mdpi.png

  signing: assets/Icon-xhdpi.png

  signing: assets/Icon-xxhdpi.png

  signing: assets/Icon.png

  signing: assets/Icon@2x.png

  signing: assets/Manual.pdf

  signing: res/drawable/background_pattern.xml

  signing: res/drawable/btn_back_gray.xml

  signing: res/drawable/btn_back_gray_active.xml

  signing: res/drawable/btn_back_green.xml

  signing: res/drawable/btn_back_green_active.xml

  signing: res/drawable/btn_gray_selector.xml

  signing: res/drawable/btn_green_selector.xml

  signing: res/drawable/gray.xml

  signing: res/drawable/green.xml

  signing: res/drawable/overflow.xml

  signing: res/drawable/pattern.png

  signing: res/drawable/shadow.xml

  signing: res/layout/dlg_install_mwm.xml

  signing: res/raw/corona_3rd_party_licenses.txt

  signing: res/raw/corona_asset_widget_theme_android.png

  signing: res/raw/corona_asset_widget_theme_android_2x.png

  signing: res/raw/corona_asset_widget_theme_ios.png

  signing: res/raw/corona_asset_widget_theme_ios7.png

  signing: res/raw/corona_asset_widget_theme_ios7_2x.png

  signing: res/raw/corona_asset_widget_theme_ios_2x.png

  signing: res/raw/corona_asset_widget_theme_onoff_mask.png

  signing: res/raw/corona_asset_widget_theme_pickerwheel_mask.png

  signing: res/raw/corona_map_view.html

  signing: AndroidManifest.xml

  signing: resources.arsc

  signing: res/drawable-hdpi/corona_statusbar_icon_default.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-hdpi/ic_menu_camera.png

  signing: res/drawable-hdpi/ic_menu_refresh.png

  signing: res/drawable-hdpi/icon.png

  signing: res/drawable-hdpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-hdpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-ldpi/corona_statusbar_icon_default.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-ldpi/ic_menu_camera.png

  signing: res/drawable-ldpi/ic_menu_refresh.png

  signing: res/drawable-ldpi/icon.png

  signing: res/drawable-ldpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-ldpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-mdpi/corona_statusbar_icon_default.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-mdpi/ic_menu_camera.png

  signing: res/drawable-mdpi/ic_menu_refresh.png

  signing: res/drawable-mdpi/icon.png

  signing: res/drawable-mdpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-mdpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-xhdpi/corona_statusbar_icon_default.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-xhdpi/ic_menu_camera.png

  signing: res/drawable-xhdpi/ic_menu_refresh.png

  signing: res/drawable-xhdpi/icon.png

  signing: res/drawable-xhdpi/ouya_icon.png

  signing: res/drawable-xhdpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-xhdpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-xxhdpi/ic_menu_camera.png

  signing: res/drawable-xxhdpi/ic_menu_refresh.png

  signing: res/drawable-xxhdpi/icon.png

  signing: classes.dex

  signing: lib/armeabi-v7a/libads.so

  signing: lib/armeabi-v7a/libalmixer.so

  signing: lib/armeabi-v7a/libanalytics.so

  signing: lib/armeabi-v7a/libcorona.so

  signing: lib/armeabi-v7a/libCoronaProvider.gameNetwork.corona.so

  signing: lib/armeabi-v7a/libgameNetwork.so

  signing: lib/armeabi-v7a/libjnlua5.1.so

  signing: lib/armeabi-v7a/liblicensing.so

  signing: lib/armeabi-v7a/liblua.so

  signing: lib/armeabi-v7a/libmpg123.so

  signing: lib/armeabi-v7a/libopenal.so

  signing: lib/armeabi-v7a/libplugins.so

  signing: lib/armeabi-v7a/libsdl.so

  signing: lib/armeabi-v7a/libvorbisidec.so

I think all the classes and libraries are there.

Any ideas?

Thanks.

Did you try adding the native.newMapView() to one of our sample projects?

I recommend that you try this first.  Prove that it works with a simple sample project and then isolate it in your project from there.

Also, try “unzipping” your compiled APK to verify that Corona’s resource files actually got into your APK.  You can do this by renaming your APK file’s extension to *.zip and then double click on it.  Look under the “res/raw” folder and check if the “corona_map_view.html” file is there.

It sounds like our Corona Android library project’s resources are not getting included into your application.

Are you referencing our Corona library via the “project.properties” file?

Because if you are, then the Android SDK build tools will automatically include/merge all of Corona’s libraries (*.jar and *.so files) and resources into your application project.  See our sample project under Corona Enterprise for an example on how to do this.

In fact, you can simply add a call to native.newMapView() to one of our existing enterprise sample projects and it’ll work.  Give it a go.

Note that I highly recommend that you do *not* drag and drop our libraries into your project’s “libs” directory.  That is a much more error prone approach.  You should only do that for 3rd party libraries which do not offer an “Android library project”, such as most ad libraries.  For example, facebook provides an Android library project which you can simply reference in your “project.properties” file and the Android SDK build tools will automatically include all of facebook’s libraries and resources under its “res” directory into your APK when you build it.  The reason this is a better solution is because you can easily upgrade the 3rd party library to a new version without having to change anything in your application project (like dragging and dropping new files in).

Anyways, I hope this helps!

Hi, Joshua,

I just checked the things you said.

My project.properties looks like this:

This file is automatically generated by Android Tools.

Do not modify this file – YOUR CHANGES WILL BE ERASED!

This file must be checked in Version Control Systems.

To customize properties used by the Ant build system edit

“ant.properties”, and override values to adapt the script to your

project structure.

To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):

#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

Project target.

target=Google Inc.:Google APIs:18

android.library.reference.1=${CoronaEnterpriseDir}/Corona/android/lib/Corona

And in my /libs directory I have only the Plugin licensing-google jar file. I tried without it, and it still does not work. I used it there because I was getting a google licensing error on logcat.

I’m copying some parts of my build.sh output:

-dex:

      [dex] input: /Users/apertvs/Documents/YouHome/android/bin/classes

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/classes.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/network.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/android-async-http.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/JNLua.jar

      [dex] input: /Users/apertvs/Documents/YouHome/android/libs/licensing-google.jar

      [dex] input: /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/Corona.jar

      [dex] Using Pre-Dexed classes-9023e61488191619fca3c4486ebacb18.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/bin/classes.jar

      [dex] Using Pre-Dexed network-c73d956bee50e67e52636c67ae4c722b.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/network.jar

      [dex] Using Pre-Dexed android-async-http-8067b9856d6b79f2ca5367d371d82d6a.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/android-async-http.jar

      [dex] Using Pre-Dexed JNLua-b11eae511c170ddd0d41760fe8506a8a.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/JNLua.jar

      [dex] Using Pre-Dexed licensing-google-42df33bd8df6c63c1ec0fd55432a6db6.jar <- /Users/apertvs/Documents/YouHome/android/libs/licensing-google.jar

      [dex] Using Pre-Dexed Corona-2df7050299f0a2186de60f3be677bf33.jar <- /Applications/CoronaEnterprise/Corona/android/lib/Corona/libs/Corona.jar

      [dex] Found modified input file

      [dex] Converting compiled files and external libraries into /Users/apertvs/Documents/YouHome/android/bin/classes.dex…

       [dx] Merged dex A (28 defs/22,4KiB) with dex B (13 defs/45,2KiB). Result is 41 defs/78,0KiB. Took 0,1s

       [dx] Merged dex A (41 defs/78,0KiB) with dex B (10 defs/16,6KiB). Result is 51 defs/111,6KiB. Took 0,1s

       [dx] Merged dex A (51 defs/111,6KiB) with dex B (110 defs/92,2KiB). Result is 161 defs/248,5KiB. Took 0,1s

       [dx] Merged dex A (161 defs/248,5KiB) with dex B (33 defs/45,8KiB). Result is 194 defs/375,0KiB. Took 0,1s

       [dx] Merged dex A (194 defs/375,0KiB) with dex B (409 defs/470,6KiB). Result is 603 defs/1092,4KiB. Took 0,6s

And a copy of my signing output:

   adding: META-INF/MANIFEST.MF

   adding: META-INF/PALAVRAS.SF

   adding: META-INF/PALAVRAS.RSA

  signing: assets/imgs/myPhotos1.jpg

  signing: assets/imgs/myPhotos2.jpg

  signing: assets/imgs/myPhotos3.jpg

  signing: assets/imgs/myPhotos4.jpg

  signing: assets/360.png

  signing: assets/Default-568h@2x.png

  signing: assets/Default-Landscape-568h@2x.png

  signing: assets/Default-Landscape.png

  signing: assets/Default-Landscape@2x.png

  signing: assets/Default-Landscape@2x~ipad.png

  signing: assets/Default-Landscape~ipad.png

  signing: assets/Default.png

  signing: assets/Default@2x.png

  signing: assets/Default@2x~ipad.png

  signing: assets/Default~ipad.png

  signing: assets/EarthRealEstate_fundo.jpg

  signing: assets/EarthRealEstate_logo.png

  signing: assets/EarthRealEstate_logo2.png

  signing: assets/Icon-60.png

  signing: assets/Icon-60@2x.png

  signing: assets/Icon-72.png

  signing: assets/Icon-72@2x.png

  signing: assets/Icon-76.png

  signing: assets/Icon-76@2x.png

  signing: assets/Icon-Small-40.png

  signing: assets/Icon-Small-40@2x.png

  signing: assets/Icon-Small-50.png

  signing: assets/Icon-Small-50@2x.png

  signing: assets/Icon-Small.png

  signing: assets/Icon-Small@2x.png

  signing: assets/Icon-hdpi.png

  signing: assets/Icon-ldpi.png

  signing: assets/Icon-mdpi.png

  signing: assets/Icon-xhdpi.png

  signing: assets/Icon-xxhdpi.png

  signing: assets/Icon.png

  signing: assets/Icon@2x.png

  signing: assets/Manual.pdf

  signing: res/drawable/background_pattern.xml

  signing: res/drawable/btn_back_gray.xml

  signing: res/drawable/btn_back_gray_active.xml

  signing: res/drawable/btn_back_green.xml

  signing: res/drawable/btn_back_green_active.xml

  signing: res/drawable/btn_gray_selector.xml

  signing: res/drawable/btn_green_selector.xml

  signing: res/drawable/gray.xml

  signing: res/drawable/green.xml

  signing: res/drawable/overflow.xml

  signing: res/drawable/pattern.png

  signing: res/drawable/shadow.xml

  signing: res/layout/dlg_install_mwm.xml

  signing: res/raw/corona_3rd_party_licenses.txt

  signing: res/raw/corona_asset_widget_theme_android.png

  signing: res/raw/corona_asset_widget_theme_android_2x.png

  signing: res/raw/corona_asset_widget_theme_ios.png

  signing: res/raw/corona_asset_widget_theme_ios7.png

  signing: res/raw/corona_asset_widget_theme_ios7_2x.png

  signing: res/raw/corona_asset_widget_theme_ios_2x.png

  signing: res/raw/corona_asset_widget_theme_onoff_mask.png

  signing: res/raw/corona_asset_widget_theme_pickerwheel_mask.png

  signing: res/raw/corona_map_view.html

  signing: AndroidManifest.xml

  signing: resources.arsc

  signing: res/drawable-hdpi/corona_statusbar_icon_default.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-hdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-hdpi/ic_menu_camera.png

  signing: res/drawable-hdpi/ic_menu_refresh.png

  signing: res/drawable-hdpi/icon.png

  signing: res/drawable-hdpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-hdpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-ldpi/corona_statusbar_icon_default.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-ldpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-ldpi/ic_menu_camera.png

  signing: res/drawable-ldpi/ic_menu_refresh.png

  signing: res/drawable-ldpi/icon.png

  signing: res/drawable-ldpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-ldpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-mdpi/corona_statusbar_icon_default.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-mdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-mdpi/ic_menu_camera.png

  signing: res/drawable-mdpi/ic_menu_refresh.png

  signing: res/drawable-mdpi/icon.png

  signing: res/drawable-mdpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-mdpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-xhdpi/corona_statusbar_icon_default.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-xhdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-xhdpi/ic_menu_camera.png

  signing: res/drawable-xhdpi/ic_menu_refresh.png

  signing: res/drawable-xhdpi/icon.png

  signing: res/drawable-xhdpi/ouya_icon.png

  signing: res/drawable-xhdpi-v11/corona_statusbar_icon_default.png

  signing: res/drawable-xhdpi-v9/corona_statusbar_icon_default.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position_anim1.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position_anim2.png

  signing: res/drawable-xxhdpi/ic_maps_indicator_current_position_anim3.png

  signing: res/drawable-xxhdpi/ic_menu_camera.png

  signing: res/drawable-xxhdpi/ic_menu_refresh.png

  signing: res/drawable-xxhdpi/icon.png

  signing: classes.dex

  signing: lib/armeabi-v7a/libads.so

  signing: lib/armeabi-v7a/libalmixer.so

  signing: lib/armeabi-v7a/libanalytics.so

  signing: lib/armeabi-v7a/libcorona.so

  signing: lib/armeabi-v7a/libCoronaProvider.gameNetwork.corona.so

  signing: lib/armeabi-v7a/libgameNetwork.so

  signing: lib/armeabi-v7a/libjnlua5.1.so

  signing: lib/armeabi-v7a/liblicensing.so

  signing: lib/armeabi-v7a/liblua.so

  signing: lib/armeabi-v7a/libmpg123.so

  signing: lib/armeabi-v7a/libopenal.so

  signing: lib/armeabi-v7a/libplugins.so

  signing: lib/armeabi-v7a/libsdl.so

  signing: lib/armeabi-v7a/libvorbisidec.so

I think all the classes and libraries are there.

Any ideas?

Thanks.

Did you try adding the native.newMapView() to one of our sample projects?

I recommend that you try this first.  Prove that it works with a simple sample project and then isolate it in your project from there.

Also, try “unzipping” your compiled APK to verify that Corona’s resource files actually got into your APK.  You can do this by renaming your APK file’s extension to *.zip and then double click on it.  Look under the “res/raw” folder and check if the “corona_map_view.html” file is there.