Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User vijaysoft's Avatar
    Join Date
    Oct 2007
    Posts
    31
    Hi , I created a Simle AudioPlayer . In my Application i am using 2 Views

    1) A FilelistView with a listbox containing a list of mp3 files
    2) A PlayingView with a progressbar and two Labels

    when i select any item from the Listbox in listView the view will change in to PlayingView ,that time how to pass that filename and fileLength into PlayingView for playing that AudioFile And i want to Display that filename and fileLength on my PlayingView in two Labels . How to do that ...... help me Please.........

  2. #2
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    which API are you using to play file, is it CMdaAudioPlayerUtility, then you can use the following func. to play a particular file:CMdaAudioPlayerUtility::OpenFile(file path).

    And on playing view you can draw the filename as :iView->DrawText(_L("Name of File....."));

  3. #3
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    remember that if when you construct the View, it does not call the activate function strait away, since that part is handled by view server, so if you pass the filename for the view while constructing it you should store it somewhere, so you could use it then when teh view is activated. Also you could check the parameter passing with views, then you could get the file name inside the activete function.

  4. #4
    Registered User vijaysoft's Avatar
    Join Date
    Oct 2007
    Posts
    31
    Hi , please read it carefully and help me .

    In my pogram i have two views .in my first view(view1), i have a listbox with a list of Audiofiles .


    when i select a listitem , i want to change my view (to view2) and play the selected audio file in view2 .

    In view2 i have two Labels to display the filename and filelength of the item that i selected from View1.

    How can i do this . How to transfer data between two views .


    In here i want to pass two things, filename and filelength .I know u guys are experts , so give me a solution in a simple way.. please....

  5. #5
    Registered User angelmrayo's Avatar
    Join Date
    Nov 2007
    Posts
    18
    Hi Vijaysoft. I think that this can help to you.

    You can declare two variables on AppUi class that will store filename and filelength. When you select the file, you must establish this variables through properties on AppUi or through a method that do that.

    When you have establish values for two variables, you can ActivateLocalViewL(view2).

    Best regards.

  6. #6
    Registered User ahmed.mansi's Avatar
    Join Date
    Sep 2009
    Posts
    63
    i have same problem !

    i define static variable in my "engine" class, but i have error '"(" expected'

    can you please give us a code sample show how pass value between 2 views

  7. #7
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    try making the variable as global, so you can access it anywhere in your app.

Similar Threads

  1. how can i display the data in the buffer?
    By fengwangjiang in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-05-16, 04:10
  2. how can i display the data in the buffer?
    By fengwangjiang in forum Symbian C++
    Replies: 0
    Last Post: 2003-05-12, 12:15
  3. Socket received data converted to unicode doesn't display the full informat
    By prsens in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-03-17, 03:36
  4. display of RGB Data
    By amrutz in forum Symbian C++
    Replies: 1
    Last Post: 2003-02-09, 15:25
  5. Can I drive a 7110 graphics display using WAP via a data cable?
    By Nokia_Archive in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-17, 04:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved