User Dictionary Manager for Android (UDM)

by adrian vintu 3/3/2010 11:13:00 PM

Today I released another Android application.
User Dictionary Manager for Android is an application that allows you to export/import/delete/clean the user dictionary words found on your Android phone.
This special version also includes a built in list of approx 2000 most used words/expressions in the Romanian language.
I hope you will enjoy the application as much as I am and will take advantage of this useful tool.
The User Dictionary Manager for Android home page is http://udm.adrianvintu.com

EDIT: If you are an Android programmer, you must check this link out http://adrianvintu.com/blogengine/post/Colored-Logcat-Script-for-Windows.aspx

Screen shots

Before Romanian User Dictionary - Composing SMS
After Romanian User Dictionary - Composing SMS
See Dictionary of Phone - go to Locale and Text
From Locale and Text - go to User Dictionary.png

Force Locale on Android

by adrian vintu 1/14/2010 8:51:00 PM
While playing with localization on the Android for my app I came upon an annoying bug.
It seems running on Motorola Milestone the fonts were getting smaller on each locale update.

I use the following code for locale changing (from http://almondmendoza.com/2009/01/28/force-localize-an-application-on-android/):
String languageToLoad  = "de";
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());
Also in the AndroidManifest.xml I have (without this entry you get "Something wrong here, didn't expect "mypackagename" to be resumed"):
<activity
  android:label="@string/app_name"
  android:name=".Dex"
  android:configChanges="locale">
Here is how my screen should look like:



And here is how it was looking on Motorola Milestone.



After changing the Locale from Preferences the fonts keep gettting smaller and smaller



This was very annoying. I did not know exactly why this was happening.

So I decided to reproduce the Milestone in the emulator. I got the specifications of the Milestone from the web and created in Eclipse an AVD with a resolution of 480x854 and density of 240.



After that I was able to reproduce the bug. It seems the density was the issue here.
I searched for Android density and after some tries I found the solution. It seems I needed to have this in the AndroidManifest.xml
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
/>
The most important is the android:anyDensity =" true ". After this, the application was shown correctly even on the Motorola Milestone.

I hope this will be of help and don't forget to check out my enhanced logcat tool here http://adrianvintu.com/blogengine/post/Colored-Logcat-Script-for-Windows.aspx


EDIT: please read the comments of the article, you may find solutions to some of your localization problems - e.g. changing orientation resets locale, etc.

Comparison of Android vs IPhone

by adrian vintu 1/14/2010 7:22:00 PM
Today I made a comparison of Android vs IPhone. I made the list together with an IPhone enthusiast. The results were surprising for both of us. If fact, they were so surprising that the IPhone user is now inclined to go for the Android on the next phone purchase.
Here is the comparison of Android vs IPhone.

Pros for Android
  1. SMS delivery report - for the IPhone you need a third party apparently
  2. notifications without INTERNET - one of the biggest drawback of the IPhone is that you cannot have notifications without Internet -> the notifications are stored on the Apple servers
  3. can install applications from any site - IPhone applications can only be installed from the Apple store (unless the phone is jail broken)
  4. multiple physical menu buttons - used for navigation and quick shortcuts, allows greater screen size (no more software menus)
  5. physical menu button allows recent 6 tasks (like ALT+TAB in Windows) - absolutely useful
  6. the Home screen is organized in 3, 4 or 5 virtual screens, the rest of the applications lie in a list - usability, quick to access most used apps - on the IPhone there are "limitless" virtual screens on Home
  7. can install on the Home screen - widgets, shortcuts, folders
  8. physical keyboard - on some models
  9. open source OS
  10. can install different/homebrewed firmwares
  11. can install home brewed apps
  12. background apps/ multitasking
  13. can make own application to hook into anything - calling, traffic, media, encryption, etc
  14. dev SDK is free and cross platform. IPhone is for $100+ and only works on MAC.
  15. programming is done in Java, bridges exist from J2ME, C#, etc. IPhone uses Objective C
  16. programming - can run interpreters. IPhone only allows running Objective C byte code
  17. easy access to the SD card (both from computer and from the phone). can copy MP3s, read ebooks, etc
  18. cheaper than the IPhone
  19. easy removable/replaceable battery.
  20. 5 mega pixel camera + blitz/flash
Pros for IPhone
  1. screen brightness/clarity
  2. bigger sofware keyboard - because of the wider screen
  3. great 3D apps and harware
  4. easy data synchronization
  5. proximity sensor - saves battery and "locks" the screen
  6. zoom using two fingers - pictures, browser, etc - though some Android phones also support multi touch

DEX for Android - DEX pentru Android

by adrian vintu 12/15/2009 10:56:00 PM

