代码改变世界

随笔分类 -  Andriod 开发

Xamarin.Forms 在Prism 下实现导航栏回退按钮点击事件截留的正确姿势

2020-11-04 15:19 by Dorisoy, 420 阅读, 收藏, 编辑
摘要: 1.定义一个用于实现菜单管理的容器基类 MenuContainerPage 继承自 ContentPage, IMenuContainerPage 1 public class MenuContainerPage : ContentPage, IMenuContainerPage 2 { 3 4 S 阅读全文

如何判断JWT是否到期?解决方案

2020-09-22 15:33 by Dorisoy, 3908 阅读, 收藏, 编辑
摘要: 首先,请注意,令牌过期和吊销是两个不同的过程。 到期仅发生在Web应用程序上,而不发生在本机移动应用程序上,因为本机应用程序永不到期。 仅当(1)使用单击网站或本机Apps上的注销按钮;(2)用户重设密码;以及 (3)用户在管理面板中明确撤销其令牌。 1.如何让JWT到期 如果JWT令牌被盗,那么永 阅读全文

Baidu地图SDK 7.0 进行Android 绑定库转换的元数据匹配

2020-09-18 13:23 by Dorisoy, 241 阅读, 收藏, 编辑
摘要: <metadata> <attr path="/api/package[@name='com.baidu.mapapi']/class[@name='VersionInfo']/field[@name='VERSION_INFO']" name="name">VersionInformation</ 阅读全文

使用DryIocZero进行低开销依赖注入

2020-09-05 15:47 by Dorisoy, 235 阅读, 收藏, 编辑
摘要: 转载:https://ryandavis.io/adventures-in-low-overhead-dependency-injection-using-dryioczero/ Dependency Injection (DI) might be one of the more polarisin 阅读全文

Approaching a Xamarin.Android Bindings Case

2020-08-29 18:27 by Dorisoy, 195 阅读, 收藏, 编辑
摘要: Approaching a Xamarin.Android Bindings Case 1. Investigation One of the best ways to investigate a problematic Xamarin.Android Binding is to first ens 阅读全文

Link assemblies causes app crashes if you have an EditText

2020-08-29 17:16 by Dorisoy, 160 阅读, 收藏, 编辑
摘要: https://github.com/xamarin/xamarin-android/issues/3263 阅读全文

Link causes xamarin Android binding library project to crash

2020-08-29 17:12 by Dorisoy, 353 阅读, 收藏, 编辑
摘要: We all want our app packages to be as small as possible. Quite efficient way of decreasing the size of the app bundle is to use Linker. That's usually 阅读全文

The effects and animations possible with the SkiaSharp rotate transform

2020-03-18 16:27 by Dorisoy, 349 阅读, 收藏, 编辑
摘要: Download the sample Explore the effects and animations possible with the SkiaSharp rotate transform With the rotate transform, SkiaSharp graphics obje 阅读全文

用于 ExpressionAnimations 动画模型的表达式构建器

2020-01-22 17:03 by Dorisoy, 237 阅读, 收藏, 编辑
摘要: ExpressionBuilder https://github.com/Drutol/MALClient/tree/mal-alternative-api/ExpressionBuilder Welcome to the ExpressionBuilder classes! The Express 阅读全文

优雅的处理 Android 崩溃问题(二)

2020-01-21 16:12 by Dorisoy, 1071 阅读, 收藏, 编辑
摘要: Cockroach 2.0 为什么开发这个库 很多时候由于一些微不足道的bug导致app崩溃很可惜,android默认的异常杀进程机制简单粗暴,但很多时候让app崩溃其实也并不能解决问题。 有些bug可能是系统bug,对于这些难以预料的系统bug我们不好绕过,还有一些bug是我们自己编码造成的,对于 阅读全文

优雅的处理 Android 崩溃问题(一)

2020-01-21 16:11 by Dorisoy, 1011 阅读, 收藏, 编辑
摘要: Custom Activity On Crash library This library allows launching a custom activity when the app crashes, instead of showing the hated "Unfortunately, X 阅读全文

Keeping your Android application running when the device wants to sleep (Updated for Android Oreo)

2020-01-21 16:01 by Dorisoy, 405 阅读, 收藏, 编辑
摘要: Updated October 2018 to include detail about Android Oreo. Since the introduction of doze mode in Android Marshmallow we have seen a number of enterpr 阅读全文

Xamarin Forms Prism Navigation from TabbedPage behaves as PushModelAsync or the navigation bar disappears

2020-01-03 17:36 by Dorisoy, 257 阅读, 收藏, 编辑
摘要: FIX: The reason for this is that ViewA’s parent is not a NavigationPage, the result is that the Navigation Service assumes you want modal Navigation. 阅读全文

Xamarin NuGet 缓存包导致 already added : Landroid/support/annotation/AnimRes 问题解决方案

2019-08-24 16:50 by Dorisoy, 356 阅读, 收藏, 编辑
摘要: dotnet nuget locals http-cache --clear dotnet nuget locals global-packages --clear dotnet nuget locals temp --clear dotnet nuget locals plugins-cache 阅读全文

Android 系统Action大全

2019-08-23 15:15 by Dorisoy, 1725 阅读, 收藏, 编辑
摘要: 常用Action说明: 2.2源码中的ACTION定义 [java] view plaincopyprint? public static final String ACTION_MAIN = "android.intent.action.MAIN"; public static final Str 阅读全文

Xamarin Forms 实现发送通知点击跳转

2019-08-23 13:59 by Dorisoy, 1168 阅读, 收藏, 编辑
摘要: 1. Ensure the you have set LaunchMode.SingleTop on your MainActivity: LaunchMode.SingleTop In your MainActivity (the FormsAppCompatActivity subclass) 阅读全文

用于C# 的异步,持久的键值存储 Akavache 使用

2019-08-19 09:44 by Dorisoy, 657 阅读, 收藏, 编辑
摘要: Akavache是​​一个异步的,持久的(即写入磁盘)键值存储,用于在C#中编写桌面和移动应用程序,基于SQLite3。Akavache非常适合存储重要数据(即用户设置)以及过期的缓存本地数据。 开源地址:https://github.com/reactiveui/akavache/ 阅读全文

Xamarin 自定义OnKeyDown 再按一次退出程序的实现

2019-08-06 11:08 by Dorisoy, 853 阅读, 收藏, 编辑
摘要: private DateTime? lastBackKeyDownTime; public override bool OnKeyDown(Keycode keyCode, KeyEvent e) { if (keyCode == Keycode.Back && e.Action == KeyEventActions.Down && e.RepeatCo... 阅读全文

xamarin/xamarin.forms 在锁屏电源唤醒时保持后台运行

2019-08-03 14:06 by Dorisoy, 1375 阅读, 收藏, 编辑
摘要: PARTIAL_WAKE_LOCK:保持CPU 运转,屏幕和键盘灯有可能是关闭的。 SCREEN_DIM_WAKE_LOCK:保持CPU 运转,允许保持屏幕显示但有可能是灰的,允许关闭键盘灯 SCREEN_BRIGHT_WAKE_LOCK:保持CPU 运转,允许保持屏幕高亮显示,允许关闭键盘灯 FU 阅读全文

Xamarin Forms 自定义 Switch 时 Toggled 不能被触发的问题解决方案

2019-07-23 17:45 by Dorisoy, 21 阅读, 收藏, 编辑
该文被密码保护。 阅读全文