Bug? Strange error..

Strange error...

  • ..

    Votes: 0 0.0%
  • ...

    Votes: 0 0.0%

  • Total voters
    0

sea121

Member
Licensed User
Longtime User
I was developing an application that include AHQuickAction library, this application was been compiled with success until 2 days ago, now i am trying to compile again but i see a strange error that i can not explain : ( log report )

** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **


main_panel_popup (java line: 5632)



Sub PANEL_Popup(idx As Int)

Dim i As Int

popmen(idx).Initialize("MNU_POPUP_" & idx, popmen(idx).VERTICAL) <=== this is the line generating error



android.content.res.Resources$NotFoundException: Resource ID #0x0


at android.content.res.Resources.getValue(Resources.java:1026)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2131)
at android.content.res.Resources.getLayout(Resources.java:865)
at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at de.amberhome.quickaction.QuickAction3D.setRootViewId(QuickAction3D.java:148)
at de.amberhome.quickaction.QuickAction3D.Initialize(QuickAction3D.java:85)
at sea.domox.main._panel_popup(main.java:5632)
at sea.domox.main._panel_create_phone(main.java:3945)
at sea.domox.main._activity_create(main.java:499)
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 sea.domox.main.afterFirstLayout(main.java:98)
at sea.domox.main.access$100(main.java:16)
at sea.domox.main$WaitForLayout.run(main.java:76)
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:4856)
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)
android.content.res.Resources$NotFoundException: Resource ID #0x0



1- if I install a simple demo of AHQuickaction i dont see any error...
2- I didnt change nothing in source code
3- it was running well until 2 days ago

please can someone help me ?

Thanks.

Fabrizio
 

sea121

Member
Licensed User
Longtime User
changed also in :

Sub Globals

Dim popmen(10) As AHQuickAction ' menu popup

..
..
..


Sub PANEL_Popup(idx As Int)

popmen(idx).Initialize("MNU_POPUP_" & idx)

Dim i As Int




but nothing.. same error.

I am using B4A V. 3.00 Full
 

sea121

Member
Licensed User
Longtime User
#Region Project Attributes
#ApplicationLabel: B4A Example
#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.
Dim popmen(10) As AHQuickAction ' menu popup


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")

PANEL_Popup(0)

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub


Sub PANEL_Popup(idx As Int)

popmen(idx).Initialize("MNU_POPUP_" & idx)

End Sub
 
Top