Git Product home page Git Product logo

flint's Introduction

#Flint

##Work In Progress

Android common intents with fluent interface.

Done:

  • Create an alarm
  • Create a timer
  • Swow all alarms
  • Add a calendar event

To do:

  • Capture a picture or video
  • Start a camera app in still image mode
  • Start a camera app in video mode
  • Select a contact
  • Select specific contact data
  • View a contact
  • Edit an existing contact
  • Insert a contact
  • Compose an email with optional attachments
  • Retrieve a specific type of file
  • Open a specific type of file
  • Call a car
  • Show a location on a map
  • Play a media file
  • Play music based on a search query
  • Create a note
  • Initiate a phone call
  • Search using a specific app
  • Perform a web search
  • Open a specific section of Settings
  • Compose an SMS/MMS message with attachment
  • Load a web URL

##Example

 Flint.alarm(hour).minutes(minutes).days(Calendar.MONDAY).silent().start(activity);
 
 instead of:
 
 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM);
 intent.putExtra(AlarmClock.EXTRA_HOUR, hour);
 intent.putExtra(AlarmClock.EXTRA_MINUTES, minutes);
 ArrayList<Intent> days = new ArrayList<>(1);
 days.add(Calendar.MONDAY);
 intent.putExtra(AlarmClock.EXTRA_DAYS, days);
 intent.putExtra(AlarmClock.EXTRA_RINGTONE, AlarmClock.VALUE_RINGTONE_SILENT);
 startActivity(intent);

##Documentation

Javadoc is not currently available, please use tests to see examples.

flint's People

Contributors

dcampogiani avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

flint's Issues

Run multiple tests with Espresso and Espresso Intents

I'm using Espresso and Espresso Intents to write tests and verify outgoing intents.

The problem is that when an Intent is launched an other application is opened and following tests will fail since the MainActivity is not active anymore.

How can I setup expresso to relaunch the activity for each @test?

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.