Live data from Hacker News

Android CLI: Build Android apps 3x faster using any agent

android-developers.googleblog.com

51–60 of 154 posts

Re: Android CLI: Build Android apps 3x faster using any agent

#52

This is a good step forward, but keep in mind the claimed gains are about "project and environment setup", not the tasks you deal with on a daily basis in an existing project.

Taking screenshots, optionally with component borders highlighted, and operating the UI with element names like "button1" instead of tap 200,30 looks useful. If I could get it to work.

Re: Android CLI: Build Android apps 3x faster using any agent

#55
post #43

Wow. Thanks for this update. It streamlined a lot of tasks. Apart from this, next step will be to add suport for building android apps on the android phones itself. No desktop needed.Building on the laptop with agents and installing the build in the phone and testing doea not seem AI native. If everything can run on my android phone, development cycle will speed up.

you already could! just install Termux, npm install your favourite agent harness (pi for one has explicit Termux support, but its AGENTS.md works just fine with Claude Code for example - https://github.com/badlogic/pi-mono/blob/main/packages/codin...), and say you want an android app. It problem solves for a bit, then spits out an apk out to your Downloads folder.

Re: Android CLI: Build Android apps 3x faster using any agent

#56
post #43

Wow. Thanks for this update. It streamlined a lot of tasks. Apart from this, next step will be to add suport for building android apps on the android phones itself. No desktop needed.Building on the laptop with agents and installing the build in the phone and testing doea not seem AI native. If everything can run on my android phone, development cycle will speed up.

You actually can right now on termux.

Re: Android CLI: Build Android apps 3x faster using any agent

#57
post #43

Wow. Thanks for this update. It streamlined a lot of tasks. Apart from this, next step will be to add suport for building android apps on the android phones itself. No desktop needed.Building on the laptop with agents and installing the build in the phone and testing doea not seem AI native. If everything can run on my android phone, development cycle will speed up.

Also coding agents will happily compile android applications (of maximum complexity) via Github Actions where you can just pick them up with Obtainium. No PC needed

Re: Android CLI: Build Android apps 3x faster using any agent

#58
post #39
post #35

Earlier quoted context omitted.

`alias android-cli='android-cli --no-metrics'`

Uh do aliases load in non-interactive shells?

You could export BASH_ENV to have Bash processes source a given file at startup.

Zsh has .zshenv, and Fish just has config.fish for everything with the ability to guard certain things within it to login only or non-interactive only.

Re: Android CLI: Build Android apps 3x faster using any agent

#59
post #24

Earlier quoted context omitted.

this has been my sort of big tent alignment with AI people. If I'm getting good CLI tooling that _actually works_ (or fixes to existing ones that have been busted forever) then I'm pretty happy. Things that make systems more understandable to the LLMs ... usually make things more understandable for humans as well. Usually. The biggest issue I've found is that vibed up tooling tends to be pretty bad at having the righ…

Any textbooks or resources on getting better at naming things? The Programmers Brain book was my go to

"How to be Unix-y in Eleventy Billion Steps"

http://www.robertames.com/blog.cgi/entries/the-unix-way-comm...

TLDR: standard list of long options https://www.gnu.org/prep/standards/standards.html#Option-Tab...> and short options from -a to -z http://www.catb.org/~esr/writings/taoup/html/ch10s05.html>.

Re: Android CLI: Build Android apps 3x faster using any agent

#60
post #39
post #35

Earlier quoted context omitted.

`alias android-cli='android-cli --no-metrics'`

Uh do aliases load in non-interactive shells?

Create a wrapping binary instead

    mkdir -p ~/.local/bin
    printf '#!/usr/bin/env sh\nexec android-cli --no-metrics "$@"' > ~/.local/bin/android-cli
    echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.zshenv
Post reply on HN