ScreenTools Extension




Here is my released ScreenTools Extension. You can get information about the screen, like the size in inches, DPI and Pixels.

I will add more blocks soon!




If you want to support me, you can donate to me. It's easy just download this app and donate :slight_smile:


This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License

Gauge extension Arduino Esp8266

Great extension. It would be even better if you could add more blocks to make it stand out from the crowd. By the way, what criteria do you use to determine if the device is a tablet?
As far as I know, there is no official way to do this.


Very useful extension! Thanks!


Great Work @Sander0542 :smile::+1::+1:


Hey powerthunker,
Can you let me know how you create extension? I saw many links but they are tricky to understand.
Can you please teach me how to create extension?


@Hellothere have you seen this post?

This link might also help :


I wanted to know the same . Mine is a tablet and IsTablet( ) method returns false .


I know there is nothing official, but I use the screensize


So don't use it in your app please


what about implementing that method correctly?


see also



I will see what I can do, but for now I keep the block out of the extension.



como implementaste

DisplayMetrics metrics = new DisplayMetrics();
width1 = metrics.widthPixels;
height1 = metrics.heightPixels;
que tengo

[javac] Compiling 221 source files to C:\appinventor\components\build\classes\AndroidRuntime
[javac] C:\appinventor\components\src\co\com\dendritas\ error: cannot find symbol
[javac] getActivityContext().getWindowManager().getDefaultDisplay().getMetrics(metrics);
[javac] ^
[javac] symbol: method getActivityContext()
[javac] location: class Gauge


Could you translate your message to English, please. Google Translate doesn’t translate it good


for questions about working with the App Inventor sources, please ask in the Open Source Group!forum/app-inventor-open-source-dev



That’s really complicated too


Version 2 released!


  • DpToPixels
  • PixelsToDp


Any updates on the IsTablet block?


I am very bush right now, but I may add this in the future.


You can analyse the screen sizes and get the value back and display as tablet or android. this is what it says here:


That isn’t right. I had that first, but that didn’t work