android - Why Binder returns null when i bind Service in activity? -
there mainservice , has data member binder , , function member onbind() return binder.
in mainactivity, has member binder too, , has member conn class serviceconnection, , override onserviceconnected() function asign value binder.i bind service : bindservice(intent, conn, service.bind_auto_create), post function in oncreate().however, result binder null.
Comments
Post a Comment