In the following code i get a NullPointerException on lines 9/10 with findViewById(). In my main class I just instantiated an object from this class, to use .getFrom()>
You have to call it from your Activity's onCreate method, as the resources will not have been made available before that point.
So expanding MByD's answer, in your onCreate method, first call setContentView(), then findViewById().