Android 5.0 (L) Service Intent must be explicit in Google analytics

后端 未结 11 1643
南旧
南旧 2020-11-29 02:01

My code worked in <5 but in Android 5.0 I\'m running into an issue that I don\'t quite understand.

10-23 10:18:18.945: E/AndroidRuntime(8987): java.lang.I         


        
11条回答
  •  迷失自我
    2020-11-29 02:25

    If you are trying to start service, try it this way:

    var intent = new Intent (this,typeof(MyBoundService));
    var serviceConnection = new MyBindServiceConnection (this);
    BindService (intent, serviceConnection, Bind.AutoCreate);
    

提交回复
热议问题