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. Question about 9 patch png

public View getView(int position, View convertView, ViewGroup parent)
{
...
Drawable d = getResources().getDrawable(R.drawable.icon);
ImageView iv = (ImageView) findViewById(R.id.icon);
iv.setImageDrawable(d)   // will throw java.lang.NullPointerExcepiton
...
return convertView
}

the icon is a 9 patch png
every time run it, will throw java.lang.NullPointerExcepiton

if use a normal png, work fine, and the 9 patch png is from android
demo source, so it is right

Who knows, thank you

-- 

2. Sedikit lg tentang milestone

Yang membuat device ini menarik adalah, it is fast!
Layar bagus, kencang, termasuk kencang juga suaranya. Dipake running bbrp
aplikasi termasuk denger radio online dr droid live tetep ok.
Yg jelek, devicenya panas, bener2 panas. Tutup belakang batere yg metal
membuat panas benar2 kerasa seperti di jemur, mungkin karena milestone ini
dr pagi jam 8 lebih nyala terus, di test. Sekarang batere sudah 50 %. Pas
lagi panas dipake telp, suara jernih, tapi kuping panas kayak habis pake
hape esia dan ngoceh jam2 an. Motorola harus memperbaiki ini. Mungkin bisa
buat konsumen yg perfect merasa takut berlebih. Dan toko hape bisa dibuat
pusing sama komplen dari kastemernya dikira hapenya rusak.

Kecepatan adalah kunci device ini menarik, di magic, saya pilih pakai
cyanogen karena saya butuh lebih ringan dan cepat, tapi kerasa lag waktu
buka kontak yg ada 3000 nama, disini kenceng dan cepat. Rom hero di magic
lag banget buka kontak banyak gitu.

Kecerahan layar yg otomatis juga menarik, dan layarnya tetap jelas dibawah
sinar matahari.

So mau pilih mana nih milestone atau nexus one saja?
:-)

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Birthday Calendar

4. AOSP Eclair 2.0

5. Alternate app store

6. customer changes phone, wants app again but market doesn't show app as purchased

7. Widget android (google)