Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

routerSDK

> 编程语言
Open source

A mini and excellent Router Framwork一款小而美的路由框架。网页动态添加自定义参数启动应用。 https://github.com/Jomes/routerSDK

385 stars0 likes1 views
WebsiteGitHub

About

#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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidandroid-libraryroutersdk

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

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