I'm thinking of creating a chat app which is similar like firechat. which needs no internet for communication and depends only on BT or WIFI to communicate and also have an advantage of platform independent.
I've seen many sites referring some sites like open garden for firechat and alljoyn framework. I really don't understand what this things are for. Its really hard to find a solution for this.
I tried alljoyn initially, but the last update was about 3 years ago. the sample apps crashes in devices.
So any one who worked in this kinda project or or sharing some knowledge will be more helpful!
Thanks in advance!
The official website is outdated, use git repo (git clone https://git.allseenalliance.org/gerrit/core/alljoyn.git), a chat is one of the samples.
Also there is a well-known chat sample in AllJoyn Core, which discovers other peers and connect them. It works on Android App too.
Here you can download the AllJoyn Android Chat sample https://cgit.allseenalliance.org/core/alljoyn.git/tree/alljoyn_java/samples/android/chat
Related
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.
I'm a complete newbie with regards to developing for Android, and for starters I'm trying to develop a simple card game that can be played multiplayer over a local network. I'm having trouble finding a starting point for how I would go about this, I can find plenty of things for communicating across the internet but not having much luck seeing how you communicate directly between two devices over a LAN.
It's a major part of my plan for this app that it be multi-platform and that iOS devices and Android devices can play against each other, so I'm looking for a method that supports this. I know it's possible as I can see there are other apps that have this functionality.
I don't need a detailed implementation (although the more help the better!) but if anyone could just point me in the right direction for how to go about something like this, I'd be really grateful.
I think u need a connection peer to peer, android implements Wifi Direct
Look android dev site. http://developer.android.com/guide/topics/connectivity/wifip2p.html
For a card game I recommend using client-server.
Electrotank is a good server that provides a framework that helps you create a game of this type, with rooms, chat, friends list and connect to Android and iOS. U can write server plugins in Java.
http://www.electrotank.com/es5.html.
Another good server solution is SmartFox.
Or you can create a turn-based game, creating a database to save data and a counter on each client, where you will limit the time for each move, from this time you send data to the server and your opponent query this data the server.
I was working on the exact same thing. You'll want to use sockets to open up connections between multiple instances the same app.
I created an example app that demonstrates how to do this which I link to and explain in great detail here: http://brendaninnis.ca/connect-nearby-devices-part-2.html
I have an example for both Android and iOS that communicate with each other.
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
we are doing an android chat application in 2.3.3 as a project in final year BE and very new to android, we thought of doing both anonymous and friends chatting together and wanted to show chatting in 2 different emulator running on two separate laptops. Is it possible to do so. We are stuck here from many days. Not getting any clear information how to achieve it.We are not getting how to create a network between 2 emulators running on two systems and do chatting, Any help in this regard will be greatly appreciated.Thanks in advance
I have to start working on something similar :) Sure it is possible to communicate, it is necessary to use Android connected to App Engine, using the XMPP protocol.
App Engine
XMPP
I think Google has some XMPP servers, so you can make use of them. I'm sorry not to help you more, but I just did the research, no coding yet!
I would suggest to use indeed a server to communicate to as a middle-man. Not a direct connection between the two emulators.
I am trying to get a clear idea about Proximity mention in AllJoyn app and there are several explination (theories) that i find intresting but , I still want to know can Alljoyn support proximity? If yes then how do I go about it? Can I see an example using proximity or reference a sample App as im not able to find proper references to the same. The Chat app I've seen works perfectly using WiFi but how can i accomplish the same using a bluetooth? Kindly help me..Thank You in advance..
Bluetooth support is only available in the android sdk. In order use bluetooth, you either have to wait until AllJoyn is adopted by OEMs, or rooting your phone and doing some fiddling. More info can be found https://www.alljoyn.org/docs-and-downloads/documentation/alljoyn-android-environment-setup-guide#unique_21
If/when bluetooth is integrated/supported, your use of AllJoyn should be the same, as AllJoyn works to hide the communication details from you.