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.wispwatch.techdispatch; import android.app.Activity; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.util.Log; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class appsettings extends Activity { /** Called when the activity is first created. */ String BaseURL=""; String AuthURL=""; String uname=""; String passc=""; String apikey=""; String appurl=""; String TableName = "webSettings"; EditText funame; EditText fpassc; EditText fapikey; EditText fappurl; Button updatebutton; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.settings); EditText funame = (EditText)findViewById(R.id.uname); EditText fpassc = (EditText)findViewById(R.id.passc); EditText fapikey = (EditText)findViewById(R.id.apikey); EditText fappurl = (EditText)findViewById(R.id.appurl); SQLiteDatabase myDB= null; try { myDB = this.openOrCreateDatabase("MyDatabase", MODE_PRIVATE, null); myDB.execSQL("CREATE TABLE IF NOT EXISTS " + TableName + " (id INTEGER, uname VARCHAR, passc VARCHAR, apikey VARCHAR, appurl VARCHAR);"); Cursor c = myDB.rawQuery("SELECT * FROM " + TableName , null); int Column1 = c.getColumnIndex("uname"); int Column2 = c.getColumnIndex("passc"); int Column3 = c.getColumnIndex("apikey"); int Column4 = c.getColumnIndex("appurl"); // Check if our result was valid. c.moveToFirst(); if (c != null) { // Loop through all Results do { uname = c.getString(Column1); passc = c.getString(Column2); apikey = c.getString(Column3); appurl = c.getString(Column4); BaseURL = appurl; AuthURL ="uname="+uname+"&passc="+passc+"&apikey="+apikey; funame.setText(uname); fpassc.setText(passc); fapikey.setText(apikey); fappurl.setText(appurl); }while(c.moveToNext()); } if (AuthURL != null) { } TextView tv = new TextView(this); tv.setText(AuthURL); setContentView(tv); } catch(Exception e) { Log.e("info", "info", e); } finally { if (myDB != null) myDB.close(); } } public void ABCD() { String formuname = (funame.getText().toString()); String formfpassc= (fpassc.getText().toString()); String formapikey= (fapikey.getText().toString()); String formapiurl= (fappurl.getText().toString()); updatebutton = (Button)findViewById(R.id.appurl); SQLiteDatabase myDB= null; setContentView(R.layout.settings); try { myDB = this.openOrCreateDatabase("MyDatabase", MODE_PRIVATE, null); if (uname != null){ myDB.execSQL("UPDATE " + TableName + " SET uname='"+formuname+"', passc='"+formfpassc+"', apikey='"+formapikey+"', appurl='"+formapiurl+"'" + " WHERE id = '1';"); updatebutton.setText("Updated"); } else { myDB.execSQL("INSERT INTO " + TableName + " (id, uname, passc, apikey, appurl)" + " VALUES ('1', "+formuname+", "+formfpassc+", "+formapikey+", "+formapiurl+");"); updatebutton.setText("Inserted"); } } catch(Exception e) { Log.e("Error", "Error", e); } finally { if (myDB != null) myDB.close(); } } }