2012-07-17 62 views
0

我想開發一個Android應用程序,在使用GPS跟蹤的特定識別位置提醒用戶,首先我們認識到一些特定區域,當用戶靠近這個區域時,他必須給予警報,請幫助我因爲我是初學者,所以從基礎知識開始學習。基於GPS的鬧鐘

+0

請注意,具有GPS開啓總是會很快 – JesperB 2012-07-17 11:12:53

+0

是必要的GPS精度耗盡手機的電池,或將粗位置(來自WiFi)沒事嗎? – halfer 2012-07-17 11:55:09

回答

0
i think you have to require following steps like 
    [1] google md5 certificate for your map 
    see https://developers.google.com/maps/documentation/android/mapkey 
    [2] make gps location listenr service in your project 
    see http://www.javacodegeeks.com/2010/09/android-location-based-services.html 
    [3] also Create AlaramService which notify the location and Alert using Brodcase Receiver 
     here do require code for AlaramService 
    [4] Add Require Permission and service register in Manifest 
     like 
     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission> 
     <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"></uses-permission> 
     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"> </uses-permission> 
     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission> 
     <uses-permission android:name="android.permission.INTERNET"></uses-permission> 
this some steps which may useful to you