ScreenTools Extension

aia
apk
screen
aix
extension

#1

Hi,

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!


Blocks:


Download:


Donate:

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


License:

This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License
https://creativecommons.org/licenses/by-nd/4.0


Gauge extension Arduino Esp8266
#2

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.


#3

Very useful extension! Thanks!


#4

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


#5

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?


#6

@Hellothere have you seen this post?

This link might also help : http://my.bryanqiang.com/createext.html


#7

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


#8

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


#9

So don't use it in your app please


#10

what about implementing that method correctly?


and

see also https://www.google.com/#q=android+determine+if+device+is+tablet+programmatically

Taifun


#11

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


#12

amigo

como implementaste

DisplayMetrics metrics = new DisplayMetrics();
getActivityContext().getWindowManager().getDefaultDisplay().getMetrics(metrics);
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\Gauge.java:96: error: cannot find symbol
[javac] getActivityContext().getWindowManager().getDefaultDisplay().getMetrics(metrics);
[javac] ^
[javac] symbol: method getActivityContext()
[javac] location: class Gauge


#13

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


#14

for questions about working with the App Inventor sources, please ask in the Open Source Group https://groups.google.com/forum/#!forum/app-inventor-open-source-dev

Taifun


#15

That’s really complicated too


#16

Version 2 released!

New:

  • DpToPixels
  • PixelsToDp

#17

Any updates on the IsTablet block?


#18

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


#19

You can analyse the screen sizes and get the value back and display as tablet or android. this is what it says here: https://stackoverflow.com/questions/9279111/determine-if-the-device-is-a-smartphone-or-tablet


#20

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