i want to start a new activity from ab activity that (extends from Linearlayout) .. but this code is not right
Intent i = new Intent(SearchResultForm.this, MainActivity.class);
startActivity(i);
... ...
public class SearchResultForm extends LinearLayout{ ...
and i get this error ..
No enclosing instance of the type SearchResultForm is accessible in scope
how can i do it ?