Android Question Compile and run from NAS server

TrisectDevelopment

Active Member
Licensed User
Longtime User
I have just purchased a NAS Server from Western Digital. Its a WD MyBook Live.

So I copied all my source code to the NAS Server and I can open them from B4A. I can compile and add new files(layouts) from B4A.
But when I try to run it I get an error.
"Unfortunately 'APP' has stopped."

If I moved my project to my desktop it runs okay.

Anyone know what could be the problem.
I would like to use my NAS Server as a Development drive. Thats the hole point.
 

TrisectDevelopment

Active Member
Licensed User
Longtime User
Try to run it from NAS in release:
Parsing code. 0.00
Compiling code. 1.42
Compiling layouts code. 0.04
Generating R file. 0.28
Compiling generated Java code. 1.43
Convert byte code - optimized dex. 0.66
Packaging files. 0.33
Copying libraries resources 0.00
Signing package file (debug key). 2.63
ZipAlign file. 0.15
Installing file to device. Error
File 'N:\Trisect Development\Koder\Android\Basic4Android\Virk-App Projects\Virk-App - Trisect Development\Objects\TrisectDevelopment.apk' was not found.
 
Upvote 0

TrisectDevelopment

Active Member
Licensed User
Longtime User
I deleted the APK file on the NAS and compilede Again (under Release) and this time it compiled without error, but when trying to run it give me the old error again.
 
Upvote 0

TrisectDevelopment

Active Member
Licensed User
Longtime User
Heres the logs when trying the emulator:



>>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
CheckJNI is ON


Trying to load lib libjavacore.so 0x0
Added shared lib libjavacore.so 0x0
Trying to load lib libnativehelper.so 0x0
Added shared lib libnativehelper.so 0x0
Error opening trace file: No such file or directory (2)
Calling main entry com.android.commands.pm.Pm
No content provider found for permission revoke: file:///data/local/tmp/TrisectDevelopment_DEBUG.apk
No content provider found for permission revoke: file:///data/local/tmp/TrisectDevelopment_DEBUG.apk
Copying native libraries to /data/app-lib/vmdl-1248075643
GC_CONCURRENT freed 672K, 40% free 6892K/11412K, paused 73ms+80ms, total 250ms
Force stopping package dk.trisect.TrisectDevelopment appid=10049 user=-1
Package dk.trisect.TrisectDevelopment codePath changed from /data/app/dk.trisect.TrisectDevelopment-2.apk to /data/app/dk.trisect.TrisectDevelopment-1.apk; Retaining data and using new
Running dexopt on: dk.trisect.TrisectDevelopment
DexOpt: load 150ms, verify+opt 475ms, 858316 bytes
Force stopping package dk.trisect.TrisectDevelopment appid=10049 user=-1
Code path for pkg : dk.trisect.TrisectDevelopment changing from /data/app/dk.trisect.TrisectDevelopment-2.apk to /data/app/dk.trisect.TrisectDevelopment-1.apk
Resource path for pkg : dk.trisect.TrisectDevelopment changing from /data/app/dk.trisect.TrisectDevelopment-2.apk to /data/app/dk.trisect.TrisectDevelopment-1.apk
Force stopping package dk.trisect.TrisectDevelopment appid=10049 user=0
Reconfiguring input devices. changes=0x00000010
Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:dk.trisect.TrisectDevelopment flg=0x8000010 (has extras) }
Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1385 android.content.ContextWrapper.startService:473 android.content.ContextWrapper.startService:473 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2424
GC_CONCURRENT freed 324K, 14% free 2944K/3424K, paused 10ms+13ms, total 441ms
Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dk.trisect.TrisectDevelopment flg=0x8000010 (has extras) }
removePackageParticipantsLocked: uid=10049 #1
Reconfiguring input devices. changes=0x00000010
addPackageParticipantsLocked: #1
GC_EXPLICIT freed 1086K, 42% free 6649K/11412K, paused 7ms+91ms, total 323ms
Shutting down VM
GC_CONCURRENT freed 91K, 17% free 477K/572K, paused 1ms+1ms, total 13ms
no available voice recognition services found for user 0

