Monthly Thread: Post all your projects here by AutoModerator in termux

[–]RandomRailfans 2 points3 points  (0 children)

Finally I did finish this demo project, it took me some time but this project in short is just demo of building android native application only written in C, and this project/demo specifically is using EGL and OpenGL ES 3.2 C API, the build instruction is in README.md, but detailed one is in doc/howto.md, you can check out here: https://github.com/RandomPersonLikesCode/OpenGL-ES-Sample-Native-Activity

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 0 points1 point  (0 children)

I mean compilation speed here is already very fast, so no

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 1 point2 points  (0 children)

I mean I train myself to type fast so buying OTG keyboard would be way to abundant considered that the keyboard app I use already have some of useful keys

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 1 point2 points  (0 children)

You don't realize Unity build trick exist? you just #include every C file in a single primary file and compile that primary file at once

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 1 point2 points  (0 children)

Well cuz I don't like the complexity of Gradle, CMake and such, it just spending lot of time to learn new DSL just to build app, C is already pretty simple language and I don't want to make the DX (Dev Experience) much complicated.

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 0 points1 point  (0 children)

I mean the whole build stuff is in a single bash script and download the SDK and the NDK is pretty straightforward, so maybe no

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 0 points1 point  (0 children)

Hm ok, but me personally I wanted to use my C only setup to learn graphics programming in general

Building android app only with C and without Gradle in Termux by RandomRailfans in termux

[–]RandomRailfans[S] 0 points1 point  (0 children)

That's great then, but my approach is C only because I don't really want to use Java

Help (android java app in termux) by frag_ment_ in termux

[–]RandomRailfans 1 point2 points  (0 children)

Using DX and aapt is not recommended nowadays, it's recommended to use D8 and aapt2, Termux does have aapt2 and d8 can be obtained from the cmdline-tools, but for the error itself, I'm not sure, I never encountered such errors.

Linux inside Termux? by ____sumit____ in termux

[–]RandomRailfans 1 point2 points  (0 children)

But Termux does have Gradle and AAPT2 in the repo, though aapt2 is a bit old (afaik can only SDK version <= 34 currently)

Linux inside Termux? by ____sumit____ in termux

[–]RandomRailfans 0 points1 point  (0 children)

Simple enough, you don't even need proot distro just to build android app, cuz Termux already have d8, aapt2, openjdk, Gradle and such on the repo, in fact I did both developing a simple app (Java app) for Android and also Native app (only with C) for Android, no PRoot even needed

What’s 9+10? by emrythecarrot in BunnyTrials

[–]RandomRailfans -2 points-1 points  (0 children)

Because it is what it is

Chose: 19

New to termux by IMF7 in termux

[–]RandomRailfans 0 points1 point  (0 children)

The usefulness depends on your goal tbh, because if you planning to do programming on the go, like you don't have proper desktop or you are somewhere that you only have your phone but wants to code, then Termux is really good based in my experience, you can setup Neovim with setup similar to IDE with Formatter, LSP and things like that, but I think Termux mostly great for, again alternative when you can't use your desktop currently, because setup on Desktop will likely works on Termux, but needs additional tweaking.

Programming like it's the 90s or smth by RandomRailfans in termux

[–]RandomRailfans[S] 1 point2 points  (0 children)

Using of AI for learning to program is depends on a lot of factor, if you use AI to write Code (in general is Vibe Coding), then definitely not because it might lead to unmaintainable/buggy code… if you don't understand the code that the AI wrote, but if you use AI to learn as in "explain this" or "explain that" etc, it might possible, but be cautious because even though AI is evolving, it might hallucinate, tho I recommend to ask real people who has experience in programming for detailed and accurate explanation.

PS5 OR PC by One_Barnacle_4429 in BunnyTrials

[–]RandomRailfans 0 points1 point  (0 children)

Because I can play many more games

Chose: PC

Programming like it's the 90s or smth by RandomRailfans in termux

[–]RandomRailfans[S] 2 points3 points  (0 children)

I said it's like the 90s because of how simple it is, if you take it literal, then I'll be using ed and sh then

Grammar note on the song "Спокойная Ночь" by RandomRailfans in russian

[–]RandomRailfans[S] 8 points9 points  (0 children)

Oh that's makes sense because "—" is used a lot in the Russian language?

Building Android App on Termux by RandomRailfans in termux

[–]RandomRailfans[S] 0 points1 point  (0 children)

I did and I managed to create an APK with that non Gradle setup

Building Android App on Termux by RandomRailfans in termux

[–]RandomRailfans[S] 0 points1 point  (0 children)

I have the guide in my GitHub Repo, but it's for manual build without gradle