I have two apps on separate devices: Rider and Driver. In the Rider App, the rider requests a ride. When they press "Request" the 2nd app, Driver open up the Call Activity for the driver to select either "Accept" or "Deny". If the driver selects "Accept", I need to call a method in a different Activity in the Driver app.
So basically, when the CallActivity opens up and the driver is selecting "Accept", I need to call recordToDB() method from another activity in the Driver app called "TrackingActivity".
How can I do this without using an intent. Why? Because the "TrackingActivity" is not used until after the driver "Accepts" the ride, but I need to call this method before that happens for my FUNCTIONS to work.
答案 0 :(得分:0)
感谢您的回复。
@TedHopp我接受了您的建议,并创建了一个Utility类,该类可以正常工作。