As a embedded developer working with mobile phones, there is a new interesting kid on the block; the Android platform. If you are a mobile developer you most certainly had heard of it.
The interesting thing from a Java developer point of view is that all the APIs are in fact in standard Java APIs. But the developers of the Android platform has selected a subset of the Java SE APIs. Thus the implementation is not a fully compliant Java implementation. Further on the code is not executed as bytecode. The source code is first compiled to bytecode. In the second step the bytecode is converted to Dalvik bytecode. The Dalvik bytecode is then executed on a Dalvik Virtual Machine. The Dalvik is optimized for devices with limited power. According to the people behind the Dalvik VM, it should consume less power than a normal JVM.
I have bought a HTC Hero to have the opportunity to use an Android phone and to develop applications for the Android platform. It is possible to execute a Android application on an emulator, but still I think there is a need to be able to execute on a real device. The emulator is real good and I think that it is very close to the reality. My experience tells me that in the end it is always better to run on an actual device.
As of now I have not developed an real Android application from scratch, although I have attended an Android course. I am really looking forward to making an Android application. If its gets good it would be interesting to put it on Android Market, aka Google Market.
But what will happen to Java ME? I think that Java ME will live long and prosperous, although some programmers that are tired of Java ME will move to Android. The devices that are out on the market today are primarily high end phones. Java ME is found on many low end and mid end phones. What do you think? Will Java ME survive now that Android has arrived?
Some Thoughts about Android
5:47 AM
Mr Dollar'Ria
Posted in
Android,
Embedded,
Java ME,
Microlog,
Reflections,
Software Development
Microlog Mentioned Again
11:34 PM
Mr Dollar'Ria
Maybe a little bit of old news, but I thought I would share it anyway. Microlog was mentioned in this article:
http://weblogs.java.net/blog/editor/archive/2009/11/10/microlog-220-provides-reliable-small-footprint-j2me-and-android-loggi
Öredev Reflections
2:40 AM
Mr Dollar'Ria
I have just finished 3 intense day at the Öredev conference here in Malmö. As always I have a lot of thoughts, ideas and inspiration after attending a conference. These are my reflections from the conference:
- I was missing a sessions about Android. Everybody is talking about the Android platform, but I wonder how many developers are actually developing for Android. It would be interesting to hear about some real Android projects. But maybe next year we will have some Android sessions?
- I was surprised by the session "Design to Development- Collaborating and Communicating Interaction Design". I have never heard of Theresa Neil before. She has some really good ideas. It was about communication between developers and interaction designers. This is something that I could relate to.
- My friend and colleague Davor had an interesting presentation called "Snow white and the seven dwarfs". It is a true about Davor (Snow White) and his team of developers (the dwarfs). He introduces the concept of Developers Exploratory Testing (DET), which is a way to do continuous testing in an agile project. The James Bach really liked the way how Davor has taken some ideas by James Bach and evolved them even further. Note: I am one of the dwarfs.
- Maven 3.x has some genuinely interesting news. The thing that I would like to try out the most is the new Maven console. I hope that it will help me to do faster builds.
- The keynote by Scott Hanselman was interesting. He gave some nice hands on tip for improving your efficiency as a developer.
- I have been registered as a Twitter user for some time now. Never used it much for anything other than Microlog news. During the conference I twittered a lot. I used the "I Tweet" Android client. Now it feels like I am hooked on Twitter. The Tweets was displayed on large screens all over the place, so it became very popular for many attendees. In fact tweets about #oredev was on the top list for Scandinavia.
- I attended a session by Neil Ford that was interesting. He is the author of "The Productive Programmer", a book that I recently read. As the name implies it is all about productivity for programmers.
- Some interesting stuff going around with the Java app store. I have always wondered why Java desktop applications are so underrated. I hope that Java desktop apps will get more popular.
- Ze Frank is very funny. He has a lot of very interesting social experiments going on and some unusual games.
- I liked the sauna and dinner on Monday. Did meet some interesting people there like Marc Lesser and Chris Hughes. The Swedish pickled herring on a toast was superb. The main course was Swedish fish, not candy kind, but a codfish.
- In general a very good conference. Of course I am a little bit biased since my company is one of the founders of Öredev.
That is all that I could remember right now. I guess that I have missed something out. Here are some pictures from the conference:
Posted in
Android,
News,
Öredev,
Reflections
Powerful Logging in Java ME
9:19 AM
Mr Dollar'Ria
The last couple of weeks has involved very much work. First of all I have been preparing the Microlog V2 release. Second I have been writing an introductory article to Microlog. It is now published over at Sun Developer Network. Please read the article and rate it.
http://java.sun.com/developer/technicalArticles/javame/javame-logging/
As always, feedback is very welcome. What do you think about the latest Microlog (V2) release? What do you think about the article?
Posted in
Microlog,
News,
Tips and Tricks
How to Add Voice Text as an Input Method
8:33 AM
Mr Dollar'Ria
Voice Text can now be used from any Android app. (You can probably figure most of this out by clicking around, but be sure to read this first section.)
How to allow Voice Text as an input method (like the soft keyboard):
- Make sure you have at least version 2.0. Go to Voice Text -> Settings -> About
- Go to your phone settings. Hit Home -> Menu -> Settings
- Touch "Locale & text" ("Language and Keyboard" on the Droid) in the main phone settings
- Check "Voice Text." A warning will come up about possibly enabling a key logger this way (Voice Text is not a key logger). You won't need to uncheck this every time you want to switch input methods. See the next section.
How to change the current input method:
- Go into any Android app that has text input (Browser, Gmail, Messaging, ChompSMS, Astrid, Ak Notepad etc).
- Long press (that is, touch and hold) on a text box. A popup should come up that says, "Input Method." Click on it.
- Choose Voice Text from the menu. Set it back to "Android Keyboard" anytime to use the soft keyboard again.
Taking a dictation from another app (These steps have changed in the newest version. If you do not have version 2.2 or greater, please go to the market and upgrade.):
- Go into the app where you want the text to appear (Gmail, Messaging, etc.)
- Touch any text box.
- Push "Start" in the menu that pops up at the bottom (if it doesn't, check that you've followed the instructions above correctly).
- Speak when the prompt says, "Speak now."
- Push the text box again. The Start button will now have your dictation on it. Push the dictation if it's correct, or the revert button to the left to clear it.
- That's it! You can continue to use the other app as you normally would, stopping to dictate as you like.
If you have any questions, please email me using the link in the application: Settings -> "E-mail the Developer."
Posted in
instructions and Tips
8:12 PM
Mr Dollar'Ria
Important: Use the best available internet connection — 3G or WiFi — while dictating to avoid the "Connection problem" error.
Examples of good and bad dictation
"Did you leave the keys by the door?" This is a tricky sentence because it is easy to run the words together and there are lots of short words.
Bad technique. Too fast, no space between words. Remember that the inflection you use when talking to someone doesn't matter in voice recognition. You're trying to get a computer to understand. Think of it as typing with speech.
Bad technique audio
Bad technique audio (alternate link)
This recording came back with the result "Digimon wiki private or."Good technique. Medium pace, clear, well-spaced words.
Good technique audio
Good technique audio (alternate link)
This came back 100% correct.Voice dictation is a skill that takes practice! Try these tips for better accuracy:
1. Speak at your phone’s screen about three inches away, or with the phone to your ear as if you’re making a call. Don’t speak directly at the microphone at the base of the phone.
2. Speak slowly, and clearly at a medium volume. The waveform that comes up after you speak should have medium-sized bumps in it that are clearly separated from each other. It should not be flat or have big spikes in it. Spikes mean loud noise or noise very close to the microphone like squeaks in your phone’s hinge (this is common on the G1). Watch the volume meter at the bottom of the screen. You should aim for about two and a half bars continually.
![]() |
![]() |
![]() |
3. The microphone is right behind the small hole on the bottom edge of your phone. Try not to cover or brush it while dictating.
4. Put small gaps between words. You should see a small flat spot between bumps in the waveform. This helps keep two words from sounding like one.
5. The limit for one batch is about 15 words. You can push "Add more" as many times as you like to collect dictation, but each time the "Speak now" dialog comes up, you should limit what you say to a small number of words.
Tips on productivity
1. Use distinctive words. "Lugubrious," "Alphabetical," "Hippopotamus," and "Arnold Schwarzenegger" come up correctly every time. You may be surprised at the things Google voice recognition knows.
2. Accuracy is not always important. For short notes, to do list items, and text messages to friends, small mistakes usually don’t matter. A to do list item that says, "Wright to grandma" is just as good as one that says, "Write to grandma" and it’s worth a chuckle.
3. You can add a custom disclaimer like "(Voice Texted)" to SMS messages (this won't cause an overflow into two messages or cost money). Go to menu --> Settings --> SMS Disclaimer.
4. Long press the call button to bring up the Voice Dialer and say, "Open Voice Text" for a nearly hands-free experience.
5. Get the last person who called you by sorting your contacts by rank. Hit menu, then "Sort by Rank" on the contacts screen.
If you have questions, feedback, or feature requests, please use the email link in Menu --> Settings --> E-mail the Developer.
Posted in













