as3 Android native extension Toast message

as3 adobe air native extension Toast
I’ll make it short. (only Android but all packed in one ane)
New classes in my as3NativeAlert.
Just for NOT adding a another ane to the project that could be incompatible with all platforms I’ve added Toast notification in my Native Extension.
Usage:"some message",Toast.LENGTH_LONG);

Or there is a possibility to show it in any place on the screen:

     var randX:int = Math.random()*200;
     var randY:int = Math.random()*200;
     Toast.showWithDifferentGravit("some message",Toast.LENGTH_SHORT,Toast.GRAVITY_LEFT,randX,randY);

Every class has a isSupported variable.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: