Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android apk file Dynamic Build

I am working on an android project which requires me to build the android's apk file at run time, i am doing so because i need to add a text document. This is like a client server process.

When a user opens a particular ip address, at run time on server side the apk file is built with the text document. The text document contains the users master data which is unique to a single user. At the end, the android app is directly downloaded and installed on mobile phone.

If any one knows the way to do it, please let me know.

like image 653
krisDrOid Avatar asked May 21 '26 23:05

krisDrOid


1 Answers

You need to do at least several things (I've done similar task in J2ME):

  1. You have to have JDK on server side
  2. ANT tool installed there
  3. Some scripting tool to generate sources (as a last resort your own Java servlet)

So based on user response you should:

  • using scripting tool generate Java source
  • generate/collect necessary resources
  • generate AndroidManifest.xml
  • run on top of that ANT builder
  • get APK file and upload it to customer
like image 84
Barmaley Avatar answered May 24 '26 12:05

Barmaley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!