GithubHelp home page GithubHelp logo

ddewaele / googlemapsv2withactionbarsherlock Goto Github PK

View Code? Open in Web Editor NEW
181.0 181.0 175.0 4.13 MB

This is a skeleton projects + full tutorial for using Google Maps v2 on Android with ActionBarSherlock 4.3.1

Home Page: http://ddewaele.github.io/GoogleMapsV2WithActionBarSherlock/

Java 100.00%

googlemapsv2withactionbarsherlock's Introduction

Introduction

This repository contains a number of projects that will help you get up to speed with Google Maps v2 on Android with ActionBarSherlock 4.3.1

It contains the following folders

Note : This project was created for Eclipse ADT so on the master branch you can checkout the projects, import them in Eclipse and you should be good to go. For people working with Android Studio, I've created a new branch called androidstudio_migration1 where you can checkout a Gradle enable version that you can import in Android Studio and get started immediately.

Tutorial

The tutorial guides can be found in the docs folder of this project. The sample application is part of a 6-part tutorial covering

Part 1 : Setting up the Maps component with ActionBarSherlock

  • Setup a skeleton project
  • Add the ActionBarSherlock and GooglePlayServices libs
  • More

Part 2 : Drawing on the Map - Markers and polylines

  • Adding markers
  • Highlighting markers
  • Removing markers
  • More

Part 3 : Animating the Map

  • Animate through a set of markers on the map
  • More

Part 4 : Migrating from v1 maps to v2 maps

  • Some tips and tricks for migrating your old v1 apps to v2.
  • A rundown of all the changes.
  • More

Part 5 : Using Google APIs : Directions and Places API

  • Use Google Places Autocomplete API
  • Use Google Directions API
  • Putting everything together.
  • More

Important note:

API keys

In order to run this application on your phone you'll first need to get an API key.

Instructions on how to setup your API key can be found in the Setting up an Android Maps V2 Project article.

You'll need to paste the API key into your application manifest on the following line:

<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="INSERT_YOUR_API_KEY_HERE"/>

Library issues

If you attempt to run an Android sample app with your own copy of ActionBarSherlock, you might run into the following issue:

Found 2 versions of android-support-v4.jar in the dependency list,
but not all the versions are identical (check is based on SHA-1 only at this time).
All versions of the libraries must be the same at this time.
Versions found are:
Path: C:\PROJECTS\Android\GoogleMapsV2WithActionBarSherlock\libs\android-support-v4.jar
	Length: 484258
	SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
Path: C:\PROJECTS\Android\ActionBarSherlock-4.3.1-0\actionbarsherlock\libs\android-support-v4.jar
	Length: 271754
	SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
Jar mismatch! Fix your dependencies

The reason being that 2 different Android Support Library v4 JAR files are present in the projects getting built. (one provided by ActionBarSherlock and one provided by your project). The solution is simple : Ensure that ActionBarSherlock is using the same version of the Android Support Library v4 JAR as the one your project is using.

In the enclosed ActionBarSherlock in this github repository the support JAR has already been replace. : https://github.com/ddewaele/GoogleMapsV2WithActionBarSherlock/tree/master/actionbarsherlock/libs

googlemapsv2withactionbarsherlock's People

Contributors

bryant1410 avatar ddewaele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

googlemapsv2withactionbarsherlock's Issues

Error in the demo main of directions

Hi, when i try the demo project (imported in android) pushing the button "directions" the app crashes with this error:

04-16 17:09:20.700 12557-12557/com.ecs.google.maps.v2.actionbarsherlock E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.ecs.google.maps.v2.actionbarsherlock, PID: 12557
java.lang.NoSuchMethodError: android.support.v4.view.ViewGroupCompat.getLayoutMode

have you got a fix for that please?

Thanks in advance for your reply.

Potential Security Issue

👋 Hello, we've received a report for a potential high severity security issue in your repository.

Next Steps

1️⃣ Visit https://huntr.dev/bounties/1-other-ddewaele/GoogleMapsV2WithActionBarSherlock for more advisory information.

2️⃣ Sign-up to validate or speak to the researcher for more assistance.

3️⃣ Propose a patch or outsource it to our community.


Confused or need more help?

  • Join us on our Discord and a member of our team will be happy to help! 🤗

  • Speak to a member of our team: @JamieSlome


This issue was automatically generated by huntr.dev - a bug bounty board for securing open source code.

Camera moved during cancellation

Hi. I am unable to find out how are you able to keep camera moving even when user zooms in or outs. According to Android docs

"If the animation stops due to interruption by a later camera movement or a user gesture, onCancel() will be called. The callback should not attempt to move or animate the camera in its cancellation method."

That means we can't use camera movement in onCancel(). So when a user touches the screen, the animation is stopped. Please provide a solution or hint to this.

(P.S. If we try to move camera in cancellation, it throws an exception saying "camera moved during cancellation". So our safe bet is to do nothing in onCancel(), but then the animation will stop)

How to import into Android Studio

I am new to Android Studio (AS) - so in AS I chose clone from Repository-> git, which downloaded the files.
Then it complaines about not beeing a Gradle-project - how can I convert this git to a gradle-project?
Otherwise, if I try to run I get an error:
org.junit not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.