Code example for ViewGroup

Methods: getContext

0
     * @return The tab indicator View. 
     */ 
    public static View createTabIndicatorView(ViewGroup parent, ContactsSource source) {
        Drawable icon = null;
        if (source != null) {
            icon = source.getDisplayIcon(parent.getContext());
        } 
        return createTabIndicatorView(parent, null, icon);
    } 
 
    /** 
     * Kick off an intent to initiate a call. 
     * 
     * @param phoneNumber must not be null. 
     * @throws NullPointerException when the given argument is null. 
     */ 
    public static void initiateCall(Context context, CharSequence phoneNumber) {
        Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
                Uri.fromParts("tel", phoneNumber.toString(), null));
        context.startActivity(intent);
    }