EzDevInfo.com

sdk interview questions

Top sdk frequently asked interview questions

Install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion

I want to install SDK 4.3 in xcode 4.4 on mountain lion (os x 10.8), but when I installed the 4.3 sdk package from xcode 4.1 and launched the simulator from xcode 4.4, the simulator just told me that the ios simulator could not find the sdk.

The sdk may need to be reinstalled, which means it couldn't run! What's wrong with xcode 4.4 GM?

Are there any ideas about how to solve this kind of problem?


Source: (StackOverflow)

Remove whitespace from string in Objective-C

I have a little question. I have a couple of strings. Some have a whitespace in the beginning and some not. I want to check if a string begins with a whitespace and if so remove it. I hope that someone can help me.


Source: (StackOverflow)

Advertisements

Difference between framework vs Library vs IDE vs API vs SDK vs Toolkits?

I want some examples. I always get confused, so with some examples I might be able to figure it out better.

Also: Is Eclipse an API or IDE?


Source: (StackOverflow)

Android Framework?

Are there any frameworks out there which make it even more easy than it is to build Android applications and would you be interested in one?


Source: (StackOverflow)

Changing API level Android Studio

I want to change the minimum SDK version in Android Studio from API 12 to API 14. I have tried changing it in the manifest file, i.e.,

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="18" />

and rebuilding the project, but I still get the Android Studio IDE throwing up some errors. I presume I have to set the min SDK in 'project properties' or something similar so the IDE recognises the change, but I can't find where this is done in Android Studio. Pointers greatly appreciated. Thnx.


Source: (StackOverflow)

iphone - programatically call navigation controller back button

In a UINavigationController-based iPhone app, in a method I would like to perform the programmatic equivalent of the back button being pressed and going back a view.

i.e. automatically press the Jobs button as seen here:

Navigation Controller image

Is there a generic iOS call I can make, or is more information required?


Source: (StackOverflow)

How to install Java SDK on CentOS?`

I have CentOS 5, but I don't know the steps to install Java SDK on Linux.

Where to download the RPM file and what can I do next to fully install that.

Then I need to install Tomcat.

Or is there any ready-made package for all?


Source: (StackOverflow)

Easy way to dismiss keyboard?

I have quite a few controls scattered throughout many table cells in my table, and I was wondering if there's an easier way to dismiss the keyboard without having to loop through all my controls and resigning them all as the first responder. I guess the question is.. How would I get the current first responder to the keyboard?


Source: (StackOverflow)

Running the new Intel emulator for Android

Lately Google and Intel have published a new way to run the emulator, which should work much better than the previous version (which has emulated ARM CPU). Here are some links about it: this and this.

However, after installing the new components and creating a new emulator configuration as instructed, I get an error and I also can't see any improvements. I've tried both API 10 and API 15, and with GPU enabled and disabled. None of those configurations helped. I've also tried it on two different computers and didn't get any boost (and got the same errors).

It seems that on the posts I've read about it, nobody had any problems with it and all report a much faster emulator.

The error it shows is:

emulator: Failed to open the HAX device!
HAX is not working and emulator runs in emulation mode
emulator: Open HAX device failed

Why is it happening, and is there a way to fix it? Is there anyone else who gets those errors or vice versa?

By the way, I have an Intel CPU, if that could be a problem.


EDIT:

here's what I see in the BIOS, so it should be available... :

enter image description here


Source: (StackOverflow)

How to install Android SDK Build Tools on the command line?

I want to setup the Android dev environment from command line, and encounter the following issue:

wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz

after extract the file, run

tools/android update sdk --no-ui

However, it is too slow on running

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml

The result is that nothing in folder build-tools, and I want is aapt and apkbuilder, since I want to build apk from command line without ant.

Can anyone help me? Thanks in advance.


Source: (StackOverflow)

AVD hardware buttons not enabled

I just downloaded and installed the new Android SDK. When I start the emulator, on the emulator screen it says "Hardward Buttons not enabled in AVD". There are Home, Menu, etc are all disabled. How do I make these buttons enabled?


Source: (StackOverflow)

Two macs. One iPhone Developer License. Possible?

I work for a company that is interested in building iPhone apps. However, we are not clear on one issue:

Does the iPhone developer certificate work on more than one computer at a time?


Source: (StackOverflow)

How to add 2 buttons into the UINavigationbar on the right side without IB?

How can I add 2 buttons into the UINavigationBar without XIB? The 2 buttons should be aligned on the right side of the UINavigationBar.

I know how I can add one button, but how about two?


Source: (StackOverflow)

3.2 sdk platform install problem. "Done. Nothing was installed"

I select everything in the new 3.2 update but then I get the error message "done. nothing was installed" after the sdk manager runs its process.

Here is the sdk install log:

Downloading Android SDK Tools, revision 12
File not found: C:\Program Files (x86)\Android\android-sdk\temp\tools_r12-windows.zip (Access is denied)
Downloading Android SDK Platform-tools, revision 6
File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r06-windows.zip (Access is denied)
Downloading Documentation for Android SDK, API 13, revision 1
File not found: C:\Program Files (x86)\Android\android-sdk\temp\docs-3.2_r01-linux.zip (Access is denied)
Downloading Samples for SDK API 13, revision 1
File not found: C:\Program Files (x86)\Android\android-sdk\temp\samples-3.2_r01-linux.zip (Access is denied)
Downloading Android Compatibility package, revision 3
File not found: C:\Program Files (x86)\Android\android-sdk\temp\compatibility_r03.zip (Access is denied)
Downloading Google Admob Ads Sdk package, revision 3
File not found: C:\Program Files (x86)\Android\android-sdk\temp\googleadmobadssdkandroid-4.1.1.zip (Access is denied)
Skipping 'SDK Platform Android 3.2, API 13, revision 1'; it depends on 'Android SDK Tools, revision 12' which was not installed.
Skipping 'Google APIs by Google Inc., Android API 13, revision 1'; it depends on 'SDK Platform Android 3.2, API 13, revision 1' which was not installed.

Source: (StackOverflow)

This Android SDK requires ADT version 23.0.0 or above. Current version is 22.6. Please update ADT to the latest version? [duplicate]

This question already has an answer here:

I downloaded and installed Eclipse ADT with android SDK for windows from this website Developer.Android. When I try to Create AVD Device am getting error that Location of Android SDK has not been setup in Preferences. I open Preferences from Windowsmenu bar and then i try to set SDK Location but it showing error This Android SDK requires ADT version 23.0.0 or above. Current version is 22.6. Please update ADT to the latest version. How to update it ? help me to create android project.


Source: (StackOverflow)