1
Hello! A few days ago, in a question I asked here at Stackoverflow, I said I was starting to develop for the Android platform. This week has been very productive and I already have some ideas to apply, but I have a lot of questions. I would like you to answer me.
I thought of a project that could be used both on the computer and on mobile devices. For this I will have to use webservices, correct? Could you recommend me some appropriate approach to achieve this goal?
This is related to another factor, which is about data storage. In my studies, during this week, I created some things using Sqlite. For a larger project I can use another bank?
Data modeling is also done in the way that is usually seen in desktop systems development?
I know it’s already three questions, and they may seem conceptual. But it’s just that I’m a little lost and I couldn’t find anything very relevant in the courses I’ve done in the last few days.
So. What are your considerations?
Quite enlightening, @Piovezan. I had no idea that I would have to use a bank on the Android app and another one on the server. I thought I would make the requests directly on the server and what web services would serve for it. That is: I imagined that a web service would make sense only in cases where there is more than one application consuming the same data. Another question arose: if I will use Sqlite on mobile and another bd on the server, the web service would be to keep the synchronization of this data? Hugging, and thanks for the reply!
– SpammingOff
Just to make sure you understand: when you make a mobile app you will usually have more than one app accessing the same data. A webservice can be called by multiple applications and each call will access the same bank. The problem of calling the bank directly (via JDBC in the case of Android, without going through a webservice) comes from the fact of not having a stable network along which the connection with the bank will be maintained without risk of a possible fall.
– Piovezan
As for your last question, not necessarily. It will depend on each type of application. Often you will want to store data locally that is not "mirrors" of server data, such as logins/passwords, user settings, etc.
– Piovezan
Not forgetting that for the case of simpler data (an integer or a string, for example) Android has the feature of Shared Preferences.
– Piovezan
Thank you very much for the clarifications, @Piovezan. I think your answers already establish a starting point for some studies. Thanks a lot!!!
– SpammingOff