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.atm.locator; import java.util.ArrayList; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.Spinner; import android.widget.TextView; public class Second extends Activity implements LocationListener { public InstitutionsNameList nameList; private static final String SOAP_ACTION = "http://tempuri.org/LocateSameAddress"; private static final String METHOD_NAME = "LocateSameAddress"; private static final String NAMESPACE = "http://tempuri.org/"; private static final String URL = "http://74.54.60.18:2226/service.asmx?WSDL"; private SoapObject resultsRequestSOAP; // private ProgressDialog myMapProgress; // private static final String PRO_TITLE = "Loading"; // private static final String PRO_CONTENT = "Please wait..."; TextView t; public static ArrayList instNameList = new ArrayList(); public static ArrayList Result = new ArrayList(); static ArrayList record = new ArrayList(); Context context; static String colon[]; static ArrayList a = new ArrayList(); static int flag = 0; // Updated Latitude and Longitude double lat = 0, lng = 0; static Spinner s; LocationManager manager; public InstitutionsNameList second; String ss = ""; /* * public Second() { super(); //nameList=new InstitutionsNameList(this); * //second = g; } */ /* * public Second(){ this.nameList = nameList; Log.e("Second","1"); * //nameList = new InstitutionsNameList(this); Log.e("Second","2"); } */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.secondview); context = this; ImageView getfromanootherlocation = (ImageView) findViewById(R.id.getfromanootherlocation); ImageView getfromcurrentlocation = (ImageView) findViewById(R.id.getfromcurrentlocation); // t = (TextView) findViewById(R.id.msg); manager = (LocationManager) getSystemService(LOCATION_SERVICE); getfromcurrentlocation.setOnClickListener(new OnClickListener() { public void onClick(View v) { // FOR THE ATM ONLY if (Main.ATMorSC.equals("AT")) { flag = 1; Result = getResponse(); // setContentView(Detail()); Log.i("Selected Item: ", s.getSelectedItem().toString() + ss); Intent i = new Intent(); i.setClass(context, InstitutionsNameList.class); startActivity(i); //finish(); } // FOR THE sc ONLY if (Main.ATMorSC.equals("SC")) { } } }); getfromanootherlocation.setOnClickListener(new OnClickListener() { public void onClick(View v) { // FOR THE ATM ONLY if (Main.ATMorSC.equals("AT")) { flag = 2; Intent i = new Intent(); i.setClass(context, FillAddressDetail.class); startActivity(i); //finish(); } } }); s = (Spinner) findViewById(R.id.spinner); ArrayAdapter adapter = ArrayAdapter.createFromResource(this, R.array.planets, android.R.layout.simple_spinner_item); adapter .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); s.setAdapter(adapter); } public ArrayList getResponse() { // CALL the web service method with the two parameters vname and nname SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); // WITH CURRENT LOCATION and comment the next two lines which is hard coded. //request.addProperty("LATITUDE", lat); //request.addProperty("LONGITUDE", lng); // FOR TESTING PURPOSE request.addProperty("LATITUDE", "44.7959"); request.addProperty("LONGITUDE", "-91.4435"); request.addProperty("mile", s.getSelectedItem().toString()); request.addProperty("Type", Main.ATMorSC); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL); try { androidHttpTransport.call(SOAP_ACTION, envelope); // Get the SAOP Envelope back and the extract the body resultsRequestSOAP = (SoapObject) envelope.bodyIn; // String[] results = (String[]) resultsRequestSOAP; ; a.add(resultsRequestSOAP.toString().replace( "LocateSameAddressResponse{LocateSameAddressResult=anyType{NewDataSet=anyType", "")); String temp = a.get(0).toString().replace("};", ":"); String string[] = temp.split(":"); for (int i = 0; string.length > i; i++) { try { record.add(i, string[i].substring(15)); // System.out.println("Table Record: " + records); colon = record.get(i).toString().split(";"); instNameList.add(colon[0].substring(colon[0].indexOf("=") + 1) + "#" + colon[1].substring(colon[1].indexOf("=") + 1)); } catch (Exception e) { break; } } /* * new AlertDialog.Builder(Second.this) .setTitle("Response") * .setMessage(a.get(0).toString()) .setPositiveButton("Ok", new * DialogInterface.OnClickListener() { public void * onClick(DialogInterface dialog, int whichButton) { } } ).show(); */ } catch (Exception E) { // ((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" + // E.getClass().getName() + ": " + E.getMessage()); Log.i("Err2: ", E.getMessage()); } return instNameList; } /** * Get all the menu items from the XML file. */ public boolean onCreateOptionsMenu(android.view.Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.options_menu, menu); return true; }; /** * Action on the menu items. */ public boolean onOptionsItemSelected(MenuItem item) { final int id = item.getItemId(); switch (id) { case R.id.quit: this.finish(); } return true; } @Override protected void onDestroy() { stopListening(); super.onDestroy(); } @Override protected void onPause() { stopListening(); super.onPause(); } @Override protected void onResume() { startListening(); super.onResume(); } /************************************************************************** * helper functions for starting/stopping monitoring of GPS changes below **************************************************************************/ private void startListening() { manager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); } private void stopListening() { if (manager != null) manager.removeUpdates(this); } /* * private void updateWithNewLocation(Location location) { //String * latLongString; if (location != null) { lat = location.getLatitude(); lng * = location.getLongitude(); //latLongString = "Lat: " + lat + "\nLng: " + * lng; } else { //latLongString = "No Location Found"; } * //messageView.setText("Your Current Location is:\n" + latLongString); } */ /* * @Override public void onResume() { super.onResume(); Second listener = * new Second(); LocationManager manager = (LocationManager) * getSystemService(Context.LOCATION_SERVICE); long updateTimeMsec = 1000L; * manager.requestLocationUpdates(LocationManager.GPS_PROVIDER, * updateTimeMsec, 500.0f, listener); * manager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, * updateTimeMsec, 500.0f, listener); } */ /************************************************************************** * LocationListener overrides below **************************************************************************/ @Override public void onLocationChanged(Location location) { Log.i(getClass().getSimpleName(), "accuracy: " + location.getAccuracy()); // we got new location info. lets display it in the textview ss += "Time: " + location.getTime() + "\n"; ss += "\tLatitude: " + location.getLatitude() + "\n"; ss += "\tLongitude: " + location.getLongitude() + "\n"; ss += "\tAccuracy: " + location.getAccuracy() + "\n"; lat = location.getLatitude(); lng = location.getLongitude(); // Toast.makeText(context, s, Toast.LENGTH_LONG).show(); } @Override public void onProviderDisabled(String provider) { } @Override public void onProviderEnabled(String provider) { } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } }