Is it possible to customly rewind mp3 X seconds on s40? [closed] - java-me

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've been trying to find out if it's possible to customly rewind X mp3 seconds, without any luck.
Additional feature I want to implement in my player is to play mp3 from "xx:xx" (specified time). Couldn't find any documentation describing that either.
My player uses Manager/Player classes, MIDP 2+
please help
thank you

How about this approach using getMediaTime and setMediaTime?
private void rewind(Player player, int seconds)
throws MediaException
{
long now = player.getMediaTime();
long before = now - (1000 * seconds);
if (before > 0) {
player.setMediaTime(before);
}
}

Related

How to create android application for change the voice like talking tom? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am creating app for simple voice changer. I need to know how to modulate the voice with different kind like talking tom. Could some one help me here. Thanks in advance.

How do printf and scanf work? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have googled a lot to know how scanf and printf works.
But did not find any suitable answer.
Please help me.
Let say when we write
scanf("%d", i); // int i
how computer comes to know that the value has been entered from keyboard?
and how printf prints the data or output to the screen?
Please help me
They use the system primitives read and write. You can see more about them here http://comsci.liu.edu/~murali/unix/read.htm and here http://codewiki.wikidot.com/c:system-calls:write and respectively read from stdin(file desc = 0) and stdout(file desc=1).

How to Set default value of CHECK BOX in J2ME [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have created the Check box in J2ME and I want default value of all check box as true please suggest some code for it
If you are using ChoiceGroup..
ChoiceGroup cg = new ChoiceGroup("sample",ChoiceGroup.MULTIPLE);
// add some choices to the group using cg.append()
boolean array = new boolean[cg.size()];
// initialize all the elements of array to true..
cg.setSelectedFlags(array);
// do more processing
Hope this might help, for more details see javaDocs,

If one object is touched by another object, do something? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am making a game in which you move the character with the arrow keys, and I want to do something when it collides with a certain step. (See picture below). I want the top value of my character to increase every time it touches the steps, and the second flight of stairs, I want it to descend. I have tried and tried to no avail. Any help?
Doing a Bing search on Collosion detection with VB6, I found a few articles out there.
Try looking at:
http://www.vb6.us/tutorials/rectangular-and-circular-collision-detection-vb6
But as #Matt Ball is trying to say, is in order to help you we need to see what code you have tried. Otherwise anything we come up with is just a guess of what your problem is.

How to jump in j2me game? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
i am new to j2me and i creating snowboarding game for my device.
so, how can i implement jump functionality on Fire key press?
Any help??
thanks..
Use the SnowboardGame API
SnowBoarder bob = new SnowBoarder("Bob");
SnowboardGame snowboardGame = new SnowboardGame();
snowboardGame.setCharacter(bob);
snowboardGame.startRace();
bob.jump(FIRE_KEY);

Resources