neetika porwal

Greenhorn
+ Follow
since Feb 24, 2012
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by neetika porwal

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]
12 years ago
I need a help more.Actually i am facing a problem for my listview that is getting new data after each 3 seconds as i asked you was working fine now.but there is a problem when i click on the listrow (launch the new activity show the visitordetail page) i am passing some data from listview row to another activity.my problem is that listview is getting new data after each 3 seconds when i click the listrow then next activity started and show the visitordetail page in the case update method is called before clicking the listview row but if i click the row and same time new data is received and added to row that app is crashed.


what should i do that my app is not crashed and work fine when click on row or row's button.i passing sessiontext and iptext related to that row to next activity.

my class code is followinggiven below.

12 years ago

neetika porwal wrote:

12 years ago

neetika porwal wrote:

12 years ago
I have a list view that is continuing getting that from server after every 3 seconds getting new data from server this listview has row like the following

-----------------------------------------------------



[TextView] [Button][Button][Button] [TextView1] [TextView2] [TextView3] [TextView4]

the code i am using for listview row click event is



the class code i am using for this activity is.................

12 years ago
i got solved my problem...
thanks for your reply..........
12 years ago
I got solved my problem thanks you all............
12 years ago
What can i do exactly can anyone help me......
12 years ago
What i do exactly i am unable to understand the exception getting at the lines




sometimes any of these point


SessionText.add(operatorList[0]);
IPText.add(operatorList[1]);
DurationText.add(operatorList[4]);
StatusText.add(operatorList[3]);
NoOfVisit.add(operatorList[2]);
ButtonText.add(operatorList[6]);

holder.IP.setText(IPText.get(position));
holder.duration.setText(DurationText.get(position));
holder.status.setText(StatusText.get(position));
holder.noOfVisit.setText(NoOfVisit.get(position));
12 years ago
i check it by using breakpoint the response i am getting correct and i print the method result again 2 i am getting nullPointerexeption at the point

logcat view like following........



and the change that i made in the class like this........

12 years ago
I check for (operatorDetail!=null) check also but my problem is not solved.
12 years ago
I am working on a livechat application i am using class and adpater like the given link..................

https://coderanch.com/t/568432/Android/Mobile/Android-CustomListView-getView-getting-nullpointerexception

why my app getting exception.my app is working fine sometime 1 hour or more but after that it is being crashed sometime showing nullPointerException and sometimes ArrayOutOfBoundsException.


I am unable to understand where i am doing wrong the code i am using for my class is in above link....


Can anyone help to resolve my problem?
12 years ago
yes,i know this that i can use the standard standard xml parsers like SAX,DOM etc but i am recieving the response different i am getting the response like this...


thats why i am using parsing Technic like that.Can anyone help me.
12 years ago
I am getting error at this point point sometime at firstline or second or any?

SessionText.add(operatorList[0]);
IPText.add(operatorList[1]);
DurationText.add(operatorList[4]);
StatusText.add(operatorList[3]);
NoOfVisit.add(operatorList[2]);
ButtonText.add(operatorList[6]);

and sometimes start of loop

for(int i=0;i<operatorDetail.length;i++){
}

i am getting the response but when come at this point getting exception i check it many times.
12 years ago