草庐IT

my_shared_ptr

全部标签

android - 如何在 android 中使用 Share Intent 分享图片+文本

我使用此代码,但它无法正常工作。StringBody="DealsName:"+Bussinessname+"\n"+"Deals:"+deal+"\n"+"Address:"+city+","+country;Intentshare=newIntent(android.content.Intent.ACTION_SEND);UriscreenshotUri=Uri.parse(Images.Media.EXTERNAL_CONTENT_URI+"/"+image);share.setType("image/*");share.putExtra(Intent.EXTRA_SUBJECT

安卓NDK : read file from assets inside of shared library

在我的应用程序中,我必须将文件从assets文件夹传递到sharedlibrary。我现在不能用jni来做。我在我的项目中使用预编译的共享库,其中我有我的文件的硬编码路径,但我收到错误“没有这样的文件或目录”。所以在我的.apk文件中,我在libs/armeabi-v7a文件夹中有.so文件,在/assets文件夹。我试过这样做:char*cert_file="/assets/cacert.cert";av_strdup(cert_file);还有一些其他的路径,但是都不行。有可能吗? 最佳答案 您可以简单地使用C++中的AAsse

安卓应用 : Take user to Accessibility settings page of my app

这个问题与thisSOquestion非常相似.我目前使用的是将用户带到设置页面的以下代码。IntentdummyIntent=newIntent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS);startActivity(dummyIntent,0);但这只会将用户带到设置页面。如下图所示。取而代之的是,我想将用户带到我的应用程序的设置页面,在那里他可以选择打开它并显示我的应用程序描述。 最佳答案 ReferThisDevicePolicyManager例如:如果你

android - 如何在 Android 设备上启动 my meteor 应用程序?

我正在测试现在集成了Phonegap的新Meteorbuild0.9.2。到目前为止一切正常。但我真的不明白如何在我的安卓设备上启动我的应用程序。手册指出您应该指定meteorrunandroid-device-p:并且服务器和设备应该连接到同一个本地网络。我这里用的是服务器的ip和端口。但是我得到这个错误:ERROR:Failedtolaunchapplicationondevice:ERROR:Failedtoinstallapktodevice:ERROR:Failedtodeploytodevice,nodevicesfound.我不确定应该如何将我的设备链接到服务器。

javascript - Android - 如何使用 PhoneGap Share 插件

我正在尝试使用PhoneGapShare插件,它应该会显示原生Android“共享”窗口,允许用户选择要共享到哪个应用程序。https://github.com/phonegap/phonegap-plugins/tree/master/Android/Share我有一个调用以下代码的超链接(在github上提供)。window.plugins.share.show({subject:'Iliketurtles',text:'http://www.mndaily.com'},function(){},//Successfunctionfunction(){alert('Sharefai

android - 如何修复第三方 sdk 中重复的 libgnuSTL_shared.so 文件?

当我使用gradle构建和运行apk时,出现以下错误::::Error:Executionfailedfortask':app:transformNative_libsWithMergeJniLibsForDebug'.>com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:DuplicatefilescopiedinAPKlib/armeabi-v7a/libgnustl_shared.soFile1:app/build/inter

android - GCM : why my application crash in GCMRegistrar. 检查设备(这个);

我有一个只有几行的简单应用程序,因为我试图找出为什么我的真实应用程序在GCMRegistrar.checkDevice(this)中崩溃(如果我删除它,我的应用程序不会崩溃)。谁能帮忙?:(:publicclassDemoActivityextendsActivity{privateStringTAG="**pushAndroidActivity**";privateTextViewmDisplay;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);GCMRe

android - 为什么没有从我的 APK 中复制 libgnuSTL_shared.so?

我有一个带有libs文件夹结构的android项目,如下所示:/libs/armeabilibfoo.solibbar.solibmystuff.solibgnustl_shared.so/armeabi-v7alibfoo.solibbar.sofoo和bar是第三方库,mystuff是我自己的库,来自一个单独的androidJNI项目,它需要gnuSTL_shared,来自同一个JNI项目。当我在Eclipse中构建我的项目时,我可以使用unzip-l查看生成的APK的内容,它确实显示所有这些库文件都已包含。但是,在安装APK后,/data/data/com.myproject/l

android - : Unable to instantiate application and ClassNotFound while sharing apk

当我从androidstudio运行应用程序时,它在模拟器和设备中运行良好。但是当我分享apk的调试/发布版本时,当用户点击应用程序图标时它崩溃了。根据我在日志中看到的错误03-1109:16:12.65425384-25384/com.microtechnicianappE/AndroidRuntime:FATALEXCEPTION:mainProcess:com.microtechnicianapp,PID:25384java.lang.RuntimeException:Unabletoinstantiateapplicationcom.microtechnicianapp.App

Android CLI 构建显示无效的资源目录名称错误 : MY_PROJECT\res/crunch

我正在使用Node.js命令行界面构建我的PhoneGapAndroid应用,使用命令phonegaprunandroid。它显示此错误:-code-gen:[mergemanifest]FoundDeletedTargetFile[mergemanifest]MergingAndroidManifestfilesintoone.[mergemanifest]Manifestmergerdisabled.Usingprojectmanifestonly.[echo]Handlingaidlfiles...[aidl]NoAIDLfilestocompile.[echo]--------