I am new in Android Development. My simple question :- i want to create an e-commerce android app . I want to make it dynamic ie if a new product is added to already created JSP site or particularly Mysql database , how can i sent information including image file from mysql database to android app? I know little bit about Http request response in android, as well as jason array but was only able to send text. How to achieve same for images?
use http://developer.android.com/reference/android/webkit/WebView.html to show your server-generated html-page.
send text only - send the URL to the image and the app can then download it
Related
im making an android-based data collection app similar to ODKcollect as a college project and im not that good so..
1-how to make a web service and connect my app to mysql database and which language is better for a web-service (PS:my data maycontain images)
2-how to make dynamic form templates then retrieving them from database and making them in the android app.
You can use php for that, You can write a php script that retrieve values from Mysql Database and then decode them to JSON and parse them to the android app. and another script to make the vice-versa Take a JSON response from your app and insert it into the Database.
There was a course in udemy that achieves such pattern you might want to check it
The web is full of content for connecting MySQL within your 'own' android app, BUT BEING NOT A APP DEVELOPER, I DON'T OWN ANY APP.
I want to add data inside MySql database through an Android phone, I can use any android app that can do so. I don't want to access any data but only write it.
Reason- I've got a website currently being operated by CPanel. I need to fetch new data all the time, reason searching a handy Android app and finding ways. Maybe android app of Cpanel can work, idk.
What've I researched- It's possible on desktop: https://www.inmotionhosting.com/support/website/databases/setting-up-a-remote-mysql-connection-in-cpanel
I want to update the database of my website basically android app is getting data from pc it than process it and send it to the web database which store it and when ever android required that data it can get it from that database.
Now my question is how can I send it to the database at a specific place?
Assuming you host the web server hosting the database. You could then package your data (in android) using JSON format, and send the data over using Httppost. Found a good example of code shown in https://fahmirahman.wordpress.com/2011/04/26/the-simplest-way-to-post-parameters-between-android-and-php/ (although the web is just a PHP, you could then expand how to update PHP with MySQL etc). Hope this helps.
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
I am planning to create a small review app in android that fetches movie reviews from a webserver/page. So how should i design the online component? The online part need not be visible through browsers, but available to the app. So, basically how should i put the data on the server? Json or simple web page or database tables?
In my opinion the best approach to achieve this is to create some (REST or not) web service and as an output format use json.
architecture like this: mobile_app <---> web service <---> database
You could also have some other program which for example will be creating some json file on ftp server.
If you have webpage already in created in php, python, ruby etc you can create some API for your mobie app. For example you have some page with movie reviews with your-domain/reviews.html URL
you can create similar endpoint for your mobile app with you-domain/reviews.json which will gives you some json dedicated for your mobile.