开发者

android- How to handle the Web service Exception

开发者 https://www.devze.com 2023-03-17 03:17 出处:网络
My application have 3 Relative Layouts and 3 Linear Layouts. Based on the web service response we can fill the relative and linear layout views. When you click on the relative layout then linear layou

My application have 3 Relative Layouts and 3 Linear Layouts. Based on the web service response we can fill the relative and linear layout views. When you click on the relative layout then linear layout will be visible that linear layout contains more no.of items(means more views are there like List view). but the problem is only 2 relative layouts are working(means when you click on the relative layout开发者_StackOverflow社区 then it will shown the linear layout) and remaining one is not working(that code part is not executed). Suppose we are changing the order(means first you can write the Linear Layout1,Linear layout3 and after Linear layout 2) then LL1 and L3 are working LL2 is not working. How to handle it?

and one more thing i got web service error is "java.lang.IndexOutOfBoundsException".

please can anybody help me.

thanks


java.lang.IndexOutOfBoundsException type of Error means Array size index is not available.

Ex :- Array size is 2 then index call at 3rd position then this type of error comes.

so please check your code accordingly .

0

精彩评论

暂无评论...
验证码 换一张
取 消