Android Tutorial B4XTable - Photos Album

Discussion in 'Tutorials & Examples' started by Erel, Mar 3, 2019.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]

    In this example the table is used to show the camera roll photos.

    Main steps:
    1. Get permission to access the external storage.
    2. Collect the image files from several folders.
    3. Add the columns and add ImageViews to all cells.
    4. Load the images when the table is updated.
    5. Show a dialog with a large image when an image is clicked.
     

    Attached Files:

    wyatt420, Beja, koaunglay and 12 others like this.
  2. GMan

    GMan Well-Known Member Licensed User

    Just-in-Time :D
     
  3. little3399

    little3399 Active Member Licensed User

    running error ...

    Edit (Erel): I've removed the large image. You should never post code or error messages as images.
     

    Attached Files:

    Last edited by a moderator: Mar 3, 2019
  4. GMan

    GMan Well-Known Member Licensed User

  5. Myr0n

    Myr0n Active Member Licensed User

  6. GMan

    GMan Well-Known Member Licensed User

    As i see: there is not the photoalbum example included
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    ?
     
    emexes likes this.
  8. sz4t4n

    sz4t4n Member Licensed User

    I have error with missing .jar
    Code:
    B4A Version: 8.80
    Parsing code.    (
    0.13s)
    Building folders structure.    (
    0.09s)
    Compiling code.    (
    0.57s)
    Compiling layouts code.    (
    0.01s)
    Organizing libraries.    (
    0.00s)
    Generating R 
    file.    (0.43s)
    Compiling generated Java code.    Error
    Cannot find: D:\Basic4android\libraries\b4xformatter.jar

    But b4xformatter is a .b4xlib. Did I missed something?

    upload_2019-3-3_15-14-2.png
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Make sure that there is no file named B4XFormatter.xml in the libraries folders. You should only have a b4xlib file.
     
  10. sz4t4n

    sz4t4n Member Licensed User

    Ok its working fine. I have to close and open again program and its OK. Sorry for trouble
     
    Mike1970 likes this.
  11. GMan

    GMan Well-Known Member Licensed User

    In the Table-Example is not the Photoalbum example, but another Table-Example
    Code:
    'create the columns
        B4XTable1.AddColumn("US County", B4XTable1.COLUMN_TYPE_NUMBERS)
        B4XTable1.AddColumn(
    "Name", B4XTable1.COLUMN_TYPE_TEXT)
        
    Dim StateColumn As B4XTableColumn = B4XTable1.AddColumn("State", B4XTable1.COLUMN_TYPE_TEXT)
        StateColumn.Width = 
    80dip
        NumberColumn = B4XTable1.AddColumn(
    "Interesting Number", B4XTable1.COLUMN_TYPE_NUMBERS)
        CreateCustomFormat(NumberColumn)
        
        
    'load the data
        Dim su As StringUtils
        
    Dim headers As List
        headers.Initialize 
    'the list is only used to skip the headers row
        Dim data As List = su.LoadCSV2(File.DirAssets, "us_counties.csv"",", headers)
        B4XTable1.SetData(data)
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    The photo album example is attached to the first post.
     
  13. GMan

    GMan Well-Known Member Licensed User

    Yo, i downloaded this and its the shown example with the Database Tables
     
  14. GMan

    GMan Well-Known Member Licensed User

    I downloaded it again and now its the rigth one

    OK, i downloaded the other Example before, too - the same name :D
     
  15. Jose Swett

    Jose Swett New Member Licensed User

    Hi
    Were can I find B4Xtable library for B4J, need for Windows.
    Thanks a lot
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    You are not posting in the correct place. Search for B4XTable. If you don't find it then start a new thread.
     
Thread Status:
Not open for further replies.
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