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)
public class PicturesL extends Activity implements OnClickListener { private ArrayList imageFiles = new ArrayList(); private ArrayList imageBitm = new ArrayList(); private ArrayList imageView = new ArrayList(); private static int TAKE_PICTURE = 1; private Uri outputFileUri; private String PATH; private StringBuilder PicsDate = new StringBuilder(); private GregorianCalendar calendar = new GregorianCalendar(); private CaWaApplication application; private long ListID; @Override public void onCreate(Bundle savedInstancedState) { super.onCreate(savedInstancedState); RelativeLayout layout = new RelativeLayout(this); Button TakePic = new Button(this); TakePic.setText("Take Picture"); TakePic.setId(67); TakePic.setOnClickListener(this); application = (CaWaApplication) getApplication(); ListID = getIntent().getExtras().getLong("listid"); Log.d("PicturesL", "ListID: " + ListID); } RelativeLayout.LayoutParams Takelp = new RelativeLayout.LayoutParams(RelativeLayout. LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); Takelp.addRule(RelativeLayout.CENTER_HORIZONTAL); Takelp.addRule(RelativeLayout.BELOW); layout.addView(TakePic, Takelp); setContentView(layout); } @Override public void onClick(View v) { switch(v.getId()) { case 67: saveFullImage(); break; } } private void saveFullImage() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Date time = new Date(); calendar.setTime(time); PicsDate.append(calendar.get(calendar.YEAR) + "-"); PicsDate.append(calendar.get(calendar.MONTH) + "-"); PicsDate.append(calendar.get(calendar.DAY_OF_MONTH) + "-"); PicsDate.append(calendar.get(calendar.HOUR)+ "-"); PicsDate.append(calendar.get(calendar.MINUTE)+ "-"); PicsDate.append(calendar.get(calendar.SECOND)); PicsDate.append(".jpg"); String myPicName = PicsDate.toString(); Log.d("PicturesL", "PicsDate: " + PicsDate.toString()); PicsDate.delete(0, PicsDate.length()); File file = new File(Environment.getExternalStorageDirectory(), myPicName); outputFileUri = Uri.fromFile(file); PATH = outputFileUri.toString(); PATH = PATH.substring(11); intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); Log.d("PicturesL", "outputfileuri " + outputFileUri + " MediaStore " + MediaStore.EXTRA_OUTPUT + " PATH " + PATH ); startActivityForResult(intent, TAKE_PICTURE); } //Store vars when taking picture @Override public void onSaveInstanceState(Bundle savedInstancedState) { savedInstancedState.putString("PATH", PATH); savedInstancedState.putLong("ListID", ListID); super.onSaveInstanceState(savedInstancedState); } @Override public void onRestoreInstanceState(Bundle savedInstancedState) { super.onRestoreInstanceState(savedInstancedState); ListID = savedInstancedState.getLong("ListID"); PATH = savedInstancedState.getString("PATH"); } //After pic is taken @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == TAKE_PICTURE) { Uri imageUri = null; if (data != null) { if (data.hasExtra("data")){ // thumbail Bitmap thumbail = data.getParcelableExtra("data"); } }else { //full pic Log.d("PicturesL", "PATH " + PATH ); // si saco la foto if (resultCode == -1) { ModelPics picture = new ModelPics(ListID); picture.path = PATH; Toast.makeText(this, "PICTURE TAKEN " + resultCode + " Picture PATH: " + picture.path, Toast.LENGTH_LONG).show(); application.dataManager.insertPicture(picture); } } } } }