What strategy to use to create website that sends information to Android app?

Asked

Viewed 581 times

-3

I’ll make an Android app for a store. My idea is to create a website so that the store owner can send the price information and images to be displayed in this application.

How to do this? It would be Web Service?

  • What makes the communication between an Apk (application) and a system (Database). is a web services or the most current the Web Api.

  • I recommend a REST API sending the data via Json

3 answers

2

Yes, the idea would be to make a webservice for this process. I can recommend you two things, if you are going to do Webservice in java, generating JSON, you can use jersey, which is very simple, here a tutorial: http://www.vogella.com/tutorials/REST/article.html

Regarding consumption on android, I recommend you even more to use the retrofit: https://square.github.io/retrofit/, the greatest care you would have to take would be with the images, what you can do is upload to a server folder (instead of persisting in the bank), and save the link where the image is hosted in the bank, on android takes this link and download the image. I think that helps you already.

  • Geferson, Interesting...this Retrofit, never heard of her... is an IDE ? I entered the site appeared the code ready, copy this code to where ? I’m sorry about that silly question... but it’s my doubt

  • Retrofit is an android framework for communication with Restful Webservices. you implement Webservice with the jersey I commented above, this will provide you the data, and with the retrofit on android you "consume" this information, I can recommend this video, explaining how to use the retrofit:.

2


  • 1

    Very good the content.... helped me a lot was in doubt in this part of web service and hosting.... Thank you

1

You can do with web service yes, it would be in REST API format in my view, in which you consume and provide data to the same database, all in JSON format. You can use php to do this, like other technologies such as Node.js, c# (.net) with web api among others... it goes from your need.

  • Denner Evaldt Machado, would be basic even. a login screen and another screen for the store owner store the information. only these two screen

  • Do an analysis of the language you are most familiar with and one studied about this api format, so you can consume and provide data from the same location.

  • Thank you so much for the Feed back.... I will study about that yes!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.