小組實驗,編寫安卓手機程序,自動收集手機傳感器信息,例如,wifi、GPS、音量、重力加速度等信息。
這個要怎么學(xué)最快呢?我去網(wǎng)上找安卓教程,都是從UI布局,按鈕觸發(fā)事件開始講的,我不需要UI,只要能采集傳感器的數(shù)據(jù)就行了。
我習(xí)慣用C++,遇到j(luò)ava的程序,基本能看懂,看不懂的查資料。
求問我一定需要下一個安卓模擬器還是直接用我的小米手機測試(有一個閑置的手機)?
或者哪里有源代碼可以直接研究?
感激不盡。
業(yè)精于勤,荒于嬉;行成于思,毀于隨。
SensorManager can be used for the sensor part
Reference:
http://developer.android.com/reference/android/hardware/SensorManager.html
http://developer.android.com/guide/ topics/sensors/sensors_overview.html
WIFI information has WifiManager
Reference:
http://developer.android.com/reference/android/net/wifi/WifiManager.html
Google official documents are available.
Reference: https://github.com/emotionsense/SensorManager
Someone has already built the wheel.