How can i make my bluetooth Chat application developed in J2ME find only devices that run the application?
Make sure your server app use the same UUID as your client apps. Many examples can be found here.
Related
I'd like to send a beacon signal from my mobile web browser. Is there a way to broadcast BLE in a browser?
I checked the non-standard Bluetooth API, but there was no such function.
Thank you for reading it.
Unfortunately there doesn't seem to be support for this yet. There's an open request for this feature as can be seen here:-
https://bugs.chromium.org/p/chromium/issues/detail?id=1043409
https://github.com/WebBluetoothCG/web-bluetooth/issues/231
More information about web bluetooth support is found here:-
Start building with web bluetooth and progressive web apps
Web bluetooth demos
Web bluetooth sample code
Firstly, what I would like to achieve. I am building media system using Raspberry Pi device. So far there is mopidy service which as far as I know uses libspotify to play music from Spotify. Everything works really well. Except I would like to control my Raspberry Spotify playback from my desktop Spotify client or from my Android phone. Official clients do allow this feature to switch device.
I would like to implement same feature using libspotify.
I'm not even sure if it's possible using public API.
Any ideas how to achieve such thing are welcome.
Libspotify does not expose Spotify connect functionality. It's a limitation of the library and Spotify show no interest in improving it. So, this is not possible.
I'm not sure if this allowed on here but please let me know if it's not. I'm wondering if anybody could point me in the direction of some great learning resources for Socket.io. I'm particularly interested in learning how to use a mobile device as a controller for a desktop web-browser application. Any nudges in the right direction will be extremely welcomed.
This is a great resource for learning socket.io
As far as usage of mobile device as controller for a web-app is concerned, there are clients out there for Android etc which interact with Node.js and socket.io server.
socket.io-java-client is a client for android which can serve this purpose for you. You can emit something from android to your server and from server to web-apps or from directly android to web clients.
I need to develop a project based on Bluetooth in mobile. Since I am new to j2me I studied some of the articles and run the project until the discovery of devices and services. I need to communicate between devices and transfer the desired files. I search code for client server communication through Bluetooth and got it but I didn't know how to run those code and implement further.
I have go through articles and I can run client server communication. Now I need to transfer the file and communicate to the user which was beyond the limit of my mobile through the another mobile which was within my limit.
JSR82.com has many articles and tutorials about how to use bluetooth from J2ME.
Better you refer the book, "BLUETOTH APPLICATION PROGRAMMING WITH JAVA API" by C.Balakumar. It is helpfull to you.
I'm currently thinking of developing chess code with multi-player facility connected and played via bluetooth. For that I need to chalk out the phases, i mean systematic modules, that I should follow to develop the game. If anyone can state it or have any link that can help it out, it would be great.
Another thing I am developing this in J2ME, so can anyone give me an idea about the way to connect the game in two mobile devices through bluetooth in J2ME. I mean to say the class or file that is used to connect the gaming devices.
For the second part of your question: you need to make an SPP (serial) connection between the two devices, with one acting as a client and the other as a server; see this tutorial for more information.
Then you need to create your own protocol to allow the two devices to communicate everything they need to.
This will only work on handsets with JSR 82.