Mobile Database Interaction Login Page for iOS and Android, Android
and iOS Mobile Database Access
Here we will discuss on the database interaction for iOS and
Android database access.
Apps that have developed for back end code for both the
Android and iOS had been REST APIs, the apps created simple request for HTTP to
retrieve the data in the XML Format.
‘AJAX’
is not used here so no JavaScript will be involved for this. But the similar
principle for the request of HTTP, either a GET with the database query string
parameter, or the POST with the www.form.urencoded parameter; Response of XML.
The responses can be JSON, We thought that was XML only because of decision
made by the last developers of iOS or iPhone, So all of us preferred the JSON.
Actually the server side was the C# and the ASP.NET, with
.ashx generic handler that parse the parameter, did the mandatory interaction
of database and managed in good way the XML response. We can definitely use the
any technology of server side: considering even only for ASP.Net, MVC, and .NET
may be better solutions or we can use even the WCF for the interactions.
Applications can interacts with the database, it means to
say that these apps for webservices (SOAP or the REST). In which It could be
the design with the any server type languages i.e. Java, .Net and PHP etc.
Generally we use the php for the support of backend, for an example:- The
websites of News requires the Mobiles apps so all the Website links in php will
be given as the API’s REST in the format of XML or the JSON to make visible on
the screen of mobiles.
One more thing here, AJAX
will not be technically, but that will be quite similar. AJAX mean to say that
Asynchronous XML and Javascripts, It
will prefer the How the Website page can create the request for HTTP for
backend servers with the help of javascript and Web page can be update without
refreshing that one. The interacted app of iPhone and Android use the similar
same way with the internet. Applications on these devices can create the
request for HTTP to the server and then update the user interface of Mobiles
phone.
Following are some simple steps for the interaction the
database with iOS and Android apps:
1- Open
the required apps which look like as below: Mobile Database Interaction for iOS
and Android screen
Mobile Database Interaction for iOS and Android |
2. Now you are on the Android and
iOS Mobile Database Access screen
Android and iOS Mobile Database Access |
3. This the login screens. You
just login and sign up it from here.
Mobile Database Interaction login page for iOS and Android |
4. After login following screen
will be displayed: Mobile SQL User Screen After Login
Mobile SQL User Screen After Login |
As we know that android does not support the external database like MySQL.
So the easiest way to do would be to develop the MySQL Databases that our
websites and android apps can access successfully.
The websites would accesses the MySQL databases as normal but the android
apps instead of post data like the variables to an PHP scripts, the PHP scripts
can then receive the retrieve data and perform the MySql query and
json_encode
the result and print the encoded data. The android apps would then received the
out-putted format of json and the android apps can then de-code the json and
processed the data accordingly.
No comments:
Post a Comment