1

I am making a Android Program to send appointment details for future appointment, I have done my coding and getting everything but whenever i do click on Send button getting error message:

Unfortunately Message Launcher [AppName] has stopped

Manifest.xml:

 <?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mamlambo.tutorial.sendmessage">
<application
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    >
    <activity
        android:name="com.mamlambo.tutorial.sendmessage.FormActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action
                android:name="android.intent.action.MAIN" />
            <category
                android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    </application>
    <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />

</manifest> 
Jerry
  • 11
  • 6

1 Answers1

0

If you are sending sms on Button's click, you need to add SEND_SMS permission to your manifest,

<uses-permission android:name="android.permission.SEND_SMS"/>

Also this post will help you, Send SMS in Android

Community
  • 1
  • 1
Sahil Mahajan Mj
  • 11,033
  • 8
  • 53
  • 100