android - RuntimeException: Unable to start activity when requesting action bar -


i getting following warning , exception:

illegalstateexception activity has action bar supplied window decor. not request window.feature_action_bar , set windowactionbar false in theme use toolbar instead.

runtimeexception: unable start activity componentinfo{com.mdinfosystem.mymobileapp/com.mdinfosystem.mymobileapp.bill_payment}: java.lang.illegalstateexception: activity has action bar supplied window decor. not request window.feature_action_bar , set windowactionbar false in theme use toolbar instead.

if using toolbar, specify theme.appcompat.noactionbaras parent in activity's styles.xml. , in activity use this:

toolbar toolbar = (toolbar) findviewbyid(r.id.toolbar);     setsupportactionbar(toolbar); 

note: activity should extend appcompatactivity


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -