Code Monkey home page Code Monkey logo

rambooster's Introduction

RAMBooster

Android RAMBooster

Setup is easy:

  • put this permissions into manifest:

<uses-permission android:name="android.permission.GET_PACKAGE_SIZE" />

<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />

  • add this service into application tag in manifest:

<service android:name="com.ram.speed.booster.services.LightService" />

  • add this line into your dependencies for Gradle:
dependencies {
       compile 'com.github.obolsh:rambooster:1.0.2@aar'
}

or this for Maven:

<dependency>
  <groupId>com.github.obolsh</groupId>
  <artifactId>rambooster</artifactId>
  <version>1.0.2</version>
  <type>aar</type>
</dependency>
  • rebuild your project

USAGE

Now you are able to launch RAM Booster. Add this lines into your code:

  • Create RAM Booster instance:

RAMBooster booster = new RAMBooster(context);

  • setup scan listener:
booster.setScanListener(new ScanListener() {
@Override
public void onStarted() {}
@Override
public void onFinished(long availableRam, long totalRam, List<ProcessInfo> appsToClean) {}
});
  • setup clean listener:
booster.setCleanListener(new CleanListener() {
@Override
public void onStarted() {}
@Override
public void onFinished(long availableRam, long totalRam) {}
});
  • start scanning, set true if apps marked as system have to be also cleaned:

booster.startScan(true);

  • launch clean after scanning completed:

booster.startClean();

  • enable log if you need to:

booster.setDebug(true);

RAMBooster supports API LEVEL 8+

Copyright and Licensing

This library is distributed under an Apache 2.0 License.

rambooster's People

Contributors

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