I excluded the Android Directory from being scanned by Bullguard and also I changed the signing key.  It now installs successfully
However,
1) In Debug the Activity appears with two buttons as designed BUT
2) In release In crashes
I put the #Bridgelogger to see errors and now the 
	
	
	
	
	
	
	
	
	
		Activity.LoadLayout("layout1")
	 
	
	
		
	
 
The layout1.bal is in the files directory C:\Android\GPS Tracker\Files\layout1.bal
BUT - 
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 344)
java.io.FileNotFoundException: layout1.bal
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:388)
    at android.content.res.AssetManager.open(AssetManager.java:362)
    at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:207)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.gpstrack2.main._activity_create(main.java:344)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at b4a.gpstrack2.main.afterFirstLayout(main.java:104)
    at b4a.gpstrack2.main.access$000(main.java:17)
    at b4a.gpstrack2.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6940)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
I also added a simple bit of code....
	
	
	
	
	
	
	
	
	
		Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    
Dim sms As PhoneSms
   
End Sub
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    
    Private smslink As Button
    Private Button1 As Button
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("layout1")
    
    Activity.Title = "Hello"
End Sub
Sub smslink_Click
    
    sms.Send("0780******","check123456")
    
End Sub
Sub Button1_Click
    
End Sub
	 
	
	
		
	
 
In debug where I can see the the Activity I pressed the button but got another crash 

  Relating to a 'Dangerous Permssion'
Error occurred on line: 45 (Main)
java.lang.SecurityException: Sending SMS message: uid 10631 does not have android.permission.SEND_SMS.
    at android.os.Parcel.readException(Parcel.java:1967)
    at android.os.Parcel.readException(Parcel.java:1913)
    at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:1571)
    at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:396)
    at android.telephony.SmsManager.sendTextMessage(SmsManager.java:350)
    at anywheresoftware.b4a.phone.Phone$PhoneSms.Send2(Phone.java:644)
    at anywheresoftware.b4a.phone.Phone$PhoneSms.Send(Phone.java:626)
    at b4a.gpstrack2.main._smslink_click(main.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:6896)
    at android.widget.TextView.performClick(TextView.java:12689)
    at android.view.View$PerformClick.run(View.java:26088)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
After returning to coding this has become a difficult job 

...it used to work a dream 

 What am I doing wrong?
RIchard