Solution : How to install an .apk file from the windows machine onto the development board

by Ankit » Tue, 20 Jul 2010 22:08:19 GMT


Sponsored Links
 To install Android apk files on to the target (in my case Beagleboard)
from a Windows host, we can use USB-OTG along with RNDIS driver. Below
is the procedure:

   1. Copy the linux.inf file from the Documentation/usb/ folder of
linux 2.6.x source to a folder on Windows
   2. Connect serial port of Beagle board to Windows com port
   3. Connect Beagle board to Windows host using USB-OTG
   4. Install RNDIS driver using linux.inf file when Windows asks for
the driver for the new hardware
   5. Open hyper terminal with configuration of 115200 Baud, 8 bits,
No Parity, 1 Stop Bit & No Flow Control
   6. Restart Beagle Board and execute following commands once U-Boot
prompt is up
          * # mmc init
          * # fatload mmc 0 0x80200000 uImage
          * # setenv bootargs 'console=ttyS2,115200n8 init=/init root=/
dev/mmcblk0p2 rootfstype=ext3 rw  rootdelay=1 nohz=off'
          * # bootm 0x80200000
   7. Once kernel comes up configure the usb0 interface on the target
using
          * # busybox ifconfig usb0 192.168.10.20 netmask
255.255.255.0 up
   8. Configure the new network interface created on the Windows host
with below configuration
          * IP: 192.168.10.10,  net mask: 255.255.255.0,  Gateway:
192.168.10.1,  DNS: 192.168.10.10
   9. Ping to the target from the host to test the connection
  10. Set Windows environment variable from cmd prompt using: set
ADBHOST=192.168.10.20
  11. On Windows host go to Android_SDK\tools folder from the cmd
prompt and execute following commands:
          * adb kill-server
          * adb start-server
          * adb install <path of to be installed .apk file>
  12. Verify the installed .apk file on the Beagle file system at /
data/app folder

-- 



Other Threads

1. Google Ads for Android?

mobclix.com will be offering this soon I believe.




--~--~---------~--~----~------------~-------~--~----~

2. I really need help with Android and I guess to some degree Java.

Gentlemen,

May I suggest the following: instead of reading tutorials (which show you
how to do *one* thing) or reading the Official Documentation (which is great
for reference but sucks if you're trying to learn), go out and get one of
the *books* that teach the ideas and concepts of Android programming,
preferably ones with actual code.

The one I used, with excellent results, is Mark Murphy's "The Busy Coder's
Guide To Android Development" <http://commonsware.com/Android/>.  There is
nothing in his book that you can't find in the Officials Docs, but it's put
together in a coherent way and he explains things so they make sense.  Want
to know what the different parts of Android are?  That's Chapter 1.  Need to
know what all the directories and XML files are for?  That's Chapter 2.
Want step-by-step instrustions on how to build a simple app and have each
section explained?  That's Chapter 4.

Another good book is "Professional Android Development".

Yes, I'm telling you to read more but this time, read the *right things*.

No one is going to give you step-by-step instructions because that takes a
HUGE investment of time.  That's why you pay these authors for their books;
they have invested that time; in return, they want paid for that investment.







-- 

Faber Fedor
Linux New Jersey
http://linuxnj.com
faberfedor.blogspot.com

--~--~---------~--~----~------------~-------~--~----~

3. getProviders always return empty

4. Any Android developers in San Francisco area?

5. Development environment setup fails on Mac OS

6. Market Listing Missing

7. "Notepad Exercise 1 solution" gives weird errors