i am trying to share data between Android Application and database based on windows IIS 8.0 server. Our website is build using asp.NET.
I just want to find out what are possible ways available and their algorithm in easy language and What are the apis available in android and java library which i can use.
My application will download high amount of data including texts and images.
And want to keep my app as much lighter as possible.
Like 1 - create connection using
2 - create session using
3 - and so on ...
I appreciate your help.
Thanks
Karan Nagpal
There are some easy steps which can help you.
1. Create a listener in asp.net which will be hosted on IIS.
2. Call listener from mobile device via HTTP.
3. Call stored procedure or simple sql statements to fetch data from database and send back to mobile device in the form of Http Response(text,xml,json).
Hello check this page you can get what you want
Android connectivity with php and mysql
The concept is same for every language you can use MSSql and .net in the place of php and mysql.
Thanks
Related
i have a database in my laptop. i want to access it from an android application. since i am new in this field, i don't have a least idea about connection android with oracle. please suggest me how to do it?
i am using oracle 10g express edition. i want to retrieve a table data to my android app from my database.
please give me the codes that i will need to perform this task.
what files do i need to perform the connection.
Thank you
You should put a rest or soap service in front of your rdbms and let your mobile app communicate with it.
For php webservice (on a windows based machine) you can setup xampp with php oci8 drivers and oracle instant client.
You can use http post or get method from your android app to transfer data from your app to your webservice and vice versa. You can execute your sql queries from your php script(webservice).
If you don't want to build up you're own web service, then you can use oracle database mobile server
http://www.oracle.com/technetwork/products/database-mobile-server/overview/index.html
You need simple java util see attach
https://docs.oracle.com/javase/tutorial/jdbc/basics/processingsqlstatements.html
I have a web application on Android and iOS which uses html and javascript for the project. I now have local values and app works fine. now I want to use a mysql database for my inputs, are there any good tutorial or sample codes on how to do that.
I'll appreciate if you can help me with this.
Thanks
For web app and mysql communication need a scripting language like php and for database you need a database like mysql there is simple tutorial fo mysql connectivity
http://www.androidhive.info/2013/12/android-populating-spinner-data-from-mysql-database/
You need to choose a language that will operate server side to manage the database of your web app, e.g. you could use PHP as a language and MYSQL as a database software (it's free and awesome), for examples you could use http://php.net/ and search how to use specific mysql commands in PHP, or use a framework like CodeIgniter which has built in functions for database management and you can view some of them here https://ellislab.com/codeigniter/user-guide/database/active_record.html, but make sure you use the whole user guide on how to use it and how to set up your database configuration properly!
EDIT. If you don't want to use PHP for the actual app then you can use it server side, i.e. use it as part of a server file which connect to database, handle data, send it back, then send it back to your remote app where you can handle it with Javascript.
I'm new to Android and to web services in general.
This is what i gotta do: My company has a back end website(for the client to monitor the sales) that's used to manage/monitor sales on some stores and it connects to a MySQL db to store data about sales and users(usernames and passwords).
What I want to do is to get data from that database and to add (sync operations) new rows, all of this from my android app.
I googled this many times and it came up with some similar projects but using another languages.
I would like to see some code samples if possible and some how-to theory, what theory should I follow when developing this, how and what ways of communicating between android and python web services and from the web services to the MySQL database.
Thank you in advance.
You will need a working API, that allows you to communicate to the web service from the android application. I would read into how to write an API and how to build a RESTful service using JSON as a way of communicating between server and android app. There are alternatives to JSON, but JSON is better suited for Android than perhaps AJAX and soap is being used less and less. (Can ajax call be done in Android? It can but has limitations)
(I could only post two full hyper links as i don't have enough reputation yet to do so, you may have to remove the spaces)
API:
http://sharismlab.com/blog/2012/07/21/how-to-write-an-api-for-your-web-app/
REST:
www .restapitutorial. com/lessons/whatisrest.html/
JSON:
htt p:// www.r evillweb.co m/article s/why-use-j son/
You may want to check out restjee. It allows you to define and implement RESTful data access APIs without having to write any server side code. Works with just about any database.
I am developing an android application in which i want to use JAX-WS. The idea is to pull data from a mysql database that i will set up on a server (currently a wordpress website is hosted on that server location). What i want is for my android application to pull some data out of this database that i have set up on the server machine. Will i be needed to write a web app on the server side. How to go about this? I do not properly understand what will be needed for this process and how to set it up. Please help. Is there any step by step tutorial that i can follow?
This is a great tutorial and startup:
http://www.vogella.com/articles/REST/article.html
I've been using the same setup as you want to and it works great. The tutorial only goes through the webservice and it's content, then you will have to add database connections to it
So I want to communicate with an OracleDB through my Android app. Allowing users to update the tables in the DB from their mobile phone. Currently this application is running in desktop form using a JSP file. I want to transition this JSP file to work with Android. I've read I could connect directly to the OracleDB although this is not generally acceptable for obvious security reasons. My question is could I use the existing JSP file with android and interact with the server through that? How would I make a GET request to the JSP file so I can call upon certain info to be downloaded from server and populate fields in my app? Thank you.
Honestly, I'd drop the JSP and look at a Web Service to the database through the Apex Listener.
Examples here and here