How to get Register Device in android.

how to get Register Device in android.

i can use this
DeviceRegistration devReg = Backendless.Messaging.getDeviceRegistration();
but is shows getDeviceRegistration() not Resolve Method

plz give some solution for this.

i got the solution.

Backendless.Messaging.registerDevice(SENDER_ID, CHANNEL_NAME);

Backendless.Messaging.getRegistrations(new AsyncCallback<DeviceRegistration>() {
public void handleResponse(DeviceRegistration response) {

    Toast.makeText(getActivity(), response.getDeviceId() + "Device", Toast.LENGTH_SHORT).show();

public void handleFault(BackendlessFault fault) {