Skip to content

Getting started

Sergey Korney edited this page Mar 20, 2017 · 3 revisions

Let’s get started with QRCP. The first thing you need to do, if you haven’t already done so, is download the QRCP library.

Installing with Gradle

Modify your build.gradle to include:

repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
}

compile 'com.github.skornei:qrcp:1.0.0+'

Configuring Your Project

Create classes for table. Don’t worry though, this part is easy.

@ResolverEntity("content://ru.quickresto.test/Test")
public class TestEntity { 
    @ResolverField("name")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

and call Mapper

List<TestEntity> list = Mapper.queryAll(TestEntity.class);

Clone this wiki locally