Cant setText when using Viewflow

view story

http://stackoverflow.com – So i'm using Viewflow in my activity. I have a DiffAdapter which defines my two views. I also have two layouts; comments and app. My activity setContentView(viewflow_holder); then i define my textview like this: TextView txtAppName = (TextView) findViewById(R.id.txtAppName); txtAppName.setText("String"); When i use setText i get an NullPointer exception. I think that it may be caused by; that i dont set the contentView of the layout which contains the textview. EDIT: Code Activity: package com.fireplace.market.fads.controller; import java.util.ArrayList; import java.util.HashMap; i (HowTos)