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.unicate.android.thumbnailtest; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.database.Cursor; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ImageView; public class ThumbnailTestActivity extends Activity { private ImageView _image; private long _id; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); _image = ((ImageView)findViewById(R.id.imageTest)); _image.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { _image.setImageBitmap(BitmapFactory.decodeFile("/mnt/sdcard/tmp/srgg.jpg")); _image.invalidate(); } }); _id = getIdByPath("/mnt/sdcard/tmp/srgg.jpg"); ((Button)findViewById(R.id.buttonUpdate)).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // we want to receive if the mediascanner finished scanning the sdcard IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_SCANNER_FINISHED); // after the mediascanner finished scanning files intentFilter.addDataScheme("file"); // registering the receiver registerReceiver(_receiver, intentFilter); // sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); } }); showImage(_id); } public long getIdByPath(String path) { String[] projection = { MediaStore.Images.ImageColumns._ID, MediaStore.Images.ImageColumns.DATA }; long id = -1; Cursor cursor = getContentResolver().query( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projection, MediaStore.Images.ImageColumns.DATA + " = ?", new String[]{path}, null); if(null != cursor && cursor.getCount() > 0) { if(cursor.moveToFirst()) { id = cursor.getLong(cursor.getColumnIndex(MediaStore.Images.ImageColumns._ID)); } cursor.close(); } return id; } public void showImage(long id) { if(id > 0) { _image.setImageBitmap(MediaStore.Images.Thumbnails.getThumbnail(getContentResolver(),id ,MediaStore.Images.Thumbnails.MICRO_KIND,null)); _image.invalidate(); } } private BroadcastReceiver _receiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { showImage(_id); unregisterReceiver(this); } }; }