sdk

(Eclipse SDK update error) An error occur while collecting items to be installed

試著忘記壹切 提交于 2019-12-05 03:06:24
I just updated ADK and I encountered exactly the same problem (the same version of upgrade) as this guy ( Cannot update ADT from 22.3.0. to 22.6.1, no updates were found ) I followed their comments, yet I did not see the dialog mentioned in step 4 (4. You should see a dialog that says "this software is already installed, an update will be performed instead". Clicking ok will lead to 22.6.1 being installed.) Instead, I have the error message that titled Problem occurred It says Installing Software has encountered a problem. An error occurred while collecting items to be installed And a chunk of

If I write an app using Android 4 Platform, will the app work in Android 2 devices?

£可爱£侵袭症+ 提交于 2019-12-05 02:51:45
问题 I want to write an app using Android SDK and Eclipse. I installed Android 4 Platform using the SDK Manager, but I'm wondering, will this app work with Android 2 Devices? or only Android 4 Devices? Thanks. 回答1: In your App Manifest XML file you must specify the Minimum and Desired Target SDK version. I am developing a App that Target Android 4.0.3 (SDK v15) but must run on 2.3.3 (SDK v10). <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="15" /> Off course you have to use only the

NSUserDefaults and iOS framework / library

一笑奈何 提交于 2019-12-05 02:15:37
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 the MyKit.bundle scope and not the [NSBundle mainBundle] to avoid collisions with resources from the

Is there a way to get copy-and-pastable debug output in the Android SDK Emulator?

帅比萌擦擦* 提交于 2019-12-05 02:01:39
I have some information generated in the Android Emulator, and the only way I can see to get it out is using the Log class. However, you cannot copy-and-paste from the DDMS log window. This is really annoying as I cannot use the information in another application, for example, without retyping it. Is there a better way to get debug information out of the emulator? What happens when you write more complex applications? What do you do when you need to verify it is writing correct information to URLs, databases, files etc? Thanks! Using the DDMS logcat window you can select lines and copy and

How do I get the Facebook user Id from the Facebook object in the iOS SDK?

家住魔仙堡 提交于 2019-12-05 01:49:57
I see that the access token is available in the Facebook object, but I don't see a Facebook user Id. I could make a graph request to "me" to get the Facebook Id, but I'd prefer not to make the extra api call. You will have to call /me to get the id. iOS access tokens are now encrypted and thus you won't be able to parse the user id from it. Also, server side tokens will all be encrypted with oauth 2.0 soon too. There is an easy way to get this these days; assuming you already have a FBSession open, you could just do this: [FBRequestConnection startForMeWithCompletionHandler: ^

Unknown error for Google APIs Intel x86 Atom System Image (Android Studio)

倖福魔咒の 提交于 2019-12-05 01:31:54
When I go into the SDK manager in Android Studio, and I go to the tab that says SDK Update Sites, It says "unknown error" next to Google Inc. (x86 System Image). I can never update Google APIs Intel x86 Atom System Image and I think its holding me back on some features to some apps. How can I fix this? Just go to File -> Invalidate Cache/restart -> Invalidate Restart. Once done, Android Studio will close and restart. Allow all the updates to be installed and along, Intel Atom x86 system image will also be installed. If none of the suggested solutions works for you, try to run Android Studio as

Sending UDP packages from ANDROID 2.2 (HTC desire)

此生再无相见时 提交于 2019-12-05 01:18:22
问题 i have a lan and i want to send a upd message from my android (htc desire) to my PC. Theres a Wlan Router between them. The Problem is, that the UPD message never gets to the PC. Code on the Android.: package org.example.androidapp; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPClientAnd { public void sendUDPMessage(int port) throws java.io.IOException { DatagramSocket socket = new DatagramSocket(); InetAddress serverIP =

Reading Gmail mails using android SDK

你说的曾经没有我的故事 提交于 2019-12-05 01:12:28
I want to read Gmail mails in my own android app. Is there anyway to do it using android sdk? If not, what are the other options? parsing gmail atom? Aracem I ask and answer that question here. You need Gmail.java code (in the question there are a link) and you must understand that you shouldn't use that undocumented provider Are there any good short code examples that simply read a new gmail message? It's possible using the GMail API, here are some steps I found helpful. Start with the official sample to get the GMailAPI started, see here When following the instructions I found it helpful to

Flutter SDK安装(windows)

人走茶凉 提交于 2019-12-05 01:06:41
Flutter集成了Dart,因此不需要单独安装dart-sdk。 Flutter的SDK可以从官网下载: https://flutter.io/sdk-archive/#windows 在Flutter安装目录的 flutter 文件下找到 flutter_console.bat ,双击运行并启动flutter命令行,接下来,你就可以在Flutter命令行运行flutter命令了 修改系统环境变量,在Path中添加: D:\program file\flutter\bin 打开cmd,输入flutter,会列出flutter所有的命令列表。 为了可以顺利切换版本与升级,可以设置两个用户变量: 变量名PUB_HOSTED_URL,变量值https://pub.flutter-io.cn。 变量名FLUTTER_STORAGE_BASE_URL,变量值https://storage.flutter-io.cn。 检查flutter环境: 在cmd中运行命令:flutter doctor 升级flutter:flutter upgrade 各个channel区别及切换 Stable:稳定版。近一年中最好的beta版本。 Beta:测试版。每隔几周都会选取近几个月中最好的dev版本作为Beta版。 dev:最新的经过完全测试的版本。包含新功能,但可能有一些问题。 master:最新版

How to obtain a user access token in Python

蓝咒 提交于 2019-12-05 01:03:04
问题 I'm using the unofficial python sdk for Facebook. This works fine for alot of graph api calls, but my recent project requires using more FQL. Certain tables (notifications for example) require a user access token rather than an app access token. When using graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_A‌​PP_SECRET&grant_type=client_credentials it seems I only get an App token back. So when calling the notification table I'll receive a "102 : A user access