开发者

public events in android

开发者 https://www.devze.com 2023-03-16 07:31 出处:网络
What all system events are made public / shared and are accessible from within my android app ? e.g.

What all system events are made public / shared and are accessible from within my android app ? e.g.

Events shared by other applications : new email receiv开发者_StackOverflow中文版ed, calender meeting started etc,

Events shared by system : system going to be rebooted, a processes taking lot of CPU etc.

Can you point me any blogs/documentation in this regard ?

Thanks


You need to learn about Intents.

You fire an Intent to another app to request it to do something for you

http://developer.android.com/reference/android/content/Intent.html

You can also listen for global events (text messages received, bluetooth turned on etc):

http://developer.android.com/resources/faq/commontasks.html#broadcastreceivers

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号