草庐IT

PRINT_SIGNAL

全部标签

android - 谷歌附近连接 API : measure signal strength

最近我发现了一种看似很酷的设备间通信方式,使用GoogleNearbyAPI.浏览文档并没有回答我的问题-是否可以实时测量连接信号强度,或者我应该发明一些东西,例如测量发送和接收数据或其他东西的时间?谢谢。 最佳答案 作为线程GoogleNearbyMessages-Cancelinitiallinkbetweendevices中所述的NearbyAPI开发人员:Today,Nearbydoesn'texposedistancedirectly他建议改用BLERSIIYoucangetaroughapproximationofdis

android - repo 同步失败,出现 "error: index-pack died of signal 9"

我正在尝试与Android源代码库同步并收到错误消息:error:index-packdiedofsignal9error:index-packdiedremote:Sendingapproximately2.01GiB...remote:Countingobjects:1,doneremote:Findingsources:100%(20881/20881)Receivingobjects:100%(20881/20881),2.00GiB|6.11MiB/s,done.remote:Total20881(delta14047),reused20831(delta14047)erro

php - 如何使用 One Signal + PHP + Server API 发送推送通知?

我正在使用一个信号为Android应用程序发送推送通知。我的问题是如何设置使用服务器restapi发送推送通知? 最佳答案 'TestingMessage');$fields=array('app_id'=>"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",'included_segments'=>array('All'),'data'=>array("foo"=>"bar"),'large_icon'=>"ic_launcher_round.png",'contents'=>$content);$fi

android - 从应用程序调用 HP Print Service 插件?

在三星设备上,我可以看到安装了HP打印服务插件,并且很少有像Gallery这样的应用程序可以使用它。有没有应用程序可以调用和传递数据进行打印? 最佳答案 Android支持库PrintHelper类提供了一种打印图像的简单方法。privatevoiddoPhotoPrint(){PrintHelperphotoPrinter=newPrintHelper(getActivity());photoPrinter.setScaleMode(PrintHelper.SCALE_MODE_FIT);Bitmapbitmap=BitmapFa

android - 如何在 Android Print Framework 中将默认的 "Portrait Orientation"更改为 Landscape?

有没有办法在打印框架中将默认纵向预览更改为横向?我试过下面-PrintAttributesattrib=newPrintAttributes.Builder().setMediaSize(PrintAttributes.MediaSize.NA_LETTER.asLandscape()).setMinMargins(PrintAttributes.Margins.NO_MARGINS).build();也试过下面-PrintAttributesattrib=newPrintAttributes.Builder().setMediaSize(PrintAttributes.MediaSi

android - Firebase, map 错误 : libc Fatal signal libart. 所以 FinalizerDaemon

操作系统:Android8.1.0implementation"com.google.firebase:firebase-core:15.0.2"implementation"com.google.firebase:firebase-database:15.0.1"implementation"com.google.firebase:firebase-auth:15.1.0"这是正常代码(如示例中所示)。我正在将数据写入数据库。DatabaseReferencedb=FirebaseDatabase.getInstance().getReference("...");db.child(

android - 使用 android studio 错误启动 Android 应用程序 : Fatal signal 13 SIGPIPE code -6

我正在开发一个Android应用程序,我正在运行在android4.1.2(api16)上的galaxys3mini上测试该应用程序。每当我使用标准运行配置启动应用程序时,应用程序启动时没有任何问题,但手机变得非常慢。当我查看logcat时,我看到以下错误每隔1-3秒发生一次:I/DEBUG(1667):************************************************I/DEBUG(1667):Buildfingerprint:'samsung/goldenxx/golden:4.1.2/JZO54K/I8190XXAMG4:user/release-k

Android Studio 在调试时卡住并显示消息 "SIGNAL = SIGABRT (signal SIGABRT)"

我的应用程序运行完美,没有任何问题。但是当我尝试调试它时,androidstudio卡住了。所以我收到消息“等待调试器”,然后该消息消失,接下来我在模拟器中只看到黑屏。我也收到了消息SIGNAL=SIGABRT(signalSIGABRT)在变量选项卡下的调试窗口中。我该如何解决这个问题? 最佳答案 一段时间以来,我一直面临同样的问题。我知道修复非常简单。禁用即时运行。转到“文件->设置->构建、执行、部署->即时运行”并禁用即时运行。请试试这个。 关于AndroidStudio在调试时

javascript - 在 Android 设备上使用 window.print() 或替代方法

在Android设备上(我测试过Nexus5、Nexus10、GalaxyS4和GalaxyTab3),JavaScript中的window.print()命令不执行任何操作。据我所知,它甚至没有记录错误。我知道大多数(如果不是全部)这些浏览器都可以打印,因为您可以使用移动版Chrome的菜单选择“打印”。为什么window.print()没有触发您期望的行为(打开客户端打印菜单)?是否有window.print()的Android替代方案? 最佳答案 这个Documentation里面写的很清楚,"该命令在iOS、Windows上

android - 当使用 webview 启动 Activity 时,应用程序崩溃并显示 "Fatal signal 5 (SIGTRAP), code 1 in tid 13058 (Chrome_InProcRe)"

有时,当带有webview的Activity启动时,应用程序会崩溃。Logcat包含以下消息:498211924IActivityManager:STARTu0{cmp=com.ssp.software.fairstays.uk/com.ssp.software.fairstays.activities.HotelWebviewActivity(hasextras)}fromuid10199ondisplay049827279Isensors:batch49826602Ihubconnection:sensorhubsaid:'batch1flags:0,sampling_rate_H