Posts

Showing posts with the label google map intent

Google Map Intent - Android Studio - Compose

Image
How to open Google Maps with directions to a specific location (Latitude, Longitude)? You may have a scenario where you want to open a specific location on Google Maps by clicking a button. In this tutorial, we will input the latitude and longitude, and by clicking a button, we will open that location in Google Maps. >> Check For Java >> Check for Kotlin >> Check for Compose Code MainActivity.kt package com.technifysoft.myapplication import android.content.Context import android.content.Intent import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foun...

Google Map Intent - Android Studio - Kotlin

Image
How to open Google Maps with directions to a specific location (Latitude, Longitude)? You may have a scenario when you want to open a specific location on Google Maps by clicking a button. In this tutorial, we will input the latitude and longitude and by clicking a button we will open that location in Google Maps. >> Check For Java >> Check for Kotlin >> Check for Compose Complete Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" xmlns:app= "http://schemas.android.com/apk/res-auto" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" android:gravity= "center" android:padding= "10dp" tools:context= ".MainActivity" > ...

Google Map Intent - Android Studio - Java

Image
How to open Google Maps with directions to a specific location (Latitude, Longitude)? You may have a scenario when you want to open a specific location on Google Maps by clicking a button. In this tutorial, we will input the latitude and longitude and by clicking a button we will open that location in Google Maps.  >> Check For Java >> Check for Kotlin >> Check for Compose Complete Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" xmlns:app= "http://schemas.android.com/apk/res-auto" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" android:gravity= "center" android:padding= "10dp" tools:context= ".MainActivity" > ...