How to run database on Android?

1

I'm doing an application that connects to a database that is in São Paulo, it serves as a ratchet, checking for QRCODE of users' card whether they are registered or not. Except that the company I'm working for travels a lot and controls entry into various places. I received the advice of a friend of mine, that it would be better to download the bank to the tablets instead of connecting to the bank through an internet. The truth is that I'm a bit scared about it, because the internet can make me sick. But I do not know how to run a database on a android (tablets) system, would anyone know how and if I really should do this?

Note: The internet can be 3G in some places instead of WI-FI

    
asked by anonymous 20.08.2014 / 15:26

2 answers

2

Hello, your android application could consume a web service, this is more than common.

Here is a tutorial web service rest link

Here is a web service soap tutorial link

You could also use sqlite in android, but I think it would be more laborious for you to download your customers' database, even unviable. Anyway, it follows links from with application tutorial using sqlite (built-in on android, ja comes with it)

sqlite tutorial link

another sqlite tutorial link

I hope to have collaborated!

    
20.08.2014 / 15:43
1

If the problem is internet I recommend you use the same local bank (Android SQLite), however, as said in the comment an experienced user can change the bank by releasing access of other QR-Code not registered.

You have 2 ways to make it difficult to access this bank:

  • Encrypt the data
  • Checksum of the in-app database.

With this, even the user changing the database and discovering the encryption used will still need to change in the app that should be protected with proguard !

    
20.08.2014 / 15:44