Problem with AddMenuItem....

cristianos

Member
Licensed User
Longtime User
I do not understand.
My Activity have a menu with 3 items.
When I select the first (or 2 or 3) item I display the dialogbox and close it by pressing "OK"
If I try to reopen the menu .. does not open and the application quits!:sign0148:
Cristiano



Code in Activity_Create
Activity.AddMenuItem2("About","about",IconInfo)
Activity.AddMenuItem2("Help","help",IconHelp)
Activity.AddMenuItem2("Exit","exit",IconExit)
------------------------------------------------------------
Sub about_click
Dim xa As Int
xa = Msgbox2("Message...","Title","OK","","",IconInfo)
If xa = DialogResponse.POSITIVE Then
Return
End If
end sub
 

cristianos

Member
Licensed User
Longtime User
Check the logs. There should be an error message.

Can you upload a small project that demonstrates this issue?

Ok.
My Path is:
C:\Program Files\Java\jdk1.7.0_17\bin\javac.exe
C:\android\platforms\android-14\android.jar

Bridge connect to Phone Samsung SIII mini

Tanks
Cristiano
 

Attachments

  • Test_Erel.zip
    18.3 KB · Views: 190
Upvote 0

padvou

Active Member
Licensed User
Longtime User
Look fine in my environment. Clicking on About shows the messagebox, there are other two do nothing, as expected. I tried it several times..
 
Upvote 0
Top