search cancel

Android sendScreenshot API screen content refresh issue

book

Article ID: 214225

calendar_today

Updated On:

Products

CA Application Experience Analytics SaaS (AXA)

Issue/Introduction

When there is a WebView in the screen, the content is not getting updated in the screenshots taken. The text in the screenshots is html text loaded in a WebView which are not refreshing. Other elements like images and buttons are getting captured.

 

Tried AXA Troubleshooting SDK sendScreenshotAlt API and got the following error for the particular tutorial screen

 

E/[CA MAA]: Fingerprint:20.12.2.1-1616087841789

    Error in Agent takeScreenshotOnIntegration() :Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

 

              

Environment

Release : SAAS

Component : CA APP EXPERIENCE ANALYTICS SAAS

Resolution

Comment out LAYER_TYPE_HARDWARE.  You should now see the content refreshed in the screenshots captured.