I wrote the android application for bluetoothchat program and it worked perfectly between two individual android devices.
However, the problem is that I don't know how to build up some specific program for allowing the connection between Linux(Ubuntu 14.04) and android.
The application for android is basically using the sample code Google provides, which uses the UUID, bluetooth socket, insecure serial communication.
Here, what am I going to do with making these connection possible?
I googled some possible answers, for example using PyBlueZ, but does it really work for my problem? I mean, the language for android is basically on Java and PyBlueZ is literally on Python, so is there any conflict?
What could be the best and simplest answer for my problem?
Related
I want to make a simple messaging application for android and ios that uses RMI/TCP Connection. I've created such a thing before using Java RMI but I'm aware android os doesn't come with the native rmi library but I can use lipe. That said, even if I am able to create a local network based app for android it would be useless for my purposes if ios isn't able to join this network. I've looked through several threads but I have not been able to find a recent solution that would work for both. I'm doing this for a very niche use case I understand that otherwise such an endeavor would seem fruitless.
I would like to know if there is any way to make a GPRS / GSM module (SIM800L) as a "default" connection in android things that allows browsing the internet and making requests using the Android libraries.
Seems no, because as in this answer of Blundell described: the source code is not available for Developer Preview. But You can use UART and AT commands.
This is possible. I have been able to integrate SIM800L TO RPI3 running Android Things via UART and AT commands. I am however using it for sending SMS and not for Internet connectivity. I do not see an issue in achieving that as well.
Hope this answers your question.
I have found this interesting Project in the Internet and my first question is how to access the data (which is connected via Bluetooth to Android) from within Unity3D.
https://pauldyan.wordpress.com/2016/01/24/my-vr-bike/
I have seen that there is an "asset" for Bluetooth but is there a direct way or a way without the Need of buying that asset?
Regards
Kev
You could, but it would involve writing your own library for both Android and iOS.
I really don't recommend going this route. You would have to write hooks for every single native iOS and Android Bluetooth function. Both operating systems would need hundreds of lines of code and several days of testing to get going.
I'd recommend just buying it. The asset is 10 dollars, which is worth the time saved.
I need to utilize both a barcode scanner and a USB port on something handheld. I figure a small Android Tablet is my best option.
I've spent some time researching and I cannot find anyone who has implemented a NativeScript App w/ Serial Port communication on Android.
I am concerned this means it is not possible, or prohibited for some reason.
I have the Serial Communication functional right now using Nodejs and the serialport module via NPM.
Does anyone know if this module will work in a NativeScript app?
I am going to attempt to make this work over the weekend, but before I waste a lot of time I figured I would ask in case this is simply not possible -- I've chased simple bugs for days so I could waste a long time on something that's not possible. :)
Thanks for your help!
Anything you can do with a pure Java-only app (or Swift/Object C for iOS) you can do with NativeScript as you can access all the underlining APIs. This is one of (if not the) key differences between NativeScript and other technologies. See the NativeScript docs.
Most probably, you'll want to use some third party code to communicate with the serial device (such as usb-serial-for-android). Here's a great blog post on how to use third party code in your NativeScript app.
So I am a relatively new iOS developer but thanks to Stackoverflow, i managed to get peer to peer data communication for my app working without the need of a server using gamekit/GKSessions.
Basically, one iOS device acts as a server and others just connect to it to receive app specific data.
Now, the app is currently being ported on Android and I was wondering if there is a way that I can make an Android device connect to the iOS app and behave the same way as ios app does.
Android developers suggested alljoyn to be an optimum solution for android but that doesn't seem to be available yet for iOS.
Please suggest if you have any ideas on this front.
If there is a solution that involves rework on iOS side as well then I am open to it!
In case, you or others tackling the same question in Jan 2013 needs an answer,
AllJoyn is now ready for iOS too, amongst other platforms.
https://www.alljoyn.org/docs-and-downloads
Venkat i suggest you to read and get some detailed information regarding P2P. This is a Good source, because you might get stuck if both devices are behind multiple Nat. but if your willing to go forward there is always a way. My suggestion would be an Relay, but you need to have a server, but the relay behaves like P2P. Look at the source above to get ideas.
I didn't have time to wait for alljoyn to be launched for iOS and sensing no other feasible solution that would fit on my timeline, I implemented a relay server in between to achieve this.
For others though, iOS binding is now available for alljoyn (www.alljoyn.org).
I haven't tried it yet but the android version of my app works with alljoyn and it works perfectly so I assume it will do the same for iOS as well.
One limitation to be considered using alljoyn is that it cannot communicate between devices that are behind different subnets.
I think there is a limit of max peer to multiple peer connectivity (max 8 peers) derived by IOS and Android, there is no connectivity tested using alljoyn between IOS and Android devices