Reputation: 11146
I am writing an application where inside application wanted to identify from which URL-Source apk is download. Is there any way to get it.
Basically I wanted to know how many times apk is install from given URL.
Any suggestion here!!
Upvotes: 1
Views: 3415
Reputation: 1006704
I am writing an application where I need to find download URL of apk. Is there any way to get it.
No, because there is no download URL. APKs are installed from local files. How the APK got to be a local file (downloaded from a URL, received in an email attachment, copied over to external storage via USB cable, etc.) is not something that you can determine.
Basically I wanted to know how many times apk is install from given URL.
You are certainly welcome to use product flavors in Android Studio/Gradle for Android to create custom APKs based on distribution channel, where those APKs have a custom value baked into them (e.g., buildConfigField
mapping to a BuildConfig
field).
Upvotes: 2