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 de.Example; import android.net.*; import android.os.Bundle; import android.view.*; import android.view.ViewGroup.LayoutParams; import android.widget.*; import android.app.*; import android.content.*; import android.graphics.*; import android.graphics.drawable.*; import android.content.res.*; public class Example extends Activity { public static final String SELECTED = "SELECTED"; public static final String NOT_SELECTED = "NOT SELECTED"; public static final int SETTINGS_BUTTON = 0; public static final int SETTINGS_REQUEST = 0; private Resources res; private Bitmap bmpA; private Bitmap bmpB; private ButtonListener buttonListener; private LinearLayout main; private LinearLayout one; private LinearLayout two; private LinearLayout three; private ImageView imgView; private View empty; private TextView tv; private CheckBox checkOne; private CheckBox checkTwo; private View emptyTwo; private Button settingsButton; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getBitmaps(); makeGUI(); } private void makeGUI() { main = new LinearLayout(this); main.setLayoutParams(new LinearLayout.LayoutParams(320,480)); main.setBackgroundColor(Color.WHITE); main.setOrientation(LinearLayout.VERTICAL); main.setGravity(Gravity.CENTER_HORIZONTAL); buttonListener = new ButtonListener(); // one = new LinearLayout(this); one.setLayoutParams(new LinearLayout.LayoutParams(260,80)); one.setOrientation(LinearLayout.HORIZONTAL); one.setGravity(Gravity.CENTER); imgView = new ImageView(this); imgView.setImageBitmap(bmpA); imgView.setLayoutParams(new LinearLayout.LayoutParams(50,50)); one.addView(imgView); empty = new View(this); empty.setLayoutParams(new LinearLayout.LayoutParams(10,50)); one.addView(empty); tv = new TextView(this); tv.setLayoutParams(new LinearLayout.LayoutParams(200,50)); tv.setBackgroundColor(Color.GRAY); tv.setTextColor(Color.BLACK); tv.setText(SELECTED); tv.setGravity(Gravity.CENTER); one.addView(tv); main.addView(one); // // two = new LinearLayout(this); two.setLayoutParams(new LinearLayout.LayoutParams(260,80)); two.setOrientation(LinearLayout.HORIZONTAL); two.setGravity(Gravity.CENTER_HORIZONTAL); checkOne = new CheckBox(this); checkOne.setLayoutParams(new LinearLayout.LayoutParams(50,50)); two.addView(checkOne); emptyTwo = new View(this); emptyTwo.setLayoutParams(new LinearLayout.LayoutParams(10,50)); two.addView(emptyTwo); checkTwo = new CheckBox(this); checkTwo.setLayoutParams(new LinearLayout.LayoutParams(50,50)); two.addView(checkTwo); main.addView(two); // // three = new LinearLayout(this); three.setLayoutParams(new LinearLayout.LayoutParams(260,100)); three.setOrientation(LinearLayout.HORIZONTAL); three.setGravity(Gravity.CENTER); settingsButton = new Button(this); settingsButton.setLayoutParams(new LinearLayout.LayoutParams(140,60)); settingsButton.setOnClickListener(buttonListener); settingsButton.setId(SETTINGS_BUTTON); settingsButton.setText("Settings"); three.addView(settingsButton); main.addView(three); // setContentView(main); } private void getBitmaps() { res = getResources(); bmpA = BitmapFactory.decodeResource(res, R.drawable.imga); bmpB = BitmapFactory.decodeResource(res, R.drawable.imgb); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { String result = data.getStringExtra("settings"); if(requestCode == SETTINGS_REQUEST) { if(result.equals(SELECTED)) { tv.setText(SELECTED); checkOne.performClick(); checkTwo.performClick(); imgView.setImageBitmap(bmpB); main.invalidate(); } else { tv.setText(NOT_SELECTED); checkOne.performClick(); checkTwo.setSelected(false); imgView.setImageBitmap(bmpA); main.invalidate(); } } } public class ButtonListener implements View.OnClickListener { @Override public void onClick(View v) { switch(v.getId()) { case SETTINGS_BUTTON: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setClass(Example.this, SettingsActivity.class); Example.this.startActivityForResult(intent, SETTINGS_REQUEST); break; default: break; } } } }