Coder Social home page Coder Social 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

NOTE: This library is now available on maven central (v0.7.0 or above), if you are updating from previous versions, remove the github repository block from pom.xml or build.gradle

You can install this plugin manually or use maven/gradle to apply the plugin to your project.

Android Studio/Gradle

Add the follow code to your build.gradle

	dependencies {
		// other dependencies.
	    compile "com.oneskyapp:screenshot:0.7.7"
	}

Remote Maven Repository

Add the follow code to your pom.xml

	<dependencies>
		<dependency>
			<groupId>com.oneskyapp</groupId>
			<artifactId>screenshot</artifactId>
			<version>0.7.7</version>
        </dependency>
	</dependencies>

Download .jar file to libs folder

  1. Download OneSkyScreenshotHelper-v0.7.7.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-v0.7.7.jar")
	}

Integration

<?xml version="1.0" encoding="utf-8"?>
<manifest>
	<!-- Internet permission for uploading screenshots to OneSky server -->
	<uses-permission android:name="android.permission.INTERNET"/>

	<application>
		<!-- declare service for screenshot button -->
		<service android:name="com.oneskyapp.screenshot.ScreenshotButtonService" />
	</application>

</manifest>

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");

// Auto loading string resources is now removed to support Android Studio 2.0 Instant Run
// so you will need to manually specify the resource classes that contain the identifiers
OneSkyScreenshotHelper.getHelper().startCapturing(this, R.string.class, R.array.class);
// 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);

Turn on/off debug messages in your logs.

OneSkyScreenshotHelper.getHelper().setDebug(true);

Support

http://support.oneskyapp.com/

auto-screenshot-android's People

Contributors

bretdabaker avatar gregatonesky avatar loking 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.