Service(Android四大組件之一)

1.用startService啓動 activity向service傳遞參數(包括建立Servicee) Service類android //1.新建一個類繼承Service,記得在清單文件中註冊 //<service android:name=".Service1"></service> public class Service1 extends Service{ //2.重寫onCr
相關文章
相關標籤/搜索