sdk

UISearchBar text color

五迷三道 提交于 2019-12-05 00:19:25
Browsed the documentation and I couldn't find anything to change the color of UISearchBar. Does anybody know how to change it? There isn't any textColor property :/ Thx mkll Works on iOS 7 and later: [[UITextField appearanceWhenContainedIn:[UISearchBar class], nil] setDefaultTextAttributes:@{ NSForegroundColorAttributeName : [UIColor whiteColor], NSFontAttributeName : [UIFont systemFontOfSize:15] }]; You may remove unused attribute as well. UPDATE . Due to appearanceWhenContainedIn is deprecated in iOS 9, see the Dishant's answer below: https://stackoverflow.com/a/38893352/2799722 GeoExperts

How to install android 6.0.1 emulator in Android Studio?

让人想犯罪 __ 提交于 2019-12-05 00:04:05
I facing this issue on my android emulator E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0 But I can't find any option how to udate android version to 6.0.1 of emulator in Android Studio 1.5.1 How can I do it? If you create a new Virtual Device under: Tools->Android->AVD Manager or Edit an existing device, you can change the System Image, however as of now I do not see an option for 6.0.1 only 6.0 and 7.0. There appears to be nothing in between even under all three tabs ( Recommended, x86 Images, Other Images ). I was looking for the same thing and to no avail. I also use

Superpowered SDK: Implementing SuperpoweredRecorder.h and setting up recording paths

二次信任 提交于 2019-12-05 00:00:46
问题 I have successfully imported Superpowered SDK CrossExample project into android studio and tested it on Samsung galaxy S3 and emulator. Now I’m implementing a record option to record audio played by the app using SuperpoweredRecorder.h. I will need help for how to correctly set *tempPath and *destinationPath variables to successfully save the recording. The project builds OK, but when I’m trying to run the app on the Galaxy S3 or on the emulator I’m getting the following error message: 19565

ERROR: UNKNOWN COMMAND 'CRUNCH' 解决方法

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 23:56:01
配置Android开发环境,各项工作都做好了,新建了个Hello Android项目做测试,提示ERROR: Unknown command 'crunch' 。 在网上搜了若干种解决方法,好不容易才把这个问题解决了。 首先,出现ERROR: Unknown command 'crunch' ,通常是因为我们在配置环境时 只更新了ADT而没有对Android SDK tools 和Android SDK Platform-tools进行及时的更新,所以必须打开SDK manager,对tools文件夹下的两个插件进行更新。 可是,通过SDK Manager进行更新时,总是提示 Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused 很多网友也都说这些更新网站访问不了,大概是https 与 http的原因,https协议涉及到网站信息的加密,总是会出现问题。网上提供的一种解决方法是在SDK Manager ->Tools里面设置,将https强制转化为http连接。可是我怎么也总不到这个选项,尝试Add new external add-on sites

android sdk manager无法更新

徘徊边缘 提交于 2019-12-04 23:55:36
问题描述: Android SDK Manager 无法下载更新,或者更新速度超慢,或者待安装包列表不显示。 解决方法: 第一,我们先修改下hosts文件。该文件的位置在系统盘(一般为C盘),具体路径为: C:\Windows\System32\ drivers\etc\hosts。找到该文件后,我们需要对该文件进行修改,可能有些同学发现会修改不了文件,这可能是因为hosts文件被设置成了 只读属性,我们可以将其只读属性取消掉,如图1,在文件属性中,将图1中的勾取消掉即可。 图1 hosts文件的属性框 再次打开hosts文件,在其尾部空白处添加下列代码,保存即可: #Google主页 203.208 . 46.146 www . google . com #这行是为了方便打开Android开发官网 现在好像不VPN也可以打开 74.125 . 113.121 developer . android . com #更新的内容从以下地址下载 203.208 . 46.146 dl . google . com 203.208 . 46.146 dl - ssl . google . com 第二, 在Android SDK Manager的Tool->Option选项中把https的资源获取方式强制换成http协议获取的方式。如图2所示: 图2 修改 Android SDK

android ndk及工具地址

不羁岁月 提交于 2019-12-04 23:42:59
2016.11 NDK 13b 从Android Studio 2.2开始,NDK已经很轻易的可以下载集成到AS中,无需单独下载安装。 https://dl.google.com/android/repository/android-ndk-r13b-windows-x86.zip https://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip 2016.10 Android Studio 2.2.1.0 https://dl.google.com/dl/android/studio/install/2.2.1.0/android-studio-bundle-145.3330264-windows.exe https://dl.google.com/dl/android/studio/install/2.2.1.0/android-studio-ide-145.3330264-windows

Error: failed to find target with hash string 'android-14' in:Open Android SDK Manager

半世苍凉 提交于 2019-12-04 23:24:13
I know this question has been asked several times before this, but i am looking for some other kind of answer. I just want to run a project, and it gives me this error. Error:A problem occurred configuring project ':app'. > failed to find target with hash string 'android-14' in: C:\Users\etc. <a href="openAndroidSdkManager">Open Android SDK Manager</a> I took a look at my Android sdk manager, and yes. I do not have android 14 . Then I tried to find the part of project which refrences the Andoid 14. But i found nothing. Here is my manifest <uses-sdk android:minSdkVersion="8" android

Ubuntu PPA for Android SDK/NDK?

早过忘川 提交于 2019-12-04 23:11:29
Has anyone bothered to create a PPA for the Android SDK and/or NDK packages? I saw a few things that hinted at this in my Googling, but nothing that jumped out as a preferred solution. I'd guess that licensing issues might require it to operate like the flash-installer (or more comparably, the google-earth) package, but it would be very useful. The SDK install OOB lacks many of the features that proper package management could bring in (dependencies, multi-user permissions/capability, etc.) anjosc Have you tried Upubuntu's guide ? try this , I'm a newbie , working on this. I'm packaging these

Post to Facebook Page Wall

做~自己de王妃 提交于 2019-12-04 23:08:59
I'm just trying to make PHP Connector to Facebook for posting wall posts on a Page. So i'm not trying to post wall post to profile wall or anything else. I've read some tutorials and manuals and i decided to use Facebook PHP-SDK (from Naitik Shah) https://github.com/facebook/php-sdk/ I've created Facebook App to post wallposts through it. I received appId and api secret . I've added application permissions to my Page and tried example code $facebook = new Facebook(array( 'appId' => 'my app id', 'secret' => 'my api secret', 'cookie' => false, 'domain' => 'domain.com' )); domain.com => domain