解决 Tabhost 中的activity无法bindService

 http://stackoverflow.com/questions/2914921/android-context-bindservice-always-returns-false-and-serviceconnection-object-is

 

Using getApplicationContext().bindService instead of just bindService on your activity solves the problem as it is using the higher level application context.

 

解决 Tabhost 中的activity无法bindService_第1张图片

你可能感兴趣的:(application)