i am pretty sure it is causing my app crash on start.
Here's some code:
B4X:
Sub Globals
Dim AdView1 As AdView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
'label1.Text = mResult mResult as barcode result
AdView1.Initialize("Ad", "my_id") 'publisher id that you received from AdMob.
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip)
AdView1.LoadAd 'loads an ad
AdView1.Visible = True
End Sub
If File.Exists(File.DirDefaultExternal, "Barcodes.txt") == False Then
File.WriteList(File.DirDefaultExternal, "Barcodes.txt", List1)
End If
If File.Exists(File.DirDefaultExternal, "Monsters.txt") == False Then
File.WriteList(File.DirDefaultExternal, "Monsters.txt", Monsters)
End If
these lines.... There's nothing wrong in them throught...
If File.Exists(File.DirDefaultExternal, "Barcodes.txt") == False Then
File.WriteList(File.DirDefaultExternal, "Barcodes.txt", List1)
End If
If File.Exists(File.DirDefaultExternal, "Monsters.txt") == False Then
File.WriteList(File.DirDefaultExternal, "Monsters.txt", Monsters)
End If
these lines.... There's nothing wrong in them throught...
Well, it is something, but i have a problem because app runs fine when compiling and testing on my android device, but when i download it from the market, it force crashes...
And it's something about files permissions/it cannot write them maybe.