Re: [android-building] Stk (SimToolkit) doesnt work on JB AOSP

152 views
Skip to first unread message

Jean-Baptiste Queru

unread,
Jul 16, 2012, 11:39:27 AM7/16/12
to android-...@googlegroups.com
Please move this discussion to android-platfrom, This seems to be an
issue with the code itself, not with the way it's built.

JBQ

On Mon, Jul 16, 2012 at 2:36 AM, kAmMa <kamm...@gmail.com> wrote:
> when i build clean AOSP with STK and tried to use my bank application i get
> Stk error :
>
> D/CAT ( 1309): StkAppService: SET_UP_MENU
> D/CAT ( 1309): StkAppService: Install App
> D/CAT ( 1309): CatService: SIM ready. Reporting STK service running
> now...
> D/CAT ( 1309): CatService: ril message arrived
> D/CAT ( 1309): CommandParamsFactory: process PlayTone
> D/CAT ( 1309): CatService: PLAY_TONE
> D/CAT ( 1309): StkAppService: PLAY_TONE
> I/ActivityManager( 317): START {flg=0x50840000
> cmp=com.android.stk/.ToneDialog (has extras) u=0} from pid 1309
> D/dalvikvm( 317): GC_EXPLICIT freed 169K, 10% free 15217K/16903K, paused
> 2ms+4ms, total 67ms
> D/AndroidRuntime( 1309): Shutting down VM
> W/dalvikvm( 1309): threadid=1: thread exiting with uncaught exception
> (group=0x42080300)
> E/AndroidRuntime( 1309): FATAL EXCEPTION: main
> E/AndroidRuntime( 1309): java.lang.RuntimeException: Unable to instantiate
> activity ComponentInfo{com.android.stk/com.android.stk.ToneDialog}:
> java.lang.IllegalStateException: Syst
> em services not available to Activities before onCreate()
> E/AndroidRuntime( 1309): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
> E/AndroidRuntime( 1309): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
> E/AndroidRuntime( 1309): at
> android.app.ActivityThread.access$600(ActivityThread.java:130)
> E/AndroidRuntime( 1309): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
> E/AndroidRuntime( 1309): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime( 1309): at android.os.Looper.loop(Looper.java:137)
> E/AndroidRuntime( 1309): at
> android.app.ActivityThread.main(ActivityThread.java:4745)
> E/AndroidRuntime( 1309): at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/AndroidRuntime( 1309): at
> java.lang.reflect.Method.invoke(Method.java:511)
> E/AndroidRuntime( 1309): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> E/AndroidRuntime( 1309): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> E/AndroidRuntime( 1309): at dalvik.system.NativeStart.main(Native
> Method)
> E/AndroidRuntime( 1309): Caused by: java.lang.IllegalStateException: System
> services not available to Activities before onCreate()
> E/AndroidRuntime( 1309): at
> android.app.Activity.getSystemService(Activity.java:4410)
> E/AndroidRuntime( 1309): at
> com.android.stk.ToneDialog.<init>(ToneDialog.java:57)
> E/AndroidRuntime( 1309): at java.lang.Class.newInstanceImpl(Native
> Method)
> E/AndroidRuntime( 1309): at
> java.lang.Class.newInstance(Class.java:1319)
> E/AndroidRuntime( 1309): at
> android.app.Instrumentation.newActivity(Instrumentation.java:1053)
> E/AndroidRuntime( 1309): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
> E/AndroidRuntime( 1309): ... 11 more
> W/ActivityManager( 317): Process com.android.phone has crashed too many
> times: killing!
> W/ActivityManager( 317): Force finishing activity
> com.android.stk/.ToneDialog
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
Reply all
Reply to author
Forward
0 new messages