草庐IT

find_one

全部标签

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 - 错误 : cannot find symbol variable GL_TEXTURE_EXTERNAL_OES + OpenCV on Android Studio

我是在Android上开发Opencv应用程序的初学者。我在Android上编译OpenCV示例(15个谜题)时遇到两个错误:1.错误:找不到符号变量GL_TEXTURE_EXTERNAL_OES2.错误:android.hardward.camera2包不存在。 最佳答案 在项目结构中将编译SDK版本和构建工具更改为最新的BUTonmoduleopencv。 关于android-错误:cannotfindsymbolvariableGL_TEXTURE_EXTERNAL_OES+Ope

android - react native : ReferenceError: Can't find variable: require (line 1 in the generated bundle)

我使用以下指南在ReactNative中创建了一个示例应用Reactnativeandroid但是当我运行react-nativerun-android时。我收到以下异常。11-2516:10:35.3261796-1897/com.awesomeE/ReactNative:GotJSException:ReferenceError:Can'tfindvariable:require11-2516:10:35.3271796-1897/com.awesomeE/AndroidRuntime:FATALEXCEPTION:mqt_jsProcess:com.awesome,PID:179

android - 在安卓 : How do I get variables/data from one screen to another?

在android中:我正在尝试将数据从一个Activity/屏幕获取到另一个Activity/屏幕。假设我要将两个数字相加。我用2个EditTextView、几个标签和一个“确定”按钮布置我的第一个屏幕(xml)。现在,我想将我输入的数字添加到EditTextView中。假设我输入2和2(2+2=4)。现在,当我点击“确定”按钮时,我希望出现一个新的屏幕/Activity并简单地显示答案(4)。我是否使用全局变量来执行此操作?任何帮助将不胜感激。 最佳答案 第一个ActivityIntentmyIntent=newIntent();

android - 发布android库到jcenter : gradle bintrayUpload does not find libraries

我正在尝试将Android库发布到jcenter。我关注了https://github.com/danielemaddaluno/gradle-jcenter-publish教程。在我尝试执行之前一切正常gradlebintrayUpload当我这样做时,我得到了构建失败。当我查看错误时,我看到了包com.android.volley不存在因此找不到我作为gradle依赖项包含的库dependencies{compile'com.mcxiaoke.volley:library:1.+'(...)}包含的其他库也会发生同样的情况。我该如何解决这个问题?我附加模块build.gradlea

android - 在 React native 应用程序上获得 'One of the sources for assign has an enumerable key on the prototype chain'

我正在为Android应用程序使用react-native。并使用axios作为http库。当我尝试通过httppost发送Blob对象时,我会收到以下错误:HTTPFailureinAxiosTypeError:Oneofthesourcesforassignhasanenumerablekeyontheprototypechain.Areyoutryingtoassignaprototypeproperty?Wedon'tallowit,asthisisanedgecasethatwedonotsupport.Thiserrorisaperformanceoptimizationa

android - 无法实例化应用程序 - java.lang.ClassNotFoundException : Didn't find class "com.xxxxx.App" on path:/data/app/com. xxxxx-1.apk

这是我每次运行应用程序时的错误:E/AndroidRuntime:FATALEXCEPTION:mainjava.lang.RuntimeException:Unabletoinstantiateapplicationcom.xxxxx.App:java.lang.ClassNotFoundException:Didn'tfindclass"com.xxxxx.App"onpath:/data/app/com.xxxxx-1.apkatandroid.app.LoadedApk.makeApplication(LoadedApk.java:509)atandroid.app.Activ

android - gradle-android-scala-plugin 给出 "Could not find matching constructor"错误

导入thisAndroidStudio中的示例代码会出现此错误:Error:(17,0)Couldnotfindmatchingconstructorfor:org.gradle.api.internal.tasks.DefaultScalaSourceSet(java.lang.String,org.gradle.api.internal.file.BaseDirFileResolver)build.gradle:buildscript{repositories{mavenCentral()}dependencies{classpath"com.android.tools.build

android - 卸载 APK : one last action before uninstall

我正在为Android开发一个应用程序,用于在手机的SIM卡上安装东西。我不想让应用程序在卸载时执行最后一个操作:删除sim卡中的内容。这意味着:我需要在卸载APK后执行最后一项操作。问题:我没有找到任何方法。(除了有一个辅助应用程序,它可以捕获卸载Intent并完成工作,但这与我不想要的很不一样)如果有人有解决方案,我真的很感兴趣。提前致谢。(PS:我有点担心实际上没有) 最佳答案 你是对的。没有此类事件,也没有受支持的方式在您的应用程序被卸载时收到通知。应用程序的进程被简单地终止(如果它正在运行)并且应用程序被卸载。

android - Eclipse 无法识别 Nexus one 设备

Eclipse无法识别googlenexusone设备。但是安装了USB驱动程序。因为在AndroidSDKManager中,它说安装了GoogleUSB驱动程序包。那么为什么它不识别?我使用的是WindowsXP平台。谁能帮帮我。 最佳答案 进入设备管理器,将NexusOne的驱动程序更新为\android-sdk\extras\google\usb_driver中的驱动程序。你可以找到一个全面的解释here. 关于android-Eclipse无法识别Nexusone设备,我们在St