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)
package com.mobeegal.android; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.content.IntentReceiver; import android.os.Bundle; import android.widget.Toast; import android.util.*; import java.io.IOException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.NameValuePair; import org.apache.commons.httpclient.methods.PostMethod; public class RepeatingRequest extends IntentReceiver { public Welcome welcome; String sendingService; String gettingvalue; public void onReceiveIntent(Context context, Intent intent) { try{ HttpClient httpclient; httpclient = new HttpClient(); final Bundle bundles = intent.getExtras(); if(bundles!= null) { sendingService = bundles.getString("passingcategory");//getting value from spinner sendingService = "Dating";//statically assigned the service } //String myIMSI = android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMSI); String IMSI="310995000000002"; NameValuePair[] data = {new NameValuePair("IMSI", IMSI),new NameValuePair("Service",sendingService)}; PostMethod httpPost = new PostMethod("http://192.168.1.6/index.php"); httpPost.setRequestBody(data); httpPost.setQueryString(data); httpclient.executeMethod(httpPost); String serverresponse1 = httpPost.getResponseBodyAsString(); String serverresponse = httpPost.getQueryString();//sim no reciving //bundles.putString("serverres", serverresponse); Toast.makeText(context,serverresponse+" " + "Response from server is : "+ serverresponse1,Toast.LENGTH_LONG).show(); MatchingData matching=new MatchingData(); matching.showNotification(serverresponse1); Log.i("Matching Data", serverresponse1); // bundles.putString("serverres",serverres); /*---------------------------------*/ } catch(IOException e){} catch (NullPointerException ne) { } } class MatchingData extends Activity{ public void showNotification(String string) { NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); CharSequence from = "Matching Data"; CharSequence message = string; String tickerText = getString(R.string.incoming_message_ticker_text, message); Intent appIntent = new Intent(); /*Bundle b12 = new Bundle(); b12.putString("serverres", string);*/ Intent contentIntent = new Intent(); /*contentIntent.putExtras(b12);*/ //startActivity(contentIntent); Notification notif = new Notification( this, // our context R.drawable.message, // the icon for the status bar tickerText, // the text to display in the ticker System.currentTimeMillis(), // the timestamp for the notification from, // the title for the notification message, // the details to display in the notification contentIntent, // the contentIntent (see above) R.drawable.message, // the app icon getText(R.string.app_name), // the name of the app appIntent); // after a 100ms delay, vibrate for 250ms, pause for 100 ms and // then vibrate for 500ms. notif.vibrate = new long[]{100, 250, 100, 500}; nm.notify(0, notif); // nm.cancel(R.drawable.message); nm.cancel(R.string.incoming_message_ticker_text); } } }