Unable to read the screen contents of an Andriod app via Appium

Hello Team,

I am automation an Andriod app in which there is a screen which has some text contents and my requirement is to read that contents.

I am using the following code for the same:
AndroidElement textView = (AndroidElement) driver_and.findElement(By.xpath("//android.widget.View[@resource-id=’__xmlview2–progressLabel’]"));

String value=textView.getText();

But, this is not working.

Can anybody help me please.

Thanks in advance.