Giter VIP home page Giter VIP logo

rovers-api's Introduction

RoversActionApi

an API for creating Rovers Actions for the Rovers app: http://play.google.com/store/apps/details?id=com.schiztech.rovers.app

This is a simple api that will help you create Rovers Actions and add them to your existing applications, or make stand-alone Rovers Actions within minutes!

Screenshots


How-To Use

#####Gradle:

dependencies {
    compile 'com.schiztech:roversapilibrary:1.0.0'
    //make sure you have jcentral() listed as a repository
}

#####Creator Activity:

  Intent roversActionIntent = RoversActionBuilder.build()
          .setColor() 
          .setIsColorChangeable()
          .setIconResource()
          .setIcon() //icon could be either resource or bitmap.
          .setIsIconChangeable()
          .setLabel()
          .setIntent()//the intent to be launched
          .create();

  setResult(RESULT_OK, roversActionIntent);

#####Manifest:

  <-- Icon & label fields will be used on the 'Add Rover' screen -->
  <activity
      android:name=".CreateActionActivity"
      android:icon="@drawable/ic_action_roveraction"
      android:label="@string/rovers_action_name"
      android:theme="@android:style/Theme.NoDisplay" >
    <!-- Rovers will identify this activity as a Rovers Action creator by the intent-filter -->
    <intent-filter>
        <action android:name="com.schiztech.rovers.action" />
    </intent-filter>
  </activity>

#####Additional meta-data (goes inside the Activity tag):

  <meta-data android:name="description" android:value="description of the rovers action" />
  <meta-data android:name="settings_activity" android:value="optional. settings activity of this rover
                                                  NOTICE: Settings Activity needs android:exported="true"" />
  <meta-data android:name="min_sdk" android:value="optional. integer value" />
  <meta-data android:name="max_sdk" android:value="optional. integer value" />

License

Copyright (C) 2015 Schiztech Studio

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

rovers-api's People

Contributors

doryehuda avatar

Stargazers

 avatar  avatar 王亟亟 avatar Karthikeyan NG avatar DM Abledsoul avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

cherysky

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.