Code Anywhere: Turn Your Android Tablet Into a Dev Machine

Wait 5 sec.

Are you a digital nomad who is always on the go but still needs to get things done? And by “things,” I mean develop. If that sounds like you, chances are pretty good you carry a laptop around with you. And why not? Laptops have full-blown operating systems that make it possible to install and use your favorite IDEs and all the tools necessary to work on whatever projects you have to juggle.But what if you could lighten the load a bit and use an Android tablet for some of those projects? After all, a tablet is considerably easier to carry around than a laptop (even with a keyboard case involved).Before I get into this, know that you’re not going to be able to recreate the same type of development environment that you have on your laptop or desktop. Even so, you can still get by with a tablet and do so fairly well.With that said, how do you get started developing on an Android tablet? Let me see if I can help you.First Things FirstI don’t care how fast you can type on your phone or tablet’s virtual keyboard; you’re going to want to get a physical keyboard, otherwise, whatever you’re working on will take considerable time.There are tons of available Bluetooth keyboards available for Android, such as this $15 option on Amazon. You don’t need anything fancy, just a keyboard, so you’re not poking at your tablet with your index fingers and thumbs.Linux SupportOn some Android tablets (running Android 15 or newer), you can enable a Linux development environment. What this does is give you a full-blown terminal running in a sandboxed Linux environment. With this enabled, you have access to all the command-line tools you need, and can even install more with the apt package manager.To enable the Linux development environment, you must first enable the developer tools, which is done by going to Settings > About tablet and tapping the build number 7 times. Once you’ve done that, you’ll find a Linux terminal app in your App Drawer. Make sure to run the apt-get update command before attempting to install any command-line tools (otherwise, it will fail).If your tablet doesn’t include the Linux environment support, you can always install Termux, which is a terminal emulator and Linux environment.Install a DatabaseIf you need a database for development, you should be able to do so from within the Linux environment (either native or via Termux) with the following command (I’ll demonstrate with MongoDB and Termux):Once installed, you can access the MongoDB console with the command:You can add the Apache web server and PHP with the command:Install a Code Editor/IDEThe truth is that there aren’t very many good IDEs available for Android. That doesn’t mean there are none available. You can try out the following to see if one of them suits your needs:Code Studio – for developing Android apps, Java console programs, and websites.PyCoder – Python3 IDE with built-in AI.CodeSnack IDE – allows you to develop with several different languages and provides easy-to-use tools such as code by samples.Code Editor – supports languages like C, C++, PHP, Java, JavaScript, HTML, CSS, and more.Access Remote Machines and GitHubMost of what I do is via Linux machines. On those machines, I keep an SSH server running, so I can log into them at any time. You can install an SSH client on your Android tablet, SSH into your Linux machine, and use all of the tools you have available. One of my favorite SSH clients for Android is Termius, which makes it easy to save hosts and includes all of the features you’ll need to simplify accessing your remote machines.You can also install the GitHub app on your tablet, so you can triage notifications, review, comment, and merge. Keep in mind that you can’t push and pull with this app. You can, however, install Git (the command-line tool) with either Termux or via the built-in Linux environment. The commands for that would be:Linux environment – apt install git -yTermux – pkg i git -yAdd a Project Management AppYou can also add a project management app. I prefer Kanban but there are plenty of good management apps on Android, such as:TrelloAsanaClickUpJira CloudZoho ProjectsGet the Right TabletThe final consideration is the right tablet. You don’t want to use an underpowered device with a poor display. If you want to purchase a tablet that will give you plenty of power, a solid display, and plenty of storage, consider one of the following:Google Pixel TabletSamsung Galaxy Tab S10+ PlusOnePlus Pad 2Lenovo Yoga Tab PlusIt’s not impossible to develop with your Android tablet. With just a bit of creativity, you can have a lightweight tool to carry with you that is capable of keeping you on track for your projects, no matter where the road takes you.The post Code Anywhere: Turn Your Android Tablet Into a Dev Machine appeared first on The New Stack.