How do I make the gear fit vibrate continously?
I used someone else's sample code and got this far
public class GearFitSDKSample extends ScupDialog {
MyActivity activity;
public GearFitSDKSample(Context context) {
super(context);
activity = (MyActivity) context;
// TODO Auto-generated constructor stub
}
@Override
protected void onCreate() {
super.onCreate();
final ScupLabel label = new ScupLabel(this);
label.setWidth(ScupLabel.FILL_DIALOG);
label.setHeight(ScupLabel.FILL_DIALOG);
label.setText("Hello XDA Developers!");
label.show();
setBackPressedListener(new BackPressedListener() {
@Override
public void onBackPressed(ScupDialog arg0) {
finish();
}
});
}
public Integer x;
{
x = 50;
}
public Integer signo = 1;
}
I'm using android studio and having a hard time getting anything to post...
The goal i'm trying to achieve is use the Samsung CUP SDK to cause a long , or continuous vibration pattern on the gear fit based on some conditions such as possibly, an alarm going off which would be set in the app or outside it then have the app called through an intent (I would expose this intent to other apps publically I guess)
Anyways I just need some help getting the part where the gear fit vibrates with a vibration pattern (of my choice).