title: Cannot get sent sms (text messages) from device
body: <p>I would like to get all the <strong>sent</strong> sms <strong>(text messages) from a device.</strong>
  I can get all of them from the inbox with:</p>
  
  <pre><code>public List&lt;SMS&gt; getAllInboxSMS(Context ctx) {
  
      List&lt;SMS&gt; inboxSMSList = new ArrayList&lt;&gt;();
  
      try {
  
          Uri uriSms = Uri.parse("content://sms/inbox");
          Cursor c = ctx.getContentResolver().query(uriSms, new String[]{"_id", "thread_id", "address", "person", "date", "body"}, "read=0", null, null);
  
          if (c != null &amp;&amp; c.moveToFirst()) {
              do {
                  inboxSMSList.add(new SMS(c));
              } while (c.moveToNext());
          }
  
      } catch (Exception e) {
          Log.e("getAllInboxSMS", e.toString());
      }
  
      Log.i("inbox", "size: " + inboxSMSList.size());
      Log.i("inbox", inboxSMSList.toString());
  
      return inboxSMSList;
  }
  </code></pre>
  
  <p><strong>However</strong> if I modify </p>
  
  <blockquote>
    <p>Uri.parse("content://sms/inbox");</p>
  </blockquote>
  
  <p><strong>to</strong></p>
  
  <blockquote>
    <p>Uri.parse("content://sms/sent");</p>
  </blockquote>
  
  <p>The returned <strong>list size is 0.</strong></p>
  
  <p>I tried to set the app <strong>as default sms app but it doesn't work</strong> in that way either.</p>
  
  <p>I work on <strong>Lollipop (Android 5).</strong> </p>
  
  <p>Please help if you can.</p>