Profile

Cover photo
Mark Hwang
Lives in Shanghai, China
84 followers|189,658 views
AboutPostsPhotosVideos

Stream

Mark Hwang

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

Mark Hwang

Discussion  - 
 
hi,
I exported gradle build files from latest ADT Bundle,then imported it to Android Studio.But so many errors occurred.Any idea will be appreciated. 
1
Mark Hwang's profile photoDinh Linh (JL)'s profile photo
7 comments
 
Sorry Hwang, I missed your post. But that is all I can say. May be you can reinstall you Android studio and reload your project. Hope this help.
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 comment on original post
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.
10 comments on original post
1
Add a comment...
Have him in circles
84 people
Wolfram Rittmeyer's profile photo
Matt McNeill's profile photo
许本亮's profile photo
Queen Of The Scene's profile photo
黄兴丽's profile photo
Tribal Toronto's profile photo
Ricardo Alves's profile photo
G+ Achievement Unlocked's profile photo
Jackuline Prisilla'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

Discussion  - 
 
hi,
I'm using Square Picasso library.How should I config picasso lib in the Android Studio.Any idea?
1
David Kunzler's profile photoMark Hwang's profile photoChristoph Engelbert's profile photo
12 comments
 
So you finally made it?
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  - 
 
 
#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!)
36 comments on original post
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 
13 comments on original post
1
Add a comment...
People
Have him in circles
84 people
Wolfram Rittmeyer's profile photo
Matt McNeill's profile photo
许本亮's profile photo
Queen Of The Scene's profile photo
黄兴丽's profile photo
Tribal Toronto's profile photo
Ricardo Alves's profile photo
G+ Achievement Unlocked's profile photo
Jackuline Prisilla's profile photo
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
Work
Skills
Android Dev
Basic Information
Gender
Male
Apps with Google+ Sign-in