Profile

Cover photo
Mark Hwang
Lives in Shanghai, China
87 followers|223,486 views
AboutPostsPhotosVideos

Stream

Mark Hwang

Shared publicly  - 
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
 
Some technical details on a cool sample app I worked on recently.   #AndroidDev  
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
 
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.
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
 
#AndroidDev  

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!)
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
cool!
 
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: https://developers.google.com/chrome/mobile/docs/debugging 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: http://www.codegeek.net/blog/2012/mobile-debugging-with-opera-dragonfly/)

Firefox for Android has had support for remote debugging since July and introduced support for this in Firefox 15. (Tut: https://hacks.mozilla.org/2012/08/remote-debugging-on-firefox-for-android/)

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 http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers.

There are also tons of great apps that can help with remote debugging, such as +Remy Sharp's  jsconsole.com 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 http://thecssninja.com/talks/remote_debugging/

Animated GIF credits: Marcio Massaki 
1
Add a comment...
Have him in circles
87 people
Chansuk Yang (Huewu)'s profile photo
Jose J Lemus's profile photo
Miami & South Florida Events's profile photo
Wenhai Ji's profile photo
Andrew Baron's profile photo
Sun Jesse's profile photo
Max Sperando's profile photo
Potato Corner's profile photo
Melissa Hamilton's profile photo

Mark Hwang

Shared publicly  - 
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
Android Dev People I'm circling.
65
In this Circle:
Add people
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
I played #breakout on Google Image Search! I made it to level 1 in Image Breakout! Can you beat my score of 325?
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
34
In this Circle:
Add people
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
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.
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
 
相信有些朋友和我一样在机器上装了Linux和Windows双系统,由于尚未完全转到Linux平台,很多工作仍需在Windows下完成,但是每次系统菜单的选项默认都为Linux,同时每次更新Linux内核以后,就会在启动菜单中添加新的内核选项,很是烦人。上网搜了一下,发现更改启动菜单不是很难,总结如下,希望能给需要的人一些帮助。

我的Linux发行版是Ubuntu 10.04。

首先进入Ubuntu,运行Application——>Terminal,输入命令:

1
sudo gedit /boot/grub/grub.cfg
输入密码后回车,打开grub的配置文件。

找到“### BEGIN /etc/grub.d/10_linux ###”这一行,下面的字符就是启动菜单显示的内容。从“menuentry”开始,到大括号“}”结束,每块都代表了启动菜单的一行,这里我把旧内核相关的部分(例如Ubuntu, with Linux 2.6.32-23-generic等)都删去,只保留当前内核版本的条目。这样,现在我的启动菜单应该有四个条目,分别是:

Ubuntu, with Linux 2.6.32-24-generic

Ubuntu, with Linux 2.6.32-24-generic (recovery mode)

Memory test (memtest86+)

Memory test (memtest86+, serial console)

Windows 7 (loader)

为了默认选中Windows条目,找到grub.cfg该文件一开始的这一行文字:

set default=”0″

这里将0改为4即可,4即代表了第5个条目(了解数组下标的应该很容易理解)。

至此,完成菜单精简和调整默认条目的工作。最后,Ctrl+S,Exit即可。

http://blog.hesey.net/2010/07/modify-boot-menu-of-grub.html
 ·  Translate
相信有些朋友和我一样在机器上装了Linux和Windows双系统,由于尚未完全转到Linux平台,很多工作仍需在Windows下完成,但是每次系统菜单的选项默认都为Linux,同时每次更新Linux内核以后,就会在启动菜单中添加新的内核选项,很是烦人。上网搜了一下,发现更改启动菜单不是很难,总结如下,希望能给需要的人一些帮助。
1
Add a comment...

Mark Hwang

Shared publicly  - 
 
 
#AndroidDev  

About those prototyping stencils for Pencil … In late 2010, I published a set of Android stencils for the Pencil UI prototyping tool (http://pencil.evolus.vn). Unfortunately, I haven't really kept them up to date, since creating rich stencils for Pencil requires a bit of work. Fortunately, we now have official Android 4.0 stencils for Photoshop/Fireworks/OmniGraffle available at http://developer.android.com/design/downloads.

But Pencil is free and open source, and lots of developers prefer it to the other tools… what about those users? Well, good news, everyone+José Miguel Sanz just mentioned that the Pencil team has published their own set of Android 4.0 stencils!

I took the set for a test drive and while they aren't quite 100% complete and still have a few legacy Gingerbread-style widgets, they're very useful for rough prototyping. Example screenshot attached.

If you're an avid Pencil user and Android developer or designer, this may be the right starter set for you. Download it now at Pencil's own site: http://pencil.evolus.vn/en-US/Downloads/Stencils.aspx.

Oh and while we're on the subject of UI prototyping, you may want to also check out http://www.uistencils.com/products/android-stencil-kit for a physical stencil kit, or Fluid UI (http://www.androiduipatterns.com/2012/07/fluid-ui-wireframing-for-android.html) for another interesting software tool (h/t +Juhani Lehtimäki)
1
Add a comment...
People
Have him in circles
87 people
Chansuk Yang (Huewu)'s profile photo
Jose J Lemus's profile photo
Miami & South Florida Events's profile photo
Wenhai Ji's profile photo
Andrew Baron's profile photo
Sun Jesse's profile photo
Max Sperando's profile photo
Potato Corner's profile photo
Melissa Hamilton's profile photo
Collections Mark is following
View all
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • AutoVoice
Work
Skills
Android Dev
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Shanghai, China
Links
YouTube
Contributor to