当前位置:首页 » 安卓系统 » 安卓系统振动调哪个文件

安卓系统振动调哪个文件

发布时间: 2022-08-15 17:25:08

㈠ 安卓的系统怎么更换短信铃声和短信振动

在你的SD卡上建立以下三个文件: ringtones notifications alarms 分别是你手机的手机铃声 短信和闹铃 然后在音乐、短信、闹铃的界面长按menu就可以设置不同的声音了!希望能帮到你!

安卓手机怎样调节震动强度啊

这个是只有开关,没有调节的。
就只有一种强度,要不就要去换震动器了。

㈢ 安卓手机震动文件在哪

main.xml布局文件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ToggleButton android:id="@+id/tb1"
android:textOn="关闭振动"
android:textOff="启动振动"
android:checked="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView android:id="@+id/tv1"
android:text="振动已关闭"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ToggleButton android:id="@+id/tb2"
android:textOn="关闭振动"
android:textOff="启动振动"
android:checked="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView android:id="@+id/tv2"
android:text="振动已关闭"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ljq.activity" android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon"
android:label="@string/app_name">
<activity android:name=".VibrateActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="7" />
<!-- 设置手机震动权限 -->
<uses-permission android:name="android.permission.VIBRATE" />
</manifest>

VibrateActivity类:
?

package com.ljq.activity;
import android.app.Activity;
import android.app.Service;
import android.os.Bundle;
import android.os.Vibrator;
import android.widget.CompoundButton;
import android.widget.TextView;
import android.widget.ToggleButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
public class VibrateActivity extends Activity {
private Vibrator vibrator=null;
private ToggleButton tb1=null, tb2=null;
private TextView tv1=null, tv2=null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//注意模拟器是模拟不了震动的,得真机测试哦
//创建vibrator对象
vibrator=(Vibrator)getSystemService(Service.VIBRATOR_SERVICE);
tv1=(TextView)findViewById(R.id.tv1);
tv2=(TextView)findViewById(R.id.tv2);
tb1=(ToggleButton)findViewById(R.id.tb1);
tb2=(ToggleButton)findViewById(R.id.tb2);
tb1.setOnCheckedChangeListener(listener);
tb2.setOnCheckedChangeListener(listener);
}
OnCheckedChangeListener listener=new OnCheckedChangeListener(){
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
ToggleButton toggleButton=(ToggleButton)buttonView;
switch (toggleButton.getId()) {
case R.id.tb1:
if(isChecked){
//根据指定的模式进行震动
//第一个参数:该数组中第一个元素是等待多长的时间才启动震动,
//之后将会是开启和关闭震动的持续时间,单位为毫秒
//第二个参数:重复震动时在pattern中的索引,如果设置为-1则表示不重复震动
vibrator.vibrate(new long[]{1000,50,50,100,50}, -1);
tv1.setText("振动已启动");
}else {
//关闭震动
vibrator.cancel();
tv1.setText("震动已关闭");
}
break;
case R.id.tb2:
if(isChecked){
//启动震动,并持续指定的时间
vibrator.vibrate(3500);
tv2.setText("振动已启动");
}else {
//关闭启动
vibrator.cancel();
tv2.setText("震动已关闭");
}
break;
}
}
};
}

㈣ android 震动需要什么权限

android如果要使用到震动,需要再主配置文件里面添加如下权限:

<uses-permission android:name="android.permission.VIBRATE"></uses-permission>

安卓系统的通话接通时震动是怎么设置的

  1. 首先进入手机拨号界面,然后点击功能键,点击出现的“设置”。

  2. 在通话设置页面,找到高级设置,把“对方接听时震动”“呼叫等待时震动”“通话结束时震动”勾选上,这样设置就完成了。

  3. 也可以在设置,声音里,有类似选项,接通后震动,或者接通反馈。

  4. 较早的安卓版本可能没有此项功能,如找不到选项,请尝试更新系统后再试。

㈥ 安卓的系统怎么更换短信铃声和短信振动

在你的SD卡上建立以下三个文件:
ringtones
notifications
alarms
分别是你手机的手机铃声
短信和闹铃
然后在音乐、短信、闹铃的界面长按menu就可以设置不同的声音了!希望能帮到你!

㈦ > 安卓手机按键震动怎么关闭

文字输入时震动设置:
设置--语言和键盘--Touch
Input--文字输入---按键时震动
设置--语言和键盘--自己用输入法--虚拟键盘设置--按下时振动提示
接电震动设置:
设置--声音--震动
按键震动设置:
设置--声音--触感反馈
下小米系统(miui)设置:
文字输入时震动设置:
系统设置--系统--语言和键盘设置--Android
键盘设置--按键时震动
系统设置--系统--语言和键盘设置--自己用输入法设置--虚拟键盘设置--按下时振动提示
接电震动设置:
系统设置--程序--电设置--振动
按键震动设置:系统设置--人--声音和振动设置--触感

㈧ 手机安卓系统屏幕按键都会有震动反馈 如何取消震动真的好费电啊!!

若使用的是vivo手机,按下触屏键以及某些交互式用户界面时手机会振动,可进入设置-声音与振动-触感反馈关闭。

热点内容
ta栅格算法 发布:2024-05-07 07:03:23 浏览:801
符号源码 发布:2024-05-07 06:26:09 浏览:706
玩hypixel服务器ip地址要什么版本 发布:2024-05-07 06:22:50 浏览:61
代码为什么要编译 发布:2024-05-07 06:22:48 浏览:494
java面试复习 发布:2024-05-07 06:01:15 浏览:658
suftp 发布:2024-05-07 06:00:40 浏览:880
编程的tr 发布:2024-05-07 05:37:25 浏览:423
苹果4s的数据怎么备份到安卓上 发布:2024-05-07 05:37:15 浏览:819
安卓怎么注册电邮 发布:2024-05-07 05:23:49 浏览:715
怎么看清被涂鸦的内容安卓手机 发布:2024-05-07 05:16:52 浏览:703