Click here to Skip to main content
15,888,158 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am working on a ASP.NET mvc project in Visual Studio 2015, and I have now been required to convert my project into an android mobile application which saves data in the same database using API's .

How would you suggest I go about doing that?

What I have tried:

I've researched a way to use Xamarin studio but I can't seem to find a way to connect to the same database as the main MVC project using API's.
Posted
Updated 19-Sep-18 21:01pm
Comments
littleGreenDude 19-Sep-18 10:56am    
You don't "connect" to the database from the mobile app. You GET/POST data through a web API and it references the database. If you need to have a database on the mobile device, you may want to check out SQLite. In general, you should be able to reference your business objects (Models) from the mobile app and get/post them through the routes in your controller.

1 solution

Use Phonegap(Cordova)
Your website will render in webview
there is an event called device ready u just need to redirect to Website URL

Download Phonegap Desktop To achieve this. Add new project

Step 3: Create Your App | PhoneGap Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900