草庐IT

dim_channel

全部标签

安卓电视 : get list of channels

我已经安装了androidtv-sample-inputs,所以我可以伪造一些电视输入并拥有一些channel,我想获取有关该channel的信息,但是,当我查询以获取该信息时,我得到一个空光标。到目前为止我尝试过的是:TvInputManagertv=(TvInputManager)getApplicationContext().getSystemService(Context.TV_INPUT_SERVICE);Listlist=tv.getTvInputList();String[]projection={TvContract.Channels._ID,TvContract.Ch

固定 channel 上的 Android RFCOMM 套接字

我正在编写一个android应用程序来与完全不受我控制的硬件设备通信。我的应用程序使用listenUsingRfcommWithServiceRecord和UUID00001101-0000-1000-8000-00805F9B34FB创建一个监听套接字。然后它会在该套接字上调用accept()以等待远程设备连接,但它永远不会连接。我已经与硬件设备的制造商谈过,他们说他们的设备将“简单地连接到远程设备上的channel1”。即它不会进行SDP发现以找出正确的channel号。他们拒绝改变这一点(即使这当然是错误的)我的问题是有什么方法可以强制android使用固定的RFCOMMchan

java - 如何获得比特率,采样率和没有。 android中音频文件的 channel 数

我需要您的帮助来解决以下问题:查询:有什么方法可以获取音频文件的以下信息。音频文件的采样率、channel、比特率。为了提取比特率,“MediaMetadataRetriever”API可用(METADATA_KEY_BITRATE)。请建议是否可以使用任何androidAPI完成。在下面找到了这个API,但是它的用法其实是不一样的。http://developer.android.com/reference/android/medi/AudioTrack.html我想以编程方式使用AndroidAPI提取这些:输入音频文件的采样率、量化、channel。请帮忙解决这个问题。提前致谢。

android - 消费者关闭输入 channel 或发生错误。事件=0x8

01-0311:28:47.499:ERROR/InputDispatcher(164):channel'4085fe50com.bce.tip/com.bce.tip.core.MenuActivity(server)'~Consumerclosedinputchanneloranerroroccurred.events=0x801-0311:28:47.499:ERROR/InputDispatcher(164):channel'4085fe50com.bce.tip/com.bce.tip.core.MenuActivity(server)'~Channelisunrecover

android - 对话框 FLAG_DIM_BEHIND 不适用于 Android 5.x (Lollipop)

我使用这段代码使DialogFragment的背景变暗:Windowwindow=getDialog().getWindow();WindowManager.LayoutParamswindowParams=window.getAttributes();windowParams.dimAmount=0.75f;windowParams.flags|=WindowManager.LayoutParams.FLAG_DIM_BEHIND;window.setAttributes(windowParams);这在Kitkat及以下版本上运行良好,但在Lollipop上停止运行。我怀疑这与我的

Android 通知 channel - 从系统设置到应用程序设置的链接

我正在尝试遵循有关如何“将您的应用设置链接到Androidchannel设置”的MaterialDesign指南。如图所示,应用程序设置“应用程序中的其他设置”上应该有一个按钮,但我不知道如何设置它。https://material.io/guidelines/patterns/notifications.html#notifications-settings我希望NotificationChannel可以选择设置正确的Intent或Intent过滤器,但我找不到任何选项。managingthenetwork也有类似的行为我认为这会以同样的方式工作?!有人知道如何实现吗?

android - 尽管创建了 channel ,但通知未显示在 Android O 中

这是我在下面给出的代码。这无法在AndroidO上创建任何通知,尽管创建了通知channel。privatevoidweatherNotification(WeatherInfoweather){Intentintent=newIntent(this,WeatherActivity.class);PendingIntentpendingIntent=PendingIntent.getActivity(this,0,intent,0);StringtemperatureScale=prefs.getUnits().equals("metric")?getString(R.string.c

android - 如何启动 Youtube 应用程序以打开 channel ?

我想从我的应用程序访问youtube以打开一个channel。我已经搜索了一个解决方案,但我只是找到了如何打开/流式传输视频:Intenti=newIntent(Intent.ACTION_VIEW,Uri.parse("vnd.youtube:VIDEO_ID"));startActivity(i);但是直接打开一个channel呢?非常感谢。 最佳答案 Intentintent=newIntent(Intent.ACTION_VIEW);intent.setData(Uri.parse(urlStr));startActivit

java - 对 youtube 应用配置文件/ channel 的 Intent

我可以通过YouTube应用轻松观看视频,但如何访问个人资料/channel?publicvoidYouTube(Stringid){//PlayYoutubeVideoIntenti=newIntent(Intent.ACTION_VIEW,Uri.parse("vnd.youtube:"+id));mContext.startActivity(i);}我..只是不知道从哪里开始?是否有特定的Uri来解析?我当然已经尝试过搜索互联网,但我正在寻找答案。甚至有可能吗?谢谢大家! 最佳答案 通过执行以下操作,可以启动YoutubeAp

android - 从 Android O Api 创建通知 channel 的正确方法

从AndroidO(API26)版本引入的通知channel。我从以下链接中了解了它:ManagingnotificationchannelsGoogleSampleforCreatingChannel问题:如果我有多个通知,那么在应用程序启动时创建通知channel并将其保存在ApplicationScope是个好主意吗?publicvoidaddNotificationChannels(Contextcontext){Listchannels=newArrayList();channels.add("channel_1");channels.add("channel_2");..c