Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:03:32+00:00 2026-06-13T00:03:32+00:00

when running the program, music still running but console don’t print the messenge. Where

  • 0

when running the program, music still running but console don’t print the messenge. Where is the problem?

I don’t use english well. Sorry.

public class MultimediaSound extends MIDlet {
      public void startApp(){
          try {
          Player player = Manager.createPlayer(getClass().
          getResourceAsStream("/tuner1.wav"),"audio/x-wav");

          player.start();
          player.addPlayerListener(new PlayerListener(){

            public void playerUpdate(Player arg0, String arg1, Object arg2) {
                if(arg1 == (PlayerListener.STARTED)){
                    System.out.print(arg2.toString()+" " + "dkm ");
                }else{
                    System.out.print("dkm                  ");
                }
            }

          });
          } catch(Exception e) {
          e.printStackTrace();
          }
          }

          public void pauseApp() {}

          public void destroyApp(boolean unconditional) {}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:03:33+00:00Added an answer on June 13, 2026 at 12:03 am

    arg1 is a string you should use

    if(arg1.equals(PlayerListener.STARTED))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a long running program that I don't want to kill, but I
I use /programy/trinityrnaseq_r2012-06-08/Trinity.pl for running program of my interest. Instead, I would like just
echo yes\yes\oops | program doesn't work well for a long-running program. I can think
I am having problem with media scanner, in my program i am running media
I have a possibly long running program that currently has 4 processes, but could
I'm curious about the progress of the running program and I print some information
I am looking for a method to monitor a running program that I have
I'd like to break out of the currently running program and be dropped back
Running this program is printing forked! 7 times. Can someone explain how forked! is
My main program running 8 tasks using Task.Factory.StartNew Each task will request XML format

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.