草庐IT

time_start

全部标签

android - 为什么打开 proguard 的 "Surface frame wait timed out"编码?

我从ExtractDecodeEditEncodeMuxTest.java复制了代码进入我的应用程序以转码视频,最重要的变化是将类重命名为VideoTranscoder并删除extendsAndroidTestCase因为我要运行它脱离任何Activity.一切正常,直到我使用proguard编译发布版本,然后它在运行时失败:E/d:com.testapp.a.g.a.b.b(OutputSurface.java:270)E/d:com.testapp.a.g.a.d.a(VideoTranscoder.java:944)E/d:com.testapp.a.g.a.d.a(VideoT

android - 权限拒绝 : starting Intent sharing with gmail

我尝试在我的应用程序中与gmail共享一些文本:StringshareBody="blablabla";IntentsharingIntent=newIntent(Intent.ACTION_VIEW);sharingIntent.setType("plain/text");sharingIntent.setClassName("com.google.android.gm","com.google.android.gm.ComposeActivityGmail");sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"

flutter Bloc : No ancestor could be found starting from the context?

我是Flutter的新手,也是Bloc的新手。编译代码时出现错误:ThefollowingassertionwasthrownbuildingLogin(dirty,state:_LoginFormState#44e7f):BlocProvider.of()calledwithacontextthatdoesnotcontainaBlocoftypeBtnBloc.NoancestorcouldbefoundstartingfromthecontextthatwaspassedtoBlocProvider.of().Thiscanhappenifthecontextyouusecome

flutter Bloc : No ancestor could be found starting from the context?

我是Flutter的新手,也是Bloc的新手。编译代码时出现错误:ThefollowingassertionwasthrownbuildingLogin(dirty,state:_LoginFormState#44e7f):BlocProvider.of()calledwithacontextthatdoesnotcontainaBlocoftypeBtnBloc.NoancestorcouldbefoundstartingfromthecontextthatwaspassedtoBlocProvider.of().Thiscanhappenifthecontextyouusecome

java - 解决SecurityException : Permission Denial: starting Intent. 我需要什么权限?

我想从应用程序打开Play商店。在三星还好,在一加手机就失败了。我不知道alibaba是从哪里来的。很奇怪。异常java.lang.SecurityException:权限被拒绝:启动Intent{act=android.intent.action.VIEWdat=http://play.google.com/...cmp=com.alibaba.intl.android.apps.poseidon/com.alibaba.android.intl.weex.activity.WeexPageActivity}来自ProcessRecord{a1dd30c15827:a2bliving

Android:是否有来自 Intent.ACTION_TIME_CHANGED 的任何其他信息?

Intent.ACTION_TIME_CHANGED是否提供了任何其他信息?getData()或getExtras()中没有任何内容。我想知道:手机设置新时间前的时间;谁更改了时间:用户(手动)还是电话运营商?欢迎使用任何其他方式获取这些信息! 最佳答案 我查看了Android的源代码,这个广播没有任何额外内容。因此,无法了解此信息。 关于Android:是否有来自Intent.ACTION_TIME_CHANGED的任何其他信息?,我们在StackOverflow上找到一个类似的问题:

java - Android java.time.LocalDateTime

我正在编写一个Android应用程序,它应该通过我在服务器端开发的HTTPRESTAPI接收一个java.time.LocalDateTime对象。问题是Android还在Java7中,java.time只在Java8中可用。话虽如此,在Android中表示包含日期和时间的变量的最佳方式是什么?我不想使用sql.timestamp。谢谢! 最佳答案 后端口您可以使用ThreeTenAndroidBackport这是对原始ThreeTen-Backport的Android改编将许多新的java.timeapi反向移植回JavaSE6和

mediarecorder.Start() 上的 Android 视频方向更改

这个问题类似于帖子here,here,here,here和here,但我被卡住了,花了几个小时试图弄明白。我有一个摄像机预览(现在总是以正确的方向显示),但是当我点击录制(mediaRecorder.start();)时,视频方向会发生变化。我试过使用setOrientationHint,但它似乎没有什么区别(如以下代码的注释中所标记)。它会影响我的两个测试设备(JellyBean上的Galaxy和Xperia)。请问我该怎么做才能解决这个问题?这是我的代码:XMLJavapackagehockeyj.androidlisttesting;importjava.io.IOExcepti

android - Ionic 2 - 错误:net::ERR_CONNECTION_TIMED_OUT 在 android 设备上运行时

(抱歉我的英语不好)我已经使用Ionic2forAndroid构建了一个应用程序。在此应用程序中,我需要从API获取信息,当我在浏览器中运行它时,它工作得很好(ionicserve)。问题是当我在我的设备(Android6.0.1)上运行时我遇到了这个问题:net::ERR_CONNECTION_TIMED_OUT然后我搜索了如何解决这个问题,并尝试了很多方法。我有cordova-plugin-whitelist,我的config.xml看起来像:我把它放在我的index.html中:我已经阅读了很多关于这个问题的文档,但我没有发现任何真正有用的东西。有人可以帮帮我吗?谢谢

android - 将 String 格式的 Facebook JSON created_time 转换为 long 格式

我正在开发android应用程序并尝试从facebookJSON获取created_time。我在这方面取得了成功,并且得到了2011-07-14T12:28:52+0000。现在应该将其转换为长格式,如220200202932093我现在的挑战是将其转换为长格式。这是因为我计划在android中使用getRelativeTimeSpanString获取相对时间。请帮我将字符串格式的时间从JSON对象转换为长格式 最佳答案 StringexampleDateString="2011-07-14T12:28:52+0000";try{