I create this post, because i am new at this, and i need a little help. I am doing a little exercise about a application you that put your name, and it returns \"hello (the
frameLayout.addView(yourView); <----- if you are getting error on this line remove view from it's parent first
if (yourView.getParent() != null)
((ViewGroup) yourView.getParent()).removeView(yourView); frameLayout.addView(yourView); (Add view to layout)