I want draw screen programmatically and not through layout-file. I write:
// create LayoutParams
LayoutParams linLayoutParam = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
// install linLayout
setContentView(linLayout, linLayoutParam);
But my program do not start - I have message "application has stopped unexpectedly please try again", but my code is right (working). I think I have a problem with Android Virtual Device Manager, Maybe I must try running Fix Permissions in ROM Manager?, Else is it true - so How do it?
Android scolds line: import android.view.ViewGroup.LayoutParams;
- Why? Android wants to remove the line line: import android.view.ViewGroup.LayoutParams;
- Why? Maybe I have problem with Android Virtual Device Manager?, but How do running Fix Permissions in ROM Manager?