Introducción a la Integración Nativa en Android

1

Integra APIs Nativas en Android

2

Creación proyecto base

Google Maps SDK

3

Cómo crear una API key para Google Maps en Google Cloud

4

Creación de marcadores en Google Maps con Jetpack Compose

5

Cómo dibujar rutas en mapas usando polilíneas en Jetpack Compose

6

Cómo enfocar automáticamente mapas usando Camera Update Factory

Quiz: Google Maps SDK

Servicios de Localización

7

Uso de Flows en Kotlin para Controlar Intervalos de Tiempo y Emisión de Datos

8

Cómo simular ubicación en emuladores y dispositivos reales

9

Creación de Modelos y Cálculos de Localización con Clean Architecture

10

Implementación de Localización en Android Usando Flows

11

Inyección de dependencia para seguimiento de localización en Android

12

Uso de StateFlows para rastrear ubicación en aplicaciones Android

13

Location Tracker

14

Implementación de Location Tracker con Inyección de Dependencias

Quiz: Servicios de Localización

Integración Maps con Localización

15

Integración de mapas dinámicos con CameraPositionState en Android

16

Creación y uso de polilíneas en mapas con datos reales

17

Creación de una pantalla de mapa con Intents y estados en Jetpack Compose

18

Creación de un ViewModel para Seguimiento de Localización en Android

Quiz: Integración Maps con Localización

Manejo de permisos

19

Gestión de permisos en Android para localización, cámara y notificaciones

20

Cómo implementar diálogos para solicitar permisos en Android

21

Manejo de permisos de localización y notificación en Android

22

Cómo gestionar permisos en Android con Jetpack Compose

Quiz: Manejo de permisos

Integración cámara

23

Integración de cámara en Android con Photo Handler y manejo de permisos

24

Convierte Bitmaps a ByteArrays en Android con Kotlin

25

Creación de intents y estados UI para cámara en Android con Kotlin

26

Implementación de funciones clave en ViewModel para cámara Android

27

Integrar CámaraX en Jetpack Compose para Android

28

Captura y previsualización de fotos en Android con Jetpack Compose

29

Cómo Mostrar Fotos en Marcadores de Ubicación en Mapas con Jetpack Compose

Quiz: Integración cámara

Servicios en Android

30

Implementación de servicios en Android: normal services y foreground services

31

Implementar Foreground Services en Android para Persistencia en Segundo Plano

Quiz: Servicios en Android

Transmisiones en Android (Broadcast)

32

Implementación de BroadcastReceiver en Android para Escuchar Eventos del Sistema

33

Pruebas finales y cierre

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
12 Hrs
40 Min
53 Seg

Cómo Mostrar Fotos en Marcadores de Ubicación en Mapas con Jetpack Compose

29/33
Resources

Want to improve the visual interaction of your maps in Jetpack Compose? Here you will learn how to add GUI components to display photos taken from the camera on markers placed on dynamic maps. This class guides you step-by-step to integrate visual dialogs and image galleries that appear when you click on specific points on the map.

How to add new 'Intents' to the ViewModel?

The first action is to add new intents within the TrackingIntent to facilitate user interaction. These actions are simple but fundamental:

  • SelectLocation: when selecting a marker in the location, displays a dialog with saved photos.
  • DismissDialog: closes the open dialog when clicked.

These intents update the location and correctly handle the appearance or disappearance of the dialog with associated pictures.

What is the "SelectedLocation" status used for?

The SelectedLocation variable is updated when interacting with a location containing pictures, allowing the appropriate dialog to be displayed. This state manages the information displayed for the selected location.

How to implement a custom marker(FotoCluster)?

The section called FotoCluster is key to visually represent how many photos are associated with a point:

  • A composable is added that receives a location with lists of photos.
  • For each location a small badge is created indicating the number of images present.
  • If there is an available and valid photo, the first image in this group is transformed into an attractive visual circular marker using the AsImageBitmap extension function. If it does not exist, it displays a default icon.

How to integrate the photogallery (PhotoGallery) into markers?

To display images in a user-friendly way, the PhotoGallery section is created:

  • Use HorizontalPager that allows you to swipe between saved photos.
  • By clicking on an individual image, it expands in a specific dialog for detailed viewing.
  • Every visual interaction is simple and efficient.

This composable substantially improves the user experience when browsing multiple images in each location.

What happens when you interact with the markers on the map?

When you click on a marker, a dialog immediately pops up showing all saved images. During this interaction:

  • Tracking is paused momentarily.
  • The photos taken are associated with the exact place where they were captured.
  • When closing the dialog, tracking continues normally.

Finally, when restarting the application, any previous record of markers and photos is deleted. However, we mention the possibility of solving this situation by means of so-called "background services", a topic that will be covered in future sections of the course.

We invite you to explore this integration and propose improvements for our bookmarks and visual galleries!

Contributions 0

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?