Is AudioManager.OnAudioFocusChangeListener supported in Android version 2.1? - android-2.1-eclair

As per the title, is AudioManager.OnAudioFocusChangeListener supported in Android version 2.1?

The short answer is no. The long one is here:
See the official Android Reference for AudioManager.OnAudioFocusChangeListener right on the top stands Since:API Level 8. If you look to Android API Level which is linked there too you will see that this interface exists since Android 2.2.x.

Related

Parse Server iOS SDK - Distinct query

Is there a builtin or standard way to apply a query.distinct query using the iOS SDK?
It is specifically listed in the JavaScript and Android API references. But not iOS.
I guess this means it is not implemented or supported? Yet - i.e. it may be an oversight right now? Or is there a reason it cannot be implemented on the platform?
And are there workarounds where I do not have to pull ALL the data down locally before processing / looping through the result set?
Distinct is not supported in the Parse iOS SDK (yet), because not every feature is implemented in all Parse client SKDs immediately, so it can take time until it trickles down into all SDKs.

Rejected from Apple Mac Store because using Xamarin implementation of NEVPNManager

Today we got rejected from Apple Mac Store because we used Xamarin implementation of NEVPNManager in our Mac application.
Your app includes VPN services but does not use the NEVPNManager API to deliver these services.
Previously we had the VPN functionality in an objective c library (that was binded) and we got accepted. Now we removed the objective c library and used the xamarin implementation and we got rejected.
Why did Apple reject us? #Xamarin are you using NEVPNManager in your implementation?
You can find the answer on Xamarin Forum:
https://forums.xamarin.com/discussion/comment/328214?
Thanks to #Chris Hamons for the help!
Solution:
Adding --link_flags="-framework NetworkExtension" to Additional MMP Arguments in Project Options -> Build -> Mac Build fixed the issue.
In theory those should be added automatically. Seems like a potential bug.

ZXing.Net.Mobile update crash on Android

I need help with ZXing.Net.Mobile component (barcode scanning library).
The latest versions produce a runtime error for Galaxy Ace 2 (API 10) device, not only in my application, but also in the sample included with the library.
I would like to know if this is a bug or just API limitation.
Tested version: 2.0.4.17. You can try sample.
Thanks.
This was an API limitation. As you can see on this link the ZXing Scanner version was incompatible with some devices.
Fortunately, its creator solved it and he launched a new version compatible with Android 2.3.

Can I create an app for Google Play Store in C++?

I need to know whether I can create an app for Google Play Store in C++, or whether I have to use Java.
I don't have a JDK, so if I can use C++, then that would make things easier and cheaper.
You can look at the Qt library at http://www.qt.io/
From the Tools and Versions page for the latest version (5.5) it states:
Android NDK r10c r10c r10c
Android SDK r24.0.2 r24.0.2 r24.0.2
And in the Play Store there are a few Qt example applications:
Introduction to Qt 5
Qt 5 Everywhere
You can download an open source version of Qt from here
There are also some steps on the Getting Started with Qt for Android documents page.
PS:
I have not attempted to use Qt for Mobile (Android, Win Phone, iPhone) development but I am planning to test this sometime this year.
Edit: I see you do need the Android SDK, NDK and Java JDK but at least you don't need to code in Java if that helps.
Thank you everyone for you quick replies!
Based on your answers, it looks like it's time to give me laptop new life so I can use pure Java.
Thanks again!

Which Android API to use?

I'm planning on developing Android Apps. I downloaded the SDK and AVD manager, and about to download the SDK platforms.
My question is, I want to develop apps for 2.x platform. Do I need to download API 7-10? Which one to target?
Also, if you have tips regarding this, please mention them. Thank you.
It is not necessary to download all the platforms, just download the latest SDK and make your application compatible with other SDK.
For that you just need to define android:minSDKVersion and android:maxSDKVersion, android:targetSDKVersion.
<uses-sdk android:maxSdkVersion="12"
android:minSdkVersion="8">
</uses-sdk>
Here is a detailed article on "Compatibility" in "Best Practices" section at Android Developer site.
In short
For 2.1 you have to download API level 7
For 2.2 you have to download API level 8
For 2.3 you have following choices to download API levels
2.3 - 2.3.2 -- API level 9
2.3.3 - 2.3.7 -- API level 10
For seeing API levels and Android OS versions you must see :API Levels
I recommend you to go through Platform Versions atleast once before you start building any android application.

Resources