I wrote out a small vibration class using the M5 sdk but it doesn't seem to work (no errors received, either). Any tips would be greatly appreciated:
Using java Syntax Highlighting
- public class vibration extends Activity {
- Button BtnVibrate;
- Vibrator p1 = new Vibrator();
- @Override
- public void onCreate(Bundle icicle) {
- super.onCreate(icicle);
- setContentView(R.layout.main);
- BtnVibrate = (Button) findViewById(R.id.ButtonVibrate);
- BtnVibrate.setOnClickListener(ListenerSubmitProfile);
- }
- private OnClickListener ListenerSubmitProfile = new OnClickListener()
- {
- public void onClick(View v)
- {
- p1.vibrate(100000);
- }
- };
- }
Parsed in 0.032 seconds, using GeSHi 1.0.8.4




