I am not getting album art/thumbnail of album category in MusicLibrary (only getting default mp3 icon / thumbnail.Type == ThumbnailType.Icon) in WP 8.1 ,C#.Not getting ThumbnailType.Image. Plz Help

 private async Task GenerateMusicInternalStorageItems(IReadOnlyList<StorageFolder> musicLibrary)
            foreach (StorageFolder item in musicLibrary)
                try
                    IReadOnlyList<IStorageItem> folderContents = await item.GetItemsAsync();
                    if (folderContents.Count > 0)
                        MusicMyDeviceFolderViewModel objMusicMyDeviceFolderViewModel = new MusicMyDeviceFolderViewModel();
                        objMusicMyDeviceFolderViewModel.Name = item.Name;
                        objMusicMyDeviceFolderViewModel.AlbumPath = item.Path;
                        objMusicMyDeviceFolderViewModel.ItemCount = folderContents.Count;
                        StorageFile firstFile = folderContents.OfType<StorageFile>().FirstOrDefault();
                        if (firstFile != null)
                            const ThumbnailMode thumbnailMode = ThumbnailMode.DocumentsView;
                            const uint size = 300;
                            using (StorageItemThumbnail thumbnail = await firstFile.GetScaledImageAsThumbnailAsync(thumbnailMode, size))
                                if (thumbnail != null  /*&& thumbnail.Type == ThumbnailType.Image*/)
                                    BitmapImage genThumbnail = new BitmapImage();
                                    genThumbnail.SetSource(thumbnail);
                                    objMusicMyDeviceFolderViewModel.Thumbnail = genThumbnail;
                        albumList.Add(objMusicMyDeviceFolderViewModel);
                catch
This is my Code ? now i commented  - > thumbnail.Type == ThumbnailType.Image. i am not getting image. default mp3 icon is getting for all album
                                          

  private async Task GenerateMusicFolderItems(IReadOnlyList<StorageFolder> musicLibrary)
            foreach (StorageFolder item in musicLibrary)
                try
                    IReadOnlyList<IStorageItem> folderContents = await item.GetItemsAsync();
                    if (folderContents.Count > 0)
                        MusicMyDeviceFolderViewModel objMusicMyDeviceFolderViewModel = new MusicMyDeviceFolderViewModel();
                        objMusicMyDeviceFolderViewModel.Name = item.Name;
                        objMusicMyDeviceFolderViewModel.AlbumPath = item.Path;
                        objMusicMyDeviceFolderViewModel.ItemCount = folderContents.Count;
                        StorageFile firstFile = folderContents.OfType<StorageFile>().FirstOrDefault();
                        if (firstFile != null)
                            const ThumbnailMode thumbnailMode = ThumbnailMode.MusicView;
                            const uint size = 300;
                            using (StorageItemThumbnail thumbnail = await firstFile.GetThumbnailAsync(thumbnailMode, size))
                                if (thumbnail != null  /*&& thumbnail.Type == ThumbnailType.Image*/)
                                    BitmapImage genThumbnail = new BitmapImage();
                                    genThumbnail.SetSource(thumbnail);
                                    objMusicMyDeviceFolderViewModel.Thumbnail = genThumbnail;
                        albumList.Add(objMusicMyDeviceFolderViewModel);
                catch
        }

