I want to connect my web application (developped with EJB 3.1 and JSF2.0) , to an android application. In the first application I'm planificating an intervention to each employee and I want to communicate a notification to his android device. Please help me to find the best way to connect them.
I think GCM is generally the best approach for this. http://developer.android.com/google/gcm/index.html
Related
I want to implement chatting in my android app without using any third party API's like Jabber etc., How can I do it?
I want to implement it using Socket programming, but no exact Ideas to do it, Please help me!
Thanks in advance...
Just create a server in one device and a client in another device and connect the both using wifi hotspot in one of your android device.regarding the server and client code u will get many easily if u google it once. remember the client and server should be connected to a same network(wifi hotspot of any one of your android device).
Hi I need to develop a fully functional IM solution (like viber or whatsapp) for android. It will have the basic chat features plus many more. Can any one direct me on this. I don't want to re invent the wheel so my target is to use the existing thing as much as possible for the chat server etc (some thing like jabber). If one can direct me for this, or give me some good advice for this it will be a great help.
Edit -
I will extend the application future to allow other platform clients like Windows Mobile or iOS clients. In that sense what would be the best technology to implement the server? It must handle real time traffic well. Will I be able to wrap or extend some sort of a XAMPP server to get my work done?
This is what you need. http://developer.android.com/google/gcm/index.html
It has everything you need for developing applications like viber, gtalk, instant messaging sistems, global user notifications etc...and its pretty easy to implement.
A good solution if you don't want to reinvent the wheel is to create a Jabber / XMPP client on Android and all other platforms.
Server-side, you can use an OpenFire server for managing the roster and conversations with the Smack Library
Google Cloud Messaging as mentioned Janbo is the best way for sending push notifications to your mobile app.
What you could look into, is something like Firebase. They have an incredible api for such applications
firebase link to android docs
Plus it gives you a backend at the same time for free.
Is it possible to create a chat application in android between two systems without implementing a server as a middle ware? I have created an application , and I want to make the chat possible between two different emulators on two different systems , I need some help guys ...!!!
Yes it is possible thats how I made my Phd project. When my application is started it asks the user to chose if it will be a "server" or client. And on the second phone it choses the other. But there is nothing in the middle of the communication.
XMPP is often used for Chat. It is typically used with a server but there also exists an extension XEP-0174 Serverless Messaging supporting chat without an intermediate server.
I don't know whether there are Android libraries supporting this though.
An alternative could be to
use eg SSDP (or Bonjour(mDNS + DNS-SD)) for discovery of devices
write your own protocol on top of it
I guess there is a solution which may work.
You can use http://programminglife.io/android-http-server-with-nanohttpd/
NanoHttpd and if both mobile phone are in same network and they can ping each other there is a possibility that you can easily create an app which help to create the chat app peer to peer mobile.
I need to implement a simple messaging functionality in my app . Two users who have installed my app should be able to message each other inside/outside my app . It doesnt need to be real time like a chat app. A bit of latency is acceptable . Should I implement this using a central server and a Google Cloud Messaging service like UrbanAirPush ? Or Should I use socket programming(not very familiar with this ,but I dont mind learning) .
Also , I dont want to use SMS or bluetooth for this . Please advise me on the correct approach to this . UrbanAirpush has a limit , So any other option would be wonderful .
You can create a free web service in cross-copy
You can use this api as a guide
or just Google it.
Use wifi direct or Network service discovery.
Use wifip2p can allow you easily send message/audio/picture to other device nearby, you can check this tutorial: WIFI DIRECT, the NSD is also list there. You can even find sample codes(WIFIServiceDiscoveryActivty) from Android SDK to check some more information.
I'm currently writing an Android application that should be able to receive push notifications from another application hosted in Google's App Engine.
Since I can't use sockets in GAE, I though maybe using XMPP over GTalk server would solve my problem. But that way the Android Application would be connected to the users Gtalk account and thus showing the user as being online, when in reality the user is not.
Any way of achieving this kind of communication without showing the user as being online, and without asking the user to create a separate account?
Or any free push notification alternatives?
EDIT:
I'm targeting 1.5+ Android devices so C2DM isn't an option.
Thanks!
May be you can use the channel API: Building real-time web apps with App Engine and the Feed API
Not sure about the exact requirement of your app, but.. perhaps C2DM can be an alternative?
http://code.google.com/android/c2dm
I've found the PubNub service (http://www.pubnub.com/).
It enables push notifications through API's on several platforms (PHP, Ruby, JavaScript, Java, ...).
It's a paid service, but provides a free daily quota.
Although it's not the ideal solution to my problem, it'll have to suffice until some Channel API documentation comes out.
Thanks to all of you!
Why are you shying away from HTTP/JSON? Might be useful to know why you discounted the obvious solution...