草庐IT

samba_share

全部标签

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 - 使用 Samba/JCIFS 问题写入/上传文件 (SmbAuthException : Access is denied)

所以我正在尝试将文件从Android设备写入Windows共享文件夹。我正在使用最新版本的JCIFS和codewhichdisplaysavailablenetworkshares工作正常。所以我假设JCIFS和我的LAN、WiFi等一切正常。这是文件上传的代码(实际上我只想将文本Sring写入文件):publicbooleansave2Samba(Stringtext,StringfileName){try{//MyWindowssharesdoesn'trequireanylogin/password//Stringname="login";//mywindowsusername/

android - "Bluetooth share has stopped working"执行LeScan时

我面前有一堆各种各样的Android手机都运行4.3/4.4,它们似乎都存在蓝牙问题。我正在运行的应用程序只是使用此回调扫描周围的其他蓝牙设备:http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.LeScanCallback.html只是对数据进行LogCatting,但仍有问题...有没有人知道这个错误并修复了它?我真的需要在明天为我的应用程序演示准备的最后期限之前稳定蓝牙扫描...谢谢。编辑:据说在4.4.3(或4.4.4)中已解决。(当然,我们介绍项目的那天……对我们没有好处)。主要问

安卓 : Share session between Webview and httpclient

我的WebView中实际上有一个已记录的session。但我也使用httpclient从网络发送和获取数据。我在互联网上看到无法获取WebView的内容,因此我需要使用我的httpclient从web服务获取数据。问题是这个网络服务使用session...而我的session在我的WebView中,所以httpclient没有它,我无法访问网络服务的内容。我看到很多关于这个问题的帖子,但我不明白解决方案。这是我在onPageStarted上所做的:CookieManagermgr=CookieManager.getInstance();Log.i("URL",url);Log.i("C

android - Android 上的 GdxRuntimeException : couldn't load shared library 'gdx' for target

我开发了一个Libgdx应用程序并在我的SamsungGalaxyS3(4.1.2)上测试了它,它运行良好。我试图在GalaxyGrand(4.1.2)上测试它但失败了。在logcat中,我发现了以下内容:causedbycom.badlogic.gdx.utils.GdxRuntimeExceptioncouldn'tloadsharedlibrary'gdx'fortarget:Linux,32-bit这只是在更换设备时发生的,所以知道是什么原因吗?!完整的logcat:05-2220:25:01.745:E/AndroidRuntime(12725):FATALEXCEPTION

在 flutter 上测试 shared_preferences

我正在编写一个flutter应用程序,并且在编写测试时遇到了这个问题。此方法应该将数据写入TextFields并点击一个将这些数据保存在SharedPrefs中的按钮:testWidgets('Clickonloginsavesthecredentials',(WidgetTestertester)async{awaittester.pumpWidget(MyApp());awaittester.enterText(find.byKey(Key('phoneInput')),'test');awaittester.enterText(find.byKey(Key('passwordIn

在 flutter 上测试 shared_preferences

我正在编写一个flutter应用程序,并且在编写测试时遇到了这个问题。此方法应该将数据写入TextFields并点击一个将这些数据保存在SharedPrefs中的按钮:testWidgets('Clickonloginsavesthecredentials',(WidgetTestertester)async{awaittester.pumpWidget(MyApp());awaittester.enterText(find.byKey(Key('phoneInput')),'test');awaittester.enterText(find.byKey(Key('passwordIn

android - 如何从浏览器接收 "Share URL"?

我阅读了这篇文章(HowdoIhandlethebrowser's"sharepage"intentinandroid?),我可以获取共享链接来检测我的应用程序,现在如何让Activity接收URL?找到答案:Intentintent=getIntent();if(savedInstanceState==null&&intent!=null){Log.d(TAG,"intent!=null");if(intent.getAction().equals(Intent.ACTION_SEND)){Log.d(TAG,"intent.getAction().equals(Intent.ACT

android - react native 异常 java.lang.UnsatisfiedLinkError : dlopen failed: "/data/data/{package}/lib-main/libgnuSTL_shared.so" is 32-bit instead of 64-bit

我正在尝试将ReactNative与我现有的Android应用程序集成。初始化ReactNativeScreen时出现以下异常:java.lang.UnsatisfiedLinkError:dlopenfailed:"/data/data/com.snapdeal.main/lib-main/libgnustl_shared.so"is32-bitinsteadof64-bit应用程序仅在64位设备上崩溃。根据我目前的学习,我找到了这个issue在ReactNativeRepo上报告,但是solution此线程中的建议没有帮助,因为我没有在现有应用程序中使用任何外部SO库。除上述之外,

android - 根据他们选择分享的方法分支 Android Share Intent extras

只是想分享一个动态文本字符串+应用程序的URL。nativeAndroid共享Intent设置正确,并且与Twitter、Gmail等完美配合。但是,正如许多人猜测的那样,它不适用于Facebook。显然是因为Facebook不接受intent.EXTRA_TEXT字段中的文本,只接受一个URL。好吧,我想问大家的问题是:有没有一种方法可以根据他们选择的分享方式来划分分享Intent附加功能?例如,如果他们通过gmail或Twitter分享,则使用现有的String+URL(所需选项)EXTRA_TEXT,但如果他们选择通过Facebook分享,则仅使用URL作为EXTRA_TEXT。