All Projects → mapbox → Mapbox Android Demo

mapbox / Mapbox Android Demo

Licence: bsd-2-clause
Google Play demo app for the Mapbox Maps SDK for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mapbox Android Demo

Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (-64.9%)
Mutual labels:  demo, mobile
Vant Demo
Collection of vant demos.
Stars: ✭ 1,265 (+102.72%)
Mutual labels:  demo, mobile
React Native Socket Io Example
A demo for implementing a mobile chatroom
Stars: ✭ 358 (-42.63%)
Mutual labels:  demo, mobile
React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+214.42%)
Mutual labels:  demo, mobile
Cp Design
A configurable Mobile UI Components(React hooks+Typescript+Scss)组件库
Stars: ✭ 465 (-25.48%)
Mutual labels:  demo, mobile
Bonfire Firebase Sample
An app to discuss your favourite emojis. This is a sample app built with Firebase.
Stars: ✭ 564 (-9.62%)
Mutual labels:  demo
Web
⚡️ Supercharged version of Create React App with all the bells and whistles.
Stars: ✭ 594 (-4.81%)
Mutual labels:  demo
Trip
移动前端开发经验指南
Stars: ✭ 550 (-11.86%)
Mutual labels:  mobile
Immuni App Ios
Official repository for the iOS version of the immuni application
Stars: ✭ 545 (-12.66%)
Mutual labels:  mobile
Cordova Plugin Wkwebview Engine
[DEPRECATED] Apache Cordova wkwebview engine plugin
Stars: ✭ 607 (-2.72%)
Mutual labels:  mobile
Android Yolo
Real-time object detection on Android using the YOLO network with TensorFlow
Stars: ✭ 604 (-3.21%)
Mutual labels:  demo
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 589 (-5.61%)
Mutual labels:  demo
Neutrino
Privacy-Preserving Bitcoin Light Client
Stars: ✭ 564 (-9.62%)
Mutual labels:  mobile
Cordova Js
Apache Cordova JavaScript Bridge
Stars: ✭ 598 (-4.17%)
Mutual labels:  mobile
Flutter starter kit
A starter kit for beginner learns with Bloc pattern, RxDart, sqflite, Fluro and Dio to architect a flutter project. This starter kit build an App Store app as a example
Stars: ✭ 553 (-11.38%)
Mutual labels:  mobile
Electrode Native
A platform to ease integration&delivery of React Native apps in existing mobile applications
Stars: ✭ 606 (-2.88%)
Mutual labels:  mobile
Node Express Mongoose Demo
A simple demo app using node and mongodb for beginners
Stars: ✭ 4,976 (+697.44%)
Mutual labels:  demo
Countly Sdk Ios
Countly Product Analytics iOS SDK with macOS, watchOS and tvOS support.
Stars: ✭ 585 (-6.25%)
Mutual labels:  mobile
Cordova Plugin Splashscreen
Apache Cordova Plugin splashscreen
Stars: ✭ 602 (-3.53%)
Mutual labels:  mobile
Cordova Plugin Geolocation
Apache Cordova Plugin geolocation
Stars: ✭ 584 (-6.41%)
Mutual labels:  mobile

Mapbox Android Demo app

CircleCI

This is a public demo of the Mapbox Maps SDK for Android. The demo app is available now in the Google Play Store and it shows off many of the examples found on:

There are also examples that only live in the app. The app's "labs" section has examples which often combine various Mapbox tools to create more complex examples.

Visit the overview page to get started using the Mapbox Maps SDK for Android in your Android project.

Steps to adding a new example

Feedback and contribution are encouraged in this repo. If you'd like to see a new example added into the app, either open an issue or create it yourself and open a pull request following these steps:

  • Create a new java file and place in the acceptable folder (examples or labs) giving it a descriptive name and ending the title with *Activity. It's important that all activities extend AppCompat.
  • If the activity needs a layout, add one with the naming convention activity_*.
  • Add the activity to the AndroidManifest.xml file.
  • Open the MainActivity.java file and scroll down to the listItems method. You'll notice a switch statement, pick one of the cases (categories) and add the new example so it matches the others.
  • Code your example and test to make sure it works properly.
  • Open a pull request with the new example.

Note: This repo uses checkstyle to make sure code contributed follows the Mapbox Style standards. When a pull request is opened, Bitrise will check that no style issues occur in the code. Read this wiki entry to set up checkstyle in Android Studio.

Running locally

Setting the Mapbox access token

This demo app uses Mapbox vector tiles, which require a Mapbox account and a Mapbox access token. Obtain a free access token on the Mapbox account page.

With the first Gradle invocation, Gradle will take the value of the MAPBOX_ACCESS_TOKEN environment variable and save it to SharedCode/src/main/res/values/developer-config.xml. If the environment variable wasn't set, you can create/edit the developer-config.xml file. Create an access_token String resource and paste your access token into it:

<string name="access_token">PASTE_YOUR_TOKEN_HERE</string>
Product flavors

The app has a two product flavors; global and china. The global flavor has the full list of standard examples, whereas the china flavor has China-specific examples, which use the Mapbox China Plugin for Android. The plugin requires a special China Mapbox access token. Contact our sales team to start the process of receiving this special access token.

You might see China-related examples when you locally run the app on your device. This is because Android Studio is set on the china flavor. Find and click on the "Build Variants" tab in the lower left hand corner of the Android Studio window. Then choose globalDebug to change the flavor to the global flavor. Re-run the app on your device to see the "regular" demo app examples.

screen shot 2019-03-06 at 9 09 13 am

If you're still having issues, please open an issue ticket in this repo.

Inside the app

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].