An electronic device is provided which is a thin field effect transistor, a field effect resistance device, photosensor, photoswitch, light-emitting diode, light-emitting diode display, phototransistor, phototube, IR detector, diode laser, electrochemic displays, electromagnetic shielding device, solid electrolyte capacitors, energy storage device, memory storage device, biosensor, photoconductive cell, photovoltaic device, solar cell or diode, and comprises at least one layer comprising a composition comprising at least one polyaniline and at least one colloid-forming polymeric acid. Methods for making such devices are also provided.