B4A Library B4APhotoPager v3.85

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi All, B4APhotoPager is Update to v2.0.

B4APhotoPager_Demo v2.0.zip
B4APhotoPager_Library v2.0.zip


Wath's new:

Updated the engine

Changed:

Initialize("",true) instead of Initialize("")

PauseEngine instead of Pause



Added:


SetPageTag - Sets the tag to the page at the specified index

GetPageTag - Returns the tag of the page at the specified index


************************************

File - Returns associated files below:

File.FromAssets
File.FromSdCard
File.FromExtSdCard
File.FromHttp
File.FromHttps

************************************

Color - Returns more than 400 various colors associated with:

************************************

LoadBitmap - Loads and decodes image synchronously

LoadBitmap2 - Loads and decodes image synchronously

SetPageBackgroundImage - Sets a bitmap to the page

SetPanelBackgroundImage - Sets a bitmap to the panel

SetPageBackgroundColor - Sets a color to the page

SetPanelBackgroundColor - Sets a color to the panel

SetPageVisible - Sets the visible state of the page

IsPageVisible - Returns the visible state of the page

SetPageEnabled - Sets the enabled state of the page

IsPageEnabled - Returns the enabled state of the page

SwapView - Swaps two pages

AddView - Adds view

AddView2 - Adds view with specified size

AddViewAt - Adds view to the specified index

AddViewAt2 - Adds any view

RemoveViewAt - Remove view to the specified index

RemoveAllViews - Remove All view

LoadLayout - Load a layout created with designer

LoadLayout2 - Load a layout created with designer to the specified index

Any comment or bug please report it.
 
Last edited:

itgirl

Active Member
Licensed User
Longtime User
hello and thanks for the great update , i was wondering if you worked about the bug ive posted HERE and applied the fix mentioned HERE
 

itgirl

Active Member
Licensed User
Longtime User
Hi itgirl, still get error? and for the onInterceptTouchEvent I'm sorry I forgot to implement it.
Hey, yes i still get the error it's a bug in the original code and they didnt find a solution for it yet :/ only a work around so you dont get force close
 

itgirl

Active Member
Licensed User
Longtime User
i got Samsung galaxy s4 which is running android 5.1.1 i get the error whenever i pinch and zoom without release 4-5 times repeatedly ....
This does not happen always but it happens everytime after having added android.support.v4.widget.DrawerLayout which is used by MSMaterialDrawer
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, It's compiled with android 5.0.1 please can U send to my email [ salvigiuseppe@libero.it ] Your email so I compile it with android 6.0 and send to U via email and test it and after tell in the forum if U get still the error if not I'll put it as update .
 

itgirl

Active Member
Licensed User
Longtime User
Yes the problem is solved with the new version thank you so much for this great lib along with the great support works like a charm now
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Yes the problem is solved with the new version thank you so much for this great lib along with the great support works like a charm now

Hi itgirl, I'm happy it work fine but can U tell me which one U got working the first I sent or the second please let me know so I put it as update here.

Thank you for reminding me the problem.
 

itgirl

Active Member
Licensed User
Longtime User
Hi itgirl, I'm happy it work fine but can U tell me which one U got working the first I sent or the second please let me know so I put it as update here.

Thank you for reminding me the problem.
the second one you sent worked i didnt try the first one , was happy coz it worked lol
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi All, B4APhotoPager is Update to v2.20.

Wath's new:

fix:


the problem as reported by itgirl into the post #127

MinimumScale - work fine
MediumScale - work fine
MaximumScale - work fine

******************************************************

working with views and layout created with designer:

OutlineEnabled
OutlineColor

FadeEnabled
IsFadeEnabled

LockEnabled
IsLockEnabled

******************************************************

Added 2 new events:

MatrixChanged
ScaleChanged


B4X:
Sub vp_ScaleChanged(ScaleFactor As Int,FocusX As Int, FocusY As Int)

   Label1.Text = ScaleFactor&" , "&FocusX&" , "&FocusY

End Sub

Sub vp_MatrixChanged(Left As Int, Top As Int, Right As Int, Bottom As Int, Width As Int, Height As Int, CenterX As Int, CenterY As Int)

   Label1.Text = Left&" , "&Top&" , "&Right&" , "&Bottom&" , "&Width&" , "&Height&" , "&CenterX&" , "&CenterY

End Sub

Changed:

LockEnabled instead ToggleLock
IsLockEnabled instead ToggleLock

B4X:
Sub DisableLock_Click

   If (vp.IsLockEnabled) Then

     vp.LockEnabled = False
  
   End If

End Sub

Sub EnableLoock_Click

   vp.LockEnabled = True

End Sub


ZoomEnabled instead ToggleZoom
IsZoomEnabled instead ToggleZoom

B4X:
Sub DisableZoom_Click

   If (vp.IsZoomEnabled) Then

     vp.ZoomEnabled = False
  
   End If

End Sub

Sub EnableZoom_Click

   vp.ZoomEnabled = True

End Sub


DoubleTapEnabled instead ToggleDoubleTap
IsDoubleTapEnabled instead ToggleDoubleTap

B4X:
Sub DisableDoubleTap_Click

   If (vp.IsDoubleTapEnabled) Then

     vp.DoubleTapEnabled = False
  
   End If

End Sub

Sub EnableDoubleTap_Click

   vp.DoubleTapEnabled = True

End Sub


FadeEnabled instead ToggleFade
IsFadeEnabled instead ToggleFade

B4X:
Sub DisableFade_Click

   If (vp.IsFadeEnabled) Then

     vp.FadeEnabled = False
  
   End If

End Sub

Sub EnableFade_Click

   vp.FadeEnabled = True

