百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

routerSDK

> 编程语言
开源

一个小而美的路由框架。网页动态添加自定义参数启动应用。 https://GitHub.com/Jomes/routerSDK

385 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个小而美的路由框架。网页动态添加自定义参数启动应用。 https://GitHub.com/Jomes/routerSDK

#RouterSDK RouterSDK is an excellent Router Framwork ,it is easy to integrate in your project. You can start an application through the web page by the custom parameters. In addition, it can also provides a number of useful features such as dynamic routing configuration, jump animation, task station, jump pretreatment, etc.

  • 中文文档

Screenshot

Build

Step 1. Add the JitPack repository to your build file

add the JitPack maven to your project in root build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add module dependency build.gradle

 dependencies {
     compile 'com.github.Jomes:routerSDK:v1.0.3-alpha'
 } 

That's it!

How to use

init RouteTable in application

 Router.initRouteTable(new IRouteTableMapping() {
       @Override
       public void operaRouterTable(Map> map) {
           map.put("jomeslu://www", OneActivity.class);
           map.put("jomeslu://loginactivity", LoginActivity.class);
       }
 });

Router Jump page

 Router.build("http://androidblog.cn/index.php/Source").start(MainActivity.this);

Definition Of type

  • Scheme:suggest to define application name which router to use
  • Host: suggest to define page where to go, such activity
  • path : Transfer parameter,customer type
key format {i:ikey} {f:key} {l:key} {d:key} {s:key} {b:key}
type integer float long double string boolean

eg :From A page to B page use url :jomeslu://www?{i:id}=168&{s:jomeslu}=jomeslu

A page

 Router.build("jomeslu://www?{i:id}=168&{s:jomeslu}=jomeslu").setIRouteInterceptor(new IRouteInterceptor() {
        @Override
        public boolean interceptor() {
           Router.build("jomeslu://loginactivity?{i:id}=168&{s:jomeslu}=jomeslu").start(MainActivity.this);
           Toast.makeText(MainActivity.this, "login...", Toast.LENGTH_LONG).show();
            return true;
        }
 }).start(MainActivity.this);;

B Page Receive parameter as normal

  String jomeslu = getIntent().getStringExtra("jomeslu");
  int id = getIntent().getIntExtra("id", -1);

License

  • Apache Version 2.0

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaandroidandroid-libraryroutersdk

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言