Tuesday, April 29, 2014

SMS interception jar BroadcastReceiver


Seek expert to give pointers:

The following class inherits BroadcastReceiver, overloaded SmsReciver method, is to achieve the interception messaging functions. Intercept SMS functionality is achieved such calls,





Inside the xnl want this class, the code is

If not packaged into jar, run the project, recver method can be invoked via xml onReciver point, however, it com.example.duanxintest.SmsReciver packaged as the jar, run the project xml configuration unchanged, but did not perform SmsReciver. Tried many times, there is no error, please solve this problem teacher to solve, do not ask why I packaged as jar, because the company needs to be doing.

Thanks! ! !
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
I have tried, in time to play in the jar package also can perform. You look at the package path jar correctly?
Reply:
jar has been build into the apk there? check the build path eclipse
Reply:
Also estimated to import your jar package does not need to be applied in the project after the kick.
Reply:
After you have labeled jar package is also broadcast the need to register?
Reply:
Packaged into a jar path change?

No comments:

Post a Comment