Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e0174c9d
Commit
e0174c9d
authored
Jul 14, 2016
by
Jason Simmons
Committed by
GitHub
Jul 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update hello_services for an engine API change (#4919)
parent
c14208dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ExampleActivity.java
...pp/src/main/java/com/example/flutter/ExampleActivity.java
+1
-3
No files found.
examples/hello_services/android/app/src/main/java/com/example/flutter/ExampleActivity.java
View file @
e0174c9d
...
@@ -16,7 +16,6 @@ import android.view.View;
...
@@ -16,7 +16,6 @@ import android.view.View;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
org.chromium.base.PathUtils
;
import
org.domokit.activity.ActivityImpl
;
import
org.domokit.activity.ActivityImpl
;
import
io.flutter.view.FlutterMain
;
import
io.flutter.view.FlutterMain
;
import
io.flutter.view.FlutterView
;
import
io.flutter.view.FlutterView
;
...
@@ -38,8 +37,7 @@ public class ExampleActivity extends Activity {
...
@@ -38,8 +37,7 @@ public class ExampleActivity extends Activity {
setContentView
(
R
.
layout
.
hello_services_layout
);
setContentView
(
R
.
layout
.
hello_services_layout
);
flutterView
=
(
FlutterView
)
findViewById
(
R
.
id
.
flutter_view
);
flutterView
=
(
FlutterView
)
findViewById
(
R
.
id
.
flutter_view
);
File
appBundle
=
new
File
(
PathUtils
.
getDataDirectory
(
this
),
FlutterMain
.
APP_BUNDLE
);
flutterView
.
runFromBundle
(
FlutterMain
.
findAppBundlePath
(
getApplicationContext
()),
null
);
flutterView
.
runFromBundle
(
appBundle
.
getPath
(),
null
);
flutterView
.
addOnMessageListener
(
"getLocation"
,
flutterView
.
addOnMessageListener
(
"getLocation"
,
new
FlutterView
.
OnMessageListener
()
{
new
FlutterView
.
OnMessageListener
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment