How to use reflection library?

Status
Not open for further replies.

Theera

Expert
Licensed User
Longtime User
Last edited:

gawie007

Member
Licensed User
Longtime User
Hi Erel,
Somehow I always ask for something difficult.
I have rewritten my program so that it is easy to read and have attached it.
This was more or less how I had it originally, which also included your suggestions - I do not want to reinvent the wheel.
This works perfectly until I enable "Blocking Mode" on my Samsung Note 2 phone. The phone now blocks any audible or vibration raised by a notification. see: http://eguides.sprint.com/support/e...sung_galaxy_note_ii_eguide/blocking_mode.html
I could change the Blocking Mode settings to allow the mobile number to be exempt from the Blocking Mode rules but I have to consider other phones that may have similar features. Therefore, I have to find a way to override these settings.
This is used for our GSM Module which monitors industrial conditions (alarms etc.). A SMS will be sent to the user when an event is raised. The notification must be raised, be audible and vibrate irrespective of the settings on the phone.

By the way, this is brilliant the way that you have written the basis for all this (Intent Filters). Even if I Force Close my application, it starts up again as soon as I have an incoming SMS. Pure Genius!

In order to test it, I was sending an SMS back to myself. The number ending with xxx in s1 would need to reflect the user's phone number.
 

Attachments

  • SMSInterceptor.zip
    8.6 KB · Views: 211
Last edited:
Upvote 0
Status
Not open for further replies.
Top