Android Question ConfigureHomeWidget - FileNotFoundException

PhilipK

Member
Licensed User
Longtime User
Hi,

I have had an application running well for months, on my old HTC phone (Gingerbread). I have just upgraded my phone Sony Z1 (KitKat) and found the application to be unstable.

Using the debug tool traps an error when configuring the home widget:

B4X:
    rv = ConfigureHomeWidget("hp", "rv", 30, "MainWindow")

Error in Debug Window:

upload_2014-9-20_8-39-54.png


I have checked that the file hp.bal exists in the files folder. Is it some sort of file access error? Very odd considering it worked for months before. Obviously a hardware and OS change...

Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
Maybe you need to uninstall and install the app again.
Probably you have to use
B4X:
#DebuggerForceStandardAssets: true
' and/or
#DebuggerForceFullDeployment: true
in the Project attributes if you are compiling in debug-modes.

You error suggest that the bal-file (layout) is missing.
 
Upvote 0

PhilipK

Member
Licensed User
Longtime User
Thanks guys,

The BAL file has always been present and I just can't understand why there's a 'FileNotFound' exception.

Tried the '#DebuggerForceStandardAssets: True' and that got over the error (in debug mode). However, the debug installed widget didn't respond to touch. So I've abandoned Debug Mode.

Now compiled in release mode and it works. Thanks Erel.

Time to get back to the issue with the app.: tracking down the instability. Lack of response to touch inputs after hibernation, over time. I reckon it is something to do with the OS interfering with the service, in some way.

Thanks again.
 
Upvote 0
Top