I developed a chat application (Android platform, native Android development) using asmack library. Also I have a task to create from the application group in openfire server. I don't know how to do it.
And also additional question: is it possible or not?
You could use the Openfire REST API plugin, which allow you to create new groups over REST/HTTP e.g. from your application.
Look here: https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html#create-a-group
However this question is old and already answered, I am adding for the peoples which are still looking for quick and easy solution.
I have written a client library and have used in one of my project. Library is available on github -https://github.com/xibsked/Openfire-Rest-Api-Client-Android
Related
I'm new to Vaadin. I want to create an application that will allow a user to make video calls from an Android device to a Desktop/Laptop. I tried searching for examples on YouTube but could not find anything. i want to implement this on Vaadin 14 spring boot and java project. Please help with an example to do this kind of project.
Your question is quite wide topic and in the borderline can it be answered according to StackOverflow policies.
My general advice is to study WebRTC for peer to peer communications. I would recommend to use the application only as a broker of the connection. I have seen proof of concept demo made about this on Vaadin 8.
Vaadin framework itself does not provide official WebRTC using components, libraries at the moment. However there was add-on made for earlier Vaadin 8. It is using 3rd party JavaScript library. Just noting, that there are couple of libraries to choose from.
https://vaadin.com/directory/component/webrtc-add-on
I am working with a Mobile Application project on ionic framework 3.19.0 with VS Code for Android platform. Where I want to execute few activities like download a apk file from web, checksum validation etc using custom Java Library prepared by other team.
I have searched a bit but not yet getting any suitable guideline or tutorial regarding these issues.
Is it possible to integrate Java Library with ionic and use it's class /function etc or is there other way exist?
Can anybody help ?
Edit:
There are few built in plug-in available for application version check and update (App Update, App Version) activities . Check here
You'll need to develop a cordova plugin if you want to interact with a native android library, can't be done directly through ionic.
https://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html
I have searched around a little, but I couldn't find a complete answer on this, that's how I am asking. I have a Java Project of a messaging system, having implemented the server logic, using the implementation of the Chord, working as a distributed system.
I also have an Android app project, implemented for the use of the client gui, which I want to connect with my Java project in order to manage the proper requests and responses.
What is the best way to connect these two projects? My Java project is on the Eclipse IDE, and the app on the Android Studio. I know Android Studio uses a set of configurations and libraries, and since everything is Java, the correct way might only be to pass these configurations to Eclipse as well, and copy my android files there. But I am actually new to Java, and specifically the logic and the structure that it follows and I want to be sure of my actions, as I want to avoid going back and forth to this. I hope I gave all the right information, but you need me clarify anything else, just let me know. Btw, everything is local, there is no connection with external servers or any database.
Thank you in advance!
For client requests to the server:
You can use one of the networking libraries for android - Volley/Retrofit for example. It shouldn't matter that your server is on the same computer, you will just need to adapt the url accordingly.
For messages from the server to the client without client requests:
You need Firebase Cloud Messaging.
I am working with some friends on an android application and we want to use data store on google app engine.
Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself.
Thanks.
I suggest you look at a few, quite recent Google services:
Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication.
Volley is an Android library that makes it easy to perform the requests to the server. (There are a number of 3rd party alternatives to Volley that are also good.)
Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later.
Take a look at this Google blog post from a few days ago:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
Those are good starting points, but don't assume you should use the recommended Google services. Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. You could just create a REST/JSON servlet using one of many libraries.
I reccomand DropBox API.
It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial..
DropBox API has a lot of info and tutorials and it's kinda easy to handle..
I am by no means a Java expert (not really intermediate either) but i can write enough to get me by. At work we are looking a Cinterion TC65 wireless module which runs embedded Java with a 2G sim card for network connections. I have never done Java mobile dev so the whole startApp(), pauseApp(), destryApp() is throwing me slightly. What i need to know is if its possible to include normal Java code, ie. Mysql Connections, HTTP connections? Or does it all have to be done over AT commands? I need some Java buffs to help me out on this one :) Thanks
Currently there are various UI framework available for J2ME app development
lcdui
lwuit
kuix
If you want simple UI then go for lcdui , It also comes with Netbeans designer so you don;t need to much worry about designing form and flow of application.
You can't have mysql connection directly from j2me application, for that you need to port your webservices accessing your DB and you can call your webservices. you can also make URLConnections.
The TC65 and later modules such as TC65i, BGS5, EHS6, ELS61-E all run Java ME 3.2 so you can write normal Java. But you do have to write with a reduced J2ME 3.2 feature set, you cannot use newer features of Java 7 or 8 for example.
The two development environments you can use are Eclipse Juno and Netbeans 7. These come supplied on an installation "CDROM" download.
These two links show how to get started with either Eclipse or Netbeans on a current module such as BGS5 or EHS6. The simple tutorial re-uses an beginner's example from a Java text book:
Eclipse - https://developer.gemalto.com/tutorial/starting-out-java-me-volcano-robot-project-eclipse-juno
Netbeans - https://developer.gemalto.com/tutorial/starting-out-java-me-volcano-robot-project-netbeans-72
There are further examples of using HTTP connections on the developer website:
String connProfile = "bearer_type=gprs;access_point=internet;username=;password=";
http = (HttpConnection) Connector.open(url + ";" + connProfile);
You can also use the module's Internet Services via AT Commands, but there is no need as most functions have Java APIs associated with them.