Environment for Android database testing

Asked

Viewed 85 times

0

I am developing a simple application with Android Studio, using Java as a language. Currently, I am implementing the login and logout routine and I have some doubts. 1° ) Is there a need for me to use a local DBMS written in SQL to locally access registered users so that the application simulates the login act? All data would be fictitious, only for local testing and validating access errors or code syntax. Could you recommend a better performer? 2° ) After performing the tests, how should I proceed in terms of providing the database to be accessed via Web services? I can use the same bank created previously or create one using another technology?

I’m not very familiar with the functioning of these logistics of access to banks with Android, so my questions can sweat a little nonsense. I am using Ubuntu OS.

1 answer

1


1° ) There is a need for me to use a local DBMS written in SQL to access the registered users locally so that the application simulates the login act?

Android works with Sqlite database (there are Nosql alternatives), which is local, and also has Sharedpreferences to save simple data. Sharedpreferences stores only one set of key-value.

All data would be fictitious, only for local testing and validating access errors or code syntax. They could recommend me a better performance?

Give an analysis if Firebase meets your need: https://firebase.google.com/docs/auth/? hl=en

2° ) After performing the tests, how should I proceed in terms of providing the database to be accessed via Web services? I can use the same bank created previously or create one using another technology?

The native Android database (Sqlite) works only with local data, as I mentioned earlier, it is not possible to connect remotely. In this case, to work with remote data, it is necessary that you create a web service and consume the data by storing it locally. Libraries like Retrofit and Jersey help with this implementation:

http://square.github.io/retrofit/

https://github.com/jersey/jersey

I don’t know if this is exactly what you wanted, but it should help.

Browser other questions tagged

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