w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
set onclicklistener for button inside customlistview android

Replace this




coz you have this

int num=Integer.parseInt(vall); // num is an int value

public final void setText (int resid)

In your case it looks for a resource with the id. If not found you get ResourceNotFoundException.

What you need

public final void setText (CharSequence text) which takes CharSequence as param.

So use String.valueOf(num)

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.