Android geo google maps .

You need to take a look under this Google Maps Intents.
Start your project under Android Studio or AIDE.
The source code will need to know come into this two files :
The AndroidManifest.XML file:
<?xml version=”1.0″ encoding=”utf-8″?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
package=”com.mycompany.myapp” >

<application
android:allowBackup=”true”
android:icon=”@drawable/ic_launcher”
android:label=”@string/app_name”
android:theme=”@style/AppTheme” >
<activity
android:name=”.MainActivity”
android:label=”@string/app_name” >
<intent-filter>
<action android:name=”android.intent.action.MAIN” />

<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
</application>

</manifest>
The MainActivity.JAVA file:
package com.mycompany.myapp;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

public class MainActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Intent i = new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse(“geo:54.5200,15.2500?z=1”));
startActivity(i);
}
}
The result it’s this screenshoot.
geo-google-maps-001

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.