top of page
Search
fatringpadarexa

Shake Shake (Android): A Comprehensive Guide to Implementing SensorListener



I am working on a cross-platform React Native mobile app. I am writing console.log statements as I develop. I want to see these logging statements in Chrome while I'm running the Android app in the default Android emulator. According to Facebook's docs I just need to "shake the device". How do I do this in the Android emulator?


Media:ICR for OloMary Nelson, 443-248-0191Mary.Nelson@icrinc.comorSHAKE SHACKKristyn Clark, Senior Manager, Brand Communications, 646-747-8776kclark@shakeshack.comorFuzz ProductionsBrett Spiegel, 917-941-2145brett@fuzzproductions.com




Shake Shake (Android)



By default, Instabug is shown when the device is shaken. This can be customized to several other modes that show the SDK. You can also show the SDK manually from a custom gesture or a button you add to your app.


Have you tried to read a book or an article like this while on a bus or walking down the street? I bet you tried! In this case you should notice that reading text in a such way is not a good idea since the screen constantly shakes. It seems that screen shaking is a big enough issue and eliminating it can promise a good UX. My idea is to use device accelerometer sensors to compensate for and smooth out screen content shaking in the same way as DSLR camera stabilizes its sensors/lenses. Technically, this is possible so why not try this yourself!


You can shake your phone or tablet to send us feedback. This captures a screenshot of your Google Maps screen to help us understand what is going on. You can remove this screenshot if it's not needed.


Figure 7. Android accelerometers accurately record strong shaking during a shake-table experiment: (a) shake-table experimental setup; (b) ground truth; and (c) Android phone; and (d) Android phone in backpack.


2ff7e9595c


1 view0 comments

Recent Posts

See All

Commentaires


bottom of page