Git Product home page Git Product logo

intentstub's Introduction

Android Intent Stub

An app for stubbing out built in Android apps for automated testing.

Set these apps as default for completing tasks that rely on external apps.

Camera & Gallery

These apps immeditaley return an image and repond to the normal camera and choose image requests.

You can also choose an image type to be returned. To choose an image send a broadcast before you request an image:

Intent intent = new Intent("uk.co.ribot.android.intentstub.ImageTypeBroadcastReceiver.IMAGE_TYPE");
intent.putExtra("uk.co.ribot.android.intentstub.IMAGE_TYPE", "uk.co.ribot.android.intentstub.IMAGE_TYPE_COFFEE");
context.sendBroadcast(intent);

For a full list of available image types, see the ImageProvider class. If no image type is requested, clear images of faces are returned.

Note For KitKat

Most KitKat phones include an app that overrides how you choose exiting photos. This means that using the default imager picker intent will not work with Intent Stub.

What you need to do is look for the package name of the KitKat document picker app "com.android.documentsui". If it is found, then inject a custom Intent Stub action into the intent in your app that starts the image picker:

uk.co.ribot.android.intentstub.action.GET_CONTENT

Others

None yet, but pull requests accepted...

intentstub's People

Contributors

jsonfry avatar

Watchers

 avatar

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.