Could anyone help me how to get processor name, speed and RAM of Android device via code.
its only possible on a rooted device or your app is running as system application.
For wanted informations you have to look in the running kernel, as i know this informations cant be obtained by the android system itself.
To obtain informations about the CPU, you can read and parse this file: /proc/cpuinfo
To obtain memory informations, you can read and parse this file: /proc/memory