| Reply | « Previous Thread | Next Thread » |
|
Hi,
I wrote a Card Game in J2ME and for my thesis I wrote now a test programm in which I want to test the bluetooth delay. Also I´ll improve the application with calculating the serialization and the propagation delay. But first I´ve to get it working. And I´ve now the same problem like in my card game, so I didn´t finished yet ... In the thread of the bt-conn I send some data (a String) to the other mobile. the form appears after calculating with the delay on the emulator. When I execute the program on 2 mobiles. they connect first to each other and than nothing else happens. The form doesn´t appear on the screen. Code:
public void run(){
int messagebroadcast = 10;
long[] timeMessure = new long[messagebroadcast];
int count = 0;
if(m_BlueObj==null){
m_BlueObj=new ClientServer(m_bIsServer);
}
while(m_bRunThread){
try{
String str = m_BlueObj.RecieveMessages();
timeMessure[count++] = System.currentTimeMillis();
if(count >= messagebroadcast){
for(int h = 0; h < timeMessure.length; h++){
String msg = "" + timeMessure[h];
}
m_bRunThread = false;
long avg = getAvg(timeMessure, count);
getDisplay().setCurrent(getForm(avg));
}
if(m_bIsServer){
System.out.println("Server");
for(int i = 0; i < messagebroadcast; i++){
m_BlueObj.SendMessages("Player,Fritz,Harald");
}
}
}catch(Exception ex){
System.out.println(ex.getMessage());
}
}//end while
}//end run
Thank u very much. |
|
If nobody can help me here please give me an advice where somebody can help me. I think many people have developed bluetooth applications yet, so the had the same problem, too. Is it the problem that I don´t use two similiar mobiles maybe? I used a N95 an a few other, SX1, 700i, 750i, V3. I read sth. that people hat problem when they r not using the same mobile for the bt conn. I don´t have any Idea why that bluetooth applications of me r not working :(
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Go back to caller view... | VinodRaut | Symbian User Interface | 4 | 2007-05-11 15:22 |
| Errors building project in VS.2003 | jensesaat | General Symbian C++ | 11 | 2006-11-13 17:54 |
| Problem MMC+USB Connection | Fede81 | General Discussion | 3 | 2006-07-19 16:21 |
| Back Up using the 6600 PC Suite | khaledkha | General Discussion | 0 | 2004-01-11 13:31 |
| Problem with the 'back' button behaviour | mchallice | General Browsing | 1 | 2003-09-16 13:17 |