I have made an android app in which I store image path and their details into sql database and retrieve those data using web service in an android app. The images path are of online web sites at this time.
But I want to get images stored in my pc through their path like c:\xyz.jpg. My pc and android device are on same wifi network. Is it possible?
I stored image in wamp server's www folder and can view from my browser as following "http://192.168.*.***:8080/1.png" But not able to retrieve same from android app.
My code is working fine for accessing images from any online web site. But I want to access images stored in my pc. Is that possible or not like I access web services running on my localhost from android app over same wifi network.
and can view from my browser as following "192.168.*.*:8080/1.png" But not able to retrieve same from.... That is not correct. You should type http://192.168.*.*:8080/1.png.
Did you add
<uses-permission android:name="android.permission.INTERNET" />
to your manifest?
Related
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 am new in android I am using windows azure mobile service and I am Inserting Text data successfully but now I want to Upload Image in windows azure mobile service. I know its is possible by Azure Storage I have seen this post http://chrisrisner.com/Storing-Images-from-Android-in-Windows-Azure-Mobile-Services but its confusing can anyone tell me simple step by step process to save image in windows azure mobile service.
I will be Very Grateful for you
The page you're looking at does not use the best recommended approach for storing image data with Azure Mobile Services. Instead, you should connect to Azure Blob Storage when you want to store a file. You can see a full tutorial of connecting to Blob Storage and saving files from an Android app here: http://chrisrisner.com/Android-and-Mobile-Services-and-Windows-Azure-Storage. Essentially the steps you follow are:
Create a table script / custom API in your mobile service that will save your data as well as generate a Secure Access Signature (SAS) URL from Blob Storage.
Call that endpoint from your mobile app.
Return the SAS URL from the endpoint.
When you get the URL back on your mobile app, use that URL to post your image file.
The way that older approach uses is to convert the image data into a format that can be stored using Azure Mobile Services SQL Database. This does work, however, it's very inefficient.
I developed an application on Android which take user informations(SignUp) and these informations are inserted an db file like .db .After that , I made LogIn in same application , which takes information about user from .db file and decides LogIn is allright or not. Thus far , everything is allright. However as you know this application is local.I want to connect web server because when I set up my app to another phone I want to take information.Can I set up web server in my own computer to try is my app working ? How can I do that on my own computer ?
You have to configure a local server and an api to make it work.
Use any webserver, XAMP,LAMP,tomcat,ect. create a data base using the phpMyadmin from your browser and also a user name to use by your application.
Use the URL like localhost/myfolder/../api.php to get the api which interacts to our application.
for interaction with the api , you can use http post.
Use this:
Xampp include apache-webserver, mysql server, php.
http://sourceforge.net/projects/xampp/
I am a newbie in android and working on an app. I will be using a database on a server but meanwhile I have created a database on xampp and followed this link to connect my app with the database. I am trying to register a user and store his details into my db. I have created 3 files in xampp/htdocs folder: Config.php , DbConnect.php and new_user.php to add a new user into the database.
I am using the
url_create_product = "http://localhost/Signup_api/new_user.php"
where Signup_api is my folder in xampp/htdocs.
I have also created a JSONParser.java file in my src folder along with main activity.
But the app shows "Creating product.." message for a few minutes and then stops.
Has anyone tried to connect android app to xampp before? Please share your experience. Is it necessary to use wamp?
use ip address instead of localhost ... Example http://locahost/xxxx/index.php will be http://192.x.x.x/..../index.php. Test on android browser it can access or not first.
When testing my android app on an emulator I can get data from my local MySQL server database using an httpconnection. However, when testing the app on my samsung phone, I cannot get data from my database. Is there some parameter I need in my manifest file or does anyone know what I need to do to be able to get data from my local server onto my samsung phone?
Well i think you can't access the local database from device.
If you want to access on device you should host your database online and internet should be connected to access that url and then you can probably access it.