Code example for SparseArray

0
        private static final String VIDEOS = "videos";
        private static final String BAR_CHART_DATA = "bar_chart_data";
    } 
     
    private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
    private static SparseArray<SQLTable> sUriMatchToSQLTableMap = new SparseArray<SQLTable>();
    private int URI_MATCH = 0;
     
    @Override 
    public synchronized boolean onCreate() { 
        registerTable(Paths.CLICK_GROUPS, StatsClickGroupsTable.getInstance());
        registerTable(Paths.CLICKS, StatsClicksTable.getInstance());
        registerTable(Paths.GEOVIEWS, StatsGeoviewsTable.getInstance());
        registerTable(Paths.MOST_COMMENTED, StatsMostCommentedTable.getInstance());
        registerTable(Paths.REFERRER_GROUPS, StatsReferrerGroupsTable.getInstance());
        registerTable(Paths.REFERRERS, StatsReferrersTable.getInstance());
        registerTable(Paths.SEARCH_ENGINE_TERMS, StatsSearchEngineTermsTable.getInstance());
        registerTable(Paths.TAGS_AND_CATEGORIES, StatsTagsAndCategoriesTable.getInstance());
        registerTable(Paths.TOP_AUTHORS, StatsTopAuthorsTable.getInstance());
        registerTable(Paths.TOP_COMMENTERS, StatsTopCommentersTable.getInstance());
        registerTable(Paths.TOP_POSTS_AND_PAGES, StatsTopPostsAndPagesTable.getInstance());