Installation of Android SDK

Installation of Android SDK

The PageSense Android Full Stack SDK lets you run server-side A/B tests and track experiment outcomes directly from your Android application. Once installed, your app can participate in Full Stack experiments and start collecting core analytics data.

This section walks you through installing and setting up the SDK in an Android project.

What this allows you to do  

After completing this setup, you will be able to:

  • Connect your Android app to PageSense

  • Participate in Full Stack A/B experiments

  • Start collecting basic app metrics such as users and sessions

  • Prepare your app for experiment activation and goal tracking

Requirements  

Before you begin, make sure that:

  • You have an Android application set up with Gradle

  • You have access to a PageSense account

  • A mobile app is registered in PageSense and an App ID is generated


Step 1: Add the PageSense Maven Repository  

To download the PageSense SDK, you need to add the PageSense Maven repository to your project.
Depending on your project configuration, do one of the following.

If your project uses settings.gradle  

Add the PageSense repository inside the repositories block:

  1. dependencyResolutionManagement {
  2.     repositories {
  3.         google()
  4.         mavenCentral()
  5.         maven {
  6.             url'https://maven.zohodl.com'        

  7. }
  8.     }
  9. }

If your project uses project-level build.gradle  

Add the following block below the existing configuration in your root build.gradle file:

  1. allprojects {
  2.     repositories {
  3.         maven {
  4.             url 'https://maven.zohodl.com'
  5.         }
  6.     }
  7. }


Step 2: Add the SDK Dependency  

Open the app-level build.gradle file and add the PageSense SDK dependency:

dependencies {
  implementation 'com.zoho.pagesense:pagesense:1.1.0'
}

Step 3: Initialize the SDK  

To ensure the SDK starts tracking as soon as your app launches, initialize PageSense in the onCreate method of your Application class.


KOTLIN
  1. class MyApplication : Application() {
  2.     override fun onCreate() {
  3.         super.onCreate()
  4.         PageSense.init(this, appId)    }
  5. }


JAVA
  1. public class MyApplication extends Application {
  2.     @Override
  3.     public void onCreate() {
  4.         super.onCreate();
  5.        PageSense.init(this, appId)    }
  6. }

Notes
Note: Initializing the SDK inside the Application class ensures it runs once per app lifecycle.


Step 4: Register the Application Class  

Register your custom Application class in the AndroidManifest.xml file:

  1. <application
  2.     android:name=".MyApplication"
  3. ... >


NotesNote: This step is required for the SDK initialization code to run.

What happens after installation  

Once the SDK is installed and initialized:

  • Your app begins collecting basic analytics data such as users and sessions

  • The app is ready to take part in Full Stack experiments

  • You can proceed to activate experiments and track goals


      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG

                                All-in-one knowledge management and training platform for your employees and customers.


                                            Create. Review. Publish.

                                            Write, edit, collaborate on, and publish documents to different content management platforms.

                                            Get Started Now




                                                              You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                  Manage your brands on social media


                                                                    • Desk Community Learning Series


                                                                    • Digest


                                                                    • Functions


                                                                    • Meetups


                                                                    • Kbase


                                                                    • Resources


                                                                    • Glossary


                                                                    • Desk Marketplace


                                                                    • MVP Corner


                                                                    • Word of the Day


                                                                    • Ask the Experts


                                                                      Zoho Sheet Resources

                                                                       

                                                                          Zoho Forms Resources


                                                                            Secure your business
                                                                            communication with Zoho Mail


                                                                            Mail on the move with
                                                                            Zoho Mail mobile application

                                                                              Stay on top of your schedule
                                                                              at all times


                                                                              Carry your calendar with you
                                                                              Anytime, anywhere




                                                                                    Zoho Sign Resources

                                                                                      Sign, Paperless!

                                                                                      Sign and send business documents on the go!

                                                                                      Get Started Now




                                                                                              Zoho TeamInbox Resources





                                                                                                        Zoho DataPrep Demo

                                                                                                        Get a personalized demo or POC

                                                                                                        REGISTER NOW


                                                                                                          Design. Discuss. Deliver.

                                                                                                          Create visually engaging stories with Zoho Show.

                                                                                                          Get Started Now








                                                                                                                              • Related Articles

                                                                                                                              • Initialization of Android Full Stack SDK

                                                                                                                                After installing the PageSense Android Full Stack SDK, the next step is to initialize it with your project configuration. Initialization connects your app to PageSense and loads the Full Stack project settings required to run experiments. In Android, ...
                                                                                                                              • SDK Customization

                                                                                                                                The PageSense Android Full Stack SDK provides customization options that allow you to control how the SDK behaves inside your application. These options help you balance freshness of experiment configuration, logging verbosity, and operational ...
                                                                                                                              • Installation of PHP SDK

                                                                                                                                The PageSense PHP SDK empowers developers to integrate, run, and analyze Full Stack A/B tests directly from their PHP applications. It offers a simple, secure, and reliable way to connect your PHP applications to the PageSense’s experimentation ...
                                                                                                                              • Activate Experiment

                                                                                                                                The Activate Experiment step evaluates whether a user qualifies for a Full Stack A/B test and assigns a variation accordingly. This is the point where your application decides which experience a user should see. The experiment activation logic runs ...
                                                                                                                              • Get Variation Name

                                                                                                                                The Get Variation Name API allows you to retrieve the variation assigned to a user for a specific Full Stack A/B experiment without re-evaluating or re-activating the experiment. This is useful when you want to: Fetch the already assigned variation ...
                                                                                                                                Wherever you are is as good as
                                                                                                                                your workplace

                                                                                                                                  Resources

                                                                                                                                  Videos

                                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                  eBooks

                                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                  Webinars

                                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                  CRM Tips

                                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                                    Zoho Show Resources