The Best Looking Survey Library for Android
Switch branches/tags
Nothing to show
Clone or download
Latest commit e02efd8 Nov 28, 2016
Failed to load latest commit information.
app Initial commit Nov 8, 2015
surveylib disable swiping between survey steps Oct 13, 2016
.gitignore Initial commit Nov 8, 2015 Update Nov 28, 2016
build.gradle Initial commit Nov 8, 2015 Initial commit Nov 8, 2015
gradlew Initial commit Nov 8, 2015
gradlew.bat Initial commit Nov 8, 2015
settings.gradle Initial commit Nov 8, 2015

Android Survey

Android Arsenal

Special thanks to for his contribution.

A simple to use, survey library for collecting feedback from your users.

alt text


compile 'com.androidadvance.surveylib:surveylib:0.0.1'

How to use it:

  1. Take a look at the example project
Step 1:

You will need: A json file with the questions. Check the assets folder to see 3 examples.

Step 2:

Call the class SurveyActivity and pass as an extra the json string.

        private static final int SURVEY_REQUEST = 1337;
        a_button.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Intent i_survey = new Intent(MainActivity.this, SurveyActivity.class);
                i_survey.putExtra("json_survey", loadSurveyJson("example_survey_1.json"));
                startActivityForResult(i_survey, SURVEY_REQUEST);

What is loadSurveyJson ? check this function.

Step 3:

The activity is started with a request code.

    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        if (requestCode == SURVEY_REQUEST) {
            if (resultCode == RESULT_OK) {

                String answers_json = data.getExtras().getString("answers");
                Log.d("****", "****************** WE HAVE ANSWERS ******************");
                Log.v("ANSWERS JSON", answers_json);
                Log.d("****", "*****************************************************");

                //do whatever you want with them...
Last step:

Add this activity to your manifest file.

<activity android:name="com.androidadvance.androidsurvey.SurveyActivity"
The Json format of the Questions.

You have couple of question types: String, StringMultiline, Number, Radioboxes, Checkboxes. They can be "required" or not, the choices can be random. Check the examples, everything is simple to use.


Use html codes in your json question title, choices. You can see a compiled list here

Define your material design colors in the style.

Not enough ? You have to do it yourself. Simplest way is to Fork this project and style, add, modify who you like.

More question types / Other Stuff

Fork this project


  1. Make sure you have the latest shit. At this moment: compileSdkVersion 23, targetSdkVersion 23, buildToolsVersion "23.0.1", compile '', compile '' etc.
  2. Feed a valid json! Otherwise you'll get errors.
  3. Check the sample project.

Updates, Questions, and Requests

Ping me here :)


  • Offline mode storage.
  • Sync with server example.
  • Adding a sliding bar / stars question type
  • Waiting for your suggestions

You like this library ? Check my other projects.

If you use this library, please star this project.


Copyright 2015

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.