自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

怪咖先森的博客

小蜗牛,慢慢爬

  • 博客(373)
  • 资源 (4)
  • 收藏
  • 关注

原创 Xamarin Alert | Pop-ups | 弹窗相关

Xamarin 相关官方文档Displaying Pop-ups简单用法:DisplayAlert ("Alert", "You have been alerted", "OK");又返回结果的 Alert:var answer = await DisplayAlert("Exit", "Do you wan't to exit the App?", "Yes", &quo

2018-11-14 22:09:35 760

原创 11/5/2018 不开心 =-=

不管对与错而只在乎别人怎么说,叫做懦弱;不管别人怎么说而只在乎对与错,叫做勇敢。The weak do what they’re told regardless of what is right, the brave do what is right regardless of what they’re told.这世上只有两种人会对你好:想要利用你的,和真心喜欢你的。Only two ...

2018-11-05 23:46:11 163

原创 11/5/2018 夜

过去学到的教训,是让你在未来可以用上。所以现在,你能做的只有坚持。The lessons you’ve learned from the past will help you in the further. But all you can do right now is hold on.所谓释怀,就是用一种自己能接受的方式放弃。Moving on is finding a way that...

2018-11-05 22:24:36 109

原创 Xamarin Android Target version

Read the Understanding Android API Levels link below.Visual Studio for Windows:1.pngVisual Studio for Mac:2.pngTarget Framework – Specifies which framework to us...

2018-11-05 16:44:00 155

原创 Xamarin Android 修改 SdkBuildToolsVersion

原始连接: https://stackoverflow.com/questions/42576113/how-to-change-sdk-build-tools-path-in-vs2015-using-xamarin-adroidReferring to Build Process of Xamarin.Android, you can find a ...

2018-10-31 23:16:00 451

原创 Android CPU 架构详解

1. ABI 定义Android 设备的 CPU 类型 通常称为 ABIs,看下Google老大哥是怎么介绍的ABI的,翻译官方文档:同 Android 手机使用不同的 CPU,因此支持不同的指令集CPU 与指令集的每种组合都有其自己的应用二进制界面(或 ABI)ABI 可以非常精确地定义应用的机器代码在运行时如何与系统交互您必须为应用要使用的...

2018-10-31 22:40:00 388

原创 Android CPU 架构详解

1. ABI 定义Android 设备的 CPU 类型 通常称为 ABIs,看下Google老大哥是怎么介绍的ABI的,翻译官方文档:同 Android 手机使用不同的 CPU,因此支持不同的指令集CPU 与指令集的每种组合都有其自己的应用二进制界面(或 ABI)ABI 可以非常精确地定义应用的机器代码在运行时如何与系统交互您必须为应用要使用的每个 CPU 架构指定 ABI早期的 ...

2018-10-31 22:39:22 2817

原创 Android WebView 的使用

WebView 是 Android 中一个非常实用的组件, WebView 可以使得网页轻松的内嵌到 App 里,还可以直接跟 js 相互调用。1. 添加网络权限<uses-permission android:name="android.permission.INTERNET" />2. WebSettings 对访问页面进行设置。WebView mWebView = ne...

2018-10-30 11:15:37 243

原创 研发相同的编译环境下,相同的C-C++-C#-VB工程,使用-VS-多次编译无法得到相同的编译结果

C# &&VB 部分从Visual Studio 2015(Roslyn 1.0)开始 ,V就支持 Deterministic 编译,可以参考下面的文档。https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/deterministic-compiler-option...

2018-10-29 15:37:36 354 1

原创 Xamarin-Forms-Xaml-XamlParseException--No-embeddedresource-found-for

问题来源把 Xamarin Forms 项目中的 Xamarin.Forms nuget package从 2.5 更新到 3.0 之后就遇到这个错误了Xamarin.Forms 2.5 --> project build successUpdate Xamarin.forms version from 2.5 to 3.0 then build again, --> proje...

2018-10-29 15:37:01 171

原创 MSBuild-MSB3073--error-in-VS-Android-Linux-Makefile-Project

背景在 VS 中创建 Visual C++ --> Cross Platform --> Android | Linux --> Makefile Project 后,只是在项目中有这样一段代码:LOGD("data length error: %d", datalen); <-- 字符串: “error:”编译的时候就会报错:问题重现我在 SO 上的提问,可...

2018-10-29 15:36:10 564

原创 Android 屏幕相关参数解读

1、屏幕尺寸:手机对角线的物理尺寸单位是英寸 inch,1 英寸= 2.54 cm2、屏幕分辨率:手机在横向、纵向上的像素点数总和(例子:1080x1920,即宽度方向上有 1080 个像素点,在高度方向上有 1920 个像素点)单位:x pixel,1 px = 1 像素点注:Android手机常见的分辨率:320x480、480x800、720...

2018-10-29 15:20:00 360

原创 Android 加载本地图片路径

Android 图片的可能路径:String imageUri = "http://site.com/image.png"; // from WebString imageUri = "file:///mnt/sdcard/image.png"; // from SD cardString imageUri = "content://media/ex...

2018-10-29 15:08:00 3390

原创 Android 返回按钮的自定义设置

程序中我们有时候想让放回按钮按照自己的需求调整页面而不是单纯的按照系统返回上一级,这个问题很简单,重写 onKeyDown 方法即可。下面方法,包含了 webview 中的返回上一页和普通 Activity 的单击设置和双击退出程序:@Overridepublic boolean onKeyDown(int keyCode, KeyEvent eve...

2018-10-29 15:05:00 2314

原创 AndroidManifest.xml <uses-feature> 和 <uses-permisstion>

关于 &lt;uses-feature&gt; 和 &lt;uses-permisstion&gt; 的自我理解,声明一项应用程序需要用到的软、硬件特性。1、&lt;uses- feature&gt; 一般只对 APP 发布在 GooglePlay 的时候其作用,它协助 GooglePlay 来过滤您的应用程序,比如你明确的在程序中描述 了你的程序...

2018-10-29 14:52:00 138

原创 Android 读取资源文件

主要介绍 Android 读取资源文件,直接从 assets 读取,从 Raw 文件中读取,InputStream 转 String.1. 从 assets 读取:/** * 得到Assets里面相应的文件流 * * @param fileName * @return */private InputStream getAssetsStrea...

2018-10-29 14:33:00 927

原创 Android APP 检测安装打开 APK 三步操作

本文主要介绍 Android APP 检测、安装、打开 APK,三步操作,分别是:检查 APP 是否已经安装,安装已经下载好的 APK,打开已经安装的 APK1、检查 APP 是否已经安装/** * 检查APP是否已经安装 * @param context * @param packagename 需求检查的APP包名 * @return 没...

2018-10-29 14:26:00 900

原创 Android 实现定时器的三种方法

Handler+ThreadHandler 自带的 postDelyed 方法Handler + Timer + TimerTask1. Handler+Threadpublic class HanderDemoActivity extends Activity { TextView tvShow; private int...

2018-10-29 14:22:00 1158

原创 Error: Could not create the Java Virtual Machine

当我使用 jadx 的时候,点击 D:\bianyi\jadx-0.8.0\bin\jadx-gui.bat 的时候会报这个错:jvmerror.PNGGoogle 了很多,都是说修改 -Xms2048M -Xmx8g 之类的东西,我都试了,但是不起作用最后发现是 JDK 的问题解决方案把 JAVA_HOME 的环境变量从 C:\P...

2018-10-23 20:28:00 2984

原创 Xamarin.Forms Performance on Android

link all assemblies = Sdk and User Assemblies一些参考文章已经有相当多关于如何提高 Xamarin.Forms 性能的文章:阅读关于Xamarin.Forms performance 的官方文档Jason Smith's Xamarin Forms Performance Tips五个关于降低 Xam...

2018-10-14 13:23:00 180

原创 Linker 分析器

前言哈哈,mono linker, Xamarin 开发人员最大的敌人之一。不过不用害怕,欲先取之,必先予之。我们现在就来分析一下 Linker 吧什么是 Linker Analyzer?Linker Analyzer 是一个命令行工具,用于分析在 LinkAssemblies 步骤中记录的依赖关系。它将显示哪些 items 已被标记并导致链接的程序...

2018-10-12 15:38:00 314

原创 'MSBuild.exe' is not recognized as an internal or external command

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe添加到环境变量就可以了在下面的这个 Path 里添加,上面的不可以 ...

2018-10-12 09:14:00 1979

原创 Android UncaughtExceptionHandler 原理分析

未完待定当 APP 在线程中跑出了异常就会导致 APP crash。比如我们最常见的 NullPointerException 空指针异常。有些时候我们不希望这种异常导致我们的 APP crash,尤其是在 debug 状态下,程序很大的时候,编译运行一次也不容易,debug 的时候好不容易程序启动起来了,发生了 crash 就不能 debug 执行了,...

2018-10-10 18:02:00 1245

原创 Android Screen Share And Control

记录下:https://github.com/android-notes/androidScreenShareAndControl

2018-10-10 11:13:00 425

原创 No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android

亲测下面办法可行https://github.com/UserWang/Android-Notes/wiki/No-toolchains-found-in-the-NDK-toolchains-folder-for-ABI-with-prefix上方的解决方案里是要去下载完整的 NDK 包的,但是我们需要的只是 mips64el-linux-andro...

2018-10-10 10:38:00 93

原创 Xamarin 减小 .apk 大小

1. Linking Your LibrariesXamarin 应用使用 linker 来减小 app 的大小。我们可以通过文档 -- Linking on Android 来了解它是如何工作的。简单来说, linker 会使用 static analysis 来移除你 app 中没有用到的 assemblies 和 types, 一次来减小你 app...

2018-10-10 09:24:00 917

原创 getResources().getDrawable() deprecated API 22

stackoverflow: https://stackoverflow.com/questions/29041027/android-getresources-getdrawable-deprecated-api-22You have some options to handle this deprecation the right (and fu...

2018-10-08 13:47:00 917

原创 Xamarin.Forms NavigationBar TitleView

重点Xamarin.Forms 3.2 之后新增了一个 feature: TitleView, 以便开发者能够更灵活的自定义 NavigationBar.一些可能会有用的链接Add ToolbarItem on the left side of NavigationBar in Xamarin.Forms on Android?Move a ...

2018-10-08 13:29:00 766

原创 Xamarin.Android 根据 Uri 获取文件路径

问题描述How to get actual path from Uri xamarin android BitmapFactory.decodeFile() returning null xamarin.android Get Path of Gallery Image Xamarin?需求已获取 Android 文件的 Uri,现在需要根...

2018-10-05 14:48:00 2012

原创 Xamarin.Android Menu 添加 Icon 无效问题

问题分析在 Android4.0 系统中,创建菜单 Menu,通过setIcon 方法给菜单添加图标是无效的,图标没有显出来,但在 Android 2.3 系统中是可以显示出来的。这个问题的根本原因在于 4.0 系统中,涉及到菜单的源码类 MenuBuilder 做了改变,该类的部分源码如下:public class MenuBuilder imple...

2018-10-05 14:07:00 371

原创 Xamarin Android custom view image issue

问题来源:https://blog.csdn.net/u011033906/article/details/73159316在这篇博客里我介绍了如何在 xamarin.Android 中自定义 View, 一切顺利。但是几个月后其他人测试我代码的时候 app 会在启动时 crash, 分析原因后发现是york:image="@drawable/Ico...

2018-10-04 15:46:00 156

原创 Xamarin 使用 Android 模拟器

VS 2017 自 15.8.0 之后支持在 VS 中启动 Android 模拟器(使用 Hyper-V 加速,速度还是蛮快的)英文:https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleratio...

2018-09-28 17:41:00 1660

原创 Xamarin 进阶文档

9/28/2018, 记录一些可以用于深入了解 Xamarin 的文档与链接Xamarin 社区帮助 Xamarin 开发者解决开发问题的地方,主要就这俩, 两个论坛都很活跃。Stack overflow: https://stackoverflow.com/Xamarin Forum: https://forums.xamarin.com/...

2018-09-28 17:23:00 159

原创 在 Xamarin Forms 中实现 Banner

Method 1: Xamarin.Forms.CarouselView博客:Flip through items with Xamarin.Forms CarouselViewGithub: https://github.com/jamesmontemagno/Xamarin.Forms-Monkeys效果图:ezgif.com-vid...

2018-09-28 17:03:00 720

原创 5 种 提高 Xamarin.Forms App 启动时间的 方法

适用于 iOS 和 Android 的 Xamarin SDK 提供了一个非常高性能的基础,以便构建 Xamarin.Forms 跨平台应用程序。当你努力优化 Xamarin.Forms 应用程序的启动速度和响应速度时,请记住,能优化构建在 Xamarin SDK 基础之上的iOS 和 Android应用的方法 也能优化 Xamarin 跨平台的应用程序。...

2018-09-04 23:28:00 817

原创 使用 RDCMan

VMAS Linkhttps://shgbsvmas/#/Remote Desktop Connection Manager 2.7https://www.microsoft.com/en-us/download/details.aspx?id=44989Solution用 Remote Desktop Connection Manager 打开...

2018-08-27 20:45:00 1333

原创 杂记 8/22/2018

真相有时候之所以难以被接受,是因为谎言听起来没好多了。Sometimes it’s hard to accept the truth because the lies sound so much better.有时候幸福就是替你尽力去做那些我能做到的事。Sometimes hapiness is simply doing everything that I can do for you...

2018-08-22 22:06:50 172

原创 了解 内核、操作系统 的一些链接

内核相关:The Linux tutorial操作系统相关:What are some resources for getting started in operating system development?The Minix Operating System (Minix 2 support)JamesM’s kernel development tutorialsO...

2018-08-21 20:37:52 205

原创 需要一个方向

需要一个让我专注的、持之以恒的方向;-)

2018-08-21 20:32:31 264

原创 分析蓝屏日志

收集 dump 信息:C:\Windows\minidump\081418-12046-0.dmp //系统发生蓝屏时会自动将 .dmp file 保存在该目录下Windows Store 中 下载 WinDbg Preview:1.pngWinDbg 打开蓝屏日志 081418-12046-0.dmp, 打开之后主要看...

2018-08-20 20:20:00 2401

针对 VS MSBuild 不能正确检测字符串 “error:”的修正配置

针对 VS MSBuild 不能正确检测字符串 “error:”的修正配置

2018-05-19

microsoft-windows-netfx3-ondemand-package.cab

用与解决错误: Error Code 0x800F081F when Installing .NET Framework 3.5

2018-05-19

Visual Studio 2017 Professional 15.7.0 bootstrapper(安装器), 很小,只有 1.14 M

Visual Studio 2017 Community 15.7.0 Professional(安装器), 很小,只有 1.14 M

2018-05-12

Visual Studio 2017 Enterprise 15.7.0 bootstrapper (安装器)

Visual Studio 2017 Enterprise 15.7.0 bootstrapper(安装器), 很小,只有 1.14 M

2018-05-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除