I'm trying to create a simple map in androi (I want to add GPS coordinates later) in intellij 9.0.1 and I installed the sdk (and android 1.1 - 2.1 sdk platform support and google api 3-7).
I created a new android project and I selected android 2.0.
Now I added to my AndroidManifest.xml like all the tutorials say, however when I run this class it isn't found.
Does anyone know wether I'm doing something wrong or where I can find this package>
I would make sure that your Android facet is setup to use the Google API's. When you configure your Android SDK from IntelliJ, you can select your build target. I suspect you've chosen just the Android build target, and not the Goolge API build target.
Look under Project Structure->Facets->Android. Make sure your Android Platform is one of the Google API's.
Thanks Steve!
Once you do what Steve says, if you don't see A Google API in the platform list, you'll have to add a new platform by..
Clicking New
Browse To: /wherever_you_stored_the_android_folder/add-ons/addon_google_apis_google_inc_X (where X is the api number you want)
Click OK
You should now be able to select the Google API.
Related
I have added a new hardware to my platform.
How can I create an SDK to provide some interface for developers?
I don't need the whole Android SDK like Google provides. It's just about my hardware - as Samsung provides gesture SDK, fingerprint SDK etc. So one can use this special SDK when you develop an app for a Samsung phone.
What You're aiming is SDK Add-on which as the name says is addition to to current SDK.
To generate one from the AOSP write this in the command line:
source build/envsetup.sh
lunch sdk-eng
make PRODUCT-add_on_name-sdk_addon
For a robust guide including how to implement the new add-on look here.
I am newbie to the world of Android. Just wanted to know what is the difference between a new android application project and new android sample project on eclipse. When I click on new android sample project, it directly shows me the Android API level display. The display says "This target has no samples" and that is true if I pick any API level.
New android sample project allows you to access the sample projects provided by the SDK which you need to download from the android manager. So on Eclipse go to->Android SDK manager ->once you open the package details you can find Samples for SDK (each API level have samples, you may get for the latest target which would be backward compatible up to certain API level). Install the ones you need. Then you will find samples for the target under new android sample project.
New android project is for starting new project without using the sample.
Android Sample Projects give you demo projects that demonstrate an android functionality (e.g., Accelerometer, ApiDemos, ContactManager, etc) which you can run and check the code on how it works.
By the looks of it, you haven't installed your Android Samples. Check the Android SDK Manager and check "Samples for SDK".
I am very new to this map functionality in android. I do not have Google API installed in my SDK. Please help me in installing GoogleAPI.
I looked for lot of documents. But I didnt get any idea. Thanks in advance.
Well first you have to load SDK Manager. Then under the required api version select the "Google APIs" and install it. Then all you have to do is create a new project using the installed Google API. (Not using the standard Android SDK).
Just like you installed the SDK, you can use the SDK manager to install the corresponding google apis
Refer this link : https://developers.google.com/android/add-ons/google-apis/installing
just follow these steps :
open eclipse --> click on "windows" option --> after that select Android SDK Manager --> there you have to upgrade/install your google API for required version
Hi and thanks for looking!
Background
I am attempting to follow this Android ADK (w/ Arduino) tutorial.
I am using Intellij Idea 10.5 as an IDE (NOT Eclipse).
I have previously set up the Android dependencies in Idea, and have no problem creating a new Android project; however, according to the aforementioned tutorial, it would seem that I need to use the Google API SDK rather than the Android SDK for creating the project.
Here is the link to the Android Open Accessory Page.
Question
How do I set up Idea with the Google API so that I can create a new project of this type?
Thanks!
When you create new Android SDK in IDEA, it allows to select Google APIs SDK if it's present. If you don't have it, run SDK Manager and install it. Basically, there are 2 versions of SDK for most platforms, standard and with Google APIs.
I am writing an android application however I am using the google maps api and when I run my code iI get the following error...
C:\android-sdk-windows\add-ons\addon-google_apis_google_inc maps.jar has no source attachment
and
E/AndroidRuntime(374): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{lbs.tutorial/lbs.tutorial.WhereAmIActivity}: java.lang.ClassNotFoundException: lbs.tutorial.WhereAmIActivity in loader dalvik.system.PathClassLoader[/data/app/lbs.tutorial-2.apk]
sure enough through windows explorer the add-ons folder is empty, cann anyone tell me how to get this jar file?
I have updated the google apis in the sdk and the adt plugin is up to date. Ive triple checked my files but im at a loss.
Thanks for looking
Peter
Make sure you're targeting the right platform in your project. For each version of Android you can select the open-source version or the Google version (which has maps etc included).
In Eclipse: Right click on your project properties --> Android --> Select project build target (making sure that you click the Google APIs version).