簡單三步驟輕鬆完成四種 Android 系統服務 框架設計 |
|
NolanLiao
一般會員 發表:17 回覆:30 積分:9 註冊:2014-03-01 發送簡訊給我 |
簡單三步驟輕鬆完成四種 Android 系統服務 框架設計
RAD Studio 10 Seattle 四種 Android 系統服務 (1)Local Service。 (2)Intent Local Service。 (3)Remote Service。 (4)Intent Remote Service。 原廠 Android 系統服務說明展示,可以觀看下列影音資料: RAD Studio 10 Seattle - Android Services https://www.youtube.com/watch?v=xZvUqoASPdY Local Service: TAndroidServiceDM = class(TAndroidService) function AndroidServiceBind(const Sender: TObject; const AnIntent: JIntent): JIBinder; procedure AndroidServiceConfigurationChanged(const Sender: TObject; const NewConfig: JConfiguration); procedure AndroidServiceCreate(Sender: TObject); procedure AndroidServiceDestroy(Sender: TObject); function AndroidServiceHandleMessage(const Sender: TObject; const AMessage: JMessage): Boolean; procedure AndroidServiceLowMemory(const Sender: TObject); procedure AndroidServiceRebind(const Sender: TObject; const AnIntent: JIntent); function AndroidServiceStartCommand(const Sender: TObject; const Intent: JIntent; Flags, StartId: Integer): Integer; procedure AndroidServiceTaskRemoved(const Sender: TObject; const ARootIntent: JIntent); procedure AndroidServiceTrimMemory(const Sender: TObject; Level: Integer); function AndroidServiceUnBind(const Sender: TObject; const AnIntent: JIntent): Boolean; Intent Local Service: TAndroidServiceDM = class(TAndroidIntentService) function AndroidIntentServiceBind(const Sender: TObject; const AnIntent: JIntent): JIBinder; procedure AndroidIntentServiceConfigurationChanged(const Sender: TObject; const NewConfig: JConfiguration); procedure AndroidIntentServiceCreate(Sender: TObject); procedure AndroidIntentServiceDestroy(Sender: TObject); procedure AndroidIntentServiceHandleIntent(const Sender: TObject; const AnIntent: JIntent); function AndroidIntentServiceHandleMessage(const Sender: TObject; const AMessage: JMessage): Boolean; procedure AndroidIntentServiceLowMemory(const Sender: TObject); procedure AndroidIntentServiceRebind(const Sender: TObject; const AnIntent: JIntent); procedure AndroidIntentServiceTaskRemoved(const Sender: TObject; const ARootIntent: JIntent); procedure AndroidIntentServiceTrimMemory(const Sender: TObject; Level: Integer); function AndroidIntentServiceUnBind(const Sender: TObject; const AnIntent: JIntent): Boolean; Remote Service: TAndroidServiceDM = class(TAndroidService) function AndroidServiceBind(const Sender: TObject; const AnIntent: JIntent): JIBinder; procedure AndroidServiceConfigurationChanged(const Sender: TObject; const NewConfig: JConfiguration); procedure AndroidServiceCreate(Sender: TObject); procedure AndroidServiceDestroy(Sender: TObject); function AndroidServiceHandleMessage(const Sender: TObject; const AMessage: JMessage): Boolean; procedure AndroidServiceLowMemory(const Sender: TObject); procedure AndroidServiceRebind(const Sender: TObject; const AnIntent: JIntent); function AndroidServiceStartCommand(const Sender: TObject; const Intent: JIntent; Flags, StartId: Integer): Integer; procedure AndroidServiceTaskRemoved(const Sender: TObject; const ARootIntent: JIntent); procedure AndroidServiceTrimMemory(const Sender: TObject; Level: Integer); function AndroidServiceUnBind(const Sender: TObject; const AnIntent: JIntent): Boolean; Intent Remote Service: TAndroidServiceDM = class(TAndroidIntentService) function AndroidIntentServiceBind(const Sender: TObject; const AnIntent: JIntent): JIBinder; procedure AndroidIntentServiceConfigurationChanged(const Sender: TObject; const NewConfig: JConfiguration); procedure AndroidIntentServiceCreate(Sender: TObject); procedure AndroidIntentServiceDestroy(Sender: TObject); procedure AndroidIntentServiceHandleIntent(const Sender: TObject; const AnIntent: JIntent); function AndroidIntentServiceHandleMessage(const Sender: TObject; const AMessage: JMessage): Boolean; procedure AndroidIntentServiceLowMemory(const Sender: TObject); procedure AndroidIntentServiceRebind(const Sender: TObject; const AnIntent: JIntent); procedure AndroidIntentServiceTaskRemoved(const Sender: TObject; const ARootIntent: JIntent); procedure AndroidIntentServiceTrimMemory(const Sender: TObject; Level: Integer); function AndroidIntentServiceUnBind(const Sender: TObject; const AnIntent: JIntent): Boolean; 部落格: http://nolanliao1965.pixnet.net/blog 臉書: https://www.facebook.com/NolanLiao1965
附加檔案:55e69e9644801_02.png
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |