登录
首页 » Android » 自定义耳机按键功能示例

自定义耳机按键功能示例

于 2023-06-05 发布 文件大小:2.23 MB
0 687
下载积分: 2 下载次数: 1

代码说明:

应用背景可以监控耳机孔位置的插入拔出,同时可已通过软件控制耳机线控的播放键功能。关键技术public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initView(); if (isServiceWorked()) { isOpenService = true; openOrClose.setText("功能已开启,点击关闭"); } // registerHeadsetPlugReceiver(); // setTitleVip(context);

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • AbstractPoolEntry
    A pool entry for use by connection manager implementations for Andriod.
    2013-10-05 08:13:36下载
    积分:1
  • beg-android-4-master
    说明:  Source code for the book Beginning Android 4 Authors: Authors: Murphy, Mark, Allen, Grant
    2019-06-12 04:07:20下载
    积分:1
  • SQLite 的示例
    这是一个基本的例子使用SQLite在Android中。在此,我们可以学习如何打开Android的数据库。和访问数据库中的数据。
    2022-03-14 01:21:40下载
    积分:1
  • Android-PC
    Android与PC服务,可以在Android系统上时限PC 的通信服务(failed to translate)
    2013-05-06 20:09:38下载
    积分:1
  • Cards-UI-master
    卡片式View,支持单个卡片,item为卡片的ListView 使用: CardListView list = ... list.setCardTheme(CardTheme.Dark) CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark) list.setAdapter(adapter) // Alternatively, you can pass a context and string resources in place of strings // CardHeader has an optional second parameter for a subtitle CardHeader header = new CardHeader( I m a header ) // You can optionally set an action to the header // Specifying no action title will default to See More header.setAction( See More , new CardHeader.ActionListener() { @Override public void onHeaderActionClick(CardHeader header) { // Do whatever you want } }) // Add the header to the adapter, automatically notifies the list adapter.add(header) // Again, you can pass a context and string resources in place of strings Card card = new Card( Hello , My name is Aidan ) adapter.add(card) (This library is no longer maintained, as this implementation is generally frowned upon in the new Google Material design guidelines, excluding certain situations (like Google Keep type UI). See the new CardView APIs in the Support Library.)
    2015-01-24 15:06:35下载
    积分:1
  • android_opencv.tar
    open cv 源码, 最新版本,在android 2.3或者4.0上面开发。(opencv sourcecode,it is developed on android 2.3 or 4.0)
    2012-10-25 14:48:12下载
    积分:1
  • OBD 汽车数据监测demo
    供学习和测试,基于Android平台的车况检测系统(OBD DEMO for android)
    2018-04-04 17:24:09下载
    积分:1
  • 基于TCP socket,Android客户端与PC通信,客户端源码
    基于TCP~socket,Android客户端与PC通信,客户端源码。已经测试,可用。附带apk,和网络调试助手,方便测试。只需提供服务器的IP和端口号,即可通信。客户端:一次连接,可发送多次数据。重点是客户端时时接收服务器端发送来的数据。采用 Handler和Thead结合。项目中包含了 网络调试助手V3.8.1.exe  demoClientTcpIp.apk以及项目源码
    2016-03-10下载
    积分:1
  • Letao
    Android模仿乐淘的应用程序分析源码,应用程序编程,很好的参考资料。(The application of Android mimic Le Amoy source analysis, application programming, a good reference.)
    2013-11-11 10:25:51下载
    积分:1
  • android非常漂亮的滚动选择日期控件
    android非常漂亮的滚动选择日期控件,DateSlider 是一个非常漂亮的滚动选择日期控件。通过触屏来滚动显示日期。你可以自定义日期显示的格式和颜色。
    2022-04-24 14:09:17下载
    积分:1
  • 696516资源总数
  • 106648会员总数
  • 8今日下载