1

Android messaging

view story
linux-howto

http://stackoverflow.com – I am trying to create an android messaging application.This is my code and when i run it i get an error saying "Unfortunately app has stopped". public class SMSActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } EditText ed = (EditText)findViewById(R.id.edit); String message1 = ed.getText().toString(); public void onClick(View v) { sendSMS("5556", message1); } private void sendSMS(String phoneNumber, String message) { SmsMana (HowTos)