I am a newbie to android. I need to develop an application in which I can access my android phone sd card from my pc's browser by just using the ip address generated from my phone.
I got Ip address but couldnt find any example for this. Please if any one has any example or any knowledge please reply. I am in urgent need of it.
Thank you in advance.
KNOWLEDGE GROWS BY SHARING....
Its no simple thing. You need to implement something like an FTP server on your phone. Or a samba server.
Failing that you can download one of the apps that already provide you with a samba server.
Edit: You'd probably do well looking at something like swiftp.
Application of your really interesting. You can download application wifiFileExplorer then translate reverse to get source reference.
Link: http://www.mediafire.com/?7tyvrvh26ekwwxe
You can download application wifiFileExplorer then translate reverse to get source reference
it's not possible
Related
I am trying to create an app that will be able to display a pdf file in the app itself. I'm currently using the Xamarin.Bindings.PDFView-Android by SIDOVSKY which works really nicely. I can open a file easily from the assets... what I'm struggling to do is open a file from the internet.
Just a single line of code:
FindViewById<PDFView>(Resource.Id.pdf_view).FromAsset("report.pdf").Show();
Is enough to display a PDF that can be pinched to zoom which is great. However, I now want to access a file stored on the local network. Either using a SMB share, or through the intranet. Whichever way I try I can't figure it out.
There is a .FromFile setting, but I can't get it to work by putting a smb path in here. Is there a way to convert this? Or must I download the file to the local device first?
Thanks
Andrew
In my Android application, I want my app to make an xml file available for download for anyone else in the network with HTTP GET. For example if my Android device's ip address is 192.168.6.54, other devices can download "http://192.168.6.54/file.xml". Is this possible?
I'm developing in Xamarin.Forms, but I don't think that's important. An answer concerning only Android would be great.
The pdf isn't on the server yet, but is created on the run. The URL would look like https://mydomain.com/?pdf=example¶ms=abc. If I open it in the desktop Browser, the PDF is shown. But on the mobile phone, it won't alawys start downloading, and if it does, the file is not readable. In the LogCat I get the following error:
hostname mydomain.com was not verified.
I've seen that other people have stumpled over the same error message, but unfortunately they're all writing in Java, and as im developing a web app I don't have the possibility to write Java code to fix the problem. Thanks in advance for any help.
I could locate the problem. The certificate is only valid for https://www.mydomain.com, while I was trying to get the pdf without the www in the link. When I changed this, it worked. May be helpful for someone else with the same problem.
I am Android beginner so please forgive if the question might sound silly. I had an app idea where a youtube video or a web page open on a smartphone could be transferred to the laptop screen by detecting a particular forward phone motion-gesture. But to program something like that, I realized that I need to have access to the browsers web page or the video URL which the youtube app is playing. With some initial research it seems to me that the Android system doesn't keep that piece of information. Am I correct?
The end solution seems to me to code up my own browser or maybe enhance an existing open source one. I looked into the possibility of accessing the temporary files on the phone through my program but the location /data/data seems accessible only to root I guess. Also I intended my app to run as a background service so that I could later expand the idea to other places like transferring and opening PDF file on a laptop etc in a similar fashion. Is there a way around where I can access similar information from a running application?
for showing a youtube video , check this one out:
http://code.google.com/p/android-youtube-player/
also , isn't it easier to transfer the url alone to the other device instead of sending the entire video?
you could do this in multiple ways : bluetooth , wifi , qr code ,usb , morse , ... the possibilities are countless .
about accessing other apps data , the app must provide it to you in some way , since all apps are protected from each other (using sandboxing) . for youtube , you can "listen" to youtube urls (via intent filter) for allowing the user to choose your app instead of youtube app (or any other app that listens to it) .
about /data/data , this is correct , only rooted devices can reach it , or your own app if all you do is access your own folder (which is /data/data/YOUR_APP_PACKAGE_NAME) .you can also reach this folder on an emulator .
it's also quite easy to root your device . even novice users can do it via a third party app . here's something that worked for me on both galaxy S and galaxy S2 :
http://www.unlockroot.com/
The following link downloads a file from a site.it works fine in desktop browser. but it is not working in android default browser and in webview code(i used download listener too but not working).
I believe the Android default browser can't download .zip files by default (you should get a "This content is not supported" error).
If you want to download certain files through your own application though, you can try this this solution.
What code do you use? Could you specify it? I suggest you downloading it in AsyncTask via HTTP. Where do you save it? What is the error log? So many questions =)