I have a c# win app that works with SQL. I want to develop an Android app that sends a query to win app and query result return to Android app. I didn't develop any android app.
1.Is there any way that I connect to my SQL database directly?
2.How send info from android app to PC?
3.How detect android device from win app?
You need to create Web Services and call them from your android app. Please have a look at this link which will give you information on calling webservices in android How to call a RESTful web service from Android?
1.Is there any way that I connect to my SQL database directly?
no there is no way to access SqlServer ... directly , you have to make a webservice to communicate with sql server.
2.How send info from android app to PC?
with that WebService and a url you can call http Post/Get in your Android App and consume the related WebService and send your data to the server and get proper data from server. for implenting such behavior here(StackOverFlow) is huge number of links that you can search for it.
3.How detect android device from win app?
if i get it right you can add google usb driver which is inside Android SDK , then Eclipse/Netbeans or other IDE's can detect your android device.
Related
I don't know where to start, so let's start by saying what I want.
An application on my Phone which would control/send commands to my PC
I am not asking how to code it, I want to get a brief idea on what I need in order to do it. I had thought of using ASP .NET Core Web Application, but I am not sure if that's what I need, I need a server to be running on the PC, so that the phone will connect to and send commands to the PC Client from the Mobile Client.
Also, It needs to be C# since its the only language I am fluent in.
Which library should I use on the PC and the Mobile?
You can use ASP.NET Core to create a web service that is hosted on your PC. The application on your phone could send commands by sending HTTP requests to the web service.
For example, the web service could react to a request like:
POST http://localhost:8080/do-stuff
But the web service method is not the most performant one. If you put a priority on performance, you should rather work with sockets. You can use the .NET classes like in this example or use a library.
If you want to develop everything with C#, I would recommend using Xamarin for developing the mobile app.
I have an android device which will have Sqlite database. I want to access this database from a Web API (residing on windows PC) service using linq.
Both the android device and the windows PC will be connected through LAN.
Could this be done?
No you will not be able to access the sqlite database on the android phone from the web api, You should use a server side database. I would make sure any changes made to the android device database are sent to the server side database.
Me and my team are developing an android application that needs to be connected into a desktop application via cloud db. Is it possible? And what cloud db should we use? Any other additional information would be much appreciated.
Android App - Will be developed using Android Studio(Java)
Desktop Application - Visual Studio(C#)
You can use php and mysql also :) and then make api's . To interconnect Desktop and Android application
I am making an project that need to send command from c# app to iphone (in fact i need to get installed list app on iphone and send it to the c# app), but I do not know how to do this. As I search on google I figure out that I must make an client - server with iphone as server and c# app as client, then i will send command from c# app to iphone through socket in LAN (connect into one wifi). I must build an tweak on jailbroken iphone to connect with c# app.
More detail about what i need to do:
C# app will send command to iphone to get installed list app on iphone
Iphone will listen the command and send back data to c# app.
Now i have already build an c# application but do not know what to do next!, can you point me out this problem?
We want to create a http server on wp8 that manages the phone files.After that we want the phone to connect to an external webservice to give the internal IP address that the service is being run at.
1.Can we create a http server on wp8 that can do that?
2.Can we create the external webservice with asp.net mvc web api running on localhost(IIS)?
After getting the IP address we want to generate an url that inserted in a pc browser can establish a connection between the phone and pc. In pc browser page we want to be able to make requests to the http server on wp8 (airdroid like app).
Can this be done, considering the security ,in wp8?
Any documentation on any of these questions is welcomed.
What i found untill now is that a connection between wp8 and pc can be done as this app shows http://wp8webserver.codeplex.com/