简体   繁体   中英

How to connect client android app with admin website

I have created an android app on android studio with firebase database.

Now I want to develop an administrative website through which the admin will control all the operations of the app.

I want to know how to connect the app to the website. Also, should the database be connected to the app or the website?

Your website doesn't need to be directly connected to the app or vice versa. That is what firebase is for. When using the website or app, you connect directly to firebase. When data changes in the database, you can reflect these changes on both the website and app.

So there is no direct link between the app and website. They are just interfaces to manipulate and view data in firebase.

Basically your quesion is "How can you connect your Android application to a web server". You need to look at the URLConnection class. An example is here http://www.devx.com/wireless/Art .... If you are writing the server side web service, I suggest making it a RESTful service returning JSON data (as that is easier to deal with on the handset)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM