How to connect and access mssql Database server from Android app? [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am developing an android application, in that application i simply created login page in that login page i need to load mssql database for login. Please tell the solution and example coding for this one

Wow this is a really complicated!! The apps can't connect directly with server how do websites... Remember the devices it's possible lose internet, then how you connect with you server database? The most important of devices is can work offline, in this moment our app needs a webservice (API) to connect with database from server. Read this posts for more info (that includes code)!
What is a webservice?
How we do an API? (Server part)
How we connect our android device with server? (Device part)
Other important post:
WebService vs API
Restful vs Other Web Services
Tell me if I helped you and good programming!

Related

Which prog language to use for a server/android app projects? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am thinking of doing a server that will be some sort of a webpage (to display data) and also a server that can send information to android app.
I currently know a bit of c++ and python. And android java a bit more. I was allready looking at java and tomcat but not liking the idea...
What are the best metods to make a server that will be able to send data to mobile app.. I dont need to communicate both ways only that android app becomes information.
EDIT
Sory I wasn't clear enough. A server needs to acces services and get data from the APIs and then it will save it in db. But the part where this server needs to communicate with android app is unclear for me.
If you only need to host a website that displays data, without the need for server processing / database, you might want to take a look at GitHub Pages. You will be able to host static web pages for free.
Else, I would recommend you to learn PHP. Purchase a web domain and hosting, it usually comes with database for you to store data.

I want to make a apps where people can upload their status,image or video what I need to know for this? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make a apps where people can upload their status,image or video
what I need to know for this?
You would need the following:
API for the clients to connect to
Database to store the information
An Android client
Develop your own API's
You would need a server to host the API's and also register a domain. I use GoDaddy and they provide excellent service. But you could check out this site to help you decide on a service provider: http://www.webhostingbest10.com/
Next you need to decide on which language to use. I really like PHP. But you could also use Java or C# to develop your API's. This guide should get you started: http://searchsoa.techtarget.com/tip/API-design-How-to-properly-build-an-application-program-interface
Database
You usually get a free MySQL database with your hosting. This can be used to create all the different tables required for the data. This should get you started: http://www.mysqltutorial.org/basic-mysql-tutorial.aspx
Client development
After developing the API's and creating the required database tables. You can start developing the client application. Check out this guide: http://blog.strikeiron.com/bid/73189/Integrate-a-REST-API-into-Android-Application-in-less-than-15-minutes
This should get you started with the basics of developing your application!

Node.js and Mongodb database on my server for android application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am developing an android application using node.js and mongodb .I followed following link-
http://www.learn2crack.com/2014/04/android-login-registration-nodejs-server.html.
i am successful in running app with localhost on emulator.now i want to keep my database on server and to run app on any device.What steps are required to run node.js and mongodb database on server,and access it through android app using a url.
help appreciated.
Since you are running your Node.js and MongoDB on the server then you simply need to implement an HTTP client of some kind to access the server.
One simple way is to use a WebView so that you do not have to parse the results, etc. It is simply displayed in your app as a website would be.
Alternatively, you can use something like Jsoup or another HTML/XMl parser to parse page requests into data that your app uses.

Database Sharing for Android and Website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i want to build one app which can upload data to the website database. Now i using XAMPP for my android database. How to upload data from android to the website database? Can i use XAMPP as well? Thanks
Regards,
YY
I would recommend creating a PHP RESTful web service that connects to your MySQL database.
Transferring your data in a JSON format is the most common way, depending on what you have to upload.
There are several ways to call the web service in Android. You could go basic and use a HttpUrlConnection to do the job, or use libraries such as OkHttp. Just remember to run web service calls (or any network process) in a different thread by using an IntentService, Service, AsyncTask (watch out, pitfalls), AsyncTaskLoader, etc...
Don't forget to check out this on the Developer site as well.

Android connect to MS SQL server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What is the best way for get data form MS SQL server remote for Android application?
Use JDBC ? or create something like API REST? or something else?
How did succided or had other resolf this problem?
You need to expose a WebService and connect to it with Android. You need to do query or everything else directly from your webservice and not from android. Check out these links:
How to Connect a Webservice to an Android Application
How to connect Android app to MySQL database?
http://m-zeeshanarif.blogspot.com/2013/05/android-connecting-to-server-mysql.html
Do not directly connect to the database. The reason is quite simple: Anyone can get access to your database when decompiling your app. Once done this person can execute CRUD-operations on your database.
The best way is to write/have a server which accepts and handles commands send from your app.

Categories

Resources