Accelerometer Gauge

Accelerometer Gauge

Livingstone
May 9, 2016
  • 1.6 MB

    Dung lượng tệp

  • Android 4.1+

    Android OS

Giới thiệu về Accelerometer Gauge

Một thước đo hiển thị dữ liệu gia tốc của một thiết bị như tốc độ và khoảng cách.

An Android app that captures and displays accelerometer data on a professionally looking gauge and uploads the data to PubNub where it can be viewed on a web page.

This app is used as a coding example for Android developers on how to capture and display accelerometer data on a professionally looking gauge in real-time.

Data is also uploaded to PubNub where it can also be viewed on a web page in almost real-time.

The gauge contains a button that lets you cycle through 4 modes:

* Speed

* Current distance

* Total distance

* Demo

In Speed mode, speed is shown when you move the device. Shaking the device faster will result in a larger value being displayed.

In Current Distance mode, the app accumulates distance from the time the app starts and any motion is detected. Distance is displayed on the 7 segment display as a value and also shown on the colored bar segments.

In Total Distance mode, the app displays the total distance accumulated since the app first started. By "first started", this means that the very first time you started the app after installing it. If you exit the app and start it again, that would be the second time. Total Distance is shown only on the 7 segment display.

In Demo mode, the accelerometer data is ignored and fake speed values are incremented from zero till 10 and then back down to zero and then repeats.

After installing the app, you can also see the data on a web page by visiting:

http://niketestapp.github.io/Accel/index.html

The gauge also displays a small connection icon. When it is red, it means that no data is being uploaded to PubNub. This could be because the device's wifi is turned off, or possibly because PubNub's servers are not available. When data is successfully sent, the icon will be green.

If multiple devices run the app simultaneously, the gauge data on the web page will update for each device. This is because PubNub forwards the data to whatever clients subscribe to the data. In a real application, you would probably not want multiple devices updating a single gauge at the same time. The purpose here however is simply to demonstrate how data can be easily transmitted from a device to a web page in near real-time.

The app only forwards 5 data points per second to PubNub.

Source code available at:

https://github.com/JohannBlake/Accel

Hiển thị nhiều hơn

What's new in the latest 1.1

Last updated on May 9, 2016
Minor bug fixes and improvements. Install or update to the newest version to check it out!
Hiển thị nhiều hơn

Video và ảnh chụp màn hình

  • Accelerometer Gauge cho Trailer Android chính thức
  • Accelerometer Gauge ảnh chụp màn hình 1
  • Accelerometer Gauge ảnh chụp màn hình 2
  • Accelerometer Gauge ảnh chụp màn hình 3

Thông tin APK Accelerometer Gauge

Phiên bản mới nhất
1.1
Danh mục
Công cụ
Android OS
Android 4.1+
Dung lượng tệp
1.6 MB
Nhà phát triển
Livingstone
Tải APK an toàn và nhanh chóng trên APKPure
APKPure sử dụng xác minh chữ ký để đảm bảo tải APK miễn phí virus cho Accelerometer Gauge.

Phiên bản cũ của Accelerometer Gauge

APKPure biểu tượng

Tải xuống siêu nhanh và an toàn thông qua Ứng dụng APKPure

Một cú nhấp chuột để cài đặt các tệp XAPK/APK trên Android!

Tải về APKPure
thank icon
We use cookies and other technologies on this website to enhance your user experience.
By clicking any link on this page you are giving your consent to our Privacy Policy and Cookies Policy.
Learn More about Policies