I have This method that getting data from network.
RssParser parser =new RssParser(INPUT);
AdapterItems adapter = new AdapterItems(parser.getItems(), MainActivity.this);
listView.setAdapter(adapter);
adapter.notifyDataSetChanged();
I want to getting data for example in maximum 3 second and if in 3 sec method failed to pass data return false value or something like this.
any suggestion ?
0 comments:
Post a Comment