Comments (6)
@mzule 同问
调用的方式和之前一样,但是,
问题 1. 怎么传入Bundle?
问题 2. 对于有返回值的方法怎么接收 有什么好的建议吗?
另: 调用静态方法 logout()
和 uploadLog()
吐司没有响应
需要将布局文件中的 mzule
修改为 router
?
<TextView
style="@style/Menu"
android:text=" mzule ://upload" />
<TextView
style="@style/Menu"
android:text=" mzule ://logout" />
=>
<TextView
style="@style/Menu"
android:text=" router ://upload" />
<TextView
style="@style/Menu"
android:text=" router ://logout" />
from activityrouter.
@simplehych 对的 需要把mzule改成router 因为在清单文件里RouterActivity的scheme是router
from activityrouter.
谢谢,之前 scheme 写错了,现已被 @simplehych 修复~
from activityrouter.
请问调用静态方法怎么使用,能传值吗?静态方法写成有返回值的该如何接收吗? 代码里好像没有做这方面的处理,只是invoke了该方法,请问 传值进入 或 返回接收 怎么实现,谢谢 @mzule
from activityrouter.
@simplehych 传值通过 scheme 拼接实现,如 router://logout?name=value,然后再在 bundle 里面取值; 返回值不支持。
from activityrouter.
@mzule 好的,谢谢
from activityrouter.
Related Issues (20)
- 不支持activity之间intent透传
- 无法进行复杂数据类型传递,譬如ArrayList等 HOT 2
- ActivityRouter实现原理
- ActivityRouter原理 HOT 2
- ActivityRouter实现原理
- RouterInit NotFound HOT 2
- 当activity为singtask模式时的问题
- 多模块需要主模块依赖其他子模块?
- 是否还会维护? HOT 2
- 是否还会维护
- url address contains “&” HOT 2
- 含有“#”的链接后面拦截问题; HOT 1
- 使用annotationProcessor 这个无法多module跳转
- 可以从自己 app 的 webview 跳到自己的 activity 吗?
- 多地址转换
- RouterInit错误 HOT 3
- url参数搞不定? HOT 1
- 没有搞懂怎么引入 HOT 1
- android x的适配 HOT 1
- 是否支持对象类型的参数传递?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activityrouter.