草庐IT

default-date

全部标签

android - 未找到名称为 'default' 的配置 - HoloGraphLibrary

我正在尝试在我的android项目中安装HoloGraphLibrary。但是每次同步gradle时我都会收到这条消息:Error:Configurationwithname'default'notfound.这是我的Android菜单和库文件夹:-app-build-libraries-HoloGraphLibrary-.settings-res-srcAndroidManifest.xmlbuild.gradleHoloGraphLibrary.imlHoloGraphLibrary-HoloGraphLibrary.imlLICENSE.txtNOTICE.txtproguard

安卓 8 : firebase default notification icon not showing up

我正在为我的应用程序使用firebaseFCM,并在list中设置自己的通知图标:在我测试过的Oreo之前的每个Android中(API21、API23),图标正确显示在推送通知View中,作为一个带有colorPrimary背景和白色的大圆圈ic_custom里面。在Android8.0中,图标显示为填充colorPrimary的小圆圈,内部没有任何图标。我在这里缺少什么? 最佳答案 解决了将FCM依赖项更新为com.google.firebase:firebase-messaging:15.0.2

android - 错误 : Default interface methods are only supported starting with Nougat (--min-api 24) when NOT using them

在编译我的libgdx游戏时,我从android-studio收到以下错误:Error:DefaultinterfacemethodsareonlysupportedstartingwithAndroidN(--min-api24):com.hgames.core.item.Itemcom.hgames.core.item.misc.MiscItem.deepClone()我不明白,因为我不使用默认接口(interface)方法。我的代码在JDK1.7上编译得很好。此处报告的错误涉及以下代码:interfaceItem{ItemdeepClone()}interfaceMiscItem

安卓日历 "Grid of Dates"

我正在寻找一个Android开源日历控件,它可以在网格中显示完整的月份,就像真正的纸质日历一样。用于显示特殊日子的应用。就像我们正在移植的我的iPhone版本: 最佳答案 http://code.google.com/p/ancal/那是一个开源的安卓日历非常非常好 关于安卓日历"GridofDates",我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/3623330/

安卓广播接收器 : run it on default process or in a new one?

我有一个包含两个广播接收器的应用程序,一个用于接收数据,另一个用于发送数据。我已经看到它们有一个属性android:process使它们在应用程序的默认进程或另一个进程中运行。在我使用google找到的示例中,接收器设置为在进程“:remote”中运行。我的问题是,使用每个选项的优点和缺点是什么? 最佳答案 当您想与另一个应用程序共享资源时,使用与应用程序的默认进程不同的进程会很方便。要执行此操作,您需要安排两个具有相同进程名称的应用程序,如果您的进程名称以小字符开头,则会生成一个全局进程。如果它以冒号:开头,则该过程是私有(pri

Java : How to parse date format to show specific output format?

在我的应用程序中,我以特定格式从我的数据库中检索日期。(由PHP生成)对于这种情况,我想在我的Android应用程序中显示特定的输出:来自数据库的输入格式:2014-05-3017:50:50我希望能够在TexView中显示这种格式:如果日期是指今天,我想显示这种格式:今天-17点50分如果日期指的是昨天,我会显示这种格式:昨天-17点50分其他日子:6月5日-17点50分我该怎么做?[更新]StringdateDebut=annonce.getDate_debut();SimpleDateFormatinDF=newSimpleDateFormat("yyyy-MM-ddHH:mm:

java - JUnit4 测试导致 java.text.ParseException : Unparseable date

我可以在Android项目中成功执行以下代码fragment:SimpleDateFormatdateFormat=newSimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ",Locale.US);dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));Datedate=null;try{date=dateFormat.parse("2015-08-17T19:30:00+02:00");}catch(ParseExceptione){e.printStackTrace();}现在我将相同的代码fragmen

android - Firebase 集成错误 : Google Play Services out of date

我正在尝试将Firebase集成到我的Android应用程序中。我正在使用这个tutorial.我更新了我的sdk管理器,添加了google-services.json并完成了网站中提到的所有操作。我仍然收到此GooglePlay服务已过期错误。我想获取设备tokenID,以便在登录Activity中将其发送到服务器。我还需要做些什么来获取设备tokenID吗?list应用的build.gradleapplyplugin:'com.android.application'android{compileSdkVersion23buildToolsVersion"23.0.3"defaul

android - : notification. 标志和 notification.defaults 之间有什么区别?

在我的测试代码中,我使用了notification.flags|=Notification.DEFAULT_SOUND;notification.flags|=Notification.DEFAULT_LIGHTS;这没有用,根据我在anotherquestion上得到的答案我将.flags更改为.defaults并且它有效。notification.defaults|=Notification.DEFAULT_SOUND;notification.defaults|=Notification.DEFAULT_LIGHTS;在documentation两个字段:标志和默认值是相同的。我

android - Google+ 登录 : Google Play Services out of date exception

我正在尝试将GooglePlus登录集成到我的Android应用程序中。当我尝试在AndroidGoogleAPI模拟器上运行此应用程序时,出现一个对话框提示我更新“GooglePlay服务”。单击“更新”按钮时没有任何反应,我可以在logcat中看到以下错误:Can'tredirecttoappsettingsforGooglePlayservices我还在logcat中收到以下警告:GooglePlayservicesoutofdate.Requires3225100butfound3158130另外我想补充一点,我已将GooglePlay服务从修订版8更新到修订版10。谁能告诉我