hey guys, strange problem ~.~ trying that out the whole day. its made after an example i found in a book. in my case the example simply does not work.
if i do.... public class Launcher extends Activity { IRemoteRecordService mRemoteRecordService = null; private ServiceConnection remoteRecordServiceVerbindung = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { // TODO Auto-generated method stub mRemoteRecordService = IRemoteRecordService.Stub.asInterface(service); } }; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Verbindung zum Service aufnehmen Intent intent = new Intent(IRemoteRecordService.class.getName()); if(bindService(intent, remoteRecordServiceVerbindung, Context.BIND_AUTO_CREATE)) System.out.println("Service successfully bound!"); if(mRemoteRecordService==null) System.out.println("Our mRemoteRecordService is null :( "); } } ... i always get the message that my mRemoteRecordService is null in logcat. how can that be? no other errors, but i can not work with a nullpointerexception of course ;D thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en