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 Connection implements InvocationHandler, IConnection, android.content.ServiceConnection { private Class clazz = null; private Method asInterface = null; private T service = null; private Runnable connected = ObjectCollection.create(Runnable.class); private Runnable disconnected = ObjectCollection.create(Runnable.class); @SuppressWarnings("unchecked") public static T create(Class clazz){ return (T)Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[] { IConnection.class, clazz }, new Connection(clazz)); } private Connection(Class clazz) { try { this.clazz = clazz; this.asInterface = Class.forName(clazz.getCanonicalName()+"$Stub").getMethod("asInterface", IBinder.class); } catch (Exception e) { /* Never throws. */ } } @Override public boolean isConnected() { return service!=null; } @Override public void bind(Context context, int flags) { if(!isConnected()) { context.bindService(new Intent(clazz.getName()), this, flags); } } @Override public void unbind(Context context) { if(isConnected()) { context.unbindService(this); onServiceDisconnected(null); } } @Override @SuppressWarnings("unchecked") public void addOnConnected(Runnable run) { ((Collection)connected).add(run); } @Override @SuppressWarnings("unchecked") public void removeOnConnected(Runnable run) { ((Collection)connected).remove(run); } @Override @SuppressWarnings("unchecked") public void addOnDisconnected(Runnable run) { ((Collection)disconnected).add(run); } @Override @SuppressWarnings("unchecked") public void removeOnDisconnected(Runnable run) { ((Collection)disconnected).remove(run); } @Override @SuppressWarnings("unchecked") public void onServiceConnected(ComponentName className, IBinder boundService) { try { service = (T)asInterface.invoke(null, boundService); } catch (Exception e) { /* Never throws. */ } connected.run(); } @Override public void onServiceDisconnected(ComponentName className) { service = null; disconnected.run(); } @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if(method.getDeclaringClass()==Object.class) { return method.invoke(this, args); } else if(method.getDeclaringClass()==IConnection.class) { return method.invoke(this, args); } else if(method.getDeclaringClass()==clazz) { if(!isConnected()) throw new RemoteException(); return method.invoke(service, args); } throw new Exception("This should never throw."); } }