Similar Messages

  • I have recently updated m iPhone 4 which was not used since months. It has to be updated from5.1.4 to iOS 7.0.4 and it has taken more than 15 hours to get started. Plz help me. It took about 5 to 6 hrs to prepare for updating.

    I have recently updated m iPhone 4 which was not used since months. It has to be updated from5.1.4 to iOS 7.0.4 and it has taken more than 15 hours to get started. Plz help me. It took about 5 to 6 hrs to prepare for updating.

    I am having this problem.  At first with the new iPhone 5, and then with the iPad 2.  I am not sure why this is happening. 
    My gut feeling is this is an iO6 issue and here's why -
    The problem mainly occurs with apps.  I have about 150 apps, and when I plugged in the phone, iTunes went to sync all of them.  The process would hang up after about 20 - 30 apps were loaded onto the phone. I could tell where about the process hung up because the apps on the phone showed up as "waiting".
    Then on the iPad 2 I plugged in to sync and saw there was a huge "Other" component in my storage.  It required me to restore the iPad 2 from backup.  With this restore the same issues occurred - putting the apps back on the iPad would hang up.  The videos on the iPad also got stuck - maybe after about 10 hours of videos transfered iTunes crashed.
    My solution has been to soft reset the device, restart Windows, and continue the process until it's complete.  This is remarkably inefficient and time-intensive but everything works with patience.
    I have been wondering if others have had these same problems. 

  • I am using iphone 3gs since last 4 days. Till yesterday night it was working fine and i have connected this phone for charging . Morning there was apple logo in the screen and every 1mte (approx) it is blinking. I could not restart the phone.Plz help

    I am using iphone 3gs since last 4 days. Till yesterday night it was working fine and i have connected this phone for charging . Morning there was apple logo in the screen and every 1mte (approx) it is blinking. I could not restart the phone.Plz help . I have tried to reset even by pressing sleep and home button but it could not help. Please suggest. Still i have connected for charging .

    Sounds like you have corrupt backup data, if this occurs from one phone to another. Try restoring the phone as a new device, without a backup. Try using for a day before installing any other apps, etc. See if that improves the battery life. Then try syncing back applications a couple at a time. Something seems to be locking in the processor which is draining the battery.
    Do you live in an area where there are Apple Stores? If so, try making an appointment with the Genius Bar to have the device checked out.

  • Finder on my mac book pro is not showing the sidebar plz help .i have a mac book pro running on os x lion 10.7.5

    finder on my mac book pro is not showing the sidebar plz help .i have a mac book pro running on os x lion 10.7.5

    In Finder, Click View, then Show Sidebar - or ALT+CMD+S

  • I installed new 6.0.1 os it is done succesfully but after that insterted my sim it is showing sim card not supported any one plz help me

    i installed new 6.0.1 os it is done succesfully but after that insterted my sim it is showing sim card not supported any one plz help me

    That message occurs when updating a phone that was hacked to be used with your network.  Upgrading the phone has re-locked it to it's rightful carrier.  You will need a SIM from the original carrier to proceed.

  • Well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    If you set the phone to erase on 10 failed passcodes - then just keep typing and it will wipe itself. 
    Otherwise I believe you can set it to recovery mode and restore etc.. via iTunes...  There is no easy way as the passcode is designed to protect the phone exactly against what you are trying to do now...
    http://osxdaily.com/2011/01/08/iphone-recovery-mode/
    Others may have some additional tips !
    Sorry for the probs you are having...
    Regs Neil

  • I keep getting this error plz help

    Every time that i download the new iphone version 3.1 it gets towards the end and then i get an error. "could not finish transferring to iphone. Network connection failed". I dont know why it keeps giving me this problem when i have internet and i can connect to the itunes store perfectly and also download applications. Can somebody plz help me its driving me nuts. thanks for your time.
    *i have itunes 9(the new one) and my firewall is off

    bump. plz hlep

  • My home buttons not working!! Plz help!!!

    I was just playing around on my ipod touch(4th generation, 32 gb, black... Not that that really matters) and the home button just started getting harder and harder to use until now it doesn't work at all. I've tried rubbing alchohal and cleaning it with a toothpick already. Any other suggestions? Plz help me I'm getting really mad at it. Also, if nothing else works, will I be able to get a refund/exchange? I only bought it 3 months ago.

    Try:
    fix for Home button
    Fix a broken, unresponsive or sticky iPhone Home Button
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Iphone 4 hotmail imap account getting problems! plz help

    iphone 4 hotmail imap account getting problems! plz help

    when i am creating IMAP hotmail account with no limits email option on iphone 4 IOS 6.1.3,, it can not sync recent five months email and old emails. It is only syncing the middle ones

  • TS3682 I have forget my restriction passcode how I can get it?plz help

    I have forget my restriction passcode how I can get it?plz help

    You are out of luck. There is no way to recover it and now you will have to restore your iPad as new and you will lose everything on it. If you restore from a backup, you will just be restoring the forgotten restrictions passcode onto the iPad.
    If by some chance .... You have a backup that was created before you put the restrictions passcode on the iPad, you can restore from that backup, but if not, you have to restore as new.

  • 5310 not recognized by computer, PLZ HELP!!

    So i was transferring the data with data cable and the next day, it stopped working.. When i connect the cable, mobile recognizes the connection readily but computer shows NOTHING at all, I repeat NOTHING.
    I've tried :
    - installing latest nokia PC suite
    - uninstalling 'PC connectivity solution' and 'nokia connectivity cable driver'
    - removing the sim and memory card and connecting the phone, still it does not connect to PC. (Win 7, 32 Bit.. With all the latest updates)
    - Gone to settings > Connectivity > USB data cable> PC suite/ data storage/ printing and media
    - Tried changing the cable, still nothing
    - Strange thing is that one day, it was fine and the next day it stopped working.. PLZ help me!!!!!

    Given those information, if you think the issue is with the phone, you can try to do basic troubleshooting steps on the phone:
    1. Power cycle. Turn off the phone, remove the battery and turn it back on.
    2. Soft reset: This will return the phone back to its default settings. Your personal data such as messages will not be deleted. To do this, dial this code on the phone. *#7780#. The default security code is 12345 unless otherwise changed.
    After this, you can try to connect the phone and see if there has been any difference. Keep us posted! 

  • HT201269 I have a major problem...is trying to solve it 4rm yesterday...plz help me...I have downloaded n installed the latest version of ios from itunes into my iphone,everything went smoothly bt my iphone is not able to activate,plz help me activating m

    Hey plz help me...I have downloaded n installed latest version of ios from itunes into my iphone...everything went smoothly but when activation started it says "your iPhone could not be activated because the activation server is temporarily unavailable" plz tell me what to do now I m very much tensed since yesterday!

    Contact your Carrier...
    However...
    This usually happens if the phone has been Hacked / Jailbroken / Modified...
    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743
      If this is the case...You will need to look elsewhere
    Sorry... But...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.

  • HT1414 my laptop will not recognize my IPhone Plz help me!!!!!

    Pleae help! I am trying to back up and restore my IPhone from back up but I cann't get ITunes to recognize my device. I have deleted ITunes and reinstalled the updated version. Still no luck. The devise icon doesnt appear when I connect my phone. Someone please help me I've been trying to get this to work for 3 days straight and it's driving me crazy.

    Look to the right in the MORE LIKE THIS box

  • My [hp printer 2515 all in one] not working...plz help me

    how to do with my printer? the ink catridge are still at 60%...my printer not able to print, scan, and copy(photocopy). any recommendation on how to get my printer working back? 

    Hey @kabutapi,
    Welcome to the HP Support Forums!
    I understand that you are not able to copy, scan, or print on your HP Deskjet Ink Advantage 2515 All-in-One Printer. I would like to assist you with resolving this issue today. Now I understand that you have checked your ink cartridge levels and they're sitting around 60% which is great. However, if you're not able to scan, this has nothing to do with cartridges. Therefore, at this time I do not think you're experiencing a cartridge issue.
    In order for me to best support you I will need more information regarding the error state that you're receiving on your printer. If you're seeing blinking lights when you try to perform a copy I need to know exactly what lights are solid and what lights are blinking on your front panel.
    Also, if you get any error messages on your computer when you try to print, I need to know the exact error message that you're seeing.
    For further information regarding blinking light error states and what each error state means, please refer to: Blinking Lights on the HP Deskjet 2510 and Deskjet Ink Advantage 2515 All-in-One Printer Series
    Once I know what error state you're receiving I will be able to guide you through step-by-step troubleshooting instructions to resolve the error state. I look forward to hearing from you!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • I've been trying to purchase Texas holdem chips, but it comes up as.  Purchase not completed error!  Plz help me

    Need to purchase, but comes up as purchase not completed error.   Help me plz!!

    If you are also getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • Upgrade from 4.7 to ECC 6.0: Will PCRs work on ECC 6.0 ?

    Hi All I am currently in a client that had developed full automated PCRs (Personnel Change Requests) in version 4.7, and they are upgrading to ECC 6.0. The client invested considerably to build all these sophisticated workflow enabled PCRs. I know th

  • Can't drag bookmarks into new tab page

    Every time I try to drag and drop a bookmark into the new tab page, it opens the web page in that tab instead of adding it to the square. I've tried it on safe mode as well with the same results. Any suggestions on what I'm doing wrong would be appre

  • Not recognising number or pin

    I have been trying to call a number all day today and it is telling me that skype doesn't recognise my phone number. This is only happening when I try and call one certain number. I have changed my pin ect but still it is still saying my pin is incor

  • My Computer Name

    Why does my computer name in sharing suddenly have a (2) behind it? I'm using Airport on my home network.

  • Mountain Lion Update

    Hi everyone, I've recently installed Mountain Lion and now there is an update 10.8.4 sitting in the App Store. I've hit update and restarted the computer numerous times, but it's still there.  Can anyone enlighten me as to what is going on?? Thanks