sdk

esp8266 rtos sdk示例工程

爱⌒轻易说出口 提交于 2019-12-18 06:01:00
esp8266 rtos sdk示例工程 上一篇文章说明了使用ubuntu 14.04搭建esp8266编译环境,搭建成功后,在使用其sdk 用户示例工程partitions_singleapp工程编译测试成功,生成了三个主要的bin文件。 一.程序烧录 他们路径分别是:bootloader.bin,partitions_singleapp.bin,project_template.bin,其实还有些其他烧录文件,比如射频校准等,现在还没有研究,后面再说,先让开发板跑起来。 我们只有使用其烧写工具将其烧录进开发板中即可。 由于购买开发板商家提供的nonos相关文档信息,与rtos sdk烧写有些区别,通过百度搜索,查找有关资料,得知,需要将上面三个文件分别烧写到如下地址中,开发板就能启动。 此次因为没有找到开发板flash大小,就假设使用2m flash进行烧写测试的,好在暂时不影响使用,后面我回通过调用api接口获取其flash大小在做调整。 注意上面的烧写参数设置,在编译project_template工程之前,我们需要make menuconfig 设置烧写参数: 二.程序测试(project_template) 1.修改代码 我们修改程序中的下面代码: /* This example code is in the Public Domain (or CC0 licensed

The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar'

雨燕双飞 提交于 2019-12-18 05:27:22
问题 I am trying to use the facebook sdk within my project, however keep receiving the following error: The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar' Has anyone experienced/resolved this problem? Thanks The errors are shown below: The container 'Android Dependencies' references non existing library 'C:\Users\Mandip\facebook-android-sdk\facebook\bin\com_facebook_android.jar' The method onClick(View) of type new View

how to take screenshot programmatically and save it on gallery?

心已入冬 提交于 2019-12-18 05:03:45
问题 i would to know what is the code to take a screenshot of the current screen (after a press of a button) and save it on a gallery because I don't have a device with sd cards. So i would to save in the default gallery. thank you 回答1: Bitmap bitmap; View v1 = findViewById(R.id.rlid);// get ur root view id v1.setDrawingCacheEnabled(true); bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); This should do the trick. For saving ByteArrayOutputStream bytes = new

The redirect_uri URL must be absolute Facebook login PHP SDK

99封情书 提交于 2019-12-18 04:36:11
问题 I am trying to implement the facebook login in my project in codeigniter. I am using the php sdk. When I click on the login button, it gives me an error: The redirect_uri URL must be absolute What is the problem and how do I fix it? Here is the contents of view/home.php : <?php if(!$fb_data['me']): ?> Please login with your FB account: <a href="<?php echo $fb_data['loginUrl']; ?>">login</a> <?php else: ?> <img src="https://graph.facebook.com/<?php echo $fb_data['uid']; ?>/picture" alt=""

Youtube - iPhone - displaying UIWebView of video

走远了吗. 提交于 2019-12-18 04:25:14
问题 I have a script in my app that loads a Youtube link in a section of the UIView, the link is provided by my server (mySQL/using php) and from that it is loaded... this script below works fine..... however... Here is what I have right now, I was looking to remove the programmatically part (where it gives the dimensions and possibly replace it with a UIWebView) to it, so I could improvise using IB, this will help when my application launches, a quick animation occurs and then I want this youtube

setContentView is using non-SDK interface

微笑、不失礼 提交于 2019-12-18 02:18:25
问题 When I run my application in an emulator with the API 28, the console gives me the following warning: W/oaristachimene: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection) W/oaristachimene: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection) I have been debugging it and I found out that it comes from the call: setContentView(R.layout

Scala之环境配置

99封情书 提交于 2019-12-18 00:41:22
从 http://www.scala-lang.org/downloads 下载 Scala 安装包或者ide安装包。 有两种安装方式: 1、sbt安装 2、ide安装 1、基于命令行安装Scala 双击下载好的 “sbt-1.0.0.msi” 执行安装 第2步: 接受安装协议 - 第3步: 选择安装位置( D:\Program Files (x86)\sbt\ ) - 第4步: 开始安装 - 第5步: 安装完成 - 最后,打开一个新的命令提示符并键入: sbt -version ,并按Enter键。应该看到以下内容 F:\worksp\scala\helloworld>sbt "C:\Users\Administrator\.sbt\preloaded\org.scala-sbt\sbt\"1.0.0"\jars\sbt.jar" Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 2、基于IntelliJ IDE行安装Scala 首先确保你有Java 8 JDK(也称为1.8) 安装IntelliJ IDEA 下载IntelliJ IDEA,直接下一步,完成安装。 激活 1、打开hosts文件将 0.0.0.0

Flutter 初尝:从 Java 无缝过渡

寵の児 提交于 2019-12-17 22:53:26
准备阶段 下载 Flutter SDK 新建 Flutter 文件夹,克隆 Flutter SDK: git clone -b beta https://github.com/flutter/flutter.git 配置 Flutter 环境 我是 Mac 系统,Flutter SDK 下载完后的路径:Users/wuxiaolong/Flutter/flutter/ 。 在命令行下,进入用户目录 cd $HOME 打开.bash_profile文件 执行命令打开文件: open -e .bash_profile 打开文件后,添加 Flutter SDK 安装的路径: export PATH=${PATH}:/Users/wuxiaolong/Flutter/flutter/bin:$PATH 更新刚配置的环境变量 source .bash_profile 验证 终端直接输入 flutter,没有提示该命令找不到,则配置成功。 flutter doctor 命令行输入 flutter doctor ,安装 Futter 剩余依赖项。 安装 Flutter 和 Dart 插件 启动 Android Studio,搜索 Flutter 插件并单击 install,系统提示您安装 Dart 插件,点击 Yes 安装即可。 提示 :安装 Dart 插件可能会提示下载失败,多试几次。

facebook c# sdk getting started

放肆的年华 提交于 2019-12-17 22:37:40
问题 I would like to write a console application that automatically posts information to my wall once every morning. I have signed up for facebook developer and have a AppID and App Secret I have been trying to play with the C# facebook SDK and looked through several examples. Seems like the examples get a user token - but have to use a browser that is in windows forms. This is an automated process - so I dont want to have a user present. Ive also created some examples using the application token

Android: trouble updating to Android SDK Tools, revision 7

大兔子大兔子 提交于 2019-12-17 22:35:12
问题 Currently I have Android SDK 2.1 (+ tools revision 4). I'd like to upgrade to Android SDK 2.2. When I try to do it I'm informed I need to upgrade Android SDK Tools to revision 7 first. So I agree, the process starts and then I get an error: -= warning! =- A folder failed to be renamed or moved. On Windows this typically means that a program Is using that Folder (for example Windows Explorer or your anti-virus software.) Please momentarily deactivate your anti-virus software. Please also close