Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added common AsyncTask hack.

  • Loading branch information...
commit 6958c2e59d43506ca50bcbd37bfe0b37a7b70a65 1 parent e56d60a
@yanchenko authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 base/src/org/droidparts/Application.java
View
11 base/src/org/droidparts/Application.java
@@ -25,6 +25,8 @@ public void onCreate() {
Injector inj = Injector.get();
inj.setUp(this);
inj.inject(this, this);
+ //
+ asyncTaskHack();
}
@Override
@@ -33,4 +35,13 @@ public void onTerminate() {
Injector.get().tearDown();
}
+ // http://code.google.com/p/android/issues/detail?id=20915
+ private void asyncTaskHack() {
+ try {
+ Class.forName("android.os.AsyncTask");
+ } catch (ClassNotFoundException e) {
+ // pass
+ }
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.