Android Question ahviewpager and googlemaps has Unable to find resource ID #0xd error

phukol

Active Member
Licensed User
Longtime User
Hi guys, i did a research on this topic because im using both on my app. I was already experiencing the Resources not found error so what i did is to just use Doevents under Activity_Resume. However, when i tried to initiate an ActionBar_NavigationItemClick to go back to the previous activity im encountering this problem:

java.lang.RuntimeException: Unable to pause activity {manila.fun/manila.fun.market_info}: android.content.res.Resources$NotFoundException: Unable to find resource ID #0xd

i tried adding Doevents to Activity_pause but to no avail. I tried looking at various posts but the only fix i got was for a viewpager by using :

B4X:
vp.Initialize("vp", 10, 100%x, h)

Dim jo As JavaObject = vp
jo = jo.GetFieldJO("vp").RunMethod("setOffscreenPageLimit", ArrayAsObject(100))

but is not working as i think AHVViewpager has a different class used.
 

phukol

Active Member
Licensed User
Longtime User
yes dude. The only solution is to set the index of the pager to the one with googlemaps, then if ever you need to show your first page, return the focus or index to the very first page.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…