Go to to subscribe to the full list of courses and get source code for projects.
Create a phone shake sensor application that tracks the movement of a phone using the accelerometer sensor.
Plot the phone movement on a line graph.
Full Android App development course
Index
0:00 Introduction and Preview
0:45 Library Dependencies
1:20 Start a new project
2:15 Build the app layout with textview progress bar
4:50 Create variable references to layout items using findViewById
6:10 SensorManager starter code
9:20 onResume and onPause methods
11:00 new methods onSensorChanged onAccuracyChanged
12:20 Normalize z y z axis motion into a single value
14:20 Update UI with new sensor values
15:20 Run acceleration on virtual phone with virtual sensors
17:36 Update progress bar with motion value
19:00 Change app background with extreme shaking events
21:20 Install GraphView using Gradle dependency manager
26:30 Add sample data for the graph
27:50 Track shake events on graph history
Источник: rutube.ru
⇒Расскажите об этом видео Android Studio Phone Accelerometer Shake Sensor and Line Graph, своим друзьям в социальных сетях.
Ссылка на страницу с видео:
HTML-ссылка на страницу с видео:
Код для вставки плеера:Пародия на шоу "Контакты"/Антона Шастуна /Инга Пустовойтова в гостя...
Полная разборка (сборка) и подключени... - онлайн
Мой новый приватный сервер по geometry dash - онлайн
Вячеслав Осиевский - Хава Нагила - הבה נגילה.-Venses Osi - онлайн
Red Dead Redemption 2 — официальное геймплейное видео (русские субт...