Skip to main content

Home/ Android Dev/ [Tip][Google I/O 2011]Apply A/B testing to your Android App
Vincent Tsao

[Tip][Google I/O 2011]Apply A/B testing to your Android App - 5 views

android tip

started by Vincent Tsao on 12 May 11
  • Vincent Tsao
     
    private static final boolean isA = UUID.randomUUID().getLeastSignificantBits() % 2 == 0;

    public void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);

    if(isA){
    setContentView(R.layout.mainA);
    MyApp.getInstance().tracker().trackPageView("/AUser");
    }else{
    setContentView(R.layout.mainB);
    MyApp.getInstance().tracker().trackPageView("/BUser");
    }

    ...
    }

To Top

Start a New Topic » « Back to the Android Dev group