Profile cover photo
Profile photo
Jonah Wong
Jonah's interests
View all
Jonah's posts

Post has shared content
Prisoners of our own minds...

Image via:

Post has shared content
iOs Lesson 2: How to Create a Toolbar Button

Really helpful iOs tutorial!!
Check it out for sure dudes!!

Post has shared content
Some technical details on a cool sample app I worked on recently.   #AndroidDev  

Android Dev People I'm circling.

Post has attachment
I played #breakout on Google Image Search! I made it to level 1 in Image Breakout! Can you beat my score of 325?

Post has shared content
If you have been using my EndlessAdapter, I strongly encourage you to upgrade to v1.2.1. There had been various reports of an exception in the field, but only today was I given a reproducible test case for it, and that bug should now be fixed.

Post has shared content

PSA: Stop using custom action bar implementations, especially on Android 4.0+ devices. If you're worried that using the ActionBar APIs precludes you from supporting devices with older OS versions, well, it doesn't—that's what the awesome +ActionBarSherlock library is for.

Please feel free to share this PSA with developers who you know are using custom action bar implementations.


To be clear, I'm not referring to custom-styled action bars with branded colors and what not—that's totally fine. I'm specifically referring to custom implementations that mimic the real APIs on newer OS versions instead of proxying to those APIs directly.

On a side note, it's really time to deprecate our ActionBarCompat sample (sorry for writing that!)

Post has shared content
good tip,though never use this before.
Android Pro Tip! Suppose you have a TextView showing something like this:

"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed augue a."

Depending on the screen size, the text might wrap. And it might wrap near the end, leaving a dangling "a." on the last line. 

You could test on a bunch of screens and tweak the font size to avoid wrapping. But that's not foolproof, not to mention being tedious. You'll also be bit as soon as you translate to another language. French, for example, leaves a space before sentences ending in a question mark. You certainly don't want that question mark to wrap to the next line.

How do you fix this? Use non-breaking spaces! Just insert a few non-breaking spaces between the last few words:

"....Vestibulum sed\u00a0augue\u00a0a."

If the text fits on one line, no problem. If it wraps, then the last few words will wrap, avoiding the "dangling short word" bug.

Post has shared content
The Current State Of Remote Debugging For Mobile

Remote debugging allows us to execute and capture code in remote devices, providing a way to inspect HTML, CSS and JavaScript and make live changes. In terms of mobile, this means a way for us to communicate with mobile devices so we can debug code on them directly rather than just relying on emulators.

The landscape for remote debugging your apps on mobile is quite strong at the moment.

Chrome for Android supports remote debugging via USB and allows you to debug using the Chrome Developer Tools. (See: and Chrome for Android Remote Debugging for +Boris Smus's video walkthrough)

Opera has had support for remote debugging since 2008 and Dragonfly can remotely connect to Opera Mobile. (Tut:

Firefox for Android has had support for remote debugging since July and introduced support for this in Firefox 15. (Tut:

Safari on iOS6 includes an official Remote Web Inspector which will work with Macs. You'll have to use Safari 6 for Desktop to get it working, but there's a good tutorial available on this as well

There are also tons of great apps that can help with remote debugging, such as +Remy Sharp's or Weinre.

For a run-down on remote debugging and some more of your options, you might like to checkout Ryan Seddons excellent talk on the subject

Animated GIF credits: Marcio Massaki 
Wait while more posts are being loaded