How to deep link json data from server on Android
I have an app that gets all of its products from a remote database and api. I want the user to be able to click the deep link and open the app to show that products details. How would I go about doing this.
The way the app works is that it has a listview in the main activity that receives its list of data from a remote server. When the user clicks on a product, the parameters are passed to the detail class for viewing. The detail class doesn’t access the remote api.
On an abstract level, all you need to do is somehow know which product to ‘click’ when the user comes in via a deep link. You probably can’t take advantage of the automatic deep link routing approach, but it should be fairly easy to encode an identifying key/value pair into the link and then use that to tell the main activity which parameters to retrieve and pass into the detail class.