×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    3

    search files in mobile

    hi friends i created a player using j2me..am able to play the songs..but my question is how can i add all the songs in memory card@phon memory to the player..i dont know how to search all the mp3 files in phon memory@memory card..i can able to add song files when i know the exact foder ..pls help me to find a correct solution...i want to find all the song files in mobile ?pls help me..thanks
    i used filesystemregisrty.listroots and then list functions..it works..but when a song in file:///e:/data/music/hindi/filename.mp3..how can i find that file..

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: search files in mobile

    Hi RegeshGopal,

    There is an example of manual directory traversing here:

    http://www.coderanch.com/t/230849/JM...file-browse-ME

    Now if you remove entirely line 149 and replace it with this code
    Code:
    if(fileName.indexOf(".mp3")>-1)
    {
           browser.append(fileName, null);
    }
    you will get only the .mp3 files, on each directory.

    By calling recursively the traverseDirectory method you can traverse all the directories of the memory card automatically.

Similar Threads

  1. Search for files
    By atonical in forum Qt
    Replies: 2
    Last Post: 2010-09-12, 10:53
  2. how search files and show them in lisbox
    By masoud_bayat in forum Symbian User Interface
    Replies: 11
    Last Post: 2008-09-20, 10:55
  3. Can we search joker files in a list?
    By bakidilek in forum Python
    Replies: 4
    Last Post: 2008-06-28, 17:11
  4. search dlls files in Series60 3rd edition...
    By GeKI in forum Symbian C++
    Replies: 5
    Last Post: 2006-08-16, 08:18
  5. search for files
    By vishwas_vincy11 in forum Symbian C++
    Replies: 1
    Last Post: 2006-06-10, 12:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •