Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am working on a project in which I am trying to have an Android app access a SQL server database. The web-portion uses an ASP.NET back end. I have seen several posts about the same or similar topics, but all of them I have found are over a year old. Has anything changed in terms of libraries, or do I still need to work on creating a web service? That seemed to be the most popular answer in all of the responses. Any and all help is greatly appreciated!
I'd suggest a web service, yes. We have an application that does this - we have a RESTful web service that delivers XML to the application and vice versa. The SQL server database layer communicates with the application through this HTTPS web service for logins and exchanging data results back and forth.
Something similar to this: Query SQL Server via REST to get XML
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
everyone.
I making an App.
But when i connect to external DB problem occurred.
So I looked for a way to connect to mysql.
But, all post was explain only use a web servies.
How to connect MySql without web servies?
I don't know if connecting directly to MySQL DB is safe. if you want to use a local SQL database, you may consider using SQLite.
Read this. you can add your sqlite database file to the assets folder in your application project and then extend and implement SQLiteOpenHelper to perform CRUD operations in your database.
You may also want to take a look at this as well. retrieving data using PHP sever is more secure.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Actually, I want to create an android application which it will store and retrieve data from the server. The data that I will be storing and retrieving are in string and image format. There are different kind of servers, such as application server, database server and web service but I am confused which server will work better with my application.
Servers like that are already built. Just use parse.com. Its practically free and way easy to use.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How does one use a Android app username and password stored through sharedpreferences in google app engine? And I want to be able to use the username as an entity key in my datastore.
It is not clear from your question what you are trying to do here.
Here are some points:
The communication between an Android application and a Google App Engine application will primarily be over HTTP. The ideal way will be to develop a HTTP-based Web Service on App Engine that is able to take HTTP requests from your Android Application.
One the Web Service interface is defined, you should be able to invoke the Web Service, its methods and the request parameters that it expects. I assume you would want to pass the username in one of your request parameters and the Web Service method implementation could then check it against the App Engine Datastore entity.
Having said that, I would caution that it is generally not good practice to be sending across the plain text password from your Android application over the network to any Server side service.
Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new in android and i develop an application that receive data from MYSQL external database using PHP.
I need to create a service to check frequently the database if there is any change made on it the end user will get notification , so how i can create this like this service ??
any article to read ?!
thanks in advance
Well, what are the specifics of the service? What are your requirements? Do you just want to poll your database, and then stop the service once data is retrieved. Will you need a separate worker thread to do this work?
You might want to look into Intent Service for this. Documentation on it can be found here
A standard service may be fine too, but I'm not sure what the specifics are for your project, so I would read up them both and figure out exactly which would be best for your needs.
See this SO question that gives a brief outline of them both.
Firstly, welcome to android development.
Unfortunately your seemingly simple example will require you to learn a lot of android concepts so I cannot answer your question as directly as you might like.
That said, the following site is very good for android tutorials
http://www.vogella.com/android.html
I have also compiled a list of android resources on my site that you might benefit from:
http://www.sage42.org/we-recommend/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have to use MS Sql Server and Android Devices for My Project.
What is the best way to Data Process for MS SQL and ANDROID
.NET WEB SERVICES or JTDS CONNECTOR and SQL QUERIES?
I recommend you create some kind of web service that acts as the bridge between your Android app and your database. Your android app sends some of type of request to your web service, the web service handles the request (query, insert, etc. to database) and then returns the result to the Android app, and then your Android app does something with the data.