Code example for SipProfile

Methods: getUri, getUriString

0
        return null; 
    } 
 
    private void addPreferenceFor(SipProfile p) {
        String status;
        Log.v(TAG, "addPreferenceFor profile uri" + p.getUri());
        SipPreference pref = new SipPreference(this, p);
        mSipPreferenceMap.put(p.getUriString(), pref);
        mSipListContainer.addPreference(pref);
 
        pref.setOnPreferenceClickListener(
                new Preference.OnPreferenceClickListener() {
                    public boolean onPreferenceClick(Preference pref) {
                        handleProfileClick(((SipPreference) pref).mProfile);
                        return true; 
                    } 
                }); 
    } 
 
    private void handleProfileClick(final SipProfile profile) {
        int uid = profile.getCallingUid();