Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[b]ReceiveSMSActivity.java[/b] package com.example.smsx; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.telephony.gsm.SmsMessage; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; public class ReceiveSMSActivity extends Activity{ static TextView messageBox; Button btnSendSMS; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); messageBox=(TextView)findViewById(R.id.messageBox); } public static void updateMessageBox(String msg) { messageBox.append(msg); } } [b][u]TextMessageReceiver.java[/u][/b] package com.example.smsx; import java.util.ArrayList; import java.util.List; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.telephony.SmsMessage; import android.widget.Toast; public class TextMessageReceiver extends BroadcastReceiver{ public void onReceive(Context context, Intent intent) {//abortBroadcast(); Bundle bundle = intent.getExtras(); Object[] messages=(Object[])bundle.get("pdus"); SmsMessage[] sms=new SmsMessage[messages.length]; for(int n=0;n nameValuePair = new ArrayList(2); nameValuePair.add(new BasicNameValuePair("phoneNo", msg.getOriginatingAddress())); nameValuePair.add(new BasicNameValuePair("message",msg.getMessageBody())); // Url Encoding the POST parameters String url = "http://10.14.1.154/smsToDb.php?phoneNo="+msg.getOriginatingAddress() +"&message="+msg.getMessageBody(); Toast.makeText(context, url, Toast.LENGTH_SHORT).show(); HttpGet myGet = new HttpGet(url);// app crashes with this line and request is also not made. try catch does not work Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); } } }