>>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
CheckJNI is ON
Trying to load lib libjavacore.so 0x0
Added shared lib libjavacore.so 0x0
Trying to load lib libnativehelper.so 0x0
Added shared lib libnativehelper.so 0x0
Error opening trace file: No such file or directory (2)
Calling main entry com.android.commands.am.Am
Note: class Landroid/app/ActivityManagerNative; has 163 unimplemented (abstract) methods
START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=dk.trisect.TrisectDevelopment/.main} from pid 883
Screenshot failure taking screenshot for (328x546) to layer 21005
Shutting down VM
GC_CONCURRENT freed 93K, 16% free 511K/608K, paused 1ms+1ms, total 10ms
PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 2 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 3 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 4 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 5 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 6 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 7 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 8 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 9 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 10 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 11 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 12 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 13 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 14 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 15 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 16 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.


PR_CAPBSET_DROP 17 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 18 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 19 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 20 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 21 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 22 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 23 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 24 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 25 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 26 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 27 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 28 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 29 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 30 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 31 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 32 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
Start proc dk.trisect.TrisectDevelopment for activity dk.trisect.TrisectDevelopment/.main: pid=894 uid=10049 gids={50049, 3003, 3002, 1015, 3001, 1028}
Shutting down VM


threadid=1: thread exiting with uncaught exception (group=0x41465700)


FATAL EXCEPTION: main


java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{dk.trisect.TrisectDevelopment/dk.trisect.TrisectDevelopment.main}: java.lang.ClassNotFoundException: Didn't find class "dk.trisect.TrisectDevelopment.main" on path: DexPathList[[zip file "/data/app/dk.trisect.TrisectDevelopment-1.apk"],nativeLibraryDirectories=[/data/app-lib/dk.trisect.TrisectDevelopment-1, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "dk.trisect.TrisectDevelopment.main" on path: DexPathList[[zip file "/data/app/dk.trisect.TrisectDevelopment-1.apk"],nativeLibraryDirectories=[/data/app-lib/dk.trisect.TrisectDevelopment-1, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
... 11 more
Force finishing activity dk.trisect.TrisectDevelopment/.main


Screenshot failure taking screenshot for (328x546) to layer 22010


Skipped 63 frames! The application may be doing too much work on its main thread.


Activity pause timeout for ActivityRecord{419dbdd0 u0 dk.trisect.TrisectDevelopment/.main}
 
Upvote 0

TrisectDevelopment

Active Member
Licensed User
Longtime User
Its the same with a real device.
The App gets installed.
I then click Open on the device and after some time I get the "Unfortunately" error.

