文件名称:振动器Vibrator
文件大小:226KB
文件格式:ZIP
更新时间:2017-05-10 07:37:44
Vibrator 振动
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //获取系统的Vibrator服务 vibrator = (Vibrator) getSystemService(Service.VIBRATOR_SERVICE); //控制手机震动1秒 vibrator.vibrate(1000); } }
【文件预览】:
Vibrator
----.project(844B)
----project.properties(563B)
----src()
--------com()
----AndroidManifest.xml(947B)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------values-v11()
--------menu()
--------drawable-mdpi()
--------layout()
--------values-sw600dp()
--------drawable-xxhdpi()
--------drawable-xhdpi()
--------values()
--------values-sw720dp-land()
--------values-v14()
----.settings()
--------org.eclipse.jdt.core.prefs(177B)
----assets()
----gen()
--------com()
----.classpath(475B)
----proguard-project.txt(781B)
----ic_launcher-web.png(50KB)
----bin()
--------resources.ap_(40KB)
--------classes()
--------AndroidManifest.xml(947B)
--------dexedLibs()
--------res()
--------classes.dex(3KB)
--------Vibrator.apk(44KB)