freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

android手機計步軟件的設(shè)計與實現(xiàn)畢業(yè)論文-閱讀頁

2025-07-04 13:57本頁面
  

【正文】 顯示界面;(2) 完善查詢運動信息的功能,添加查詢一天當(dāng)中每次的運動信息的圖表;(3) 優(yōu)化代碼,使代碼更加簡潔。private static final long SPLASH_DISPLAY_LENGHT = 3000。private ImageView image。 //()。 image=(ImageView)findViewById()。 AlphaAnimation alphaAnimation=new AlphaAnimation(1, 0)。 (alphaAnimation)。 new Handler().postDelayed(new Runnable(){ Override public void run() { Intent mainIntent = new Intent(,)。 ()。 } }附錄2:TabHost標(biāo)簽實現(xiàn)底部菜單功能private void setupIntent() { = getTabHost()。 (buildTabSpec(Step_TAB, , , ))。 (buildTabSpec(Chart_TAB, , , ))。 }附錄3:計步功能public class StepActivity extends Activity implements OnClickListener{ private static final String TAG = Pedometer。 private Button btn_Start。 private Button btn_GoOn。 private Chronometer chronometer。 private mService。//判斷服務(wù)是否啟動 private TextView mStepValueView。 private TextView mDistanceValueView。 private TextView mCaloriesValueView。 private int mStepValue。 private float mDistanceValue。 private int mCaloriesValue。 String[] date=null。 int value2。 float value4。 private static final int STEPS_MSG = 1。 private static final int DISTANCE_MSG = 3。 private static final int CALORIES_MSG = 5。 mService = ()service。 } catch (InterruptedException e) { } value1 = ()。 value2 = ()。 value3 = ()。 value4 = ()。 ((SPEED_MSG,(int) (value4), 0))。 ((CALORIES_MSG,(int) (value5), 0))。 } Override public void onServiceDisconnected(ComponentName name) { mService = null。 Override protected void onCreate(Bundle savedInstanceState) { (savedInstanceState)。 chronometer =(Chronometer)findViewById()。 btn_GoOn=(Button)()。mBottomLayout=(LinearLayout)()。 mPaceValueView=(TextView)()。 mSpeedValueView=(TextView)()。 (this)。 (this)。 } Override public void onClick(View view) { switch(()) { case : (())。//開始計時 startStepService()。 saveYestodayHistory()。 (暫 停) 。 ()。//暫停計時 unbindStepService()。 long minutes=(().toString().split(:)[1])。 time=minutes*60+seconds。 } })。 case : (()time*1000)。//繼續(xù)計時 startStepService()。 ()。 (暫 停) 。 case : (())。 ()。 saveHistoryDataByTimes()。 resetValues()。 bindStepService()。 } } private void startStepService() { if (! mIsRunning) { (TAG, [step SERVICE] Start)。 Intent intent=new Intent(,)。 (time,(().getTimeInMillis()) )。 startService(intent)。 intent=new Intent(, )。 } private void unbindStepService() { (TAG, [step SERVICE] Unbind)。 } private void stopStepService() { (TAG, [step SERVICE] Stop)。 stopService(new Intent(, ))。 } private void resetValues() { (0)。 (0)。 (0)。 SimpleDateFormat matter=new SimpleDateFormat(yyyyMMdd HH:mm:ss(EE))。 date=( )。 (date[0])。 ((time))。 ((().toString()))。 ((().toString()))。 PedometerDAO dao=new PedometerDAO(this)。 try { (mHistory)。 } ()。 ()。 while(()) { String steps=((steps))。 String distances=((distances))。 } } catch (SQLException e) { // TODO Autogenerated catch block ()。 ( + mStepValue)。 case PACE_MSG: mPaceValue = 。 } else { ( + (int)mPaceValue)。 case DISTANCE_MSG: mDistanceValue = ((int))/1000f。 } else { ( ( + (mDistanceValue + )).substring(0, 5) )。 case SPEED_MSG: mSpeedValue = 。 } else { ( ( + (mSpeedValue + )).substring(0, 4) )。 case CALORIES_MSG: mCaloriesValue = 。 } else { ( + (int)mCaloriesValue)。 default: (msg)。 public void saveYestodayHistory() { Calendar calendar=()。 String yestedayDate= (EE, MM dd, calendar).toString()。 ()。 try { flag = (yestedayDate)。 } if(flag==false) { try { (yestedayDate)。 } } ()。 } } public class PedometerService extends Service { private static final String TAG = 。 //聲明NotificationManager private LocationManager locationManager。 public GeoPoint gp2。 private Location mLocation。 private int step=0。 private float speed=。 private PedometerSettings mSettings。 private long timeFromActivity。 private long targetTime。 Override public IBinder onBind(Intent intent) { (TAG, return the binder)。 } Override public void onCreate() { (TAG, [my SERVICE] onCreate)。 showNotification()。 getLocationProvider()。 gp2 = gp1。 pre=(this)。 } Override public void onDestroy() { (TAG, [my SERVICE] onDestroy)。 ()。 Bundle bundle=()。 timeFromActivity=(time)。 } //顯示Notification private void showNotification() { =(NotificationManager) getSystemService()。//參數(shù)分別為圖標(biāo),標(biāo)題,知時間 =。 (this, 計步器, 記錄您的腳步!, contentIntent)。//發(fā)送通知 } public class StepBinder extends Binder { public StepBinder(){(步伐綁定, StepBinder)。 public PedometerService getService() { return 。 return step。 return pace。 return distance。 return speed。 return calo
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1