Giter Club home page Giter Club logo

locationpermission's Introduction

Ứng Dụng Định Vị

Ứng dụng Android này yêu cầu quyền truy cập vị trí, lấy tọa độ hiện tại của thiết bị (kinh độ và vĩ độ) và hiển thị các tọa độ này. Ban đầu, ứng dụng hiển thị trạng thái quyền truy cập và cập nhật nó sau khi người dùng cấp quyền.

Chức Năng

  • Kiểm tra và yêu cầu quyền truy cập vị trí.
  • Lấy tọa độ hiện tại của thiết bị.
  • Hiển thị kinh độ và vĩ độ trên hai dòng riêng biệt.
  • Cập nhật trạng thái quyền truy cập vị trí.

Yêu Cầu

  • Android Studio
  • Thiết bị hoặc trình giả lập chạy Android 6.0 (API 23) trở lên
  • Google Play Services

Cài Đặt

  1. Tải hoặc clone repository về máy của bạn:

    git clone https://github.com/kouhoang/LocationPermission.git
  2. Mở dự án bằng Android Studio.

  3. Chạy ứng dụng trên thiết bị hoặc trình giả lập của bạn.

Hướng Dẫn Sử Dụng

  1. Khi mở ứng dụng, bạn sẽ thấy thông báo "Location Permission: Not granted".
  2. Nhấn nút "START" để yêu cầu quyền truy cập vị trí.
  3. Nếu quyền được cấp, ứng dụng sẽ hiển thị kinh độ và vĩ độ hiện tại của thiết bị.
  4. Nút "START" sẽ chuyển từ màu xanh lá sang màu xám sau khi lấy được tọa độ.

locationpermission's People

Contributors

kouhoang avatar

Watchers

 avatar

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.