Friday, May 2, 2014

SecurityException (@Parcel:readException:1327) {AdWorker #1}

From my research, this bug seems to be introduced when admob was integrated into Google Play service. You would see this exception when you use r15, r16 of Google Play services.

Currently, there's no solution. But the Google Team is aimming to fix this in r17.

NullPointerException (@ActionBarImplICS:getThemedContext:287) {main}

This most likely shows up when you are trying to hide the actionbar in your app's activities.

You may be using:

requestWindowFeature(Window.FEATURE_NO_TITLE);

However, you may see NullPointerException (@ActionBarImplICS:getThemedContext:287) {main} when users press the menu button in their devices. Some Android devices have the menu button as the hardware button, while Kindle Fire devices have the menu button as a software button.

To prevent the crash from happening, you can override the menu button key code to do nothing:

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
   if ( keyCode == KeyEvent.KEYCODE_MENU ) {
       // do nothing
       return true;
   }
   return super.onKeyDown(keyCode, event);
}

Wednesday, April 23, 2014

Android Strikethrough HTML not rendering in EditText

I was working on supporting strikethrough in EditText of my app. Using StrikethroughSpan, I was able to show it in the EditText element. This strikethrough is converted to <strike></strike> when you use the toHtml() method.

However, when I try to render the strikethrough back to the EditText, I found the Html.fromHtml method does not support strikethough.

The only way to render the strikethough seems to be through the Webview. 

Saturday, February 8, 2014

StudyFlashcard 3.0 - Mobile Flashcards For Android

During the past month, I worked on a new version of StudyFlashcard For Android.

StudyFlashcard 3.0 is a mobile flashcards application for students to learn foreign languages, review exam materials, or simply as a memorization tool.
Here is the UI of the application:

















StudyFlashcard Android is different from other flashcard applications in the following ways:
1) Organize flashcards with #hashtags

Powerful #hashtag system lets you add flashcards to your midterms, exams, favorite lists, or secret lists. Study in whatever ways you imagine.
2) Study multiple subjects at once with Merge Play

Whether you have three exams on the same day or you are just bored of studying one subject for too long, Merge Play lets you study multiple flashcard sets together.
3) Study multiple questions at once with Cram Mode (Web only)

Cram mode offers a multi-column view that lets you study a lot of questions at once. This is perfect for a quick memory refresh before exams.
4) Perfect for learning vocabularies and foreign languages with three sided flashcards

Each StudyFlashcard has three sides: question, answer, and hint. Three-sided 
flashcards are perfect for learning Asian languages such as Chinese and Japanese.

Full list of features:

• Sync Flashcards with StudyFlashcard.com
• Score tracking
• hashtags
• play multiple sets of flashcards/quizzes at the same time
• Sign up is not necessary
• Works completely offline (You can create flashcards offline)
• Three sided flashcards/quizzes with question, answer and hint
• Can adjust text size

Give StudyFlashcard Android a try. Let us know what you think.