Skip to content
Snippets Groups Projects
Commit 6b9f75c2 authored by NimalNallasamy's avatar NimalNallasamy
Browse files

My commit Message

parent e5839fce
No related branches found
No related tags found
No related merge requests found
......@@ -199,13 +199,14 @@ public class Help extends AppCompatActivity {
}
public void messaging(View view)
{
/*String[] number1 = phone.split("\n");
Intent smsIntent = new Intent(android.content.Intent.ACTION_VIEW);
smsIntent.setType("vnd.android-dir/mms-sms");
smsIntent.putExtra("address",number1[4]);
smsIntent.putExtra("sms_body","your desired message");
startActivity(smsIntent);
*/
String[] number1 = phone.split("\n");
String[] number2 = number1[4].split(" : ");
Intent intentsms = new Intent( Intent.ACTION_VIEW, Uri.parse( "sms:" + number2[1] ) );
intentsms.putExtra( "Emergeny", "Bringing a patient" );
startActivity( intentsms );
//startActivity(new Intent(Intent.ACTION_VIEW, Uri.fromParts("sms", number1[4], "hello")));
}
......
......@@ -96,7 +96,7 @@
android:layout_above="@+id/floatingActionButton2"
android:layout_alignStart="@+id/floatingActionButton2"
android:layout_marginBottom="12dp"
android:onClick="maessaging"
android:onClick="messaging"
android:clickable="true"
app:fabSize="mini"
android:visibility="invisible"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment