DEV Community

Cover image for Setting up android for a coding environment
SuperninjaX2
SuperninjaX2

Posted on

Setting up android for a coding environment

Prologue

Over the years, processors in mobile devices have gotten faster and faster to the point where they can even emulate PC games well. With that power, we should be able to do web development just fine. Leaving aside the limitations of the ARM CPU architecture, we are going to set up a coding environment on Android.

Prerequisites

  1. Android phone (version 7 and above)
  2. Ability to download approximately 200 MB

Step 1

Download Termux from F-Droid click here
And download Acode from the Google Play Store from here

Image description

Step 2

  • Once downloaded, go to your Android settings under Power or Battery Settings

Image description

  • Whitelist Acode and Termux from battery saver and battery optimization

battery saver off

  • Now open Acode and Termux

Step 3

  1. Open the left side menu in Acode and click on "Open Folder"

Image description

  1. Then click on the plus icon at the top

Image description

  1. Choose "Add Path" and click "Select Folder"

Image description

  1. In Android Material Files, open the side menu and click Termux

Image description

  1. Click "Add This Folder"

Image description

  1. Name the folder

With this done, you have successfully connected Acode and Termux.

Step 4

  • Enter the Termux directory you just created

  • Click on the New Folder icon and create a new folder named test

  • Click on the Mark icon and confirm the dialog that opens
    acode file manager

Step 5

  • Click on the three dots on the test folder that has now appeared in the sidebar

acode side bar

  • Choose "New File" and name the file index.html
  • Copy this code:
<h1>hello</h1>
Enter fullscreen mode Exit fullscreen mode

acode side bar

  • Click on the play button at the top to see what happens

Step 6

To finish this tutorial Click on this link
And see how to use plugins and AcodeX-server so you can use the Termux terminal inside

Top comments (0)