473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to transfer a string from j2me to java?

hi all, i want to know how to transfer string data from j2me to the java application program on my pc please help me
Jan 5 '11 #1
3 1666
Oralloy
988 Expert 512MB
blacktiger,

You'll need to use a network connection of some sort - or file I/O.

You need to sketch out what you have to do in a little more detail before we can help you.

Cheers,
Oralloy
Jan 5 '11 #2
i am writing a program in j2me and core java in that i need to pass a string array through bluetooth, i need to know only the technique to use in both j2me program and core java to send and resive a string array, thanks for ur reply
Jan 6 '11 #3
Oralloy
988 Expert 512MB
blacktiger,

I'll assume you can set up communications (which is something I'd appreciate your posting, by the way).

Try using the java.io.ObjectOutputStream and java.io.ObjectInputStream classes. They should make the job relatively transparent, assuming you have a stable transport layer.

Cheers,
Oralloy
Jan 6 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dan | last post by:
Hello. I have recently tried upgrading the MySql connector for my servlet from 2.0.4 to 3.0.9. I have found a minor limitation in 2.0.4 and was hoping that 3.0.9 would fix it. However, now I...
1
by: samikshya | last post by:
Hi Could anyone tell me how does a java code gets invoked when a xml string is passed to the system. is there any listener or not etc. Its urgent !!!!!!!!!!!! waiting 4 replies. :)
9
by: Burkhard | last post by:
I declared a struct with fixed size buffers to send it to an unmanaged function unsafe struct RCSTKAS { public fixed Byte xValue1 ; public fixed Byte xValue2 ; ... }
4
by: xxhh11 | last post by:
Hi all: I want to get a unique string to distinguish the Thread.
2
by: willy131287 | last post by:
Hi, I am trying to check whether a user inputs a number in a string with letters but every time i check this it only says there is a number if it is at the beginning of the string, otherwise it...
1
by: fAnSKyer/C# newbie | last post by:
private void startupServer() { try { serverscoket = new ServerSocket(Listener.PORTNUMBER); SERVER_ON = true; } catch (IOException e1) { e1.printStackTrace(); } } public void run() {
4
by: bawa | last post by:
pls give an idea about how to write string search and replace program in java without using any built in functions.. pls help me out
14
by: prasath03 | last post by:
Dear All, I have one doubt for how to insert the java.sql.Date into ms-sql server. I tried the below code but it couldn't be inserted. I did wrong in my code that is ps.setDate(1,full_date_time)...
10
by: teenIce | last post by:
Hi all, Does anyone have suggestion what can I do to remove some string from a string? Like this : Original : I have a cat. Remove : have Result : I a cat. Thanks in advance.
1
by: eldadno1 | last post by:
I'm actually a Java programmer, and I'm messing with JNI a bit, so I've managed to pass an int from java to c++ and to c# and back. no problems cause it gets serialized automatically. but when...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.