草庐IT

SL_RESULT_SUCCESS

全部标签

android - PhoneGap 安卓插件 : Success & Failure Callback not getting called

我开发了一个AndroidPhoneGap插件。插件已成功调用,但未调用回调。我不知道我错过了什么。有没有人知道当回调没有被调用时会出现什么问题?以下是我的代码:JS文件内容:varSharedPreferencePlugin=function(){};SharedPreferencePlugin.prototype.getvalues=function(content,success,fail){returnPhoneGap.exec(function(args){console.log("successcalledfromplugin'sjsfile");},function(ar

java.lang.RuntimeException : Failure delivering result ResultInfo{who=null, 请求=1,结果=-1,数据= Intent }到 Activity

在我的应用程序中,我点击了一个名为PickPhoto的按钮,它加载了图库。当我单击图库中的图像时,应用程序强制关闭并且在我的logcat中我收到以下信息:java.lang.RuntimeException:FailuredeliveringresultResultInfo{who=null,request=1,result=-1,data=Intent{dat=content://media/external/images/media/3369(hasextras)}}toactivity{cap.shot/cap.shot.LolcatActivity}:java.lang.Nul

java - 有什么方法可以在不安装sl4a的情况下在android develop中调用python代码吗?

我找到了一些使用python构建android应用程序的方法。但是它们都需要安装sl4a和pythonforandroid。太复杂了,有什么办法可以把sl4a打包到我的android应用程序项目中,安装apk后,我就不需要再安装sl4a了。 最佳答案 您可以通过以下链接使用Kivy:PythonforAndroid它可以帮助您查看以下主题:HowcanIintegrateaPythoncodeintheAndroidJavaapp?希望对你有帮助。 关于java-有什么方法可以在不安装s

android - 警告 : Deactivation of this APK will result in your app being available for new installs on fewer types of devices

我在Playstore上上传了一个具有不同架构的应用程序版本,现在我想用新版本上传我的应用程序但是得到了。Error:Youcan'trolloutthisreleasebecauseitdoesn'tallowanyexistinguserstoupgradetothenewlyaddedAPKs.还有一些警告错误,比如DevicesupportremovedWarningDeactivationofthisAPKwillresultinyourappbeingavailablefornewinstallsonfewertypesofdevices.TipIfthisisanunin

android - 从 SL4A 脚本启动 android 应用程序?

我在/sdcard/sl4a/scripts/twitter.py中有以下内容importandroiddroid=android.Android()droid.launch('com.twitter.android')如果我在控制台或后台运行它,它会立即以代码1退出,并且日志文件为空。如果有其他方法可以从某种脚本启动应用程序,我愿意接受建议。我知道Tasker,但我宁愿编写文本脚本也不愿使用向导。 最佳答案 您可以为此使用startActivity:importandroiddroid=android.Android()droid

java.lang.RuntimeException : Failure delivering result ResultInfo while logging using Facebook 错误

我的应用程序在模拟器上运行良好。所以我决定在我的Android手机上运行我的应用程序。我正在尝试使用我的应用程序登录Facebook帐户,它在模拟器上运行良好。一旦我在Android手机上运行我的应用程序,我总是会收到此异常-01-3011:06:08.400:E/AndroidRuntime(7463):java.lang.RuntimeException:FailuredeliveringresultResultInfo{who=null,request=64206,result=0,data=null}toactivity{com.facebook.samples.session

android - 使用 sl4a 将事件从 python 发送到 javascript

我想知道一个简单问题的答案,但找不到合适的答案(我用谷歌搜索了几个小时:))任何人都知道这是如何完成的,或者如果没有registerCallback是否还有其他方法?HTML代码:vardroid=newAndroid();functiondoit(){droid.makeToast("Textsend:=>"+document.getElementById("msg").value);droid.eventPost("doit",document.getElementById("msg").value);}functionalert_me(data){droid.makeToast(

android - 如何在可过滤的ListView中显示 "No Result"?

我有一个ListView和一个EditText。我在EditText上实现了addTextChangedListener以过滤ListView内容。leftList.setTextFilterEnabled(true);et_search.addTextChangedListener(filterTextWatcher);然后TextWatcher是:privateTextWatcherfilterTextWatcher=newTextWatcher(){publicvoidafterTextChanged(Editables){}publicvoidbeforeTextChanged

android - java.lang.RuntimeException : eglSwapBuffers failed: EGL_SUCCESS report 错误

我有安卓游戏,使用libgdx框架在GooglePlay商店中有报告:java.lang.RuntimeException:eglSwapBuffersfailed:EGL_SUCCESSatandroid.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1085)atandroid.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1043)atandroid.opengl.GLSurfaceView$GLThread.guardedRu

Android Drive API startResolutionForResult 返回 RESULT_CANCELLED

我正在尝试将Google云端硬盘应用到我的Android应用程序,但我什至无法连接到Api客户端。我不知道为什么:我已经在开发者控制台中为~/.android/debug.keystore配置了项目和凭据(值似乎是正确的)我从DriveforAndroidDocumentation复制粘贴了代码->在方法onConnectionFailed()中,如果connectionResult.hasResolution(),我将调用connectionResult.startResolutionForResult()在onActivityResult中匹配requestCode我收到resul