Code Monkey home page Code Monkey logo

libmots's Introduction

libmots
-------

libmots library allows you to display additional debug information on
the screen. It is very useful when you cannot keep active adb
connection, e.g. while debugging application that changes USB states. libmots
library has an advantage over toasts - history is available. This can be very
useful for longer scenarios. You can start logging at any time you want and
clear already collected messages.

You can find screenshots presenting use of 'Hello libmots' application
inside this directory: tests/monkeyrunner-tests/reference-screenshots

USAGE
-----

To start, you need to add libmots library to your project and add this
line to your main project.properties file:

	manifestmerger.enabled=true

This is simplest part you need to add to your source code:

	...
	import net.wiktorlawski.messageonthescreen.MessageOnTheScreen;
	...
	MessageOnTheScreen mots =
		MessageOnTheScreen.getInstance(activity, false);
	mots.setText(activity, "Hello libmots!");

SAMPLES & TESTS
---------------

Library comes with both sample application (samples/ directory) and tests
(tests/ directory). monkeyrunner tests use emulator which you can prepare
running this command:

	android create avd -n android-1.6 -t android-4

(without creation of custom hardware profile).

To run monkeyrunner tests, just start run-tests.bat from
tests/monkeyrunner-tests directory.

LICENSE
-------

The MIT License (MIT)

libmots's People

Contributors

durajp avatar wlawski avatar

Watchers

 avatar  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.