Https Spring MVC controller call with Android - java

I have a web applcation which is build in Spring MVC and MongoDB, what I want to make an app of Android (I am new in Andriod).
I am thinking to reuse that Spring Restful Web Services in Android app, and just make the frontend of Android app.
i have read about Spring Android but it's not what i want, i want to reuse the existing web services, isn't it java all about platform independent?
I have gone through many articles but they don't clear my confusion.
i have read about phonegap to convert html in an app, but i also want to synchronize the contacts in phone through android app which i believe is only possible with Android.

Related

Realtime Application using Spring Boot

I am working on a mobile application and require following feature-
When Admin App user changes status on the admin app, the user on the client app must get it updated in real-time (as we generally see in real-time delivery apps which show status of delivery). The backend is handled using Spring-boot application.
I am familiar with the concept of Web Sockets and how to use them on mobile applications. But I am not familiar with the Web Socket configuration on the backend (Spring Boot Application).
I saw several articles related to simple chatting web applications but couldn't find much about such a scenario. Can anybody suggest how can I implement this on the backend, how exactly Web Socket APIs can be developed using Spring Boot and how the complete flow of data from one mobile to another mobile can be achieved?
A full description of how to do this is, in my opinion, beyond the scope of a SO answer, so I'll provide some links to resources you can use to build the knowledge instead:
Spring WebSockets reference docs
Example of a WebSockets app
Baeldung tutorial

How do I connect webapp with android app?

So for a personal project I'm building a task management webapp using laravel framework, I've hooked it up to hosting so I can use it any time. but for the future I want to improve the application so that it can be used anywhere with a smartphone, I want to make the application but with an android application based. so my question, what do i need to make android app? can i connect my old webapp with the android app? or do I need something new so that both applications can work with the same database?
You would either need to create a native android app and use Laravel api endpoints, or you can create an app that is basically just a webview that loads your app url.

How to fetch values from GAE datastore to android application ?

I'm creating a network based android application. So
1) I've installed Google App Engine Plugin in eclipse IDE and start developing a network based android applications where all information of customers are stored in GAE Datastore.
2) I've created a new Web-Application and stored Entities in datastore. Can i retrieve those values and show in my android application and add new details in from my application to GAE Datastore.
Please Help Me, I'm new to Web Service, SOAP, REST, JSON etc.
Can anyone tell me a simple method to store and fetch values from Cloud DB to Android App.
There are two apparent options:
Use Cloud Endpoints. They are proprietary and not my favourite. Also they are only available for Android, iOS and JS.
Use web services, my favourite would be JAX-RS, specifically RESTEasy+Jackson. See this GAE example and simple Android client.

Developing Android Application w/ Existing App Engine Application

I have existing appengine application. I'm planning to develop android application with that existing app. I can only find examples on development of android app w/ new appengine application. Any reference for developing android app for existing appengine project?
There is nothing special about it. You have to add some sort of an API that your mobile apps can use and return data in an easily parsaeble format such as JSON or XML. You have think about whether you need authentication and how to do it (Google accounts are integrated in Android, but you need extra permissions to use them). Then you access them from Android using HttpClient or HTTPUrlConnection.
The 'new' way to do it would be to use Goggle Cloud Endpoints which takes care of authentication and generates an Android client for you automatically. However it is still in
'trusted beta', so you might not be able to use it.
http://endpoints-trusted-tester.appspot.com/

How to implement REST in my Web Application. I want to make a rest API for my website?

I am working on an enterprise application and need to provide services to mobile app using REST.
I want to implement or build a REST API for my website using which I can build client side application as well as provide services to the mobile app for my website.
I have very less idea about it and for technical specification.
My website uses Spring Framework and is build upon Java.
Kindly guide me through.
You can find some resources here about developing REST applications with Spring MVC
http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/
http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework-reference/html/ch18s02.html
http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/
and a general tutorial about REST:
https://www.ibm.com/developerworks/webservices/library/ws-restful/

Categories

Resources