0
I developed an app in java, android studio, and will publish it on a web platform of my own (also developed in java).
Only those who have access to this platform are licensed customers and this control is performed by a stringkey(Ex: "123456").
The downloaded app is generic to all customers, and what will differentiate the accesses to each base (each customer has its product base) will be stringkey. This is requested on the first page of the app: the user type, the app accesses the platform, validates and returns some data (among them the db connection string).
I would like to optimize this process(imagine the stringkey is long), do not want the user to type.
As the web platform knows the user’s stringkey, would like to, at the time of the apk download:
1-Change the layout displayed above(Ex: editKey.setText("123456");) (I had difficulty locating Edit by opening the layout in the Notepad)
or
2-Generate a text file with stringkey inside and make the app read this file when booting (the problem here is that I don’t know where to put this file so the app has access when it is installed)
or
3-Some other way out that solves the problem
I found the right solution.
– Murillo Comino
You could use tbm a Qrcode, containing this information, on the page where you download the apk, and by the apk you would ask to read the same..
– David Cabral