Code example for ViewGroup

Methods: getChildCount

0
    public Location getCurrentLocation() {
        return currentLocation;
    } 
 
    public int getLocationCount() { 
        return viewGroup.getChildCount();
    } 
 
    // If location is still to be determined, show a "wait for location" dialog 
    @Override 
    protected Dialog onCreateDialog(int id) {
        if (id == R.id.ign_loc_dialog_wait_for_fix) {
            return IgnitedLocationSupport.createWaitForLocationDialog(this);
        } else if (id == R.id.ign_loc_dialog_no_providers_enabled) {
            return IgnitedLocationSupport.createNoProvidersEnabledDialog(this, true).create();
        } 
        return super.onCreateDialog(id);
    } 
}