[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. [Q] LG G2 VS980 Stable lollypop upgrade method topic
  2. will lollipop update ( or this method) reset knox??? topic
  3. Updating after Rooting With CH Method topic
  4. [Q] Best method for restoring JB twrp backup to new phone? topic
  5. Has anyone tried this method of rooting the Turbo? topic
  6. Get method which calls another method (API) topic
  7. [Q] Brick method? topic
  8. [q] tried rooting my galaxy s6 using chainfare's method, stuck at boot screen :( topic
  9. Possible New Method - UNBRICK! LG LS980 topic
  10. Is root required to roll back to KitKat? topic
  11. [REQ] Multi DPI Stock Camera topic
  12. May be this is it for Xperia J topic
  13. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  14. Htc desire 816 official lollipop update video review topic
  15. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic
  16. How to roll back to KK topic
  17. What is this in Greenify settings topic
  18. [Q] How to update? topic
  19. [Q] New to phone - on 24A rooted - where to go from here? topic
  20. I9505 Safe to Downgrade from 4.4.2 to 4.2.2? topic

0 commentaires:

Enregistrer un commentaire