title: android: how can I get alphabetic name of SMS sender?
body: <p>I'm working on Android App which receives SMS and handles them. Everything works fine except one moment. I don't know how to translate a custom sender ID to alphabetic name. e.g. I get SMS from a bank and I see a number instead of bank name, but another applications display name of a bank.</p>
  
  <p>Here is the my code</p>
  
  <pre><code>            Uri allSMSes = Uri.parse("content://sms");
  
              String[] strColumns = { TextBasedSmsColumns.ADDRESS,
                                  "MAX(" + TextBasedSmsColumns.DATE + ") as " + TextBasedSmsColumns.DATE,
                                  "COUNT(" + TextBasedSmsColumns.BODY + ") as number",
                                  "SUM(" + TextBasedSmsColumns.READ + ") as " + TextBasedSmsColumns.READ};
  
              Cursor c = getContentResolver().query(allSMSes, strColumns, 
                                                    "1=1) group by (" + TextBasedSmsColumns.ADDRESS ,null, null);
  </code></pre>
  
  <p>I have tried to run it on Android 5.1 and 6.0</p>