Size: a a a

Android Developers

2022 January 07

K

Kasem in Android Developers
What is ur task, what u have to do
источник

K

KTH in Android Developers
I have api and there is register, login screen, so here the data should store in mysql and i dont know how to connect it
источник

K

Kasem in Android Developers
What u should save in mysql
What is ur data
источник

K

KTH in Android Developers
User id, location, password etc
источник

K

Kasem in Android Developers
So, u have to store user id, location, password etc in local base  or on beck-end server
источник

K

KTH in Android Developers
Back end server
источник

K

Kasem in Android Developers
I think u should pass data via API. U said u have API, is there some method where u can pass data?
источник

K

KTH in Android Developers
Yes I have api s
источник

L

Leonid in Android Developers
Do you have any contact in the backend team? They should have their API documented.
источник

K

KTH in Android Developers
They have provided me Api s  and as the first step of the project they told me to change the database sqlite to mysql
источник

K

Kasem in Android Developers
🤯
источник

K

KTH in Android Developers
And i can't directly connect mysql database
источник

K

KTH in Android Developers
😣
источник

L

Leonid in Android Developers
Alright. So SQLite is a local database of any Android app. It runs on a local device.

MySQL doesn't exist on Android. It is a remote database. You need to use a provided API to interact with this DB.

On Android, you can use Retrofit to leverage the usage of a Rest API.
источник

L

Leonid in Android Developers
That's correct. You can't.
источник

K

Kasem in Android Developers
I think, u will explain them. Why u cant use mysql as local base.
источник

K

KTH in Android Developers
How to do that with the use of retrofit.. Can i change it to mysql or not? I mean it is possible or not
источник

K

KTH in Android Developers
Yeah I will do that.
источник

K

Kasem in Android Developers
Retrofit can do only HTTP requests.
источник

L

Leonid in Android Developers
When you use Retrofit, then you use the API urls. You send request and receive responses with some data from the db server.
источник