sdk

using onBackPressed() with backward compatibility

大憨熊 提交于 2019-12-09 13:42:20
问题 I want to use onBackPressed() method and still want to provide support for Android SDK before 2.0. onBackPressed() is introduced in Android SDK 2.0. but how to do ? 回答1: Using onKeyDown; public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { // Your Code Here return true; } return super.onKeyDown(keyCode, event); } 回答2: You may capture a key event and check for the back key. On your activity: @Override public boolean onKeyDown(int keyCode, KeyEvent

vivado工程板级调试调用ISE的chipscope软件查看波形

走远了吗. 提交于 2019-12-09 13:34:42
转载自 https://www.cnblogs.com/hcr1995/p/9929359.html Vivado如何使用Chipscope Vivado作为新的设计工具,并没有集成Chipscope,取而代之的是新的debug工具:hardware debug。后者的优势是可以与SDK联合调试,软硬件协同开发时非常有用,但其无法实时持续的观测信号的变化,且从目前2013.4的版本反应的无法抓取非顶层文件信号的问题(大量时序错误)对设计开发非常不便。 通过对Chipscope工作原理的分析,应该可以通过间接的方式在VIVADO工程中使用,经过上板测试,确实可以做到,下面是实现的步骤: 1、 Synthesis后点击Open Synthesized Design,完成后点击File原工程综合后导出netlist(.edn)和constraint(.xdc); 注:导xdc要勾选上所有引脚 2、 打开Chipscope的Core Insert软件,将step1中的netlist作为输入,指定输出文件名及路径; 注:导入的是顶层.edn文件,其他ip核的edn文件不用加上去。输出文件为顶层的.ngo。 3、 Chipscope随后自动加载step2的netlist,按照需求添加信号,方法与ISE调用时相同; 4、 点击Chipscope界面里的insert按键

Error posting video to Facebook using SDK for iOS

懵懂的女人 提交于 2019-12-09 10:10:29
问题 I have an app that posts native (MOV files) video to Facebook using the Facebook SDK for iOS. It worked without problems till a few weeks ago where it started failing with the following error: error = { code = 352; message = "(#352) Sorry, the video file you selected is in a format that we don't support."; type = OAuthException; }; The full error string is: Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x1ea42880 {com.facebook

Android training–android studio

笑着哭i 提交于 2019-12-09 10:04:58
  又重新开始学习android开发了,希望这次不是三分钟热度。之前是利用eclipse+ADT来开发的,官网上建议用Android Studio。刚好重装了系统,升级了内存。于是下个studio来学学。   目标是在手机上成功运行个hello world的程序,并回顾以前学习的。 一、利用android studio搭建环境   1.下载JDK并安装 参考之前的博客 http://blog.csdn.net/h2008066215019910120/article/details/41308783   2.下载android studio 百度网盘地址 http://pan.baidu.com/wap/link?shareid=1681502988&uk=1712131560&third=0&dir=%2F%E5%BC%80%E5%8F%91%2FAndroid-Studio%2F1.1&page=1 ps:最好选择默认路径安装,不然可能会出错。   3.利用SDK manager 下载SDK 安装好studio后打开sdk manger下载sdk。注意配置一下代理,不然没有速度。 代理配置参考: http://blog.csdn.net/h2008066215019910120/article/details/41308783 二、创建一个项目   有了之前的基础,这个应该不难

APP注册发送验证码

早过忘川 提交于 2019-12-09 09:57:38
APP注册时用户收到的验证码是该APP采用了第三方短信服务商提供的短信送达服务。各大短信服务商提供SDK和API接口,在APP里集成短信SDK然后调用API即可。 验证码平台聚焦短信服务,产品有国内短信、国际短信、语音验证码、语音通知等产品,致力于帮助企业与用户更好的沟通。 在验证码平台有API文档菜单栏,进去后里面有关于开发引导、使用说明、SDK下载、常见问题和代码示例等丰富的文档和资源。并列举短信验证、系统通知、语音验证码、发送国际短信等场景的使用示例等,帮助开发者们更好的集成SDK,测试及使用服务。 短信验证码实现的业务逻辑: 1、生成短信内容,调用发送接口,传入APIKEY、手机号、内容等参数发送短信。 短信内容需和通过审核的模板匹配上才能发送,如不匹配接口会返回报错信息,报错记录在 后台失败请求页可以看到。如不确定内容是否匹配,后台 模板报备页有测试匹配功能。 2、如短信验证接口用于web、移动网页版,需在注册页增加图形验证码避免恶意轰炸消耗账户余额。 iOS及Android APP无需在注册页添加图形验证码。此外,靠谱的短信群发平台是短信营销的基石,否则很容易被用户认定为“垃圾短信”,从而降低用户体验。 靠谱的短信服务平台有以下评判标准: 到达率:到达率高于98%的平台值得信赖。 发送速度:短信注重时效性,尤其验证码类短信对速度要求更高,一旦到达时间超过用户等待预期

Java实现短信验证码--(完整教程)

谁说我不能喝 提交于 2019-12-09 09:56:35
我们在实现登录注册的时候,常常用到了短信验证码校验,下面给大家简单介绍阿里云的短信服务平台。 相关jar包: aliyun-java-sdk-core-3.2.2.jar( 点此下载 ) aliyun-java-sdk-dysmsapi-1.0.0-SANPSHOT.jar( 点此下载 ) 用Maven导入jar包: <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>3.2.8</version> 注:如提示报错,先升级基础包版,无法解决可联系技术支持 </dependency> <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-dysmsapi</artifactId> <version>1.1.0</version> </dependency> 1、登录阿里云官网( https://www.aliyun.com/ ),进入之后打开控制台,左上角点击产品与服务,然后选择短信服务,如图: 2.创建AccessKey,( Access Key ID -- Access Key Secret )如图: 3.进行 短信签名 和 短信模板 设定,如图: 4

Running Android emulator with -noaudio option returns “qemu-system-i386.exe: -audio: invalid option”

那年仲夏 提交于 2019-12-09 09:13:25
问题 I'm running Windows 10, 64 bit, Android Studio 2.2.2. When creating an AVD from the Android SDK's AVD Manager, I don't see an option to completeley disable audio (input and output). I'm using Android SDK which has verion of Android Tools 25.2.2). In older AVD manager, i recall that option to completely disable audio on AVD was present. When I want to create a batch script, to run with -noaudio option, as mentioned in the Google's official Control the Emulator from the Command Line page, I'm

手机获取短信验证码——内置UI界面

偶尔善良 提交于 2019-12-09 08:57:44
我们平常写项目的时候,总是会遇到需要通过注册自己的账号,那么这个时候,可以通过Mob平台获取验证码完成注册。非常好玩简单 首先, 一定还是在 http://www.mob.com/#/ 下载所需要的SDK(SMS For Android), 有eclipse和studio版可供下载,本文主要围绕studio集成SDK。 点击头像,选择进入后台,开始 创建应用 : 创建应用非常简单,设置自己的应用名称,选择Android就ok了 现在就可以看到自己应用的AppKey 和 AppSecret,在后面会用到。现在正式开始集成SDK步骤 首先, 导入SDK , Eclipse:使用 项目依赖 的方式完成集成,把下载的SDK导入到eclipse,并在eclipse中依赖这个项目。 Studio:将下载的SDK中的libs文件夹的内容拷贝到项目的libs下,选择Add As Library 然后在app目录下的build.gradle中,加入红色框中的代码就行了 接下来,配置清单文件 打开"AndroidManifest.xml",在其中添加权限 <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ

Where is the .net 3.5 SDK?

廉价感情. 提交于 2019-12-09 07:51:41
问题 Can anyone please provide a link to download the .net 3.5 SDK? I checked the MS site and google but cannot find a download link for this. Thanks... 回答1: The link above is good, here is a link that contains links to every Microsoft based SDK. It is kept fairly up to date. http://msdn.microsoft.com/en-us/dd299405.aspx Edit If you are cutting edge. Meaning wanting to start programming for features in Win 7, server 2008 r2. this would be a link with the latest and greatest. at RC level. (although

How to make an overlay with round edges (iPhone SDK)?

风格不统一 提交于 2019-12-09 07:17:44
问题 I've just received a lot of good responses to the question about making overlay views. Is there a way that I can make an overlay view on the iPhone SDK? Another question I have is how to make an overlay view have round edges like in the Skype iPhone app or in the Phone.app. Thanks. 回答1: You can use these helper functions and then mask/clip to the resulting CGPath : http://fabian-kreiser.com/index.php?id=1135350598525812781 Or use view.layer.cornerRadius , as seen in How do I create a round