When I start this app, it crashes before even showing the main screen of the app. When I comment out 'Dim GEPlanter As EPlanter' and also the code for Button1_Click, it starts up fine. Any ideas?
B4X:
#Region Project Attributes
#ApplicationLabel: FileFinder
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
End Sub
Sub Globals
Private Button1 As Button
Dim MyFile As String
Dim TextReader1 As TextReader
Private txtInput As EditText
Private txtOutput As EditText
Dim TestInput As Double
Dim TestOutput As Double
Dim TestCall As testwrapper
Dim GEPlanter As EPlanter
Dim TestPath, patha,pathb As String
Dim TestNemaOutput,TestNemaInput As String
Private txtPathA As EditText
Private txtPathB As EditText
Private txtOutputPath As EditText
Private txtInputNEMA As EditText
Private txtOutputNEMA As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Main")
End Sub
Sub Button1_Click
patha=txtPathA.Text
pathb=txtPathB.Text
TestNemaInput=txtInputNEMA.Text
TestPath = GEPlanter.libInit(patha, pathb)
TestNemaOutput = GEPlanter.putNMEA(TestNemaInput)
txtOutputPath.Text=TestPath
txtOutputNEMA.Text=txtOutputNEMA
End Sub
B4X:
package com.graham.EPlanter;
import android.util.Log;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
@ShortName("EPlanter")
@Version(0.1f)
public class GEPlanter
{
private static final String logTAG = "EPlanter";
public int libInit(String configName, String fieldName)
{
Log.i(logTAG,(configName + ", " + fieldName));
return 0;
}
public int putNMEA(String NMEAstring)
{
Log.i(logTAG,NMEAstring);
return 0;
}
}