This is the log:
LogCat connected to: B4A-Bridge: samsung GT-I8190N-356508059353245
--------- beginning of /dev/log/main
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
Starting Job: Job1
** Service (httputilsservice) Start **
Starting Job: Job2
** Service (httputilsservice) Start **
Starting Job: Job3
** Service (httputilsservice) Start **
Starting Job: Job4
** Service (httputilsservice) Start **
** Service (httputilsservice) Destroy **
main_imgforside_click (B4A line: 754)
myTabhost.AddTab("Forside", "forside")
java.lang.NullPointerException
at anywheresoftware.b4a.objects.ViewWrapper.getWidth(ViewWrapper.java:126)
at anywheresoftware.b4a.objects.TabHostWrapper.createPanelForLayoutFile(TabHostWrapper.java:115)
at anywheresoftware.b4a.objects.TabHostWrapper.AddTab(TabHostWrapper.java:105)
at dk.trisect.AppsAndroid.main._imgforside_click(main.java:626)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:64)
at android.view.View.performClick(View.java:4162)
at android.view.View$PerformClick.run(View.java:17082)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)
(Intent) Intent { act=android.intent.action.MAIN flg=0x20000000 cmp=anywheresoftware.b4a.designer/.Designer }
no extras
Installing file.
PackageAdded: package:dk.trisect.AppsAndroid
** Activity (main) Create, isFirst = true **
Starting Job: Job0
** Activity (main) Resume **
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
Starting Job: Job1
** Service (httputilsservice) Start **
Starting Job: Job2
** Service (httputilsservice) Start **
Starting Job: Job3
** Service (httputilsservice) Start **
Starting Job: Job4
** Service (httputilsservice) Start **
** Service (httputilsservice) Destroy **
main_imgforside_click (B4A line: 759)
Activity.AddView(myTabhost, 0%x, 0%y, 100%x, 100%y)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:3439)
at android.view.ViewGroup.addView(ViewGroup.java:3310)
at android.view.ViewGroup.addView(ViewGroup.java:3286)
at anywheresoftware.b4a.objects.ActivityWrapper.AddView(ActivityWrapper.java:119)
at dk.trisect.AppsAndroid.main._imgforside_click(main.java:638)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:64)
at android.view.View.performClick(View.java:4162)
at android.view.View$PerformClick.run(View.java:17082)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Connected to B4A-Bridge (Wifi)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Connected to B4A-Bridge (Wifi)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Installing file.
PackageAdded: package:dk.trisect.TrisectDevelopment
** Activity (main) Create, isFirst = true **
(Main, 42) FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)
** Activity (main) Resume **
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Connected to B4A-Bridge (Wifi)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Installing file.
PackageAdded: package:b4a.savehtml
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
PageFinished: B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)
Message longer than Log limit (4000). Message was truncated.
Installing file.
PackageAdded: package:b4a.savehtml
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
PageFinished: B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)
Message longer than Log limit (4000). Message was truncated.
ProcessHTML: <html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">{"status":"ok","count":2,"count_total":2,"pages":1,"posts":[{"id":97,"type":"post","slug":"cafe-tilbud","url":"http:\/\/www.romobageri.dk\/index.php\/cafe-tilbud\/","status":"publish","title":"Caf\u00e9 tilbud&amp;#8230;","title_plain":"Caf\u00e9 tilbud&amp;#8230;","content":"&lt;table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 1px solid black; border-image: none; width: 100%;\"&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;td style=\"width: 15%; text-align: left; vertical-align: top; background-color: rgb(164, 25, 32);\"&gt;\n\t\t\t\t&lt;img alt=\"\" src=\"http:\/\/www.romobageri.dk\/wp-content\/uploads\/2013\/10\/tilbud_2.jpg\" style=\"border-width: 2px; border-style: solid; width: 161px; height: 150px;\" \/&gt;\n\t\t\t&lt;\/td&gt;\n&lt;td style=\"width: 2%; text-align: left; vertical-align: top; background-color: rgb(164, 25, 32);\"&gt;\n\t\t\t\t&amp;nbsp;\n\t\t\t&lt;\/td&gt;\n&lt;td style=\"width: 83%; text-align: left; vertical-align: top; background-color: rgb(164, 25, 32);\"&gt;\n&lt;h1 style=\"text-align: left;\"&gt;\n\t\t\t\t\t&lt;span style=\"font-family: trebuchet ms,helvetica,sans-serif;\"&gt;&lt;span style=\"font-size: 14px;\"&gt;Morgekomplet med fri kaffe\/te.&lt;\/span&gt;&lt;\/span&gt;&lt;br \/&gt;\n\t\t\t\t&lt;\/h1&gt;\n&lt;h1 style=\"text-align: left;\"&gt;\n\t\t\t\t\t&lt;span style=\"font-family: trebuchet ms,helvetica,sans-serif;\"&gt;&lt;span style=\"font-size: 14px;\"&gt;Kr. 95,-&lt;\/span&gt;&lt;\/span&gt;&lt;br \/&gt;\n\t\t\t\t&lt;\/h1&gt;\n&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;\/tbody&gt;\n&lt;\/table&gt;\n","excerpt":"&lt;p&gt;&amp;nbsp; Morgekomplet med fri kaffe\/te. Kr. 95,-&lt;\/p&gt;\n","date":"2013-10-07 07:28:12","modified":"2013-12-01 04:56:38","categories":[{"id":4,"slug":"tilbud","title":"Tilbud","description":"","parent":0,"post_count":1}],"tags":[{"id":38,"slug":"mobil-tilbud","title":"mobil-tilbud","description":"","post_count":2}],"author":{"id":2,"slug":"bentm","name":"Bent Maass","first_name":"Bent","last_name":"Maass","nickname":"bentm","url":"http:\/\/www.romobageri.dk","description":""},"comments":[],"attachments":[],"comment_count":0,"comment_status":"closed","custom_fields":{}},{"id":84,"type":"post","slug":"til-den-sode-tand","url":"http:\/\/www.romobageri.dk\/index.php\/til-den-sode-tand\/","status":"publish","title":"Til den s\u00f8de tand&amp;#8230;","title_plain":"Til den s\u00f8de tand&amp;#8230;","content":"&lt;table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 1px solid black; border-image: none; width: 100%;\"&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;td style=\"width: 15%; text-align: left; vertical-align: top; background-color: rgb(164, 25, 32);\"&gt;\n&lt;h1&gt;\n\t\t\t\t\t&lt;img alt=\"\" src=\"http:\/\/www.romobageri.dk\/wp-content\/uploads\/2013\/10\/tilbud_1.jpg\" style=\"border-width: 2px; border-style: solid; width: 161px; height: 150px;\" \/&gt;&lt;br \/&gt;\n\t\t\t\t&lt;\/h1&gt;\n&lt;\/td&gt;\n&lt;td style=\"width: 2%; text-align: center; background-color: rgb(164, 25, 32);\"&gt;\n\t\t\t\t&amp;nbsp;\n\t\t\t&lt;\/td&gt;\n&lt;td style=\"width: 83%; text-align: left; vertical-align: top; background-color: rgb(164, 25, 32);\"&gt;\n&lt;h1 style=\"text-align: center;\"&gt;\n\t\t\t\t\t&lt;strong&gt;&lt;span style=\"font-size: 14px;\"&gt;&lt;span style=\"font-family: arial,helvetica,sans-serif;\"&gt;Jule tilbud &lt;\/span&gt;&lt;\/span&gt;&lt;\/strong&gt;&lt;br \/&gt;\n\t\t\t\t&lt;\/h1&gt;\n&lt;p style=\"text-align: center;\"&gt;\n\t\t\t\t\t&lt;strong&gt;&lt;span style=\"font-size: 14px;\"&gt;&lt;span style=\"font-family: arial,helvetica,sans-serif;\"&gt;2 Bakker Sm&amp;aring;kager frit valg 45,00 kr.&lt;\/span&gt;&lt;\/span&gt;&lt;\/strong&gt;\n\t\t\t\t&lt;\/p&gt;\n&lt;p style=\"text-align: center;\"&gt;\n\t\t\t\t\t&lt;strong&gt;&lt;span style=\"font-size: 14px;\"&gt;&lt;span style=\"font-family: arial,helvetica,sans-serif;\"&gt;1 stk klejne 7,00 kr. 10 stk klejner tilbudspris 50,00 kr.&l
Message longer than Log limit (4000). Message was truncated.
** Activity (main) Pause, UserClosed = true **
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Ignoring event (too many queued events: CallSubDelayed - UpdateStatus)
Connected to B4A-Bridge (Wifi)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Ignoring event (too many queued events: CallSubDelayed - UpdateStatus)
Installing file.
PackageAdded: package:b4a.savehtml
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
PageFinished: B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)
** Activity (main) Pause, UserClosed = true **
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Ignoring event (too many queued events: CallSubDelayed - UpdateStatus)
Connected to B4A-Bridge (Wifi)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Ignoring event (too many queued events: CallSubDelayed - UpdateStatus)
Installing file.
PackageAdded: package:b4a.savehtml
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
Installing file.
PackageAdded: package:b4a.savehtml
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Ignoring event (too many queued events: CallSubDelayed - UpdateStatus)
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:com.google.android.music
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
Connected to B4A-Bridge (Wifi)
sending message to waiting queue (CallSubDelayed - UpdateStatus)
Ignoring event (too many queued events: CallSubDelayed - UpdateStatus)
Installing file.
Installing file.
Installing file.
PackageAdded: package:dk.trisect.TrisectDevelopment

