Hi,
Im trying to play recorded wave file.While playing,exception is thrown at foll. stmt.:
Player player = Manager.createPlayer(is, "audio/mpeg");
My entire code for playing wave file is as follows:
if (types[cnt].equals("audio/x-wav")) {
Class clazz = Class.forName("RecordAudio");
InputStream is = clazz.getResourceAsStream("...
I have a method that looks like this:
public static String escape(String text)
{
String r = replace(text, "\\", "\\\\");
r = replace(r, "\r", "\\r");
r = replace(r, "\b", "\\b");
r = replace(r, "\t", "\\t");
r = replace(r, "\n", "\\n");
r = replace(r, "\f", "\\f");
return r;
}
Is there a faster, less brutal way to...
I've seen a lot of different methods for doing so, but none of them are specific (and my attempts to implement them have all failed).
Does there exist a known way to stream http video on a Blackberry? Sample code, tutorials, anything?
The closest I've found is: http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348...
So, I'm using the HTTPConnection Class, like so:
HttpConnection c =
(HttpConnection)Connector.open("http://147.117.66.165:8000/eggs.3gp");
Following what LOOKS like the right way to do things in the Blackberry JDE API.
However, my code crashes if I try to do just about anything with the variable 'c'.
.getType()
.getInputStream(...
Hey I'm currently thinking of developing chess code with multi-player facility connected and played via bluetooth. For that i need to chalk out the phases, i mean systematic modules, that i should follow to develop the game.
If anyone can state it or have any link that can help it out, it would be great.
Another thing I am developing th...
Hi Friends
I have done simple java app for blackberry, while building am getting following error.
"Building Hisantosh
C:\BlackBerryJDE4.5.0\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar codename=Hisantosh Hisantosh.rapc warnkey=0x52424200;0x52525400;0x52435200
"C:\Documents and Settings\Santosh\My Documents\Downloads\greetingscree...
has any used jquery for mobile application development?
...
Are there any tools for UI screen design for mobile devices or
Is most of the design done in a generic Image/DTP editing/creating software like MS Windows Paint or the likes?
I found a few tools for creating sprite image filmstrips, like MotionWelder,
However I haven't found any tools for UI screen design and am generally working in a...
Hi all,
I have a question, I want to connect my handphone with my ubuntu laptop using bluetooth connection. The handphone just need to send what key I pressed to the laptop and do process based on what key I pressed. Did you guys have any easy to learn reference about j2me and bluetooth for people who just know basic JAVA syntax?
...
Hi all,
I created the J2ME application and I have the web service (developed in Java) that has HelloServiceNMethod() as Web method. it returns the String. Now i want to invoke this web service in My J2ME MIDlet (in Sun wireless toolkit OR Eclipse)
What steps i have to follow.
Please Guide me.
...
Its so happening that my actual data is 1/4 that of the HTTP request header size in bytes.
Is there a way to cut down on the size on the HTTP headers or any other relevant way to deal with this situation?
I am sending data from a mobile device over GPRS to the server and dont want to be burdened with huge request packets that will eat i...
If I have function names stored as strings in a Hashtable.
Is there a way to access the functions via the stored strings?
EDIT
I'm afraid the platform that i'm working on CLDC1.1/MIDP2.0 does not support Reflection.
Any workaround possible?
...
I am writing an application in J2ME. I want to identify the user thru his phone. Is it possible to find the phone number or any unique number associated to the phone ?
...
Hi,
I'm writing a MIDlet using LWUIT and images seem to eat up incredible amounts of memory. All the images I use are PNGs and are packed inside the JAR file. I load them using the standard Image.createImage(URL) method. The application has a number of forms and each has a couple of labels an buttons, however I am fairly certain that on...
I'm interested in J2ME programming, and so it would be nice to discuss with other experienced people about issues and ideas during my development process.
Do you know what are the active J2ME forum websites? Forums where J2ME devs visit frequently?
Thank you.
...
Is there a way in Java/J2ME to convert a string, such as:
{name:"MyNode", width:200, height:100}
to an internal Object representation of the same, in one line of code?
Because the current method is too tedious:
Object n = create("new");
setString(p, "name", "MyNode");
setInteger(p, "width", 200);
setInteger(p, "height", 100);
May...
I've asked this before for Java, but this applies specifically to J2ME.
Is there a way in J2ME to convert a string, such as:
{"name":"MyNode", "width":200, "height":100}
to an internal Object representation of the same, in one line of code?
The problem with such JSON libraries, is that they generate JSONObjects from strings, not...
Hello,
How do I make a J2ME Midlet to communicate with a java program or some application on the pc through the cable connected?
Thanks
...
i have implemented following code to upgrade application
platformrequest("URL TO JAR FILE");
i am checking if the jad file residing on server has more value in the custom field Application-Version than the current one then the platformRequest will get called..
every thing fine
but only one problem i have installed my app in memory ca...
On a project targeting as many feature phones as possible (Nokia 3110 Classic, Samsung E250, Motorola SLVR L7, etc.), how should it be designed at a high level in terms of code structure? I don't mean in terms of per-handset support, as we are using Polish for that.
I'm an experienced C# developer moving on to J2ME development within my...