Communication between android app and pc application through USB - android

I have my android tablet connected to windows pc machine through USB cable. I don't have internet connection.
I need a solution to establish a connection and transfer files from pc to android app. I think we can use Android open accessories in accessory mode. Is there a better solution to solve this problem or is android open accessories the right solution. What are the shortcomings of this solution ?

you should install the drivers for your tablet and to transfer the files using usb. Your android tablet tablet might not be recognized without drivers. Also you should store the files inside download folder to be easily visible by the pc.

Related

Using Android Mini Pc for Debugging

I have a android mini pc http://www.timingpower.com/android-mini-pc-rk3188
I want to debug my eclipse code. Is it possible? Which cable should ı use to connect my laptop and do ı need to do something more?
Thanks..
I have a very similar device. Like your's mine had a full sized usb port (host) and a micro usb port (OTG). Apparently some builds provide adb over the micro usb port. this was not the case with mine.
Instead I used the builtin wifi to provide adb over tcp.
You can either search the playstore for "adb wifi" or do it manually see this post

access of files on windows pc from android device, bluetooth?

I have two folders on a desktop PC running windows 7, I want to connect an android tablet to that PC by bluetooth and move a file from the android tablet to one of the folders on the windows PC. and get a file from the other folder on the windows PC and copy that to the android tablet.
is it possible to do this without having to run any software on the windows PC. just only running the android app and using it to access the two folders on the windows PC?
if using bluetooth is not the best way to do this, is there a better way?
i wanted to avoid having to make a java program that i have to run on the PC side. that means having to install it and make sure that it is running for the file transfer. would rather just deal with the tablet only.
i am not vary familiar with bluetooth and wanted to get some opinions on using it for this situation, any ideas?
If you are going to use bluetooth, from personal experience you need to interact on both the computer and tablet. As a confirmation window for a file transfer appears on either the computer or the tablet.
Wireless can be a better method of transferring files as I believe you can get a file manager app for android so you can easily manage files between desktop and tablet.
Some recommended file managers are available here - http://android.appstorm.net/roundups/utilities-roundups/top-10-file-managers-for-android/
Hope this helps.

MTP connection with PC required for android but is it device independent?

I want to write a program on windows which transfers music to android via MTP.
The real device I have is HTC desire(froyo) and when I connect this via a USB cable to PC, it shows up as a removable storage and not as a Windows Portable Device ..
only ICS seems to support MTP but I do not have it. I was looking if I could connect Android Emulator with ICS to my host machine via some sort of emulated USB connection. But this not supported in android emulator.
I need some tip or suggestions as to how can I setup the environment to program for it.
I have another device (a creative media player) which shows up as Windows portable device.
If this protocol is device independent can I write my program for my "Creative media player" and expect that it would theoretically work with android ?
Thanks,

developing a special device communication app that connects through USB port on Android

I found the USB docs for Android and from there it seems as if one could write a communication program on an Android phone that works exactly like on a PC.
I have a normal USB-cable that normally connects between a PC and an external device. On one end it is a normal USB on the other end it has a special plug for the device.
If I get an USB female-female adapter I could connect my normal Android phone cable USB end to my device USB cable and so basically plug in my special USB cable into the Android phone.
Does anyone have experience doing USB communcation programming on Android - basically copying normal PC USB functionality? All I would have to do is sent and receive text strings over the USB port - just like on a PC.
Is this possible or is the USB port programming on Android limited in any way
and not really identical to USB programming on a PC? eg. power supply through USB or anything else?
ps on the PC I need to have a FTDI driver installed to work with the external device.
Many thanks
UPDATE:
it seems that starting with Android 3.1 it is possible to do this - however, if I understand htis correctly, Android 3.1 runs only on tablet Android devices - I might be wrong with this - compared to Apple this all this pretty confusing (however, with Apple iPhone it will never work! ;)
Yes, Android supports USB host on 3.1 and newer, so you can connect USB devices directly to an Android device using a converter cable. Android 4.0 brings this feature to handset devices.

Android USB debugging with PC internet connection

I'm having Samsung Galaxy S phone.
I want to debug my application, which needs internet connection.
can I debug my app with android device, sharing the PC internet connection through USB?
I can not use WiFi.
Please help me out. Thanks in advance
Getting the internet from your PC to your android device is called reverse tethering. It is tricky cause it s not a built in feature. Some solutions exist if your a linux user :
http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
Previous link is dead, found a copy there:
https://web.archive.org/web/20120320173806/http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
Don't know if it's still relevant the question is old considering Android lifetime.
If you are not, well I never find a way.
There are two current (2019) tools that do this job well:
gnirehtet
This project provides reverse tethering over adb for Android: it allows devices to use the internet connection of the computer they are plugged on. It does not require any root access (neither on the device nor on the computer). It works on GNU/Linux, Windows and Mac OS.
It's written in Rust and Java; you can choose the server component. It requires adb on the host, and at least Android 5.0. The device itself will then be managed by the program.
SimpleRT
Reverse Tethering utility for Android.
Allows you to share your computer's internet connection with your Android device via a USB cable
This one requires no adb and no rooting, but you have to build the Android APK file yourself or download a release version.

Categories

Resources