I have business requirement where user wants to copy file from Android device into Windows 7 laptop via USB from android app(i.e. programmatically) because there is no wifi or cell data coverage available. I want to know if it is possible or not? How? Example would be appreciated.
Thanks
Look up adb, and from this you can do a simple script
The easiest way that I can think of would be storing the file in a specific location on the device's SD card (or internal memory), and then writing a program for the computer that copies the file from the device.
Related
I am interested in making my app recognize that it has been plugged into a pc. Ideally it would do this on it's own as some sort of background check, but I would settle for having the check done actively by a button somewhere within the app. Specifically, I would like the app to transfer a series of text files which have been created by my app (stored on the SD card) to somewhere on the pc's storage. If possible, would the app be able to browse the pc's file tree to allow the user to define the location of the transferred files?
Thanks!
Once you connect the device to the PC using the mass storage option, the phone's sdcard is not available to the device but it is mounted on the computer. So in my opinion you're idea could not be implemented.
I'm trying to view the files and folders at root level on an android device using USB Debugging mode and windows. Is this possible? Phone is rooted.
I've downloaded a file explorer app which allows me to view it on the phone itself.
My main goal is to copy the mmssms.db from the phone.
Droid Explorer
http://de.codeplex.com/releases/view/612392
Window Apps:
Explorer:
SQLite Manager:
I was looking long and hard for a solution to this problem and the best I found was a root FTP server on the phone that you connect to on Windows with an FTP client like FileZilla, on the same WiFi network of course.
The root FTP server app I ended up using is FTP Droid. I tried a lot of other FTP apps with bigger download numbers but none of them worked for me for whatever reason. So install this app and set a user with home as / or wherever you want.
2021 EDIT: FTP Droid isn't being updated and doesn't work on modern Android versions, now I use primitive FTPd which is open source on Github
Then make note of the phone IP and connect with FileZilla and you should have access to the root of the phone. The biggest benefit I found is I can download entire folders and FTP will just queue it up and take care of it. So I downloaded all of my /data/data/ folder when I was looking for an app and could search on my PC. Very handy.
You can use Eclipse DDMS perspective to see connected devices and browse through files, you can also pull and push files to the device. You can also do a bunch of stuff using DDMS, this link explains a little bit more of DDMS uses.
EDIT:
If you just want to copy a database you can locate the database on eclipse DDMS file explorer, select it and then pull the database from the device to your computer.
If you have android, you can install free app on phone (Wifi file Transfer) and enable ssl, port and other options for access and send data in both directions just start application and write in pc browser phone ip and port. enjoy!
Obviously, you'll need a rooted android device. Then set up an FTP server and transfer the files.
we are trying a access a file on Computer on a specific location through wired Connection and display contents on android device. Can someone suggest how should we approach.
Android device is separated to the others, hence you can't access to anything on your Computer. Think of it, computer is computer, mobile is mobile, design for security :)
Does anyone know of a way to transfer files between an app running on a desktop and and app running on an Android device?
Would this have to be some sort of client server arch? Should i use 'adb push / pull' like commands from the desktop app with predifined file paths on the sd card (which the app saves its data too?)
Thanks,
You could just use Dropbox, or a similar service. If you want your own solution you can use, for example, sftp. If the phone can be connected to the same wireless net as the desktop computer you don't even have to worry about ports/NAT issues.
I would like to have an application sync itself with some files on a host computer.. Anyone know if this is possible? Eg: When you connect an Android phone to a computer i would like an application on the android system to read some allowed folders on the connected computer. Making it so the user doesn't have to sync files itself.
I ask possible, because i assume it isn't.. for security.
You won't be able to do it solely from the Android end, because Windows doesn't make the local drives available through the USB port like that (unless you have some custom driver on the Windows side).
Your Android device will probably show up to windows as a USB drive. If you have an SD card plugged in, you may see a second drive from the Windows side.
To do something like this, you'd probably need to have software running on the Windows side that did the syncing, and then copy the data from the /sdcard directory on the Android device to wherever you ultimately need it to be.