[Q] call startService from hook method topic

SOCIALIZE IT ⇨

Hello,
I've succeeded to hook method that gives me the accelerometer events.
so now all the application which use the accelerometer are generating events.

I wanted to send all those events from the hooking method to a service using intents that will aggregate them
and write them into a sqlite db (the db is not relevant for now, only the service).
The problem is that i can't start the intentService from the hook method.

Things that i tried already:
-- getting the Context from the activity on load by hooking the onStart in the Activity.class (succeeded getting the context but not starting the Service with an intent)

-- using the same context as above but start a broadcast receiver with implicit intent (define intent-filter in the manifest), and from the
broadcast to start the service (not worked either, the broadcast never got the sent message)

is there some guide or tutorial that can show me how to start a service or broadcast receiver from the hook method?
thanks ahead...

xda-developers


  1. [REQ] Multi DPI Stock Camera topic
  2. May be this is it for Xperia J topic
  3. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  4. Htc desire 816 official lollipop update video review topic
  5. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic
  6. How to roll back to KK topic
  7. What is this in Greenify settings topic
  8. [Q] How to update? topic
  9. [Q] New to phone - on 24A rooted - where to go from here? topic
  10. I9505 Safe to Downgrade from 4.4.2 to 4.2.2? topic
  11. Remove Att logo from the rear of the phone topic
  12. [Q] Going from Stock Unrooted to CM12.1 topic
  13. Downgrade from 5.1.x to stock topic
  14. Anyone come from a Note 4? topic
  15. [Q] Downgrading to KitKat from Lollipop topic
  16. How to update from 5.0.1 to 5.1 topic
  17. [Q] Data from both sim cards? topic
  18. [Q] Downgrade from lollipop to kitkat topic
  19. [Q] How to hook the step counter sensor? topic
  20. [Q] SU Command from hook topic

0 commentaires:

Enregistrer un commentaire