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 info.ui; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStreamReader; import parser.ParseEvent; import parser.Xml; import parser.XmlParser; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; public class InfotainmentActivity extends Activity { /** Called when the activity is first created. */ Color color; String myString = "Test: "; public static Bitmap bm; public static InfotainmentActivity activity; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); sendRecieveData(); setContentView(new SampleView(this)); } public void sendRecieveData() { Connection connection = new Connection( "http://www.migital.com/AdsCompaign/GetSplash.aspx?Uid=6&AppId=1&PId=1", 1); processDataList(connection.getData()); } public static class SampleView extends View implements Runnable { public Paint mPaint = new Paint(); SampleView(Context context) { super(context); this.setFocusable(true); // TODO Auto-generated constructor stub Connection connection = new Connection(AppConstant.splashUrl, 2); ByteArrayInputStream mainImageinputStream = new ByteArrayInputStream( connection.getData()); bm = BitmapFactory.decodeStream(mainImageinputStream); Thread t = new Thread(this); t.start(); } @Override protected void onDraw(Canvas canvas) { Log.v("Anshu", "5"); canvas.drawColor(Color.WHITE); if (bm != null) canvas.drawBitmap(bm, 30, 50, mPaint); mPaint.setColor(Color.BLUE); canvas.drawText("Press Any Key", 40, 110, mPaint); Log.v("Anshu", "7"); } @Override public void run() { // TODO Auto-generated method stub Log.v("Anshu", "123"); // postInvalidate(); } public boolean onKeyDown(int keyCode, KeyEvent event) { // keyCode=event.getKeyCode(); // if(keyCode==KeyEvent.KEYCODE_DPAD_DOWN){ Log.v("12345", "12345"); // MainMenu mainMenu=new MainMenu(activity); activity.setContentView(new MainMenu(activity)); // } return super.onKeyDown(keyCode, event); } } public void processDataList(byte[] xmlData) { ByteArrayInputStream bis = new ByteArrayInputStream(xmlData); InputStreamReader isr = new InputStreamReader(bis); XmlParser parser = null; try { parser = new XmlParser(isr); ParseEvent event = null; while ((event = parser.read()).getType() != Xml.END_DOCUMENT) { if (event.getType() == Xml.START_TAG && event.getName().equals("Data")) { ParseEvent nextevent = null; while ((nextevent = parser.peek()).getType() != Xml.END_DOCUMENT) { String name = nextevent.getName(); int type = nextevent.getType(); if (type == Xml.END_TAG && name.equals("Data")) { nextevent = null; name = null; break; } nextevent = parser.read(); if (type != Xml.START_TAG) { nextevent = null; continue; } ParseEvent next = parser.read(); if (next.getType() != Xml.TEXT) { nextevent = null; next = null; continue; } if (name.equals("logo")) AppConstant.logUrl = "http://www.migital.com/AdsCompaign/" + next.getText(); if (name.equals("splash")) AppConstant.splashUrl = "http://www.migital.com/AdsCompaign/" + next.getText(); nextevent = null; next = null; } } } } catch (IOException ex) { ex.printStackTrace(); } } }