Share My Creation GPS Example

DonManfred

Expert
Licensed User
Longtime User

ovasquez

Member
Licensed User
Longtime User
Good Night
During the execution of the program the following error occurs when activating MAPS:
This page can not load Google Maps correctly.

The error is given by Line 1082 of Main since the KEY parameter must be included:

HtmlCode = "...... <script type = 'text / javascript' src = 'http: //maps.google.com/maps/api/js? V = 3.exp & sensor = true & key = xxxssdffghh & callback = initMap'> </ script> ........ "

To generate the key, you must create a Google Maps account and activate the "free" testing period. For this they need a credit card, if not is activated, the error will always be shown.

The next URL indicate how must activate the KEY API

https://developers.google.com/maps/documentation/javascript/get-api-key#quick-guide

Regards,

Orlando Vasquez
 

Emerito

Active Member
Licensed User
Longtime User
[QUOTE = "ovasquez, post: 638960, miembro: 41296"] Buenas noches
Durante la ejecución del programa, se produce el siguiente error al activar MAPAS:
Esta página no puede cargar Google Maps correctamente.

El error está dado por la línea 1082 de Main, ya que el parámetro KEY debe incluirse:

HtmlCode = "...... <tipo de script = 'texto / javascript' src = 'http: //maps.google.com/maps/api/js? V = 3.exp & sensor = true & key = xxxssdffghh & callback = initMap '> </ script> ........ "

Para generar la clave, debe crear una cuenta de Google Maps y activar el período de prueba "gratuito". Si no está activada, siempre se verá el error.

La siguiente URL indica cómo se debe activar la API de CLAVE.

https://developers.google.com/maps/documentation/javascript/get-api-key#quick-guide

Saludos

Orlando Vásquez [/ CITA]

good morning,
I'm creating an app where I want to show google maps. Your distribution will be free, but the message appears "This page can not load Google Maps correctly."
The obtaining of the API is free, or when distributing the app would have to pay the license?
 

Roger Daley

Well-Known Member
Licensed User
Longtime User


Orlando,
Distribution should be free. Below is a link to my Google Maps App based on the same example. I definitely don't pay a licence fee.
https://www.b4x.com/android/forum/threads/antenna-bearing-tool-with-source-code.54073/

Regards Roger
EDIT: This will help but Google makes everything complicated.
https://www.b4x.com/android/forum/threads/google-maps.63930/#content
 

Emerito

Active Member
Licensed User
Longtime User
[QUOTE = "Roger Daley, post: 646014, miembro: 67015"] Orlando,
La distribución debe ser gratuita. A continuación se muestra un enlace a mi aplicación de Google Maps basada en el mismo ejemplo. Definitivamente no pago una licencia.
https://www.b4x.com/android/forum/threads/antenna-bearing-tool-with-source-code.54073/

Saludos Roger
EDITAR: Esto ayudará, pero Google hace que todo sea complicado.
https://www.b4x.com/android/forum/threads/google-maps.63930/#content [/ QUOTE]

He intentado ejecutar su ejemplo, pero me da este error:
B4A Versión: 8.80
Parseando código. (0.05s)
Construcción de estructura de carpetas. (0.02s)
Compilando código. (0.34s)
Compilado códigos de diseños. (0.03s)
Organizando librerías. (0.00s)
Generando el fichero R. Error
ERROR: el directorio de recursos 'c: \ archivos de programa \ android \ android-sdk \ extras \ google \ google_play_services \ libproject \ google-play-services_lib \ res' no existe
 

Roger Daley

Well-Known Member
Licensed User
Longtime User
Orlando,

It appears you have tried to run "AntennaBearingTool2.b4a" from inside the Zip file. Open the Zip Windows Explorer to drag the folder on to the desk top. Open the folder and run "AntennaBearingTool2.b4a".

Regards Roger
 

Emerito

Active Member
Licensed User
Longtime User
[QUOTE = "Roger Daley, post: 648843, miembro: 67015"] Orlando,

Parece que ha intentado ejecutar "AntennaBearingTool2.b4a" desde el interior del archivo Zip. Abra el Explorador de Windows Zip para arrastrar la carpeta al escritorio. Abra la carpeta y ejecute "AntennaBearingTool2.b4a".

Saludos Roger [/ CITA]

Buenos dias Roger, Lo he intentado ejecutar desde una carpeta descomprimida, Pero veo que el problema debe estar en esto:
#Recursos adicionales: C: \ Archivos de programa \ Android \ android-sdk \ extras \ google \ google_play_services \ libproject \ google-play-services_lib \ res, com.google.android.gms
y yo no tengo en la carpeta android-sdk la subcarpeta extras
 

Roger Daley

Well-Known Member
Licensed User
Longtime User


Orlando,

I can only suggest you install the current Android SDK as shown on this link. [And configure paths]

https://www.b4x.com/b4a.html

Regards Roger
 

Emerito

Active Member
Licensed User
Longtime User
en el enlace que me indica he realizado el paso 3 e instalado todo lo recomendado. pero me sigue faltando "\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms"
He ejecutado SDK Manager.exe pero no se que es lo que tengo que instalar.
Lamento mi ignorancia. Saludos.
 

Roger Daley

Well-Known Member
Licensed User
Longtime User



Orlando
It is time to ask the B4A experts. Start a new thread on the Forum about fixing the missing EXIT Folder.
Not having your SDK up to date and working is going to give you lots of problems.

Regards Roger
 

Emerito

Active Member
Licensed User
Longtime User
Little by little I have been taking steps. Now I have the following error

Generando el fichero R. Error
c:\program files (x86)\android\android-sdk\extras\google\google-play-services\libproject\google-play-services_lib\res\values-v21\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.
You can help me?
Regards
 

klaus

Expert
Licensed User
Longtime User
You need the Dialogs library.
Be aware that this program is a very old one and many things have evolved in B4A and GPS.
The program uses a WebView to display the map, this was before the GoogleMaps library was released.
And now, to use GoogleMaps library you need a registration from Google.
I do not advice to use this program.

I have added a comment in the original post to avoid the use of this program.
 
Last edited:

Similar Threads

  • Question
Android Question GPS location
Replies
1
Views
1K
Replies
5
Views
1K
Replies
5
Views
1K
Replies
1
Views
2K
Cookies are required to use this site. You must accept them to continue using the site. Learn more…