title: trouble in sending google map location through sms
body: <p>i am working my application in which i have to send my google map location on the click of button.I followed several tutorials but they all are using SMSManager which is already deprecated.
  I am using this to send a sms </p>
  
  <pre><code>String smsNumber = tab.getText().toString();
                          String smsText = "I am in danger.Please follow my location ... ";
  
                          Uri uri = Uri.parse("smsto:" + smsNumber);
                          Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
                          intent.putExtra("sms_body", smsText);
                          startActivity(intent);
  </code></pre>
  
  <p>and this for the google map location</p>
  
  <pre><code>Intent intentgooglemaps = new Intent(
                                  android.content.Intent.ACTION_VIEW,
                                  Uri.parse("http://maps.google.com/?"));
                          startActivity(intentgooglemaps); 
  </code></pre>
  
  <p>what still confusing me is: how to send the google map location just after the message that i have typed.</p>
  
  <p>i am fetching contacts from the phone-book using :</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                  intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
                  startActivityForResult(intent, REQUESTCODE);
  </code></pre>