草庐IT

change-notification

全部标签

Android Notification.Builder : show a notification without icon

Stringns=Context.NOTIFICATION_SERVICE;NotificationManagermNotificationManager=(NotificationManager)getSystemService(ns);inticon=R.drawable.ic_notification_icon;android.app.Notification.Buildernbuilder=newNotification.Builder(this);nbuilder.setContentTitle(getString(R.string.notifcation_title,mPr

android - 找不到错误 :resource style/TextAppearance. Compat.Notification.Info(又名 {packageId}.test :style/TextAppearance. Compat.Notification.Info)

我刚刚将build.gradle编译SDK更新为27API。compileSdkVersion27buildToolsVersion'27.0.3'targetSdkVersion27但是一旦我点击同步按钮它就​​会抛出error:resourcestyle/TextAppearance.Compat.Notification.Info(aka{packageId}.test:style/TextAppearance.Compat.Notification.Info)notfound.error:resourcestyle/TextAppearance.Compat.Notificat

Android Honeycomb : How to change Fragments in a FrameLayout, 没有重新创建它们?

是否可以在Fragment之间切换而无需一直重新创建它们?如果是,怎么办?Inthedocumentation我找到了一个如何替换fragment的例子。//CreatenewfragmentandtransactionFragmentnewFragment=newExampleFragment();FragmentTransactiontransaction=getFragmentManager().beginTransaction();//Replacewhateverisinthefragment_containerviewwiththisfragment,//andaddthe

android - Firebase 控制台 : How to specify click_action for notifications

我实现了Firebase并测试了Firebase通知。当应用程序在前台时,我没有遇到任何问题,我实现了一项扩展FirebaseMessagingService并在onMessageReceived中处理消息和数据的服务我在应用程序处于后台时遇到问题,我想发送一个通知来打开特定Activity并执行我计划要做的事情,而不仅仅是打开应用程序。我按照Firebase指南中的描述进行了操作,但我无法启动特定Activity。这里是list:这里是Firebase控制台。我必须在这些字段中写什么才能打开我的“BasicNotificationActivity”? 最佳

android - 错误 :Cannot change dependencies of configuration ':app:_debugAnnotationProcessor' after it has been resolved

GradleProjectRefreshFailed在我添加KenBurnsView之后build.gradle在应用程序级别的库。当我尝试同步gradle时失败了。build.gradle(应用级别)applyplugin:'com.android.application'android{compileSdkVersion25buildToolsVersion"25.0.0"defaultConfig{applicationId"com.sample.ac"minSdkVersion16targetSdkVersion24versionCode1versionName"1.0_dev

android - Eclipse 安装错误 : INSTALL_FAILED_UID_CHANGED

我在真实android设备上从eclipse运行android应用程序时遇到问题当我点击“运行”时,它只显示这个错误:安装错误:INSTALL_FAILED_UID_CHANGED日志:[2012-09-0914:38:26-SearchApp]AndroidLaunch![2012-09-0914:38:26-SearchApp]adbisrunningnormally.[2012-09-0914:38:26-SearchApp]Performingcom.example.MainActivityactivitylaunch[2012-09-0914:38:26-SearchApp]

安卓 : status bar color change for API level below 21

我正在尝试为低于21的API级别更改状态栏颜色。通过更改主题样式中的主要颜色,我们可以为API级别21更改状态栏中的颜色。我正在寻找如何更改低版本的状态栏颜色谁能帮帮我? 最佳答案 可以从Lollipop更改状态栏的颜色但实际上您可以为Api>=19更改状态栏的颜色在value-v19的样式里面放truetrue.....状态栏的背景色会变成透明色,为了给它上色,你只需在你的应用中添加一个背景色,这样状态栏就会采用那种颜色希望这很清楚并且有帮助 关于安卓:statusbarcolorch

c++ - 登录和 gdbus : Not getting notifications

我使用DBus与logind通信以获取有关事件session等的信息。我使用gdbus-codegen创建了代码。我可以使用call和get方法获取信息,但我没有收到通知(我有一个正在运行的g_main_loop!)。我这样创建session对象:GError*error;session_=::login1_session_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,G_DBUS_PROXY_FLAGS_NONE,"org.freedesktop.login1",object_path,NULL,&error);object_path是上述路径并使

android - 安卓版 Qt : change the application icon

如何更改针对android的Qt项目的图标,以便应用程序的启动器具有此图标? 最佳答案 您应该创建一个Androidlist文件并在QtCreator中编辑它。转到项目>构建AndroidAPK>详细信息现在选择创建模板来创建list文件并在编辑器中打开它:如图所示,您可以为您的应用程序设置三个版本的图标,从左到右分别为低、中、高DPI值。这种制作androidlist文件的新方法自Qt5.4和QtCreator3.3开始可用。以前版本在Projects->Run->Deploy中有一个CreateAndroidManifest.x

windows - 如何在 Windows Phone 8.1 的 Android 中创建类似于 "toast notification"的内容

我想在WindowsPhone8.1的Android中创建类似于“toast通知”的东西。我想要的是显示一个文本框,指示用户发生了一些事件(如“已配对”、“连接丢失”...等)。但该文本框应该几秒钟后在没有任何用户交互的情况下自动关闭。我已经在Windows中浏览了消息框和弹出窗口。但两者都不符合我的需求,或者我必须使用计时器回调来自动关闭它,这是不推荐的。谁能建议一种在WindowsPhone8.1中实现此目的的方法 最佳答案 在我看来,最好的解决方案是igrali的解决方案,因为他尊重准则。但是如果你想显示Toast相同的And