I tried to change the right of the APK file on my NAS server, but that did not help.

I think that it maybe something to do with rights because it runs fine if I run the same project from my local harddrive.
 
Upvote 0

TrisectDevelopment

Active Member
Licensed User
Longtime User
This is my code.
#Region Project Attributes

#ApplicationLabel: Trisect Development

#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

'These global variables will be declared once when the application starts.

'These variables can be accessed from all modules.

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.

DimivBaggrundNyhederAsImageView

DimwwNyhederAsWebView

DimiwBaggrundInformationAsImageView

DimiwFirmaLogoAsImageView

DimlblInformationTekstAsLabel

DimiwBaggrundKontaktAsImageView

DimlblKontaktTekstAsLabel

DimtbMainAsTabHost

End Sub

Sub Activity_Create(FirstTime AsBoolean)

'Do not forget to load the layout file created with the visual designer. For example:

Activity.LoadLayout("mainLayout")

tbMain.AddTab("Nyheder", "Nyheder")

tbMain.AddTab("Information", "Information")

tbMain.AddTab("Kontakt", "Kontakt")



'** Indsæt webview

wwNyheder.LoadUrl("http://www.google.com")



'** Indsæt informations tekst

lblInformationTekst.Text = "Dette er firma teksten"

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed AsBoolean)

End Sub

This code Works if I run it from my harddisk.
 
Upvote 0
Top