what is the best way to retrieve id from android app link?
let say i have these link:
https://market.android.com/details?id=com.prey&hl=en
https://market.android.com/details?id=org.prowl.wifiscanner&feature=related_apps
https://market.android.com/details?id=com.asurion.android.mobilerecovery.sprint&feature=related_apps
i just want to get the app id : com.prey or org.prowl.wifiscanner or com.asurion.android.mobilerecovery.sprint, whether or not user enter other params after the id
You can do that nicely with two lines:
Run it: http://codepad.org/BisV1HC0
Manual: parse_url, parse_str