I want to move some files from my PC to Nexus 7. The tablet is connected to my PC's USB port and it is successfully charging. Unfortunately, the PC is not detecting the devices - what I expected is to be shown the Nexus 7 tablet as external devices (like my USB flash memory).
As the tablet is connected to the my home internet network, I have checked if it will appear in the "Networks" section but it does not.
I am using Ubuntu 12.04 LTS.
Is there a easy way to connect the devices to my PC and move some information between them?
You have to follow a below procedure to share contents between Ubuntu to Nexus 7.
Install the necessary tools using terminal.
Connect your Galaxy Nexus to your computer. On your phone, open up the notification drawer, and click on “USB Connection type”. Make sure that MTP is selected.
Type these commands in terminal:
The output of these commands should give you
idVendor
andidProduct
. Note down the values given, as you'll need them later.Run this command in terminal:
A Gedit window should open. Simply Copy and paste below line.
Replace
VENDORID
andPRODUCTID
with theidVendor
andidProduct
you had noted down earlier in Gedit.Save and close the file. Then, disconnect your phone and run these commands:
Replace
YOURUSERNAME
with your Ubuntu user name. Now, run this command:In the Gedit window, remove the # at the beginning of the last line.
You’re almost done! Now, restart your computer, and then run these three commands:
Again, do re-type the quotes in each command after you’ve copied, otherwise the command won’t work.
Connect your phone again, and then make sure your phone is using MTP, then run this command:
You will able to connect the Nexus 7 your to your Ubuntu computer.
I have found that the easiest way to transfer files is using the app called AirDroid. You'll need your laptop & the android device to be connected to the same network though.
Steps
Install airdroid on Android device
launch the app , if the Android device and laptop on same network it will automatiocally
detect the computer IP and ask to Enter the generated pin on Android device on computer web address which is http://web.airdroid.com/
You can simply switch the Nexus 7 into Camera (PTP) mode under Storage / USB Connection.
For my personal use, I've used instructions similar to those that @K.K Patel provided in their answer.
However, some users either do not want to, or are uncomfortable with using the command line. For them, I recommend using AirDroid.
This solution does not require any configuration on the Ubuntu systems.
All that is needed is an application installed on the Android phone, a shared wireless connection between the phone and Ubuntu system, and a web browser on the machine running Ubuntu.
On the Android phone, follow these steps:
Go to this link: https://play.google.com/store/apps/details?id=com.sand.airdroid&hl=en
or:
On the Ubuntu system, follow these steps:
After logging in, a 'desktop' will be presented, through the web browser, to communicate with your Android phone:
This provides a simple method of transferring files, photos, updating contacts, etc. between the Android phone and Ubuntu system.
You want to install gvfs-mtp because this is the absolute easiest and most comfortable way.
Have fun.
gMtp is an mtp based application provides a gui interface to connect with the device.
All that is needed is to intall libusb-dev, mtp libraries and gmtp. This link provides information about this
http://www.humans-enabled.com/2011/12/how-to-fix-samsung-galaxy-nexus-mtp.html
You don't even need to compile libmtp from source as discussed in the write-up. I used synaptic and selected all the required packages and got the whole thing running instantly.
This might be easier if one doesn't want to go and mess with udev scripts.
After struggling with this for a while, and finding all the above solutions failing (mtpfs had errors, gmtp crashes and is really slow, airdroid also slow) this worked great:
https://github.com/hanwen/go-mtpfs