A novel method of packaging electronic devices (e.g. any device that
receives or transmits electronic signals) including
microelectromechanical devices, semiconductor devices, light emitting
devices, light modulating devices, light modulating devices, and light
detecting device has been provided herein. The electronic device is
placed between two substrates, at least one of which has a cavity for
holding the electronic device. The two substrates are then bonded and
hermetically sealed with a sealing medium. The adhesion of the sealing
medium to the substrates, especially when one of the two substrates is
ceramic, can be improved by applying a metallization layer to the surface
of the substrate.