Which line raises this error?
Dim set_textbox As String
If set_textbox = "txtbox1" Then
txtbox1.Text = Activity2.tmpresult
End If
If set_textbox = "txtbox2" Then
txtbox2.Text = Activity2.tmpresult
End If
Sub ImgView1_Click
set_textbox = "txtbox1"
StartActivity(Activity2)
End Sub
Sub ImgView2_Click
set_textbox = "txtbox2"
StartActivity(Activity2)
End Sub
You can copy the error from the logs (right click on the logs). It is easier.
The compilation error is due to a bug in Java 1.7_10. You can either upgrade to B4A 2.5 which workarounds this bug or use a different version of Java.
Run your code in debug mode and put a breakpoint on this line. I guess that the Tag for this view is empty.
LogCat connected to: emulator-5554
problem reading network stats
java.lang.IllegalStateException: problem parsing line: null
at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:313)
at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1271)
at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:810)
at com.android.server.net.NetworkStatsService.updateIfacesLocked(NetworkStatsService.java:721)
at com.android.server.net.NetworkStatsService.updateIfaces(NetworkStatsService.java:699)
at com.android.server.net.NetworkStatsService.access$000(NetworkStatsService.java:128)
at com.android.server.net.NetworkStatsService$1.onReceive(NetworkStatsService.java:589)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:406)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at java.io.FileReader.<init>(FileReader.java:42)
at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272)
... 11 more
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98)
at libcore.io.IoBridge.open(IoBridge.java:390)
... 14 more
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **