title: Android Create Sip Account Programmatically
body: <p>In my application I want to have one Activity that enables user to add his SIP account parameters in fields.
  I don't want them to go Settings->Call->Internet Call Settings->Add Accounts->Add</p>
  
  <p>I have created account with activity with the following code: </p>
  
  <pre><code>SipManager mSipManager = null;
  
      if(mSipManager == null) {
          mSipManager = SipManager.newInstance(this);
      }
  
      android.provider.Settings.System.putInt(context.getContentResolver(), android.provider.Settings.System.s , 0)
      SipProfile mSipProfile = null;
      SipManager manager = SipManager.newInstance(getBaseContext());
  
      SipProfile.Builder builder;
      try {
          builder = new SipProfile.Builder("XXXXX", "sip.linphone.org");
          builder.setPassword("XXX");
          mSipProfile = builder.build();
          manager.open(mSipProfile);
          //manager.register(mSipProfile, 30, MyActivity.this);
      } catch (Exception e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  </code></pre>
  
  <p>But the account is bound to the application, and when I delete app, it deletes the account. I want it to be independent of the application.</p>