Avatar
jb55
32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245
I made damus, npubs, and zaps ⚡️ Independent bitcoin core and lightning dev.

shut off the phone and take a long hike

yeah its not that low level. GameActivity has an internal buffer it builds up that tracks what has been typed so far, what is highlighted, etc. so GameActivity is buggy

Lol now the rust android devs are seriously considering rewriting GameActivity in rust since its so bad and buggy and has threading issues

https://github.com/rust-mobile/android-activity/pull/185#issuecomment-2718241841 nostr:note18nty7p83080ghserg3czk4luzvyxpjj8k2fcpcrhj34as9sl8gvq03tlzd

I don’t even think this is a touch sensitivity thing. I can’t press it fast enough to only register a single key. It looks like android-activity has some vendored gamesdk glue code it copied over that has bugs. Going to try to get the latest upstream of that at least. If all else fails I will have to do some super hacky thing that detects this and fixes it proactively. Ew

So GameActivity seems like a safe haven for now at least, assuming most game engines target that

We were using NativeActivity but was told it was deprecated and they keyboard wasn’t appearing at all 😵‍💫

There’s always issues, some nostr devs work in the open so you get to see how the sausage is made, users are QA, etc. all these issues are usually in resolved in big companies before people ever see them.

Software isn’t magic. It’s lots of grinding and polish to get something that just works.

I’m gonna try to update from the upstream google code, this isn’t a matter of just having random rust devs help. It looks like this is in might need help from google employees soon. Hope not but we’ll see.

https://github.com/rust-mobile/android-activity/pull/94#issuecomment-2622967812

lol what? in north america i think it slightly tilts towards iOS, but its like 60% android in most of the world

yeah its just me and lucasmerlin from egui who has tackled this problem. I have successfully*ish* hooked up text input from GameActivity (android-activity) to winit to egui.

Once i fix these remaining issues i can start to try to upstream this stuff. Once i do egui will start to be a more serious option for mobile cross platform dev.

This is pretty huge because there are not many immediate mode non-web rust app dev frameworks that are truly cross platform.

Having it in winit will mean any app framework that uses winit to manage its windowing will have input from android and ios as well. This is surprisingly still not supported.

can already tell android dev is going to be a pain in the ass. On my pixel phone when i tap ‘a’ it sends two ‘a’s. on my galaxy tablet it sends one. Exact same code.

I’m logging at the lowest levels, directly from the native GameActivity apis.

All i’m doing is registering a callback for when there is text input. GameActivity calls me twice when i press a key, first with an ‘a’ and then again with ‘aa’. ahhh. not even ai is helping with this one.

I guess next step is to look at the android source code to see why this is happening. At least it’s cool you can do that. but still 😩 nostr:note1rh933wgf99qf3v7r4sl9p93jh9xl45kygqzy6thau93wyy0m2mss23er04

Actually i think it’s significantly higher than 180/m, i was looking at the wrong model. Would be more like $800 per month from the price ive been seeing online. Yeah maybe not worth it for now. Will wait till these get cheaper.

It was like this before. Some refactor broke it

we only have it for kind1 and dms atm

Models are getting more efficient. You can run frontier-quality models on a m4max now

cursor and claude made a frontend for my ai podcast generator. it was even nice enough to build a work queue to process things one at a time.

should I release this? maybe pay with lightning. could add features like customizing the dialog style.

I like to highlight sections of code, press cmd-k and get 3.7 sonnet thinking to work out a plan, then I switch to non-thinking to do the agentic stuff /editing with the plan

Airpods are probably my favourite apple device of all time. I actually forgot about cables until this post reminded me 😅

Leaving likes behind has been the biggest shift in the way i use social media. The fact this doesn’t exist anywhere and i had to program it myself is crazy to me, but thats the power of nostr

#onlyzaps

Instagram doesn’t even have this feature. I don’t get it

Makes notifications from different people easier to parse visually