项目作者: samelody

项目描述 :
Unified APIs for starting Android activities.
高级语言: Java
项目地址: git://github.com/samelody/stara.git
创建时间: 2017-03-03T01:51:00Z
项目社区:https://github.com/samelody/stara

开源协议:Apache License 2.0

下载


Stara

JitPack
Android
Apache
API

Unified APIs for starting activities. We don’t care about the real Activity/Fragment/Context
starts the activities.

DO NOT USE THIS LIBRARY IN PRODUCTION until 1.0.0 is released.

Download

This project is available on JitPack repository.

In your root build.gradle:

  1. allprojects {
  2. repositories {
  3. // ...
  4. maven { url "https://jitpack.io" }
  5. }
  6. }

In your app build.gradle:

  1. dependencies {
  2. compile 'com.github.samelody:stara:0.1.0'
  3. }

Getting started

  1. Intent intent = null; // Creates the intent.
  2. Stara.newStarter(Activity/Fragment/Context).startActivity(intent);

The APIs to start activities:

  1. void startActivity(Intent intent);
  2. void startActivity(Intent intent, Bundle options);
  3. void startActivityForResult(Intent intent, int requestCode);
  4. void startActivityForResult(Intent intent, int requestCode, Bundle options);
  5. void startActivities(Intent... intents);
  6. void startActivities(Intent[] intents, Bundle options);

Dependencies

  1. compile 'com.android.support:support-v4:25.3.0'

Compatibility

  • Android SDK: Requires a minimum API level of 14.

License

  1. Copyright (c) 2017-present Samelody.com
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.