I am reading Teach Yourself Android Application Development in 24 Hours, in Hour 6, it asks me to create a new Android Project with:
Build target: Android 2.1 + Google APIs
However, I can only select Android 2.1 OR Google APIs, not both, under the list of build targets, when I hover above Google APIs, it says Android + Google APIs, does it mean if I select Google APIs as build target, it will include Android (which version?)? But what if I want to use, say, "Real3D Add-On" as well as "Google APIs", as there is no way to select multiple targets?
Thanks!
You can only select one target in eclipse.
If you select Google APIS it will be for the Android API version for the Google API listed (and below). If you want the LG Real3D Addon target (I'm guessing it's LG) then it will be for whatever API version it shows.
Related
The new version of SDK for Qt 5.12 doesn't include SDK Manager in the Tool folder, hence I needed Android Studio to Add/Remove the packages.
I know that APIs must be chosen based on the target and purposes. But since the APIs are new (28) and there are different options to download, it's rather puzzling what to download.
I don't have a real Android device nor want I use the Emulator. I merely wish to Build the program using Android kits and create APK files from them. Afterwards I will test those APK files on real Android devices which include new or middle aged smartphones and tablets.
For these purposes what packages should I install, for instance, what check boxes are needed to be checked here in the screenshot below. I will repeat the pattern for a number of lower APIs then.
If you don't want an emulator, then you don't want the "system images".
As for the API level, it really depends on what is the minimum API you want to target. If you download only the latest API, you significantly limit your targets, as the app will only run on the latest and greatest version of Android.
The safe lower limit seems to be API level 19, which is android 4.4. So you can use that to build your apps, and they will run on any version onward.
Additionally, if you want to publish to the market, you will have to set your target API to some of the latest versions, because google won't accept any older. Note that the "target SDK" is different from the "minimum required SDK", which you can still have at version 19.
There isn't much point in installing the latest SDK versions, as Qt isn't really using their features, I mean unless you are doing some Java native android app development.
The documentation for Qt 5.12 says "API 21", but 19 seems to work just fine, and it allows to target older devices that are stuck without OS updates - currently around 7-8% of active devices. Still, if you don't care about that, you should go with the recommended API version 21.
I have downloaded SDK tools and installed Google API's Intal x86 Atom image, however when I want to create my AVD it sais there is no system images installed for this target. BUT I have downloaded everything. I am using Ubuntu, on Windows machine same configuration works perfect, also for my colleagues same configuration works just fine.
If I select as target Android API 23, not Google API's it's okay, but I don't need Android API, since it's not working for me. I saw lots of reported defect, but none of them could help me.
Anyone has any idea that's going on there?
I had the same problem myself today and I found a bug report:
https://code.google.com/p/android/issues/detail?id=210223
To quote the solution:
There seems to be some underlining refactoring which means the configuration now required is:
Target = Android X.X - API Level XX
CPU/ABI = Google APIs Intel Atom (x86)
So, to create a new AVD with Google APIs support, just don't pick Google APIs as the Target. Pick generic Android with desired API level as the Target and then pick your desired Google APIs version in CPU/ABI. It works just fine, you will get Google Maps etc. on the AVD.
About that "but I don't need Android API, since it's not working for me" - I'm not sure what do you mean. You can't have Google APIs without using Android APIs, because Google APIs are running on Android device.
im new to android programming and im trying to create an android app that loads google maps v2.
I got api key, my code is working with no errors, i'v used some guide to write the code
But here's the problem : if im using min Sdk Version 8 my app crash and not even starts.
if im trying higher Sdk Version i cant test it because i dont have any device besides galaxy s2 and google maps v2 cant load in the emulator.
I will be glad to hear some advices.
Use SupportMapFragment from a FragmentActivity, instead of MapFragment from an Activity. To use fragments on devices older than API Level 11, you need to use the Android Support package's backport of fragments (where FragmentActivity comes from).
http://android-er.blogspot.de/2012/12/using-supportmapfragment.html
Also Please check below step..
check if the "libs" folder containing the "android-support-v4.jar" exists in your project.
"android-support-v4.jar" is located in "/extras/android/compatibility/v4/android-support-v4.jar" under your "android-sdk" drectory.
Before running your project, you must set your project Build target to "Google APIs", not Android x.x. version : Select your project and click Project > Properties > Project Build Target in Eclipse and select any "Google APIs ", and then run your project on your phone. If you use the emulator, also MUST set the AVD of the emulator to the any "Google APIs ".
Once more, you don't need to create the new Google Maps API key in order to test your project, Just use the default provided API key, which is shown as "Key for browser apps (with referers) "in your Google APIs Console.
Finally, the most important is to add Google Play services as an Android library project as follows:
Select File > Import > Android > Existing Android Code Into Workspace and click Next. Select Browse..., enter /extras/google/google_play_services/libproject/google-play-services_lib, and click Finish.
https://developers.google.com/maps/documentation/android/start
reference link
Google maps v2 on android devices with minSDK below 11
Google has stop supporting android api version below 9, So if you are building new app set your min sdk level to 9.
And to test the google map you can use emulator just open sdk manager and install android latest version 4.4, build new emulator configured with android 4.4 and you can run google map in it. Hope this will help you
This has been consistent across a lot of the glass code i've worked on. Why does the target API prefer the former instead of the latter?
Most of the projects I load into eclipse, I have to change the make target for my code to compile. This is the same for Google APIs:15 and GDK15
#target=Google Inc.:Google APIs:19
target=Google Inc.:Glass Development Kit Preview:19
using android development tools eclipse.
When you create an Android project, the Android Development Tools (ADT, based on Eclispse) default to the latest Android API level. Google Glass (and the sneak preview) are special conditions for Android (much like "Wear" is too).
To create a project that runs on Google Glass you need to use the "preview" Glass Development Kit as the target ... because there are hardware differences and a small set of features that are specific to Glass and require that implementation.
When you create an Android project, you have to create the appropriate target environment when you establish the project. For Google Glass, the original release required API level 15 (and the appropriate preview version). With XE16, the level became API level 19 (for compilation), and the newly released Glass Development Kit Preview that was moved up to support the latest Android API level.
When creating a new android project, the build target has two choices:
Android 2.2, Android Open Source Project
AND
Google API's, Google Inc.
Both show Platform as 2.2 and API level 8
Which to choose (and why)?
The AVD with Google API's contains google Api's like GoogleMaps.
For example:
If you application uses GoogleMaps, then you will have to use an AVD with Google API's.