Hello!
I was compiling my project just fine in "Release" mode. I've decided to check how the Debugger works and I am unable to compile my project anymore(unless I change back to "Release"). Here is the compile error I get:
I think it's not important to upload the entire source code as I can explain it in a very simple manner:
I am doing the transition on Click events of the buttons like this:
I was not sure what is the right way to do StartActivity to another Activity of mine and assumed that I have to pass the name of Activity Module(I assumed these variables are defined automatically)
Please correct me if this is not the way to load another Activity of mine.
I do believe it's a correct syntax as I successfully move through the Activities on my real device but it breaks when trying to use "Debug" mode.
Edit: I commented all my code out and the compiler error still pops up. I believe I have to upload my source code now.
I was compiling my project just fine in "Release" mode. I've decided to check how the Debugger works and I am unable to compile my project anymore(unless I change back to "Release"). Here is the compile error I get:
Compiling code. 0.01
Generating R file. 0.00
Compiling generated Java code. Error
javac 1.6.0_23
src\com\mitev\test\newlie\main.java:311: cannot find symbol
symbol : variable previousOne
location: class android.app.Activity
Activity a = a.previousOne.get();
^
1 error
I think it's not important to upload the entire source code as I can explain it in a very simple manner:
- I have 5 different activities (screens) -> Main, a, b, c, d
- I have arrow buttons <== and ==> to move from 1 do 5
I am doing the transition on Click events of the buttons like this:
B4X:
Sub btnBack_Click
StartActivity(a) // this changes in the other Activities similarly
End Sub
I was not sure what is the right way to do StartActivity to another Activity of mine and assumed that I have to pass the name of Activity Module(I assumed these variables are defined automatically)
Please correct me if this is not the way to load another Activity of mine.
I do believe it's a correct syntax as I successfully move through the Activities on my real device but it breaks when trying to use "Debug" mode.
Edit: I commented all my code out and the compiler error still pops up. I believe I have to upload my source code now.
Attachments
Last edited: