Skip to content

Instantly share code, notes, and snippets.

View jack-chu's full-sized avatar

Zac jack-chu

  • Unemployed
  • Shanghai,China
View GitHub Profile
@jack-chu
jack-chu / ExampleStaticHandler.java
Created March 15, 2016 09:42 — forked from yeoupooh/ExampleStaticHandler.java
Avoiding "This Handler class should be static or leaks might occur".
// This is OLD way of usnig Handler which shows an warning.
private Handler oldHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// Handle a message as you want.
}
}