Scringo Login status changes not received on Android -
I am trying to implement Scringo Login Status Status on Android but my broadcast receiver is never called I have followed the instructions described on
, so I have registered my broadcast receiver:
& lt; Receiver Android: name = "com.jino.footster.MyReceiver" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "com.scringo.LoginBroadcast" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; And then I defined my brocost receiver:
package com.jino.footster; Import com.scringo.utils.ScringoLogger; Import android.content.BroadcastReceiver; Import android.content.Context; Import android.content.Intent; Public Class Myreasevar Broadcast Receiver Expands {@ Override Public Records on Receive (context reference, intention intent) {if (intent. Gate action). Equal ("com.scringo.LoginBroadcast")) {boolean isLogin = intent.getExtras (). GetBoolean ("isLogin"); String account id = intestine. Tag Extras () GetString ("accountId"); ScringoLogger.e ("Login receiver found:" + isLogin + "," + accountId); }}} Login is successful when I start the application: I see the following message in the login:
04-24 01: 12: 35.000: I / Scringo (4717): Your Scringo User Token is: a03fgalc5E
However, my broadcast never calls the receiver any method.
Will anyone be able to help you? Thank you
You forgot the category:
& lt; Receiver Android: name = "com.jino.footster.MyReceiver" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "com.scringo.LoginBroadcast" /> & Lt; Category android: name = "com.jino.footster" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt;
Comments
Post a Comment