Using your own XMPP server for android chat app (Smack API) - android

I am new to Android programming.I have completed the basics though and wish to learn XMPP for making a chat application on Android. I've gone through tutorials, but have not got the way to use a custom pc as server for the application.I want to use my laptop as a server for sending messages between 2 android devices.My laptop should be able to recieve and direct the messages between the two.Can anyone please help me get started?

First of all, you need to install in your laptop a XMPP server. Here are a list of available ones. People used to say Openfire is easy to install and configure, but to production purposes Ejabberd (linux and mac only) seems to be more robust.
To develop your app, you can use Smack, which is large well documented, with code snapshots to connect to a server, create a chat, send and receive messages etc.

Related

Sending Requests to Locally-hosted OpenSips Server using android

I am really new to opensips and lately I was able to install the OpenSip server on my VirtualBox based VM ( Debian 10). Now I want to create an android application which enables SIP calling (Push to talk app) using that locally hosted OpenSip server.
I tried to understand the documentation on the OpenSips, but it is really tough for me. For now, to make sure that my OpenSip server is finely running and handling the SIP calls, can you suggest me a way to test it using an android programme?
Thank you!
Try Linphone - it's an Android based SIP User Agent.

Call via VOIP on PC using Android Phone with single sim

Is it possible to create a websocket / VOIP that will connect to a device (android device) to make a call or a text message? is there an existing app for this or tutorial that i can base my project?
Im planning to create an app and web app that can access my phone to make calls and text.
You can use XMPP based project to have a chat system and voice/video call
.I recommend you to use Ejabberd .it is so nice platform that provide amazing features like chat ,voice/video call and also it is massively scalable around 1 million connection I think in one node.
And you can use variety of Xmpp library in Android that you can see bellow link XMPP Libraries

How to deploy a XMPP server on a host to work with android clients?

I am trying to deploy a XMPP server on a remote host like example.com, and create a simple App in Android studio as a client, Several people will be able to install this Instant Messaging(IM) App on their android phone and start chat with each other over the internet.(Similar to Telegram)
What I have done:
I have installed Openfire on windows locally.
I found a simple source code for android studio, and could configure it to work with Openfire locally. Right now I am sending and receiving messages in Genymotion simulator between users I have defined in Openfire.
Problem:
1- I want to deploy Openfire or any other XMPP server on my own host which my classmates can install my android App and able to talk with each other. Fortunately, couldn't find step by step solution.
2- For test purposes, is there a free Openfire web hosting site to deploy my own server and text my android client with it?
3- Or if you have any experience with Xabber, And Conversations clients please comment here, I couldn't use Xabber, it is connecting and reconnecting, and couldn't figure out how to add friends in Conversations client to send messages.
there are many free hosting sites available.. but it might be little slow
I have used these two,
thefreecpanel.com
byethost.com
but I think you cant install openfire on it, as it has setup that you need to run (.exe file), but this setup is only for first time
you will have to host them on a virtual machine on a cloud.. try azure for students, i think in student free account you can make a virtual machine.
I have checked conversations and it is too good. ChatSecure was also good but had too many issues.So, I have made my own xmpp functions and classes

How can i keep an Android Device as Server

I had a client and a server type of mobile application. The server app is on a tablet and the client app is on several phone devices. Now I want a client-server communication with this tablet and other devices. The client app will send data to the tablet and retrieves data from the tablet. The server app will show the data inserted newly in its UI. How can I achieve this? It possible in android if then please give me a solution. I have googled a lot and read about socket programming. But I didn't find a proper solution to my question.
please refer the following links for help-
http://developer.android.com/reference/java/net/ServerSocket.html this is for server side http://developer.android.com/reference/java/net/Socket.html and for client side

Is it possible to have a XMPP module inside a Tomcat server?

I'm posting this here because the thread I made on programmers stackexchange didn't get any answer and I need an answer for this rather fast, so here we go:
For a school project we are looking to implement push like technologies in our Android app, we need to send push messages from a server (Tomcat) to the Phone (Android).
After doing some research I've found that XMPP would be a good option for achieving this type of push notifications, now my problem is how I should integrate this with our Tomcat server where all the information and events will happen as well as where all our other pages are.
Is it at all possible to have a XMPP server or module running inside of Tomcat or can I build my own lightweight module(I was thinking something like a servlet) to handle this?
If you have any better ideas on how to achieve push notifications I would be really glad to hear them, whether it be using a totally different approach then XMPP (I've looked at long polling, MQTT and some other things) or some other way to integrate the solution into Tomcat.
The requirements we have is that we must use Tomcat and Android 2.1 (so C2DM is not an option) and set up push notifications between these.
You can probably run some servers within Tomcat, but I don't think you really gain anything from this setup with respect to XMPP. You will in effect have a server running inside of another server.
The only advantage I can see with this is if you want access to the server internals from some other web application, but for that I would either make the web app another client, or build a custom communication module in the xmpp server that the web app can use to communicate outside of standard XMPP.

Categories

Resources