Arun Soman

Greenhorn
+ Follow
since May 05, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arun Soman

hey, the memory exception is comming in emulator or when u running the app on the device? The important thing is u need to look into ur code to find out the memory leaks.
18 years ago
checkout the http implementation in "Sony Ericsson T610". ie which version does it implements 1.0 or 1.1, i think ur content is comming as "chunked".
18 years ago
Check the image size and its dimesions also.
18 years ago
As my understanding goes, ur connection goes to a hung state when u go out of coverage area. that could be because u might be using some thing like
while(connection.read()){
doSomeThing..
}
or a variant of this.

If this is the case what u could do is run a timer for the timeout period which sets the variable timeOut = true. And then you could use some thing like this

int readBytes = 0;
while(timeOut != true){
while((readBytes = connection.available()) > 0 ){
connection.read(data, currIndex, readBytes);
}
}

best of lucks
18 years ago
There is yet another advantage by using j2me over WAP. In WAP u need to be in always connected mode, but in j2me one could connect whenever required. Hence applications could still work when user is out of coverage area.
18 years ago