Hi,
So bare with me I'm not an Android developer but I'm doing my best. I'm not sure I'm posting in the right place either, I saw there is an Xposed dedicated Forum but it doesn't seem to have any Questions posted to it, only Release of Modules. So forgive me if this is the wrong place. To the point :
I've created an Xposed module. Right now it is very simple, I was able to listen on two methods in a class of an application I want to use as my events. (Hooks)
When I start that Application, lets call it AppX, I log to Xposed Log and I can see my Hooks being called correctly. So the hard part I think is behind me, I decompiled AppX, found the methods, made my Module, hooks are working.
Now I want to perform some actions on those Hooks.
I want to pop a notification with 2 buttons, every 1 hour, WITHOUT being dependent on AppX context. I don't care anymore what happened to AppX.
The button would be, Snooze and Dismiss, I know I need to implement them, and I'll read up on documentation to create the notification. My problem is, where I am stuck, I don't have an Application Context or any other Context in my class.
If I extend Application or Activity, I get problems from Xposed when I try to load my Activity. I just need some guidelines in the right direction, and I'll go back to trying. Iv'e been trying now until my head hurts without bugging you guys, and I'd appreciate the help.
To Summerize :
So bare with me I'm not an Android developer but I'm doing my best. I'm not sure I'm posting in the right place either, I saw there is an Xposed dedicated Forum but it doesn't seem to have any Questions posted to it, only Release of Modules. So forgive me if this is the wrong place. To the point :
I've created an Xposed module. Right now it is very simple, I was able to listen on two methods in a class of an application I want to use as my events. (Hooks)
When I start that Application, lets call it AppX, I log to Xposed Log and I can see my Hooks being called correctly. So the hard part I think is behind me, I decompiled AppX, found the methods, made my Module, hooks are working.
Now I want to perform some actions on those Hooks.
I want to pop a notification with 2 buttons, every 1 hour, WITHOUT being dependent on AppX context. I don't care anymore what happened to AppX.
The button would be, Snooze and Dismiss, I know I need to implement them, and I'll read up on documentation to create the notification. My problem is, where I am stuck, I don't have an Application Context or any other Context in my class.
If I extend Application or Activity, I get problems from Xposed when I try to load my Activity. I just need some guidelines in the right direction, and I'll go back to trying. Iv'e been trying now until my head hurts without bugging you guys, and I'd appreciate the help.
To Summerize :
- Found Class and Method to hook on - Done
- Implemented Hook - Done
- I know which Actions I want to perform - Notification
- Help needed to continue.