How do I bind this service in Android?

前端 未结 3 726
小鲜肉
小鲜肉 2020-12-06 02:36

This is the code in my Activity. Initiate an Intent, then a Connection, right?

hello_service = new Intent(this         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 02:54

    I would like to point out that if you follow the service examples provided by google then your service will leak memory, see this chaps excellent post on how to do it properly (and vote for the related Google bug)

    http://www.ozdroid.com/#!BLOG/2010/12/19/How_to_make_a_local_Service_and_bind_to_it_in_Android

提交回复
热议问题