First I am completely new to programming world.
I am trying to develop an app which will also have a website. I want to have a chat feature in it . After googling I found xmpp servers such as openfire jabber, etc and smack and like libraries. I understand that the the xmpp server can implement general chat features but do I need to install the xep files to get to use xeps?
What do I need to do on the server side and client side to implement the xeps?
You don't need to do anything to implement core XEPs on the server so no need to worry there (especially as you are only doing chat).
I'd suggest prosody.im as a quick easy server to set up and use rather than openfire.
I'd then look at the asmack library if you are doing android development.
Cheers, Lloyd.
I strongly recommend you this book:
Professional XMPP Programming with Javascript and JQuery - Jack Moffitt
I'm building single chat an application javascript+strophejs just reading this book.
Good luck.
Related
i want to create android and iphone chat app, and i want to use XMPP using Nodejs. so i don't know about how node-xmpp-server will communicate with android app.
can node-xmpp-server can communicate with android app? if yes than, how can i create simple node-xmpp-server and simple android app that both can communicate.
i want use nodejs, xmpp and android if you have any other solution please let me know.
i have idea about socket.io but i dont want to use that.
please guide me,
thank you in advance.
If you are opting node.js at ur server then I would suggest you to use Socket.io which is a better fit for chat apps onnode.io.
it provides client support libraries for android aswell.
have a look at this and this.
i recomended you to using xmpp, why, xmpp is minim resource fro mobile apps, i have created some apps using socket.io lib, but it need more than xmpp resource, for example in socket.io my apps need 100mb of ram, using xmpp, my app need 50mb of ram
I'm currently developing an android application. My application allows users to choose a picture from a gallery, add a comment and send it to the server. The server then saves it in database.
Currently I'm using HttpUrlConnection at client side and Dynamic Web Project with a servlet to process on server (I'm using eclipse with Apache Tomcat)
So the questions are:
Is it a proper use of this technology to develop my app. (does it violate any rules? Sorry I'm a newbie)
Does this technology affect anything if i want to expand my app?
Are there any better technologies to use in this situation and is it worth to use it?
No I think it is a better way to develop this. I have also develop a chat based app usign the same technologies.
It doesn't violate any rules. There are many apps in the market usign the same technologies.
Q-3.Are there any better technologies to use in this situation and is it worth to use it?
You can also use php or any other server side scripting language to do the same.
Because when you want to host your java app you may find difficulty for java hosting but for php and asp you can easily find hosting services.
I answer in order:
1- the client is different, the client is recomended create an android application.
2-You need have clear this: Android is an application, the server has to attend petition from android. The conection could be using webservices, API rest, or others ways.
3-Android need Java to be native, in the server side you can use, Ruby, PHP, Java, Python or any server programming languaje side. Is your choice.
When I read that Google Inbox application reuse 70% of code for all three main clients (web,ios,android) I have been encouraged to learn GWT, as inbox was written mainly using gwt. Additionaly incoming Gwt Singularity framework convince me to this platform.
For now I will focus on web client, but in future I would like to expand the app to Android and IOS.
So I've started new project, have wrote some basic ui, entities and dao.
Now I need Your help.
Please give me some information about what transport mechanizm choose to support all of these three platforms.
I consider to user RequestFactory (less code, more job done- for me).
I now that RequestFactory supports Android, but couldn't found information about supporting IOS.
Second choose is JSON marchaling and gwtResty library. I supose that will work.
Another think is how to connect Android and IOS client to GWT backend?
Please give me some help, links, or Your experience on that subject.
Thanks.
I am beginner for android application developing.I want to add chat feature in sipdroid using openfire.Can anybody help me how to start to do this?Thanks in advance.
Openfire uses the XMPP protocol, so you may start on reading how to incorporate XMPP in SIP.
Apart from the above article, you can look around for software sip clients that already have this feature and educate from their source code.
Also a good reference is the XMPP java api overview.
I have an android application (created in eclipse with java) that talks to webservices on a windows 2008 server using .net webservices. I am very interested in using XMPP for the chat portion of the app, but have not a clue how to implement this. Can someone help me with implementing the XMPP piece on the above server, as well as the client piece in the android app. I am basically looking for a step by step walk through (to include what server side software and client side software needed) as I have NEVER used XMPP and really need to finish this app.
Thanks
1) Find a server.
There are several XMPP servers available if you go to the XMPP site and check their handy list.
Personally, I'm using OpenFire and find it super easy to set up and use. Install, run it, and follow the setup wizard. I would not recommend trying to write your own XMPP server functionality into your own code as it gets complicated quickly. You can easily run a chat server side by side with your web services and have the app on the Client end communicate with both. This still serves up a seamless interface to the user.
2) Find a library for XMPP development on Android.
aSmack is pretty much what most Android devs use for this. (Info, plus link to code can be found here.) If you need more step-by-step help on how to develop this for the Android, I'd suggest searching for/posting more specific questions regarding how to use the library.
I hope this helps.