Hi there,
I have a problem in implementing AIDL for showing UI to user from a service ? Ok as u know there is a way that google in app payment uses with AIDL which user can pay for their chosen item and show a dialog or Bottomsheet to them to complete payment. I know for using AIDL how to proceed which is in this link :
https://developer.android.com/guide/components/aidl
My Problem:
But the problem is how show a UI from Server app which in this case receives data from Client and Client send data to server for doing some process on it and Server send back result to Client all with AIDL, meanwhile for doing this Server shows a Bottomsheet on top of client app which seems it’s a part of client app (I know it's not activity or fragment for sure) although I know that Bottomsheet come from server app.
For showing a UI from service I found this solution but I'm not sure if it’s a good answer to my problem:
- Show Dialog box in another application and bring on front on top of other application
- Having application running above other app
For better demonstration there is photos here from an app called Cafebazzar which allow client apps connect to it and show to them price and in app payment like below:
In app payment UI from service with AIDL
Note that: this app show UI in top of client app and when u go to recent app history there is no activity and view from server app and it's like view is attached to client app
Thanks in advance :)