Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
c35de2ad
Commit
c35de2ad
authored
Sep 04, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default activity
parent
901a96e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
android/src/main/AndroidManifest.xml
android/src/main/AndroidManifest.xml
+5
-0
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterDefaultActivity.java
.../flutterboost/containers/BoostFlutterDefaultActivity.java
+36
-0
No files found.
android/src/main/AndroidManifest.xml
View file @
c35de2ad
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.idlefish.flutterboost"
>
<application>
<activity
android:name=
"com.idlefish.flutterboost.containers.BoostFlutterDefaultActivity"
/>
</application>
</manifest>
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterDefaultActivity.java
0 → 100644
View file @
c35de2ad
package
com.idlefish.flutterboost.containers
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
BoostFlutterDefaultActivity
extends
BoostFlutterActivity
{
@Override
public
String
getContainerUrl
()
{
return
getIntent
().
getStringExtra
(
"url"
);
}
@Override
public
Map
getContainerUrlParams
()
{
return
(
Map
)(
getIntent
().
getSerializableExtra
(
"params"
));
}
private
static
Intent
intent
(
Context
context
,
String
url
,
HashMap
<
String
,
Object
>
params
)
{
final
Intent
intent
=
new
Intent
(
context
,
BoostFlutterDefaultActivity
.
class
);
intent
.
putExtra
(
"url"
,
url
);
intent
.
putExtra
(
"params"
,
params
);
return
intent
;
}
public
static
void
open
(
Context
context
,
String
url
,
HashMap
<
String
,
Object
>
params
)
{
context
.
startActivity
(
intent
(
context
,
url
,
params
));
}
public
static
void
open
(
Activity
activity
,
String
url
,
HashMap
<
String
,
Object
>
params
,
int
requestCode
)
{
activity
.
startActivityForResult
(
intent
(
activity
,
url
,
params
),
requestCode
);
}
}
\ No newline at end of file
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