Android Open Source - GADemoGTM Fact Book






From Project

Back to project page GADemoGTM.

License

The source code is released under:

GNU General Public License

If you think the Android project GADemoGTM listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.pdro.gademogtm.tools;
//  w w  w  .  j  ava2 s . c  om
import java.util.Random;

public class FactBook {

    // Member variable (properties about the object)
    public String[] mFacts = {
            "Google Analytics is the most popular Web Analytics tool in the world.",
            "Google Analytics doesn't share personally identifiable information.",
            "There are currently 220 Google Analytics Certified Partners around the world.",
            "Google Analytics is fluent in 40 languages.",
            "Google Analytics was originally based on Urchin on Demand.",
            "Google Analytics will blow your mind."
    };

    public String getFact() {

        String fact = "";

        // Randomly select a fact
        Random randomGenerator = new Random();  // Construct a new Random number generator
        int randomNumber = randomGenerator.nextInt(mFacts.length);

        fact = mFacts[randomNumber];

        return fact;
    }
}




Java Source Code List

com.pdro.gademogtm.MainActivity.java
com.pdro.gademogtm.MessageActivity.java
com.pdro.gademogtm.SplashScreen.java
com.pdro.gademogtm.gtm.ContainerHolderSingleton.java
com.pdro.gademogtm.gtm.Utils.java
com.pdro.gademogtm.tools.ColorWheel.java
com.pdro.gademogtm.tools.FactBook.java