Hi Everyone,
In my app I have this map:
I'm using the UltimateListView to reorder this values in this map. In the ULV_Dropped sub routine I would like to be able to store the reordered list on the Android device using the KeyValueStore and later get the reordered list back into the UltimateListView. This will happen when the user starts the app up again after pressing the home button to quit from the app.
Can you tell me how I would go about doing that in my code?
In my app I have this map:
B4X:
Photos.Initialize
Photos.Put("1", LoadBitmapSample(File.DirAssets, "IMG_0320.jpg", 50dip, 50dip))
Photos.Put("The Jamarat", LoadBitmapSample(File.DirAssets, "IMG_0367.jpg", 50dip, 50dip))
Photos.Put("Makka - Roof of Masjid", LoadBitmapSample(File.DirAssets, "IMG_0270.jpg", 50dip, 50dip))
Photos.Put("Uhud - Masjid", LoadBitmapSample(File.DirAssets, "IMG_0327.jpg", 50dip, 50dip))
Photos.Put("Masjid Kuba", LoadBitmapSample(File.DirAssets, "IMG_0325.jpg", 50dip, 50dip))
Photos.Put("Uhud - Graves", LoadBitmapSample(File.DirAssets, "IMG_0328.jpg", 50dip, 50dip))
Photos.Put("Kabba - The black stone", LoadBitmapSample(File.DirAssets, "IMG_0278.jpg", 50dip, 50dip))
Photos.Put("Maqam-e-Ibrahim", LoadBitmapSample(File.DirAssets, "IMG_0272.jpg", 50dip, 50dip))
Photos.Put("Bus to Makka", LoadBitmapSample(File.DirAssets, "IMG_0221.jpg", 50dip, 50dip))
Photos.Put("Hajj terminal", LoadBitmapSample(File.DirAssets, "IMG_0375.jpg", 50dip, 50dip))
Photos.Put("Muzdalifah - Salat", LoadBitmapSample(File.DirAssets, "IMG_0361.jpg", 50dip, 50dip))
Photos.Put("Mina - Transportation", LoadBitmapSample(File.DirAssets, "IMG_0357.jpg", 50dip, 50dip))
Photos.Put("Mina - Tents", LoadBitmapSample(File.DirAssets, "IMG_0350.jpg", 50dip, 50dip))
Photos.Put("Mina - Where we sleep", LoadBitmapSample(File.DirAssets, "IMG_0349.jpg", 50dip, 50dip))
Photos.Put("Changing of the Quibla", LoadBitmapSample(File.DirAssets, "IMG_0337.jpg", 50dip, 50dip))
Photos.Put("Masjid Kuba 1", LoadBitmapSample(File.DirAssets, "IMG_0335.jpg", 50dip, 50dip))
Photos.Put("Uhud - Quran revealed", LoadBitmapSample(File.DirAssets, "IMG_0329.jpg", 50dip, 50dip))
Photos.Put("Kaba - Day time", LoadBitmapSample(File.DirAssets, "IMG_0273.jpg", 50dip, 50dip))
Photos.Put("Kaba - Night time", LoadBitmapSample(File.DirAssets, "IMG_0261.jpg", 50dip, 50dip))
Photos.Put("Madina - Day time", LoadBitmapSample(File.DirAssets, "IMG_0308.jpg", 50dip, 50dip))
Photos.Put("Arafat - About to climb", LoadBitmapSample(File.DirAssets, "IMG_0251.jpg", 50dip, 50dip))
Photos.Put("Madina - Inside", LoadBitmapSample(File.DirAssets, "IMG_0310.jpg", 50dip, 50dip))
Photos.Put("Masjid Kuba 2", LoadBitmapSample(File.DirAssets, "IMG_0324.jpg", 50dip, 50dip))
Photos.Put("Arafat - At the top", LoadBitmapSample(File.DirAssets, "IMG_0254.jpg", 50dip, 50dip))
Photos.Put("Muzdalifah - Night time", LoadBitmapSample(File.DirAssets, "IMG_0362.jpg", 50dip, 50dip))
Photos.Put("Makka - Duah", LoadBitmapSample(File.DirAssets, "IMG_0285.jpg", 50dip, 50dip))
Photos.Put("Madina - Roof of Masjid", LoadBitmapSample(File.DirAssets, "IMG_0312.jpg", 50dip, 50dip))
I'm using the UltimateListView to reorder this values in this map. In the ULV_Dropped sub routine I would like to be able to store the reordered list on the Android device using the KeyValueStore and later get the reordered list back into the UltimateListView. This will happen when the user starts the app up again after pressing the home button to quit from the app.
Can you tell me how I would go about doing that in my code?
Last edited: