robotemi / sdk

temi is an unparalleled robotic platform introducing a new dimension of development - movement. Using temi’s SDK, developers can create new functionalities and introduce new use cases via temi’s Android tablet. temi’s movement and navigation capabilities run off of it's Linux computer and uses a set of 16 sensors including a Lidar, depth cameras, driving cameras, and microphones. We encourage our developer community to suggest and request expanded functionality within the SDK and we will adhere to your needs. We want to enable you to create skills like never seen before! We will be constantly improving the SDK and its documentation. Please feel free to reach out to us with any questions or thoughts at developers@robotemi.com
https://www.robotemi.com/
201 stars 86 forks source link

OnRequestPermissionResult is not called after granting permissions #452

Open arafi123 opened 3 months ago

arafi123 commented 3 months ago

I have MainActivitythat extends UnityPlayerActivityand implements various listeners for Temi. I already have OnRequestPermissionResultfor MainActivityfor Bluetooth permissions and also have following overriden method for handling the result of Temi permission. Somehow after requesting for Settings permission, the method is not called. What could be wrong ?

public void onRequestPermissionResult( Permission permission, int grantResult, int requestCode)

I have implemented following things:

  1. Import listener permission.
  2. Added OnRequestPermissionResultListener in MainActivity
  3. Add and remove the listener in OnCreate()and OnDestroy()
  4. Overriden method for handling the result.

Any help will be greatly appreciated.

Thanks