From e0174c9dad62730d0352efd4caf73cc43c8b680e Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 14 Jul 2016 11:46:26 -0700 Subject: [PATCH] Update hello_services for an engine API change (#4919) --- .../src/main/java/com/example/flutter/ExampleActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java b/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java index 9badd2804e6..6f6a29de999 100644 --- a/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java +++ b/examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java @@ -16,7 +16,6 @@ import android.view.View; import android.widget.Button; import android.widget.TextView; -import org.chromium.base.PathUtils; import org.domokit.activity.ActivityImpl; import io.flutter.view.FlutterMain; import io.flutter.view.FlutterView; @@ -38,8 +37,7 @@ public class ExampleActivity extends Activity { setContentView(R.layout.hello_services_layout); flutterView = (FlutterView) findViewById(R.id.flutter_view); - File appBundle = new File(PathUtils.getDataDirectory(this), FlutterMain.APP_BUNDLE); - flutterView.runFromBundle(appBundle.getPath(), null); + flutterView.runFromBundle(FlutterMain.findAppBundlePath(getApplicationContext()), null); flutterView.addOnMessageListener("getLocation", new FlutterView.OnMessageListener() {