// Handler Class which handle data coming from parsing
Handler _uicallback = new Handler(){
public void handleMessage(Message msg) {
switch(msg.what){
case _updataResult :
if(messagesAL != null){
if(messagesAL.size() > 0 ){
_img = new ImageView[messagesAL.size()];
nametxt=new TextView[messagesAL.size()];
timetxt=new TextView[messagesAL.size()];
messagetxt=new TextView[messagesAL.size()];
_progresssDialog.dismiss();
// Now taking one of List Adapter type for getting data in List View
LazyAdapter _adaptor = new LazyAdapter(Messagelist.this,messagesAL);
setListAdapter(_adaptor);
//getListView().setOnScrollListener(Search.this);
}
else{
_progresssDialog.dismiss();
Toast.makeText(Messagelist.this,"Error!!! Check File Size",Toast.LENGTH_LONG).show();
}
}
else{
_progresssDialog.dismiss();
Toast.makeText(Messagelist.this,"Check Internet Connection...",Toast.LENGTH_LONG).show();
}
}
};
};
By: Parmil.S & Vk Hooda
Handler _uicallback = new Handler(){
public void handleMessage(Message msg) {
switch(msg.what){
case _updataResult :
if(messagesAL != null){
if(messagesAL.size() > 0 ){
_img = new ImageView[messagesAL.size()];
nametxt=new TextView[messagesAL.size()];
timetxt=new TextView[messagesAL.size()];
messagetxt=new TextView[messagesAL.size()];
_progresssDialog.dismiss();
// Now taking one of List Adapter type for getting data in List View
LazyAdapter _adaptor = new LazyAdapter(Messagelist.this,messagesAL);
setListAdapter(_adaptor);
//getListView().setOnScrollListener(Search.this);
}
else{
_progresssDialog.dismiss();
Toast.makeText(Messagelist.this,"Error!!! Check File Size",Toast.LENGTH_LONG).show();
}
}
else{
_progresssDialog.dismiss();
Toast.makeText(Messagelist.this,"Check Internet Connection...",Toast.LENGTH_LONG).show();
}
}
};
};
By: Parmil.S & Vk Hooda
No comments:
Post a Comment