bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ACTION_FIRST_STK duplicate

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
Alastair Rae



Joined: 19 Jan 2012
Posts: 6

PostPosted: Wed Apr 11, 2012 10:53 am    Post subject: ACTION_FIRST_STK duplicate Reply with quote

My app auto-starts when it receives the ACTION_FIRST_STK event:
Code:

case ACTION_FIRST_STK:
    dbsp("DEBUG ACTION_FIRST_STK\n");
    stk_thread(startapp, data);
    break;

In my startapp function, I display a menu using select_item().

My problem is that I am seeing the DEBUG ACTION_FIRST_STK twice and my menu is duplicated so that I have to press OK twice. Am I doing something wrong?

I also handle ACTION_INSERT_MENU and ACTION_MENU_SELECTION. My app works fine if I run it from the sim menu. It only messes up on the autostart.
Back to top
View user's profile Send private message
Alastair Rae



Joined: 19 Jan 2012
Posts: 6

PostPosted: Thu Apr 12, 2012 10:58 am    Post subject: Reply with quote

To make it clear, when I turn on the phone I get:
Code:
DEBUG ACTION_APP_INIT
DEBUG ACTION_APP_INIT
DEBUG ACTION_INSERT_MENU
DEBUG ACTION_INSERT_MENU
DEBUG ACTION_FIRST_STK
DEBUG ACTION_FIRST_STK

I do cemu --rm-apps to clear out previous versions so I think there is only one app running.
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Fri Apr 13, 2012 11:07 am    Post subject: Reply with quote

Strange. Please do cemu --reset, just in case some trash was left.

Can you send us the whole APDU log to info@bladox?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group