AVD Stopped unexpectedly

Rusty

Well-Known Member
Licensed User
Longtime User
I'm running a simple example program from the Listview example code
Code:
Sub Globals
    Dim ListView1 As ListView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    ListView1.Initialize("ListView1")
    For i = 1 To 300
        ListView1.AddSingleLine("Item #" & i)
    Next
    Activity.AddView(ListView1, 0, 0, 100%x, 100%y)
End Sub
Sub ListView1_ItemClick (Position As Int, Value As Object)
    Activity.Title = Value
End Sub
For some reason, this simple piece of code results in:
Sorry!
The application list view (process.ee.b4a.listview) has stopped unexpectedly. Please try again.
FORCE CLOSE
Any ideas?
I've tried on two different AVD setups. I have also seen this on another much more complex application I've written. It seems to have occurred after I downloaded the latest Java and Android SDK late last week.
 
Thanks for the fast response.
However, this solution did not work. Any other ideas? It sounds like you've run across this before.
Thanks,
 
Upvote 0
Your post is the whole app?, I mean, just the list view? and you said you're running it on the emulator right?

Let me start my emulator and see what happens.


EDIT: Nope, On the emulator works fine too, maybe yours has a problem. Also, your code works fine too.
 
Last edited:
Upvote 0
Yes, sir, the whole thing.
I've run into this on the AVD emulator AND I get the same results on my Asus eePad 10" tablet.
Just don't understand what is missing
Thanks,
 
Upvote 0
Back
Top