simonguest / android-btxfr Goto Github PK
View Code? Open in Web Editor NEWA lightweight library for transferring data between Android devices using Bluetooth
A lightweight library for transferring data between Android devices using Bluetooth
I changed the value of Chunk_Size, the speed reached the limit of 990 bytes per second
I'm sorry to bother you with so tiny thing. But I can't find the way to make jar with your btxfr source. I will use it for running your sample with Android Studio. Please give me an advice.
Hi Simon,
I've been experimenting with using android-btxfr to simplify transferring data and commands between a Glass and another Android device. I've set up client and server apps respectively and have added functionality to pair devices. Using your file transfer app as an example, I'm loading the bluetooth config in my main application and am also using a service to handle commands and data. I'm able to send data from the client to the server and see activity in the console, but only the first time I try to send โ subsequent sends fail with a "socket closed" IOException being thrown by the incomingHandler of ClientThread.java. When I try to create new ClientThreads for subsequent messages, I end up getting null pointer exceptions (I've tried to tear down the thread first but it doesn't seem to make a difference). Is there a way to keep those sockets open, or a correct way to reopen them for new data?
Thanks!
Jeremy
how to send the all types file?and server side save the file as the client send name?
The docs mention that this library doesn't do the pairing logic. That being the case, how specific is it to Bluetooth? Could it be generalized a bit to run over Wi-Fi Direct as well, again leaving the pairing logic to the app?
I wanted to use this library but I can't dig into more details on how can I send specific type of data. I understand that this library was created a while ago, But maybe the author @simonguest can update the blog post
link for more details.
There could be a service that runs in the background and sends out broadcast events, so that developers don't have to handle with threads.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.