This method will only work if Android and Macbook share the same wifi network.
Download OSCHook on Android
In OscHook, set internal IP to the same IP as your laptop.
Download oscp5 library from Processing. Make sure the port number in oscp5 is changed to the port number in your OscHook app in Android.
Run the following processing code that will print out the accelerometer x, y, z number inside your processing console.