I am trying to develop an Android browser application using WebView which enables users to access content from a custom protocol. The custom protocol could be foobar://
I want to intercept all requests to this custom protocol. This means:
- GET requests
- POST requests
and I need to be able to hand the results of these operations back to the WebView.
The GET requests can be handled using shouldInterceptRequest (available from API level 11).
Now my problem is: How can I incercept and handle POST requests?
Nearly the same question has been asked here and here, however no solutions for their problems have been found.