skip to main |
skip to sidebar
RSS Feeds
Nope. nothing .. just some random thoughts come to my mind ...
Nope. nothing .. just some random thoughts come to my mind ...
9:49 AM | Friday, December 30, 2011
Posted by harshadura
pre { overflow: auto; border: solid 1px #9AACAE; font-family: courier,Georgia,Serif; color: $(body.text.color); background: #EFEFEF; margin: 5px; padding: 5px; }
5:55 PM | Sunday, December 25, 2011
Posted by harshadura
Just type in Bash.
sudo apt-get install ttf-sinhala-lklug ibus im-switch ibus-m17n m17n-db m17n-contrib language-pack-si-base
8:26 PM | Saturday, December 24, 2011
Posted by harshadura
[harshadura@localhost rules.d]$ lsusb Bus 007 Device 002: ID 04e8:685e Samsung Electronics Co., Ltd Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 004: ID 09da:000a A4 Tech Co., Ltd Port Mouse Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 014: ID 1c9e:6061 Bus 005 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [harshadura@localhost rules.d]$
[harshadura@localhost /]$ cd /etc/udev/rules.d/ [harshadura@localhost rules.d]$ [harshadura@localhost rules.d]$ ls 10-vboxdrv.rules 56-hpmud_support.rules 70-persistent-cd.rules 85-pcscd_ccid.rules 90-hal.rules 99-fuse.rules 40-hplip.rules 60-fprint-autosuspend.rules 70-persistent-net.rules 90-alsa.rules 91-drm-modeset.rules 99-gpsd.rules 51-android.rules 60-sysprof.rules 80-kvm.rules 90-alsa-tools-firmware.rules 97-bluetooth-serial.rules [harshadura@localhost rules.d]$ [harshadura@localhost rules.d]$ vi 51-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="04E8", MODE="0666"
10:50 AM | Tuesday, December 20, 2011
Posted by harshadura
If you are like me and like developing in Linux, then you will find
this guide useful. When I was setting up everything for my Android
development, I ran into the problem that Linux was not recognizing my
Android phone, and took me some time figuring out how to make Linux
recognize my phone. Finally, after some research I was able to put this
little guide together and decided to share it with the rest of the
world.
ADB (Android Debug Bridge) is a handy tool that comes with Android
SDK that allows you to control and interface with your Android device.
Update: 02/04/11 – HTC changed its Vendor ID, older phones have different ID than newer phones. Refer to USB Vendor IDs table at the bottom of this tutorial to see the change.
Update: 01/02/11 – By mistake I had linked the ADB tool for OSX in step 3.1. Now it should be the correct one for Linux.
IMPORTANT Update 12/11/10 – There has been a change to
the new Android SDK. ADB Tool has been moved to
/android-sdk-linux_x86/plataform-tools, so if you have the old SDK,
please download the new one and update your path (Step 9.2 of this
tutorial). If this is your first time doing this, then disregard the
update and continue with the tutorial.
Update: 09/21/10 – Working code with Ubuntu Lucid Lynx and added more USB vendor IDs.
sudo gedit /etc/udev/rules.d/##-android.rules
then enter your passwordadb devices
in a terminal window with your phone plugged in.adb devices
gives you a “no permissions” error, try typing the following in terminal
adb kill-server
adb start-server
Manufacturer | USB Vendor ID |
---|---|
Acer | 0502 |
Dell | 413c |
Foxconn | 0489 |
Garmin-Asus | 091E |
HTC (Older Phones) | 0bb4 |
HTC (Newer phones) | 18d1 |
Huawei | 12d1 |
Kyocera | 0482 |
LG | 1004 |
Motorola | 22b8 |
Nexus One/S | 18d1 |
Nvidia | 0955 |
Pantech | 10A9 |
Samsung | 04e8 |
Sharp | 04dd |
Sony Ericsson | 0fce |
ZTE | 19D2 |
9:28 AM | Wednesday, December 14, 2011
Posted by harshadura
10:02 AM | Monday, December 5, 2011
Posted by harshadura
If you are using Eclipse for Development just right click on your
project and click export. Now choose Android and then Export Android
Application. In the next step confirm the project that you want to
export. Then click next and now you should be able to select create new
keystore. Now fill in the required fields and your should be able to
sign your app. Be sure to make a backup of the keystore file and
remember your password. Losing this will make it impossible to update
your application.
If you are using the terminal to create a keystore and you have Java
SDK installed there should be a program called keytool in /usr/bin (on a
unix based system). On Windows the SDK should also come with the
keytool but the install location may be different search for keytool.exe
on your computer if keytool is not in your path already. With this tool
you should be able to create a key in the following way:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000