B4i Library ALAssets - Wraps the Native ALAssets Framework (Photos)

Discussion in 'iOS Libraries' started by narek adonts, Mar 30, 2016.

  1. narek adonts

    narek adonts Well-Known Member Licensed User

    Hi,

    Please find attached a tiny wrapper for the native ALAssets framework of iOS which let you get all the photos from the phone, put photos, create album, ...
    I have added the basic features like get all assets, albums, thumbnails, create album, put an asset to an album,...

    You can add a lot of new feature to it as it return the native objects.

    please let me know the features that are missing.

    Please see the example attached. It is a basic photo viewer app. VERY SIMPLE

    regards

    Narek
     

    Attached Files:

    ilan, Erel, JordiCP and 5 others like this.
  2. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    OK Narek. I will try right now and tell you the results!
     
  3. cloner7801

    cloner7801 Active Member Licensed User

    When build example project , application opened ! and after that crash ! without log !

    In iPhone 7 or simulator
     
  4. narek adonts

    narek adonts Well-Known Member Licensed User

    Are you running your app in debug mode ?
     
    cloner7801 likes this.
  5. cloner7801

    cloner7801 Active Member Licensed User

    Yes
     
  6. narek adonts

    narek adonts Well-Known Member Licensed User

    Maybe some methods are depreciated. I will check it.
     
    cloner7801 likes this.
  7. cloner7801

    cloner7801 Active Member Licensed User

    I will wait for you
     
  8. JanPRO

    JanPRO Well-Known Member Licensed User

    Since iOS 10 you have to add the photo library usage description. So just add the following PlistExtra:

    Code:
    #PlistExtra:<key>NSPhotoLibraryUsageDescription</key><string>For selecting photos</string>
    Jan
     
    cloner7801 likes this.
  9. cloner7801

    cloner7801 Active Member Licensed User

    Solved, thanks Jan.
     
  10. nw11

    nw11 Member Licensed User

    is there any way i can retreive all the images of a specific album ?
     
    cloner7801 likes this.
  11. cloner7801

    cloner7801 Active Member Licensed User

    I have same problem !
    I can get a album image counts but I cant get thats photos
     
  12. cloner7801

    cloner7801 Active Member Licensed User

  13. narek adonts

    narek adonts Well-Known Member Licensed User

    Sure. You just need to slightly modify the code. Will do it tomorrow
     
    cloner7801 likes this.
  14. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello Narek,

    Do you have some update for this wrapper?

    I mean, we need some function to do this things:

    • List Albuns Names
    • MyPhotos.GetAssets ("someAlbum")

    Thank You Narek! :)
     
    cloner7801 likes this.
  15. JackKirk

    JackKirk Well-Known Member Licensed User

    See:

    https://www.b4x.com/android/forum/t...s-wrapper-for-photo-library-management.82938/
     
  16. ilan

    ilan Expert Licensed User

    really awesome @narek adonts.
    is it maybe possible to get the size of the file (in kb) and also the name of the file?

    thank you
     
    Last edited: Dec 16, 2018
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice