Is there an Android native library for XMPP client? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am working on XMPP client for Android, we have establish our Ejabberd server(2.1.11) on ubuntu 14.04.
For implementing XMPP android client i have used patched version of java smack called aSmack and it is great as you have to include asmack.XXX.jar in your android project lib folder and write some code which is easy available on INTERNET,i want to thank all developer for their awesome work.
Here
I am curious what kind of mechanism aSmack using to communicate with
XMPP server
But as per our client requirement i cant use any 3'rd party library for implementing Xmpp client in android[means i cant use aSmack :-( ]
1>>. Is there any Android native library available for implementing xmpp client?
Thanks in advance!!!!!!

If with 'Android native library' you mean 'an API from the standard Android SDK' then no, there is not such native library. To reach that requirement you'll have to write your own XMPP API.
I advice you to explain your contractor about free software licenses and ask him to change that requirement.

Related

Best practice solution to create a Web Service for an Android app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am planning to write a Web Service in Java which connects to a MySQL Database and computes and exposes different information from it.
Then an Android app will connect to this Web Service and process the information.
Initially I thought of using XML files, but I was advised that it is not the best-practice correct way, and the Service part will not be light weight. That I should use JSON.
What is the correct architecture and solution for my problem ?
Also is it possible to run a Java Web Service without Tomcat, directly by the JVM from a jar?
Any documentation or links would be helpful.
yes, for android its better to use JSON, its native API (built in)
and its much lighter.
also , its recommended to use RESTful service, for the same reasons (performance, lighter )
regarding the webservice without tomcat, i am not sure its possible, because you always need a container to manage and run your code.
here is a good tutorial to create RESTful service using Jersy.
http://www.vogella.com/tutorials/REST/article.html
the sample shows data as XML, you can change to JSON.
You can use node.js. This will not require Tomcat or any other application server since it itself hots a HTTP server in itself.
https://blog.nodejitsu.com/a-simple-webservice-in-nodejs/
MySQL with Node.js

How can I implement XMPP protocol for my own chat client? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to write a chat client. I could use RMI for that but I don't want to. Moreover I plan to have a web-interface.
I was reading about XMPP protocol and also the fact that google talk uses it. How can I implement it to write my own chat client, not a client for any other IM service? Is there any library available that could help me implement my own chat service (IM) ?
Check out Smack. Its widely used and mature library for writing xmpp application. Here is an example of writing xmpp client. Here is one more example.
There are many libraries available on the xmpp site iteself. You can choose anyone based on your requirement XMPP Libraries
Go for SMACK if you are writing your IM in JAVA.

Want to learn to build a simple java rest server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Hello people of the world!
I'm an Android developer and so far I've worked only on the client side. My next project is in need of a server to communicate with and I wanna try to build it myself.
Can someone give me direction to a good source of learning how to build a nice, small and simple Java restful server?
I've looked around, there is way too much info out there and it's confusing. Maybe one of you was in my shoes already and know a good source for it?
First of all you should read up on and learn how to use Jersey. This is the best implementation of JAX-RS API (REST for Java).
You will also need a good HTTP server and Java Servlet container. For that I'd advise you to use Jetty. Here are a few good tutorials:
Crunchify: Build RESTful Service in Java using JAX-RS and Jersey (Celsius to Fahrenheit & Fahrenheit to Celsius)
Vogella: REST with Java (JAX-RS) using Jersey - Tutorial
You asked for a "simple server", however if you're looking for high performance then read this tutorial:
Javarants: Using JAX-RS with Protocol Buffers for high-performance REST APIs, and use the Grizzly container instead of Jetty:
If you intend to build a simple server with sockets, you could try:
this SO thread for starters.
this interesting tutorial about sockets, and
the official Oracle page about sockets.
Edit this doesn't cover the "restful" side of your question though.
I just went trough this myself creating a Java server with Android client.
And this two links provided plenty of info!
a tip is to search for Java Socket server.
to learn JavaSocket
I use http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html
And to pull it all togheter with Android client and ServerSide.
http://myandroidsolutions.blogspot.se/2012/07/android-tcp-connection-tutorial.html
Don't forgett to open ports in ur firewall to get the communication to work! to add Internet support in ur Android Manifest!

Converting Java to iOS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any library that can be used to convert Android java code to iOS ? Please if more than one enumerate the advantages.
There is J2ObjC from Google to achieve this.
There are two nice tools available which will be useful for those who work on both Android as well as iOs
Java to Objective c converter click here to visit.
Objective c to Java converter click here to visit.
check this project from Google http://google-opensource.blogspot.com.es/2012/09/j2objc-java-to-ios-objective-c.html, this is the only one that I here about. I make a few test a time ago and the result was not so good.
use J2ObjC
The open-source tool, which automatically converts Java source code into the Objective-C language that is used in native iPhone and iPad apps
Yes J2ObjC. Google developed.
http://code.google.com/p/j2objc/
http://www.androidcentral.com/google-develops-tool-translate-java-ios-friendly-objective-c-code
You might wanna have a look at J2Objc.it is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone/iPad) platform.

Good tools/frameworks to develop a game server in Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am making a game server for a turn based game. Not a web based server, but a process-based one. I want it to be scalable and I want the development process to go as smoothly as possible. I haven't used Java in forever and I need to brush up on my skills, so I really have no idea what is out there framework or tool-wise. Right now it looks like I am going to use Terracotta due to its clustering capabilities. I was just wondering if anything besides this that would make developing a TCP based game server easier?
You might want to take a look at Project Darkstar.
Have a look at Marauroa. It is a client server framework for turn based games. There is even a MORPG based on it, with the turn time set down to only 300ms.
But it is not designed for cluster support.
http://arianne.sf.net/wiki/index.php/Marauroa
Have you looked at SmartFoxServer? It's Java and already supports Terracotta.
Shameless plug: Here is a java game server written by me. Has UDP and TCP support. jetserver also has a java client as well as flash action script client already developed. Clustering is not yet implemented.

Categories