You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
java.lang.IllegalArgumentException: Context must be provided
at com.dsi.ant.AntInterface.initService(AntInterface.java:268)
at com.dsi.ant.AntInterface$1.onServiceDisconnected(AntInterface.java:250)
at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:1069)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1083)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
at dalvik.system.NativeStart.main(Native Method)
01-25 14:57:21.484 V/IpBike ( 7046): BaseSaveState IDLE
01-25 14:57:21.484 I/ActivityManager( 230): Start proc org.openintents.filemanager for activity org.openintents.filemanager/.FileManagerActivity: pid=7728 uid=10135 gids={1015}
01-25 14:57:21.564 I/ActivityManager( 230): No longer want com.dsi.ant.service.socket (pid 5925): hidden #16
01-25 14:57:21.574 D/AndroidRuntime( 5284): Shutting down VM
01-25 14:57:21.574 W/dalvikvm( 5284): threadid=1: thread exiting with uncaught exception (group=0x2aac8578)
01-25 14:57:21.574 E/ACRA ( 5284): ACRA caught a IllegalArgumentException exception for com.iforpowell.android.ipantman. Building report.
01-25 14:57:21.574 D/AntHal ( 230): failed to read from client=162
01-25 14:57:21.574 I/bluedroid( 230): Stopping hciattach deamon
01-25 14:57:21.574 D/ACRA ( 5284): Retrieve application default SharedPreferences.
01-25 14:57:21.604 I/bluedroid( 230): Stopping hciattach deamon
01-25 14:57:21.604 D/AntHal ( 230): client 162 closed
01-25 14:57:21.604 D/AntHal ( 230): waiting for new client
01-25 14:57:21.604 W/ActivityManager( 230): Scheduling restart of crashed service com.dsi.ant.service.socket/.AntRadioService in 5000ms
01-25 14:57:21.634 I/ActivityThread( 7728): Pub org.openintents.filemanager: org.openintents.filemanager.FileManagerProvider
01-25 14:57:21.684 I/EulaOrNewVersion( 7728): Eula has been accepted.
01-25 14:57:21.694 I/EulaOrNewVersion( 7728): Same version 17 as last launch.
Context oldContext = mContext;
ServiceListener oldServiceListener = mServiceListener;
releaseService();
initService(oldContext, oldServiceListener);