O
O
oe24y2014-03-26 07:54:56
Android
oe24y, 2014-03-26 07:54:56

How to give the user an APK file with individual data?

Here's what I would like to implement:
1) The user receives an individual link.
2) Goes to the site through it and downloads a unique apk file
3) After installing this received application, a WebView opens, in which a unique URL for this user is loaded.
Tell me, does anyone have any ideas?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Roman Makarov, 2014-03-26
@vollossy

Well, generate a resource with the desired url, extract the url from it in the application code. When requesting an apk, run the build as a background and, after completion, copy the file to the directory from where the user can download it, and show the link to the user for downloading.
PS You can not run it in the background, it's just not known how long the build can last.

V
Vladimir Yakushev, 2014-03-26
@VYakushev

@vollossy answered your implementation , but as he noted, building an individual APK file can take a long time for a more or less serious project. I would like to offer an alternative.
1. The APK file is the same.
2. At the first start, the application requests an individual code. There is a request to the server with the transfer of this code. Your unique URL is stored on the server for this code , which the server returns to the application.
3. The application receives the URL and saves it. On all subsequent launches, the application already uses the received URL.

D
Denis Morozov, 2014-03-26
@morozovdenis

apk is a zip, so you can quickly put a bunch of additional files there, and if android-sdk has the ability to access these files, then this is how you can do it

S
Stepan, 2014-03-26
@L3n1n

Has the era of viruses passed yet?

O
one pavel, 2014-03-26
@onepavel

Everyone is right about zip, in the asset folder, stuff the desired file. At least txt with url, at least html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question