Create an Activity with API changing - java

I go to File > New > New Android Application and enter the following:
then I click Next and tells me that I can't "Create Activity" and then again in the "New Android Application" and enter the following:
it works and I can check "Create Activity"!
I making a simple thing in pages, text and I want to get map to some place using latitude and longitude through GPS,
My question is, will people who got Android version 2.2 mobile or higher can view everything?

Yes you should use read the Google Maps API doc, you can support 2.2 and above using Google Play Services SDK.
please check :
Google Maps Android - API V2 Documentation
How to setup Google Play Services SDK

Related

How to display routes to and from a location using Google Maps in Android Studio

So I am trying to create a route planner that has google maps but I want to have google maps working in android studio and allow the user to input their source location and their destination location and click display track and it will show the user the routes to them any idea how I can do this?
You can integrate Google Maps into your Android Studio project and display the route between two locations using the Google Maps Directions API. You'll need to obtain an API key from the Google Cloud Console and include it in your project.
You can then make HTTP requests to the API to retrieve the route information and display it on the map.
To find the API documentation and tutorials on how to integrate Google Maps into Android Studio at
https://developers.google.com/maps/documentation/directions/start.

Android Studio Google Sign-In not working

I am using Google sign-in for my app, and it does get called, but when it pops up, instead of asking which account I want to use, it says "This app requires the latest version of the Google play games app". And I am sure, that Google play games app is installed because I entered my account data into there.
Edit:
I am using API version 24 on my AVD
You should check if your google play services version is 10.2.6.
Else you will have to update it.
Else specify a lower version like com.google.android.gms:play-services-games:9.8.0 in your gradle file and run.

Turn on location services automatically in Android 3.1 and above

I know that from android 3.1 and above you can't turn on location services manually. But in Google maps it simply shows an dialog which prompts me to switch it on. This directly switches it on (In android 5.1 - Lollipop). So how does google do it? Is it some Google location services API I can use or should I direct the user to the location services settings screen?
Thanks.
The are making use of theSettingsApi It allows you to check if the location services are available on the device and there is a complete example provided by google on github that shows how to use this API. The sample code will prompt the user to enable location if it's switched off. The dialog that pops up when you fire the intent is similar to what you see in Google Maps.

Add Google API to existing eclipse project

I am writing an android app that will use Google Maps but to implement this I need the Google API. When I downloaded the android platform sdk (example android 4.0) I did not download the Google API cause did not know that I would need it to implement this feature.However, I went back and downloaded it. How do I add it to my existing project. Did some searching and all showed how to start a new project with the API but not how to add it to the existing project.
Since you have already downloaded the Google APIs for the version that you are developing for, example Android 4. all you have to do is:
Right click on your project -> Go to Properties -> Then Android - > Then select the Google APIs at API level 14
Try this simple thing. In your file which you need the google maps api which extends 'Activity', replace Activity with MapActivity. It should have a red line showing error on your code. hover mouse over it and click on the option 'Fix Project Setup'. you will then find an option that suggests you to import Google APIs. select it, and you are done.
Let me know if that works.

GoogleMaps 5.0 in android

hi i want to use googlemaps 5.0 (3D view(Street view) )in my android app .is it possible .please share some resources or tutorial that how to use them
Have you already checked out googles official documentation?
http://code.google.com/android/add-ons/google-apis/maps-overview.html
No, it is not possible. The Google Maps app and the maps add-on for app development are separate. The only thing you can do is open Google Maps to a given location via the geo or google.streetview URI schemes.

Categories

Resources