hi I'm new to Andoid

georgecusick

New Member
Licensed User
Longtime User
Hi
I have just come to B4A. Been trying to learn, its been slow going but now making progress.

A simple app I want to do is as follows:

1. some photos stored in a database
2. a list on the device with names
3. user clicks on a list item and the picture is displayed along with a small bit of text
4. possibility to view a gallery of photos if the name is not known
5. A search facility to make finding name on list quicker. ie user types letter A, is taken to part of list containing A's
6. Is it possible that instead of storing pictures on device they can be downloaded from external site ?

I know there are some tutorials out there which help eg listview tutorial but it seems to me that I need a bit more than that. I have created a list of names but cant get the program to then look up a list item in a database of photos

any help appreciated
george:sign0085:
 

georgecusick

New Member
Licensed User
Longtime User
thanks for that, but that was a bit of advanced topic for me, more of an aside.
How can I get to click in a list and bring up an image from local storage?
cheers
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
There are several ways to do it.
You can add the bitmap as the return value when you add the item to the list:
B4X:
ListView1.AddSingleLine("some text", LoadBitmap(File.DirAssets, "1.jpg"))
Later when the user clicks on this item the bitmap will be passed as the Value parameter.

This method will not work with large lists as you load all bitmaps to memory.
 
Upvote 0

georgecusick

New Member
Licensed User
Longtime User
thanks for help, more needed

Thanks for the reply.

I list will only be about 40 items long maximum so this solution should be ok.
What about viewing a gallery of ALL 40 pictures?

thanks
 
Upvote 0
Top