I made a small script just to test the syntax highlighting plug-in I installed for Wordpress. So here it goes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| #!/bin/bash
# Scipt that installs a batch of apk files on an Android device,
# through the adb tool from Android SDK.
adbPath="/home/tomasz/android/android-sdk/tools/adb"
if [ $# -ne 1 ]; then
echo "usage: `basename $0` foldername"
exit 1
fi
for f in $( ls "$1" );
do
$adbPath install "$f"
done |
The script is very simple and installs apk files in a folder through adb (Android Debug Bridge). This of course requires the Android SDK and a some kind of a Linux distribution.
Posted by Tomasz Cielecki at 2:19 pm on November 8th, 2009.
Tags: adb, Android, Bash, Cellphone, Language, Linux.
Prerequisites are to have had started the program once, so that it has made the configuration files and a properly installed AndroidSDK on you computer.
OK, so there are two ways of achieving this. On ROM’s that support Danish as a system language you should go choose that in Settings>Locale & text>Select locale, here you will find your language. Change to it and HTC_IME should also be in that language as well. Super easy. Now you might want to have the UI language to be English. If you change it back to English in the Locale picker, the HTC_IME language will revert to English also, which you don’t want if you want Danish word prediction.
What we have to do then is to echo “en” to /data/property/persist.sys.language, which contains the information about what language the user UI should be. This is done by executing following commands in your command line.
adb shell
echo en > /data/property/persist.sys.language
reboot
You can also do this without changing any locales and change the settings only for HTC_IME, and not making them system wide.
This is done by pulling the configuration file for HTC_IME to your computer, editing it and pushing it back.
adb pull /data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml . (remember the dot!)
edit the line saying <string name=”keyboard_language”>x<⁄string>, where x is the value we need to change to 8 to get Danish dictionary (see bottom of post for other languages). Save the file and push it back to the phone and reboot.
adb push com.htc.android.htcime_preferences.xml /data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml
Now you only need to either reboot the phone or change the layout to Compact QWERT and back and you should have your chosen dictionary and word prediction. This ofcourse works for other languages aswell. Here are the following values that seems to work for the last method:
English 0
Arabic (Egypt) 14
Arabic (Israel) 14
Czech 7
Danish 8
Dutch 11
Spanish 4
Finnish 12
French 1
German 2
Greek 17
Italian 3
Norvegian (Bokmål) 10
Polish 13
Portugese 5
Romanian 16
Russian 6
Swedish 9
Turkish 15
This was tested on CyanogenMod 4.1.11.1 and up and will most likely work on other ROM’s aswell. Also notice that it will keep saying English in the Settings menu.
Latest version of HTC_IME for donut can be aquired on XDA-developers – thanks to Cyanogen.
Posted by Tomasz Cielecki at 5:36 pm on September 26th, 2009.
Tags: Android, Cellphone, Configuration, Danish, Dictionary, HTC Magic, Language, Locale.
Yesterday I tried out the newest version of Cyanogen’s experimental branch of his ROM, which includes a lot of new features and code from Donut, but also a lot of nice Linux kernel tweaks such as BFS, which is a scheduler aimed towards slow hardware. It seems that it looks up to it’s promise because the experience with the Linux kernel with BFS was pretty good.
Everything about the whole system feels a lot snappier. Menues are not choppy, scrolling the app list is fluid, switching between the desktops is painless aswell. Execution of applications is very fast aswell! I really hope that Google implements BFS or a simillar scheduler in their future kernel releases, because this really kicks ass. And with the new HTC Tattoo comming with a more optimized CPU, I think it will kick a lot off buttocks when it gets combined with a better scheduler.
So all in all. BFS is awesome. If it does not work for you as I state, you might be doing something wrong
Read more about BFS
Read more about Cyanogens ROM
Posted by Tomasz Cielecki at 3:01 pm on September 10th, 2009.
Tags: Android, BFS, Cellphone, Linux.
If you keep a spreadsheet file with all your contacts you can easily import them to your phone. This is done by uploading the CSV file to your gmail account where you import it.
First step: Save a CSV file
Follow the Gmail Help page, which describes what your columns are supposed to be called and so on. Save the file to a CSV file.
Second step: Importing the CSV file to Gmail
- Sign in to Gmail
- Click Contacts (located below your list of views) on any Gmail page.
- Click Import in the top portion of the Contact Manager.
- Click the Browse… or Choose File button and locate the CSV file you’d like to upload.
- Select the file and click the Import button.
If some of the fields in the CSV file are left out Gmail will tell you why. Also a smart thing is to make a Category for your contacts, this way you can delete them all again if you made a big mistake.
Many thanks to Google Android Bruger Blog!
Posted by Tomasz Cielecki at 9:56 am on September 5th, 2009.
Tags: Android, Cellphone, Contacts, Converting, Gmail, Linux.
NOTICE, some autosigners and sign programs do not work on Vista and Windows 7, either use Windows XP, MacOS or Linux for signing.
The other thread about changing the animated boot screen on HTC Magic, seems to only work on HTC builds, which implement the ability to have animated boot screens through a simple gif image. This does unfortunately not apply to the Google build ROMs, therefore we need to avail ourselfs of another method of changing the boot screen, which also is more complicated.
First we need to pull the framework-res.apk which resides in /system/framework/ from a update.zip for a full ROM.
Next unpack the file somewhere, inside the folder assets/images there should be two or more png images. They are called:
android-logo-mask.png

android-logo-shine.png

And can look like the images above. Those are the two files we need to edit or remake to our likings.
As you maybe can se the letters and the android in the first image are transparent, which means the shine will be shown on the phone it self as background image. This is as far as I know the only possibility of having a animated boot screen on the Google build ROMs, which is not as fancy as the animated gif images that you can make for the HTC build ROMs.
For this guide I will use the same splash image I am using for the first non animated splash screen.

As you can see it does not contain any transparent areas, I am going to turn the outline of the android and the lettering transparent and change the color of the shine. You can do that in any photo editing program such as GIMP, photoshop and Paint.net, and I will not guide you through that. The result is as follows.


Now that I have to two images, I overrite the images in framework-res/assets/images, zip the file and rename it back to framework-res.apk and put it back in the update.zip, then sign it according to android developers. Now flash it to your phone and you should be seeing it next time you boot your phone.
Posted by Tomasz Cielecki at 5:59 pm on August 23rd, 2009.
Tags: Android, Cellphone, Gadgets, Linux, Modification.