End Sub



************************** I wish you all a happy New Year. **************************
 

wimpie3

Well-Known Member
Licensed User
Longtime User
Small bug: CurrentItem is shown as readable/writable in the IDE interface help. However, when reading the currentItem, I get:
B4X:
Error description: Property: CurrentItem is writeonly.
 

wimpie3

Well-Known Member
Licensed User
Longtime User
More bugs.

1. When the file cannot be found, the image set in SetImageOnFail is shown. However, this image is zoomable, which does not seem normal to me as it's function is to simply indicate an error.

2. The image set by SetImageForEmptyUri is not shown when ProgressBarVisible=True. This might be the correct behavior, however, this is missing in the docs.

3. When I do this:
B4X:
vp.AddImage(vp.File.FromAssets,"play.png")
, the image in SetImageForEmptyUri is shown, and not the play.png from my Files directory.
 

scsjc

Well-Known Member
Licensed User
Longtime User
Hello
i test this library, and is very nice
but have a some problems...

-when compile from debug, at the moment INITIALIZE >>>> java.lang.StackOverflowError
-if put release work fine (without more libraries... only one proyect very light, if i put on a proyect with more librarys and more code dont work)

some one know to fix that ???
thank a lot



B4X:
LogCat connected to: emulator-5554
--------- beginning of /dev/log/system--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
java.lang.StackOverflowError
    at java.lang.Throwable.<init>(Throwable.java:67)
    at java.lang.Exception.<init>(Exception.java:47)
    at java.io.IOException.<init>(IOException.java:44)
    at java.io.FileNotFoundException.<init>(FileNotFoundException.java:42)
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:316)
    at android.content.res.AssetManager.open(AssetManager.java:290)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1599)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitma
Message longer than Log limit (4000). Message was truncated.
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
java.lang.StackOverflowError
    at java.lang.Throwable.<init>(Throwable.java:67)
    at java.lang.Exception.<init>(Exception.java:47)
    at java.io.IOException.<init>(IOException.java:44)
    at java.io.FileNotFoundException.<init>(FileNotFoundException.java:42)
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:316)
    at android.content.res.AssetManager.open(AssetManager.java:290)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1599)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitma
Message longer than Log limit (4000). Message was truncated.
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
java.lang.StackOverflowError
    at java.lang.Throwable.<init>(Throwable.java:67)
    at java.lang.Exception.<init>(Exception.java:47)
    at java.io.IOException.<init>(IOException.java:44)
    at java.io.FileNotFoundException.<init>(FileNotFoundException.java:42)
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:316)
    at android.content.res.AssetManager.open(AssetManager.java:290)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1599)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitmapFromAssets(PhotoPagerMain.java:1601)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.getBitma
Message longer than Log limit (4000). Message was truncated.
** Activity (main) Resume **
 

cambopad

Active Member
Licensed User
Longtime User
Amazing, thank you very much works perfect.
Can you please upload the working demo project here so that I can also download to test.

I tested the old demo with latest version of this lib, but always got forced close error as below:

B4X:
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:21)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:345)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:425)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:144)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:112)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.LoadLayout(PhotoPagerMain.java:635)
    at it.giuseppe.salvi.photoviewpager.main._activity_create(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
    at it.giuseppe.salvi.photoviewpager.main.afterFirstLayout(main.java:102)
    at it.giuseppe.salvi.photoviewpager.main.access$000(main.java:17)
    at it.giuseppe.salvi.photoviewpager.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5001)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: rocky_beach_500x400.jpg
    at anywheresoftware.b4a.objects.ImageViewWrapper.setImage(ImageViewWrapper.java:92)
    at anywheresoftware.b4a.objects.ImageViewWrapper.build(ImageViewWrapper.java:113)
    ... 24 more
Caused by: java.io.FileNotFoundException: rocky_beach_500x400.jpg
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:316)
    at android.content.res.AssetManager.open(AssetManager.java:290)
    at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:202)
    at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:498)
    at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:69)
    at anywheresoftware.b4a.objects.ImageViewWrapper.setImage(ImageViewWrapper.java:90)
    ... 25 more
main_activity_create (java line: 379)
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
Did you forget to call Activity.LoadLayout?
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:112)
    at it.giuseppe.salvi.library.vp.core.PhotoPagerMain.LoadLayout(PhotoPagerMain.java:635)
    at it.giuseppe.salvi.photoviewpager.main._activity_create(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
    at it.giuseppe.salvi.photoviewpager.main.afterFirstLayout(main.java:102)
    at it.giuseppe.salvi.photoviewpager.main.access$000(main.java:17)
    at it.giuseppe.salvi.photoviewpager.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5001)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Object should first be initialized (ImageView).
Did you forget to call Activity.LoadLayout?
    at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
    at anywheresoftware.b4a.objects.ViewWrapper.innerInitialize(ViewWrapper.java:71)
    at anywheresoftware.b4a.objects.ImageViewWrapper.innerInitialize(ImageViewWrapper.java:35)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:406)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:425)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:144)
    ... 18 more
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
Did you forget to call Activity.LoadLayout?
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi guys, B4APhotoPager has been updated to version 3.80 what's new:

Can work as standalone or with mediabucket, gridview, gallery, photoflow

Changed: Transition instead of Effect

Added:

New effects total 25 effects instead of 12

ShowFromBucket
BackGroundColor

Removed all unnecessary code

Fix:
zoom is reset when the page is changing and others improvements.

qualsiasi commento sara apprezzato.

Best Regards
 

MarcoRome

Expert
Licensed User
Longtime User
Great work Giuseppe
Tried and all work
( Davvero bel lavoro, complimenti Pe )
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…