Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

providing a default tone for my alarm application

 
sampath surineni
Greenhorn
Posts: 29
Android Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends.

I am coding an alarm application for the first time. I want to include a default tone for my application in case user did not choose a custom tone.

Please can someone tell me how to do this.

Thank you..
 
Winston Gutkowski
Bartender
Pie
Posts: 10417
63
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sampath surineni wrote:I am coding an alarm application for the first time. I want to include a default tone for my application in case user did not choose a custom tone...

So you already have code to play custom tones then, yes? Just choose one of them. Alternatively, there are plenty of .wav libraries around. Download one and include it in your jar.

Google is your friend.

Winston
 
sampath surineni
Greenhorn
Posts: 29
Android Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
sampath surineni wrote:I am coding an alarm application for the first time. I want to include a default tone for my application in case user did not choose a custom tone...

So you already have code to play custom tones then, yes? Just choose one of them. Alternatively, there are plenty of .wav libraries around. Download one and include it in your jar.

Google is your friend.

Winston


Thanks for the reply Mr.Winston. I'm new to coding and I don't know in which folder of my project I have to include it. I'm using netbeans and there are src and libraries folders. should I include it in one of these of create a new one.
Even if I include it in one of these folders what would be its address to access.
 
Jan Hoppmann
Ranch Hand
Posts: 147
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sampath surineni wrote:Thanks for the reply Mr.Winston. I'm new to coding and I don't know in which folder of my project I have to include it. I'm using netbeans and there are src and libraries folders. should I include it in one of these of create a new one.
Even if I include it in one of these folders what would be its address to access.


I always put resources such as sound files or images into a resource folder named 'resources'.
 
sampath surineni
Greenhorn
Posts: 29
Android Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jan Hoppmann wrote:
sampath surineni wrote:Thanks for the reply Mr.Winston. I'm new to coding and I don't know in which folder of my project I have to include it. I'm using netbeans and there are src and libraries folders. should I include it in one of these of create a new one.
Even if I include it in one of these folders what would be its address to access.


I always put resources such as sound files or images into a resource folder named 'resources'.


Thank you very much Mr.Jan Hoppmann. You cleared my doubt. Can you tell me how to address them in the project. what is the path of them
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This tutorial page is about images, not sound files, but the principle remains the same:
Loading Images Using getResource
 
sampath surineni
Greenhorn
Posts: 29
Android Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:This tutorial page is about images, not sound files, but the principle remains the same:
Loading Images Using getResource


Thank you very much Mr.Burke you solved my problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic