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.totem; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.ImageView; import android.widget.Gallery.LayoutParams; import java.io.IOException; import java.io.InputStream; public class Wallpaper extends Activity implements AdapterView.OnItemSelectedListener, AdapterView.OnItemClickListener { private static final String LOG_TAG = "Home"; private static final Integer[] THUMB_IDS = { R.drawable.andy_small, }; private static final Integer[] IMAGE_IDS = { R.drawable.andy, }; private Gallery mGallery; private boolean mIsWallpaperSet; public void onCreate(Bundle icicle) { super.onCreate(icicle); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.wallpaper_chooser); mGallery = (Gallery) findViewById(R.id.gallery); mGallery.setAdapter(new ImageAdapter(this)); mGallery.setOnItemSelectedListener(this); mGallery.setOnItemClickListener(this); } @Override protected void onResume() { super.onResume(); mIsWallpaperSet = false; } @SuppressWarnings("unchecked") public void onItemSelected(AdapterView parent, View v, int position, long id) { getWindow().setBackgroundDrawableResource(IMAGE_IDS[position]); } @SuppressWarnings("unchecked") public void onItemClick(AdapterView parent, View v, int position, long id) { selectWallpaper(position); } private synchronized void selectWallpaper(int position) { if (mIsWallpaperSet) { return; } mIsWallpaperSet = true; try { InputStream stream = getResources().openRawResource(IMAGE_IDS[position]); setWallpaper(stream); setResult(RESULT_OK); finish(); } catch (IOException e) { Log.e(LOG_TAG, "Failed to set wallpaper " + e); } } @SuppressWarnings("unchecked") public void onNothingSelected(AdapterView parent) { } public boolean onTouchEvent(MotionEvent event, Object Action_Down) { getAction(Action_Down); selectWallpaper(mGallery.getSelectedItemPosition()); return true; } private void getAction(Object actionDown) { // TODO Auto-generated method stub } public class ImageAdapter extends BaseAdapter { private Context mContext; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return THUMB_IDS.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(final int position, View convertView, ViewGroup parent) { ImageView i = new ImageView(mContext); i.setImageResource(THUMB_IDS[position]); i.setAdjustViewBounds(true); i.setLayoutParams(new Gallery.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); i.setBackgroundResource(android.R.drawable.picture_frame); return i; } } }