2013年9月11日星期三

android application developers how to remotely connect to the database , help , tell them about the trip !

In a android phone system is installed on an application , the application of the relevant data are all from the remote database to get , how to achieve this process , what technical , for example, a mobile OA, how to achieve this framework , to speak a ballpark on the line , thank you !
------ Solution ---------------------------------------- ----
Android uses the HTTP protocol
Android based on Linux kernel. Currently there are three kinds of Android platform network interface can be used, namely : java.net. * ( Standard Java interfaces ), org.apache (Apache Interface ) and android.net. * (Android Network Interface ) .
On the client regardless of how this operation is nothing less than the following steps
1. establish a connection
2. initialization parameter
3. obtain an output stream to write data using the output flow to the server
4. obtain input stream , using the input stream reading data from the server
5. closes the connection



------ Solution ------------------------------------ --------
what database server you need to see , the last to do is to use ssh + tomcat + mysql server structures , as carriers or need support , you have to look at the business, operations Chamber of Commerce to provide you with the interface
------ Solution ----------------------------------- ---------

+ + Socket and HTTP network programming
------ Solution ------ --------------------------------------

upstairs said mobile terminal the . Server you can get a simple java server database using what see your data. You can then provide a bunch of service (servlet can ) , then the client http requests directly to these servlet. Data transfer can be used json. Very convenient.
------ For reference only -------------------------------------- -
then how to deploy the server side it ?
------ For reference only -------------------------------------- -
  The reply on 2011-01-05 13:12:17 deleted by moderator

------ For reference only ---------------------------------- -----
server-side open service ah ......
------ For reference only ----------------------- ----------------
what database server , what server software, etc. , as well as support for mobile operators need to do ? Trouble you
------ For reference only ----------------------------------- ----
for example, set up a mobile office system for example , how to build the framework for ? Can separately from the phone to talk about the client and server side ?
------ For reference only -------------------------------------- -
for example, set up a mobile office system for example , how to build the framework for ? Can separately from the phone to talk about the client and server side ?
------ For reference only -------------------------------------- -
  The reply on 2011-01-05 17:14:37 deleted by moderator

------ For reference only ---------------------------------- -----
upstairs solution ......
------ For reference only ------------------------- --------------
positive solution Hahaha
------ For reference only ------------ ---------------------------
upstairs solution
------ For reference only ----- ----------------------------------
little trouble is to use Socket, running on the server listening
------ For reference only --------------------------------------- < br> adopted , thank you upstairs

没有评论:

发表评论