Android Survey SDK
Android Library for survey which enables you to integrate feedback into Android app using few lines of code.
Find Github Project: QwarySurveyAndroid
Example
Create a QwarySurvey Builder Object
Survey builder = new Survey.Builder()Then set the fields you want.
new Survey.Builder()
.setActivity(this)
.setDomain("domain_url")
.setToken("survey_token")
.setLoader(true) //For loading bar visibility
.setModal(false) //For full and half view
.setStartAfter(TimeUnit.MINUTES.toMillis(1L)) //To start survey after 1 minute
.prepare();To add query params like this.
new Survey.Builder()
.setActivity(this)
.setDomain("domain_url")
.setToken("survey_token")
.setParam("email", "[email protected]")
.setParam("planId", "plan1")
.showNow();You can prepare the schedule survey to start after HOURS or DAYS
.setStartAfter(TimeUnit.HOURS.toMillis(1L)) //To start after 1 hour
.setStartAfter(TimeUnit.DAYS.toMillis(1L)) //To start after 1 dayTo show the the survey at once without any delay
new Survey.Builder()
.setActivity(this)
.setDomain("domain_url")
.setToken("survey_token")
.showNow();To remove the specific survey from schedule
new Survey.Builder().setActivity(this).clear("token");Add below into app gradle
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}Last updated
Was this helpful?