[問題]請問android的Service類別是否可以使用S …
想請問android的class若extend Service之後,是否就無法使用SQLITE(Content Provider)
小弟剛接觸android沒有很久
最近正在試著寫一支可以自動提醒使用者某些事件將發生的備忘錄
小弟的原本的想法是透過Service去讀資料庫
但後來發現好像無法這樣做
會有下列幾項錯誤
The method getIntent() is undefined
getIntent()目前有看到onStart那裡有intent可以替代(或許吧~小弟也不是很確定)
The method managedQuery(Uri, String[], String, null, null) is undefined
不知是否是本來Service類別的東西就無法使用資料庫
還是小弟有任何做錯的地方
麻煩各位大大幫忙解答,感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.232.135.205
※ 編輯: tonest 來自: 125.232.135.205 (12/26 15:21)
※ 編輯: tonest 來自: 125.232.135.205 (12/26 15:24)
※ 編輯: tonest 來自: 163.14.9.15 (12/27 15:36)