logoalt Hacker News

paulddraperlast Tuesday at 7:49 PM5 repliesview on HN

> a few dozen kilobytes

A "hello world" Android starts at ~5MB.

It is possible to make it smaller if choosing some non-default different tools.


Replies

vbezhenarlast Tuesday at 8:43 PM

Hello world Android app includes a lot of dependencies like compat libs, constraint layout, kotlin runtime. These are not essential and can be removed.

pjmlplast Wednesday at 9:24 AM

I am quite sure that isn't using the plain Android APIs, and has a bunch of needless libraries.

Use plain Java, regular Android views, handle yourself the ifdefs for Android versions, and the 5 MB won't be there.

binaryturtlelast Tuesday at 8:52 PM

Outch… and I though an ~8KB "Hello, World!" here on my rusty Mac is HUGE already.

Aachenlast Tuesday at 9:19 PM

Idk what to tell you but my "hello world" + a few dozen lines of functionality are 9.6KB. Haven't done anything special to shave things off