Giter Site home page Giter Site logo

auto-screenshot-android's Introduction

OneSky Auto Screenshot Library for Android

This library helps you easily upload screenshots of your app that contains localizable strings to your OneSky project.

NOTE: This library is not designed for distribution on Google Play Store so remember to remove before submission.

Installation

1) Download .jar file libs folder

  1. Locate OneSkyScreenshotHelper-vX.X.X.jar in the release tab in this GitHub page and drag it into the libs folder of your project.
  2. On Eclipse you are good to go.
  3. On Android Studio, locate the build.gradle file under your app's module and add the following:
	dependencies {
		compile files("OneSkyScreenshotHelper-vX.X.X.jar")
	}

2) Remote Maven Repository

Add the follow code to your pom.xml

	<dependencies>
		<dependency>
			<groupId>com.oneskyapp</groupId>
			<artifactId>screenshot</artifactId>
			<version>0.5.1</version>
        </dependency>
	</dependencies>
	
	<repositories>
		<repository>
		    <id>screenshot</id>
			<name>OneSkyScreenshotHelper</name>
			<url>https://raw.github.com/onesky/auto-screenshot-android/mvn-repo/</url>
		</repository>
	</repositories>	

3) Android Studio/Gradle

Add the follow code to your build.gradle

	repositories {
		// mavenCentral()
    	maven {
        	url "https://raw.github.com/onesky/auto-screenshot-android/mvn-repo/"
    	}
	}
	
	dependencies {
		// other dependencies.
	    compile "com.oneskyapp:screenshot:0.5.1"
	}

Integration

In your Application or main Activity subclass file, import the library:

import com.oneskyapp.screenshot.OneSkyScreenshotHelper;

Add the following code in under onCreate():

OneSkyScreenshotHelper.getHelper().setApiKey("ONESKY_API_KEY");
OneSkyScreenshotHelper.getHelper().setApiSecret("ONESKY_API_SECRET");
OneSkyScreenshotHelper.getHelper().setProjectId("ONESKY_PROJECT_ID");
	
OneSkyScreenshotHelper.getHelper().startCapturing(this); // for Activity subclasses, use startCapturing(this.getApplication())

ONESKY_API_KEY, ONESKY_API_SECRET can be found in Site Settings under API Keys & Usage on OneSky Web Admin. ONESKY_PROJECT_ID can be found under All Projects page.

NOTE: The above parameters must be set before calling startCapturing().

Advance Settings

Turn off capture status Toast updates.

OneSkyScreenshotHelper.getHelper().setShowsCaptureStatus(false);

The default position of the screenshot button is bottom right of the main window, you can adjust using Gravity.

OneSkyScreenshotHelper.getHelper().setCatpureButtonGravity(Gravity.TOP | Gravity.LEFT);

Support

http://support.oneskyapp.com/

auto-screenshot-android's People

Contributors

bretdabaker avatar gregatonesky avatar

Watchers

James Cloos 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.