Can I use Bluetooth on Blackberries to create local multiplayer? - blackberry

I'm developing a game for Blackberry, and I've been tasked with developing multiplayer for it. I've been trying to do research and find out how to implement bluetooth on Blackberries and I want to know if it's feasible to implement on a turn based game. Also, if anyone could give me some resources or tutorials to being with, that would be much appreciated!

Yes, this would definitely work. Check out the BluetoothDemo sample app that comes with the developer tools. It contains code that lets you communicate between two devices using Bluetooth.

Related

Can an iOS device using some app connect with another iOS device over bluetooth if the 2nd device doesn't have the app?

I am relatively new to bluetooth tech. and find it really fascinating.
I would like to know the possibilities of achieving the following:
A(has some app) -> B(Doesn't have the app)
A(doesn't have the app) -> B(Doesn't have the app)
If the 2nd scenario is possible then is it possible to achieve communication between the two paired devices?
If first one is the possibility then how could you design the UX for it?
Thank you in advancce
I think if your intention is to discover available devices in scenario 1 then yes it is possible and you'll find a lot of demos on github so it's not hard.
But for data transfer it isn't possible to do that unless your app coordinates the communication between them.

ROBOTC: Talking to EV3 brain from Android app developed in Xamarin through Bluetooth

This one's a doozy: I'm developing an Android app in Xamarin which will send messages to an EV3 brick running ROBOTC. Anyone think they could help me with this? I understand that NXT bricks can use sendMessage(); but I'm using an EV3, and can't find a way to use this. Any help on this would be greatly appreciated. As for the type of info I wish to send, either strings or, if not, integers will do.
EDIT: Right, I forgot. The app will be for a Kindle Fire, and preferably held in landscape mode.
RobotC does not have Bluetooth support yet (they are working on it). Once they do get it working, you will need the "EV3 Communication Developer Kit" from the LEGO MINDSTORMS downloads page. This explains the communication protocol. In particular, look for the "mailbox" instructions. This is how messages are passed back and forth between applications.

How to control an app prototype on iphone/ipad from Mac

I would like to create a prototype to show an app concept. It would be a voice-based cooking assistant, utilizing voice recognition.
User would speak to iPhone/iPad, and navigate through a recipe which would be spoken back to him. This prototype will be shown at student exhibition – there will be space to hide a mac, and possibility of connecting the iphone by cable to it as well.
I have no experience in XCode, I have some experience in programming and coding. I made some prototypes in flinto/invision, but I guess that for this project, native programming is a must - or am I wrong?
How hardcore would I need to go to be able to make this work?
Is there any way to fake it – for example use the voice detection in OS X/Web Speech Api in Chrome and make a webapp which would be streamed to iphone/ipad as to a secondary monitor?
Thank you for all suggestions.
You can have a "script", and follow it, you don't have to develop a functional app, just something able to show the concept.
There is a WWDC video to show some concepts of prototyping, highly recommended.
https://developer.apple.com/videos/play/wwdc2014-223/

How do apps like iBetterCharge and coconutBattery work?

I've been using iBetterCharge for some time and I quite like it. Except the fact that sometimes it's annoying with its loud warning sound.
Anyway, I'm wondering how do apps like iBetterCharge and coconutBattery work? I mean how do they read iPhone batter level over wireless networks?
My personal research did not reveal much regarding how to read the battery level of a device programatically. However, according to the iBetterCharge FAQ they do not talk with iPhone at all. They say the app communicates with the device using the data which iTunes itself gathers.
But how?
It uses protocols which iTunes itself uses to sync with iOS devices. FAQ says everything you need to know. Check out libimobiledevice This library implements those protocols and can be used to retrieve battery info. I know it works over USB but don't know in which state is networking implementation (it says WIP).
You can try example here. You need to pass com.apple.mobile.battery as domain to retrieve battery info.

iOS PKPKT BLE concept

I understand that the iOS App "PKPKT" is using BLE (Bluetooth Low Enery). But what I am curious about it is, is it purely using BLE only? Or does it switching between BLE and Classic Bluetooth?
I tested with a iPhone 5 and a iPhone 5s with both installed the app. I turned on bluetooth on both devices. And then i checked the "DEVICES" list to see if the other iPhone is paired with one another, I found that they are not. Until i launched the PKPKT on one of the device, and the i check the "DEVICE" list again, now they are paired and connected. So, i'm thinking is this pairing done by the BLE pairing? Meaning one of "Just works", "Out of Band", or "Passkey entry" methods.
There is also a "Chat" functionality in that app. This make me curious if the chatting function using BLE or Classic Bluetooth?
So my question is actually "Is switching between BLE and Classic bluetooth possible?". This is part of the study on this BLE technology. Hopefully someone could help me and other newbie on this new technology.
Thanks in advance!
I wrote PKPKT. I only use BLE. No classic. iBeacon is cool but doesn't have the background scanning needed to discover other players. I use game center, but only for scores, no sessions. It's optional in the app to enable game center (those banners can be distracting!)
The chat is also over BLE.
Because the connections are not encrypted, you don't need to manually pair the devices, and "just works"
I think you might find this link helpful. It implements something that looks to be a simpler version of PKPKT. I believe the app uses a combination of GameKit/iBeacon. The app requires iOS7.0+ and states, "PKPKT does the hard work of finding other players by detecting them using Bluetooth Low Energy (BLE) in the background." iBeacon would be the most battery-efficient way of accomplishing this and is a new feature in iOS 7. There is a wealth of information online(particularly on SO) about peer to peer bluetooth gaming using GameKit, if you are interested.
We can't say for sure unless the developer lets us know. If one were to attempt to recreate the application, GameKit and iBeacon would be the technologies that I believe most would recommend.
You might find this project helpful as an overview of how to use Bluetooth LE to communicate between two devices. You don't need to pair the devices, and unlike iBeacons, it works when the app is in the background.
SimpleShare - Easy Proximity-based Sharing for iOS
You can use the delegate methods of the SimpleShare project to easily share arrays of strings between nearby users running your app, such as user IDs, which you could then use to get more info, photos, etc, about that user from a web service.

Resources