Code example for Bundle

Methods: getIntgetStringArrayList

0
 
    @Override 
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
 
        mTestsList = savedInstanceState.getStringArrayList("testsList");
        mTotalTestCount = savedInstanceState.getInt("totalCount");
    } 
 
    /** 
     * (Re)starts the executer activity from the given test number (inclusive, 0-based). 
     * This number is an index in mTestsList, not the sublist passed in the intent. 
     * 
     * @param startFrom 
     *      test index in mTestsList to start the tests from (inclusive, 0-based) 
     */ 
    private void restartExecutor(int startFrom) {
        Intent intent = new Intent();
        intent.setClass(this, LayoutTestsExecutor.class);
        intent.setAction(Intent.ACTION_RUN);
Contextual code suggestions in your IDE  Get Codota for Java