AIR Android - How to Make a Peer-To-Peer Connection? - actionscript-3

I have developed an Android app using Flash / AIR and was wondering how I could set up a peer-to-peer connection (p2p) such that :
Users of the app can select certain choices in the app and search for peers.
If they are in proximity to other users with mutual selections then their phones vibrate.
Any assistance will be much appreciated.

Related

tablet POS system

I have a project to create a point of sale system, which in each table in a restaurant will have a tablet. The idea is this tablet will communicate to the kitchen interface and send customer's order directly to the kitchen. I'm planning to use HTML 5 and phonegap for the tablet.
My question is:
How can I connect each tablet to the kitchen interface? is it possible to send information over the wifi? Do I need a hub or router?
I have seen API such as e-thor and square register, can I use those API to build this system?
Is it possible to customize the tablet so it can only open the app?
Thanks, any answer would be appreciated.
how can I connect each tablet to the kitchen interface? is it possible to send information over the wifi? Do I need a hub or router?
Yes, a hub such as a linksys router with each tablet connected wirelessly to the same SSID on the router will allow you to talk to the internet or the intranet for your kitchen service.
I have seen API such as e-thor and square register, can I use those API to build this system?
Yes, a webapp utilizing the apis for this system will receive orders from people and allow them to pay for them as well (given they have the ability to swipe their cards with a square for example). The hardest part to your question is the webapp and how it will store and use the information from users. This is the part that you need to think about as the rest of your questions are trivial.
Is it possible to customize the tablet so it can only open the app?
Yes, many apps do this and it is usually in parental controls or administration of users for the tablet (depending on the operating system).

Stream video from Windows Phone app to Windows Store app using Bluetooth or Wi-Fi direct?

I need to do reliable streaming of video from a Windows Phone 8 app to a Windows Store app. Currently I am doing this via sockets over Wi-Fi with a wireless router in the middle like this SO solution suggests:
How to stream video from PC to Windows Phone 8 mobile phone through internet
I can no longer use a solution like this because the production environment for the apps will not have a wireless router available so the Windows Phone device will need to talk directly to the Windows Store app running on a laptop or tablet. I've heard of something called Wi-Fi direct but I am having trouble finding the information I need in this context. Here are my questions:
Can I use Wi-Fi direct? If so, is there a decent sample or document that covers my app context of streaming video from a Windows Phone 8 app to a Windows Store app?
If I can't, is Bluetooth reliable enough to stream video smoothly? If so, any examples that show how to do this would be appreciated.
If both are viable solutions, which is the better one using smooth frame rate and reliability as a the criteria for judging?
If I turn the tablet/PC or Windows Phone into a hotspot, would that allow me to establish socket connections from my apps?
Hotspot questions extended. Will the hotspot solution, either phone or tablet/laptop, still work if the device providing the hotspot does not currently have access to a network? For example, if the phone can't access a 3G/4G network, can it still act as a hotspot for the tablet/laptop? I know there won't be Internet/Web access, but can the devices still talk to each other?
I found this SO post on Wi-Fi direct but it covers Android:
Wi-Fi Direct technology
I found this SO post on Bluetooth streaming but it covers Android and iOS:
Bluetooth video streaming in WiFiCameraApp
Would turning my laptop/tablet running the Windows Store app into a hot-spot work for my context?:
http://community.spiceworks.com/how_to/show/2207-accessing-files-over-wifi-without-a-router-android-pc
Why don't you use the phone as a hot spot by enabling internet sharing? Remove the router.

Communication between windows store app and windows phone app with NFC

Is it possible to tap a windows phone to a NFC reader connected to a windows laptop running a windows store app?
what I want to achieve is to send a message from windows phone to windows store app, and trigger a registration action.
any advice will be greatly appreciated.
Yes, it's fully supported through the Windows.Networking.Proximity APIs. However, the problem you may hit is that it's difficult to find desktop/laptops that support NFC proximity. You can easily find NFC readers that can read smart cards and tags, but most of these don't support proximity.
The only USB dongle I've seen that supports proximity is this Sony one, however I've also heard that there are reliability problems with it: http://www.sony.net/Products/felica/business/products/RC-S380.html

Can I share a file to other plateform (iOS or Android) via Bluetooth on WP8?

My WP8 app has some audio or videos, I'd like to share them with other plateform devices, such as iPhone or android devices. The first thing that comes to mind is Bluetooth. Can I realize this feature in my app? And how to do it? Thank you!
Sure you can do that, its the same like all file sharing apps do (whatsapp for Example) but your are about to do this using bluetooth connection, you just need to build a connection and transfer the file to the target device which should be able to open the file according to its format and the installed apps on the device.
I've worked with iOS Bluetooth extensively and the different ways you can share data over Bluetooth is by:
Using one of the Bluetooth profiles already supported by iOS: http://support.apple.com/kb/ht3647
Bluetooth LE (Core Bluetooth). I haven't used this, but the bandwidth and data structure of data being transmitted is limited, so it may not suit your purpose of sending audio and video.
Game Kit. This is for iPhone-to-iPhone data transmission though.
External Accessory Framework. This framework allows you to transmit raw data, but is only available to BT-enabled devices with special Apple authentication hardware (you have to join the MFi program and go all these hoops to get your device qualified). This doesn't work for you too, since you'd want to send data from WP8 or Android, which are definitely not MFi qualified.
So, bottom line, you CAN NOT send raw audio or video data from WP8 and Android to your iPhone unless you jailbreak the iPhone and put a new stack. iOS's BT stack is really limiting in that way, as I've learned the hard way.
On the bright side, you can definitely send raw data between Android and WP8 over Bluetooth. You have to create an RFCOMM socket on both ends (one sending; one listening). The Bluetooth profile used for this sort of data transfer is called a Serial Port Profile.

wifi videostreaming from laptop to device

trying to create a program that works as following .video is captured by web cam of laptop and it is streamed to android phone using wifi .According to the video displayed, user types some messages and sents back to laptop simultaneously.
googled and found that making an ad-hoc wireless network will work,but forum
discussions says its not supported by android.want my app to work from 2.2 onwards
Which Socket communication protocol (UDP or TCP) protocol should be used to stream video?
Since want to implement two way communication, which one must be the server (laptop or mobile device)
Please guide me how to implement this
use connectify or any virtual router to get connected to your android phone.so app can be connected with your laptop or desktop.
go for UDP its fast and recover data even if it's lost and also use a proper data streaming strategy or a protocol.
According to your application design , i will recommend you to make your laptop work as a server. Also it would be best if you choose to use threading in both application and recommend your app to act as server or client as it's required shows more robustness..!