private LayoutSizeActivity layoutSize;
layoutSize = new LayoutSizeActivity();
You can NOT create an instance of an Activity
using new
. Don't ever try it, it will NEVER work.
The only way you can create an Activity
is with startActivity(...)
or one of the similar methods such as startActivityForResult(...)
etc.