Just to add to what Star-Dust said, one thing is to "request" root and another "be root", to do what you are asking the device MUST BE ROOTED, which is not possible to achieve with a B4A app, the user will have to do that separately using any of the utilities Star-Dust mentioned, like KingRoot for example.