Android Question Android remote

pauleffect

Member
Licensed User
Longtime User
Hi guys. I've had my eyes on b4a for some time and finally I decided to give it a go.
I'm impressed. And frustrated at the same time.
To cut to the chase, I need (like really need) a way to control my mouse using my phone. Surprisingly not for entertainment purposes.

I've banged my head against the walls for two days straight. All I'm trying to do is send a variable to my server (on my pc) via wifi.

Could anyone, please, (if it's not too much to ask) post a simple project which I can observe and hopefully use?

Thank you.

PS: it's not for vlc, pornhub or stuff like that. apps already out there are pretty much useless for me.
 
Thank you. Installed it, ran it, connected to my laptop (changed to port 8080).

But when i try to send a form, a file, or the bitmap (phone side), it disconnects...
On windows part.... it closes as well...

Connection exception java.net ... connection refused. thats what i get in b4j
 
Last edited:
Upvote 0
thanks. i figued it out. kind of.
i managed to get xPos and yPos on a touch event, send them through to the windows client you designed (infinitely helpful) in the link you provided.
i had the b4j client output the file to my pc and ta-da!! remote mouse! Thank you for the excelent example. Again!

But, even though I ran both packages w/o debug. active (release) there's a huge lag between laptop and android. (i7 + samsung s2).
And, as the files actually being sent are like 1 kb in size, this is quite puzzling.

Any help would be appreciated. Greatly appreciated.
 
Upvote 0
Good morning (i think).

It was .. more than a couple of seconds. Add jitter, app hanging, ugh, long night indeed.
But I managed to tweak the file. Used a ... (you get the distance between two points in an xy plane with it) formula. It's like a motion filter. :)
If the distance is lower than 15, ignore movement. when greater, move.
Feels very smooth. Perfect for my app.

If you have any kind of magic tricks up your sleeve that can improve a remote app, I'm all ears though. Until then, your forum posts have been and continue to be invaluable.

Edit: by i think i mean i dont know your time zone
 
Last edited:
Upvote 0
Back
Top