HockeyApp + Seismic (Android)

or how to see your coworkers reporting issues shaking devices…

These are two cool libraries and powerful that you can introduce in your future apps.

Hockeyapp: Alternative to Google Alpha/Beta Tester. It’s a pay tool with a powerful function. Only integrating the SDK, everyone with your testing app can send you an issue only pushing a button. The SDK open an issue form to fill.

But to do this cooler, We are going to use Seismic with Hockeyapp.

Seismic: One of thousand libraries of Jake Wharton. This library allows you do something when someone is shaking the device.

The idea is when someone shake the device, automatically open the issue form.

Integrating Hockeyapp

  • Add this to your manifest:
<activity android:name="net.hockeyapp.android.FeedbackActivity" />
<activity android:name="net.hockeyapp.android.PaintActivity" />
  • Open the activity from which you want to show the feedback view.
  • Add the following method:
public void showFeedbackActivity() {
FeedbackManager.register(this, HOCKEYAPP_ID, null);
FeedbackManager.showFeedbackActivity(this);
}
  • The param APP_ID has to be replaced by your app’s identifier.

Integrating Seismic

  • Add in your implement “ShakeDetector.Listener” and add the following method:
public void hearShake(){
//this function is from HockeyApp
showFeedbackActivity();
}
  • Finally add in your onCreate():
SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
ShakeDetector sd = new ShakeDetector(this);
sd.start(sensorManager);

So, with these two libraries you can enjoy (or not) watching to your coworkers doing rare things…

Show your support

Clapping shows how much you appreciated Fran Pulido’s story.