Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio debugger View Bitmap

enter image description here As of release 0.8.7 of Android Studio there's supposed to be a Bitmap viewer in the debugger. See the release notes here: http://tools.android.com/recent/androidstudio087released

I have 0.8.9 installed and I can't see this option. Has anyone been able to use this? Is there something I need to enable?

like image 218
The Hungry Androider Avatar asked Sep 22 '14 14:09

The Hungry Androider


People also ask

How do I view bitmap in Android?

The ImageView class is pointed at a bitmap stored under one of the drawable folders in the res project folders. Start by creating a basic app project that will contain the ImageView and bitmap to display. Here the new project created in Android Studio is called Bitmap and an Empty Activity used.

How do you handle bitmaps in Android?

For most cases, we recommend that you use the Glide library to fetch, decode, and display bitmaps in your app. Glide abstracts out most of the complexity in handling these and other tasks related to working with bitmaps and other images on Android.

How to inspect in Android Studio?

From the Android Studio navigation bar, select View > Tool Windows > App Inspection. After the app inspection window automatically connects to an app process, select Network Inspector from the tabs.

How to debug UI in Android Studio?

If you add C and C++ code to your project, Android Studio also runs the LLDB debugger in the Debug window to debug your native code. If the Debug window is not open, select View > Tool Windows > Debug (or click Debug in the tool window bar), and then click the Debugger tab, as shown in figure 1.


1 Answers

I'm on Android Studio 1.3 and I didn't find 'View Bitmap' option in the context menu. Turns out that this option now sits right next to every Bitmap variable in the debugger's 'Variables' window:

enter image description here

like image 133
aga Avatar answered Sep 22 '22 13:09

aga