Today I released an Android application.
DEX for Android is a Romanian explanatory dictionary for the Android platform that stores the dictionary on the phones SD card.
I am regular user of the http://dexonline.ro so I decided to make an offline Android client for it.
I hope you will enjoy the client as much as I am and will take advantage of this really useful tool.
The DEX for Android home page is http://dex.adrianvintu.com

Azi am publicat o aplicatie Android.
DEX pentru Android este un dictionar explicativ roman pentru platforma Android care stocheaza dictionarul pe cardul SD al telefonului.
Sunt un utilizator regulat al http://dexonline.ro si am decis  sa fac un client offline pt Android.
Sper ca va veti bucura de asta unealta si veti profita de ea cu success.
Pagina proiectului DEX pentru Android este http://dex.adrianvintu.com

EDIT: If you are an Android programmer, you must check this link out http://adrianvintu.com/blogengine/post/Colored-Logcat-Script-for-Windows.aspx

Screen shots

Colored Logcat Script for Windows

by adrian vintu 11/2/2009 12:08:00 PM

I found a nice script from Jeff Sharkey that formats nicely and in color the adb logcat.
Unfortunately Jeffs script works only on *ix so I decided to make a port to Windows.

Here is a screenshot of the adb logcat without color

And here a screenshot of the the adb logcat with color

As you can see, the colored adb logcat is a huge improvement.

To easily use the code, copy the files color_console.py, coloredlogcat.py and logcat.bat to your Android SDK/Tools path like c:\android-sdk-windows-1.5_r3\tools\logcat.bat. Now, instead of running "adb logcat" just run "logcat".

Please be gentile with the code as I am not a Python programmer :)

You can download the files here colored_logcat.zip (3 kb)

Thanks go to
Jeff Sharkey
André Burgaud
ActiveState for ActivePython

How to Debug on the Samsung Galaxy I7500 Android Phone

by adrian vintu 9/2/2009 9:51:00 AM

Edit 2009-11-10: if you are a developer make sure to check my colored logcat tool

I have seen that it can be a pain the ass to install the Android usb drivers used for debugging, so I put here the steps I made and successfuly got the Android to debug correctly.

1. install Samsung PC Studio 3  v3.2.3 IE2 to get the normal usb drivers. My link was http://lfiles3.brothersoft.com/internet/mobile/Samsung_PC_Studio_321_GJ9.exe

2. connect the Samsung Galaxy Android device(at this time USB debugging is turned off - see #4). Let Windows install the new hardware - the Samsung drivers.

You can now access the SD card on your device. You will see a USB symbol in the notification bar of the phone at the top. Pull it down and you will see "USB connected. Select to copy files/from your computer". Enable it and you will have access to the SD card.


Next steps are for development only!

3. modify c:\android-sdk-windows-1.5_r3\usb_driver\x86\android_usb.inf

under the [Google.NTx86] entry add
; SAMSUNG GALAXY
%USB\VID_04E8&PID_6640.DeviceDescRelease%=androidusb.Dev, USB\VID_04E8&PID_6640
%USB\VID_04E8&PID_6640&MI_04.DeviceDescRelease%=androidusb.Dev, USB\VID_04E8&PID_6640&MI_04
%USB\VID_04E8&PID_6640.DeviceDescRelease%=androidusb.Dev, USB\VID_04E8&PID_6640

under the [Strings] entry add
; SAMSUNG GALAXY
USB\VID_04E8&PID_6640.DeviceDescRelease="SAMSUNG GALAXY"
USB\VID_04E8&PID_6640&MI_04.DeviceDescRelease="SAMSUNG GALAXY Composite ADB Interface"
USB\VID_04E8&PID_6640.DeviceDescRelease="SAMSUNG GALAXY Bootloader"

Some people have reported the MI_04 combination above is not working; you may want to try MI_1 to MI_4 to be sure.

4. go to the phone -> Settings -> Applications -> Development -> enable USB debugging

5. Windows will ask for a new driver - this is used for debugging. Point the driver search to c:\android-sdk-windows-1.5_r3\usb_driver\x86\.

You should now be able to use debugging on the Samsung Galaxy Android.

Tips on debugging Samsung Galaxy Android:

1. to check if you can debug on the Android, use “adb devices”
I have
C:\>adb devices
List of devices attached
I7500wJLU2AuEy0 device
This entry is for my Samsung Galaxy I7500 Android phone.

2. use “adb logcat” to see the live and past Android logs. This is probably the most used command.

3. check out the documentation to see how to install and remove applications from the Android phone: http://developer.android.com/intl/de/guide/developing/tools/adb.html

 

Good luck and have fun!

 

Edit 2009-09-28: also un/check(depending on your needs) the "Mass Storage only" option under Settings/About phone.