File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Chat window Issues in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Chat window Issues in android" Watch "Chat window Issues in android" New topic
Author

Chat window Issues in android

neetika porwal
Greenhorn

Joined: Feb 24, 2012
Posts: 20
Actually i am working on livechat application i have four part for my application.after login screen there is open a window in which i am showing the list of visitor visiting the site.my data of the list is updating each after 3 seconds.this part is working fine.the list the list row i am showing the data like ipaddress,statustext,noofvisit,buttontext,durationtime extra.

When any new chat request come(list refresh if status text is chatrequest) and if i click on accept the chat accepted and call go to server status change and a new window will open chat window.this part is also working fine.the issue is for chat window for sending message a call go to server and for response message a call also go.

My issue is that the in chatting part 5 or 6 message are going and receiving after that i am getting null pointer exception.In chat window i am using code like following

[/code]
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
TL;DR

630 lines of code is too much to ask of anyone to go through and try to make sense of. You're accessing element 0 of an ArrayList that doesn't contain any elements in line 189 of the Chat class - armed with that knowledge it should be trivial for you to find which ArrayList object that is, and take steps to prevent it from happening.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Chat window Issues in android
 
Similar Threads
street view & satilite view is not working
How to start new activity when click on a listview and pause the process that is being in background
It prints me pointer repeatedly
android custom list view position and click event problem(list getting dynamic data from server)
Android CustomListView getView() getting nullpointerexception