sdk

如何在mac本上安装android sdk

折月煮酒 提交于 2019-12-07 01:12:12
众所周知的原因,google的很多网站在国内无法访问,苦逼了一堆天朝程序员,下是在mac本上折腾android 开发环境的过程: 一、先下载android sdk for mac 给二个靠谱的网址: a). http://down.tech.sina.com.cn/page/45703.html b). http://mac.softpedia.com/get/Developer-Tools/Google-Android-SDK.shtml 到这个面下载后,解压到某个目录 二、设置下载的代理服务器 命令行进入tools目录 然后输入 ./android sdk 请出SDK Manager的图形界面 Android SDK Manager -> Preferences... http proxy server这里填写: mirrors.neusoft.edu.cn (感谢东软搭建国内的镜像服务器,为广大程序员造福无数) 端口填写80,然后把Force https:// 前的勾 勾上 三、mac顶部菜单Tools->Manage Add-on Site 把下面这堆网址: http://mirrors.neusoft.edu.cn/android/repository/addon-6.xml http://mirrors.neusoft.edu.cn/android/repository

Facebook C# SDK trouble getting me/accounts

我的未来我决定 提交于 2019-12-07 00:38:38
I'm trying to write a windows service that will post to my Facebook Page with results when it runs. I just downloaded Facebook C# SDK v6.0.10.0 and writing the windows application in .Net 4.0 I created a facebook application account and got the AppID and Secret code needed. The end goal would be to have this windows service post on my facebook page wall as the page and not the application user. I keep getting an error when I go to get the accounts for my facebook application. string strAppID = "my app api id"; string strSecret = "my app secret code"; Facebook.FacebookClient fbClient = new

How to import the facebook php sdk v4 in cakephp 2.4.?

末鹿安然 提交于 2019-12-07 00:36:31
Trying to import and use the FacebookRedirectLoginHelper class of the facebook php sdk in my AppController but getting a Class 'FacebookRedirectLoginHelper' not found Exception. App::import('Vendor', 'facebook', array('file' => 'facebook-php-sdk-v4-master' . DS . 'src' . DS . 'Facebook' . DS . 'FacebookRedirectLoginHelper.php')); $helper = new FacebookRedirectLoginHelper($redirect_url, 'xxxx', 'yyyyy'); Any idea? Thanks in advance I've got the same problem before and got it working now, not sure if I'm doing it in a proper way or not but it's working for me. 1. Place this in your AppController

Unable to build: the file dx.jar was not loaded from the SDK folder in my eclipse

做~自己de王妃 提交于 2019-12-07 00:30:02
问题 I am getting this error Description Resource Path Location Type Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder! Sample1 Unknown Android Packaging Problem before some time it was working fine for me and I think due to some virus or something my setup got effected please help me on this??? 回答1: This SO answer provides more details if removing build automatically / rebuilding doesn't work. 回答2: It worked for me. I removed build automatically and then build

Windows - Android SDK manager not listing any platforms or packages to install

冷暖自知 提交于 2019-12-07 00:15:09
问题 After I have installed the Android SDK using the exe file available and the Android SDK manager has opened, I cannot see any of the additional packages that are needed to be installed. All that is listed is the Android SDK Tools under the Tools folder. The Extras folder also doesnt display anything under it. So without this, I am stuck right in the beginning. The log messages that I get also doesnt exactly point me to anywhere. Following are the log messages that I get: Fetching http://dl-ssl

SDK#屏幕兼容性模式

隐身守侯 提交于 2019-12-06 23:23:59
如果你在Android3.0版本或低于Android3.0版本下开发了一款应用,而且它能够在大屏幕上(如平板电脑)合理的调整尺寸,为了保持更好的用户体验,你应该禁掉屏幕兼容性模式。 从Android1.6开始,安卓已支持各种屏幕尺寸,并且为了适配每种屏幕做了很多工作去改变应用布局的大小。但是,如果你的应用没有按照Supporting Multiple Screens指南行事,就可能在大屏幕上遇到麻烦,对于这种问题的应用程序,屏幕兼容性模式可以让应用程序在大屏幕上表现的更好用一些。 有两个版本的屏幕兼容性模式,它们略有不同: Version 1 (Android 1.6 - 3.1) 系统在一个“邮票“窗口上绘制应用的UI,也就是说,系统绘制应用的布局与在正常大小的手机相同(模拟一个320dp*480dp的屏幕),屏幕剩余的空间由布局周围的黑色边框填充。 这介绍了 Android 1.6 处理仅为 320dp x 480dp 的原始屏幕大小而设计的应用程序。因为只有很少的活跃的android设备仍然在运行 Android 1.5,大部分的应用在 Android 1.6 或更高版本上被开发,不应该在大屏幕上开启这个版本的兼容性模式,这个版本被认为是过时的。 要禁掉这个版本的屏幕兼容模式,只需要简单地设置android:minSdkVersion或者android

App store say “requires iOS 4.0” but deployment target is 3.1.3

烈酒焚心 提交于 2019-12-06 22:59:28
I have just have my app approved in the App Store, but only devices running 4.0 can download it. The project settings in Xcode says "base SDK 4.0" and the "deployment target 3.1.3". Is there some other setting or value in my plist file or thing I have set in iTunes connect that could yield such a result. I use no 4.0-only API's and would like people running 3.1.3 and up to be able to use the app. There is a bug in XCode that I think may be the reason for your problem: You need to do all the project settings BOTH for the current target (select target and hit cmd + i) and in the project settings

Facebook SDK v5 Post as Page on Wall

℡╲_俬逩灬. 提交于 2019-12-06 21:59:37
I have the below snippet and it works and posts to a Facebook page as my own user account on Facebook. The values FACEBOOK_* are defined earlier in the codebase. // SDK Version 5.0 $fb = new Facebook\Facebook([ 'app_id' => FACEBOOK_APP_ID, 'app_secret' => FACEBOOK_APP_SECRET, 'default_graph_version' => 'v2.4', ]); // Returns a `Facebook\FacebookResponse` object $response = $fb->post('/'.FACEBOOK_PAGE_ID.'/feed', $postData, FACEBOOK_ACCESS_TOKEN); $postId = $response->getGraphNode(); Now my question is how can I get it to post as the actual page and not my account which is the admin of the page

XP 下 Edit 控件透明字体时的 Bug

。_饼干妹妹 提交于 2019-12-06 21:58:06
前提:XP 系统,程序使用了 Manifest 指定使用 Microsoft.Windows.Common-Controls 现象:Edit 控件处理 WM_CTLCOLOREDIT 改变颜色,问题出在 SetBkMode 设置透明后,控件删除字符时无法立刻刷新,即会残留。 解决方法1:自残,别用 Microsoft.Windows.Common-Controls 了……删除类似下列的代码 #if defined _M_IX86 #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_IA64 #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken=

NSUserDefaults and iOS framework / library

眉间皱痕 提交于 2019-12-06 20:58:17
问题 I have recently been building an app using [NSUserDefaults standartdUserDefaults] to store locally various information (regarding the session, user preferences, etc). Now I am exporting a subpart of my project as an iOS framework (the goal is to make a SDK). I am generating a MyKit.framework and MyKit.bundle to be imported in third party apps (the bundle contains Storyboards, Localizable.strings and .xcassets). For the moment, I made sure that resources used by MyKit.framework are loaded from