How to convert html file into apk
10/21/2020 7:14:03 AMRaghu Rao
12 AnswersNew Answer
Raghu Rao, even if you switch to unity to create a game it still requires the Android Software Development Kit (SDK). Unity creates the apk by writing Java code that creates a custom main activity that will display your game then passes control to the code generated by Unity. https://docs.unity3d.com/Manual/android-BuildProcess.html If you want to write browser based games and bundle them as Android applications then you can do that. If you want to create games using Unity then you can do that too. You need to understand the build process though. I seriously wonder how many people who repeat "just use Unity" here on SoloLearn have actually gone through the process. It's rather like saying "just fly a plane" or "just perform brain surgery", a gross oversimplification. I don't know if such people are being flippant or trying to be smug.
https://code.sololearn.com/Wx8a6zsqSx9v/?ref=app It is surprisingly easy.
Raghu Rao I know what @frogged says, he say "downloading webview lib in Android studio and putting js and HTML " but it is not easy as image you need to download android sdk, android studio, there is also many java library you need it to run the webview as Martin Taylor mentioned it
So what can I do to publish my game on playstore. I mean should I change the language to C# and start unity
Or stay with js only
There Are 2 Methods: 1) In Android Studio (FREE): https://youtu.be/CjiSaGWvsEU 2) MIT App Inventor (FREE): i) Upload The App Files to A Web Hosting Server: https://www.youtube.com/results?search_query=free+html+web+hosting ii) Then See This Tutorial: https://youtu.be/TesEcpLeC3g iii) Build The Apk, Enjoy! Note: Second Method Needs Internet Connection! Hope It Will Help...
Ananiya Jemberu I think your answer is completely wrong Check the answer of Frogged
Thanks alot Martin Taylor