I'd say it doesn't replace the virtual keyboard but works alongside with it and the user can use either one. You typically don't have to do anything for it to work. However, you can improve how your app works with a physical keyboard with d-pad buttons as the user can interact with views such as buttons or panels. When using the d-pad, a view becomes focused and pressing enter registers a click on the focused view. All this is handled by android but for example, you can manually focus the default button or CLV item so the user doesn't have to navigate to it with the d-pad and is able to immediately press enter.