Please help me!

cnicolapc

Active Member
Licensed User
Longtime User
hI,
I have this problem,
A few weeks ago I installed windows 8 and updating my Android App.
I noticed that in the Custom Dialog did not work anymore the event Spin1_itemclick.
I tried to install on my smartphone an old . Apk and it works.
but if ricompile the code no longer works.
I can not find the solution, does anyone have an idea?
can be a problem of windows 8?
Because the event spin1_itemclick is activated, I have to close and reopen the Custom Dialog.

Thank You in advance!
B4X:
Sub spin1_itemclick(position As Int,value As Object)
testo.Text=""
spinindex=0
spinindex=spin1.SelectedIndex
SpinMessaggio
End Sub

Sub SpinMessaggio
spintesto = spin1.GetItem(spinindex)
If spinindex=0 OR  spinindex= 2 OR spinindex= 3 OR spinindex= 4 OR spinindex=6  Then
Barbut.RemoveView
LbScelta.Text= Main.Dlg33 &  spintesto.SubString(3)'Scrivere parte del
Else
If spinindex=1 Then
Barbut.RemoveView
LbScelta.Text=Main.Dlg34 &  spintesto.SubString(3)'Scrivere parte dell'
Else
If spinindex=5 Then
LbScelta.Text=Main.Dlg33 &  spintesto.SubString(3)'Scrivere parte del
pnl.AddView(Barbut,59%x,31%y,12%x,8%y)

End If
End If
End If
End Sub
 

Attachments

  • Path.jpg
    Path.jpg
    34.3 KB · Views: 191
Last edited:

Widiar

Member
Licensed User
Longtime User
Are you sure you're not missing an external library from the library folder or perhaps the java SDK files after a new OS install? Maybe it's some external library you have used in your old code and missing now?
 
Upvote 0

cnicolapc

Active Member
Licensed User
Longtime User
hi,
thanks for the reply
I do not know what to think,
The folder Basic4Android is installed on drive D: with the libraries and has remained as such.
I installed the java idk 7
I can not figure out what may be missing.
The problem occurs even if I write a new app from scratch so I have to be something in the configuration but I have no idea.
 
Upvote 0

Widiar

Member
Licensed User
Longtime User
Pretty weird indeed. I just recently (a few days ago) upgraded my W7 from my work laptop to Win8 and had no problem. At first the new Win8 firewall wanted to block all java activity but when I allowed them, all works fine. Both old programs and new ones compile without any problems.

What kind of error message does your compiler actually gives when trying to compile? Also, is it just the spin element and click that is not working or some others too?

- Wid
 
Upvote 0

cnicolapc

Active Member
Licensed User
Longtime User
Thanks for the reply,
It does not work the event spinner_item click listview and also in the Custom Dialog unless it closes the modal window. As Erel said the problem is Android 4.04 can not handle events while a modal dialog is visible.
That's why the old apk worked
 
Upvote 0
Top