How to run an android application connected to SQL Server on phone

ifmq2ha2  于 2023-10-15  发布在  Android
关注(0)|答案(1)|浏览(120)

I have an Android app in Android Studio. My program connects to SQL Server through an API written with .NET and displays information in recyclerview and has a login page. This program run well on my laptop, because both the desired database and the API and Android Studio are in the same system. This program displays information when the API is running through Visual Studio. I want to run this app on my phone; how can I do that? The API is not in the phone or the database and... the API is on the local host.

In general, how can we run an Android application that is connected to SQL Server on phone?

I pinged the phone to the computer but my laptop and phone are not pinging each other.

I can run the app on the Android Studio emulator, but not the phone.

w8f9ii69

w8f9ii691#

Make sure Allow Remote Connections is enabled on the SQL server.

It is advised to connect to your server with SQL Server Management Studio from another PC for easier troubleshooting.

相关问题