Android :: Working With Apis/Libraries
Oct 2, 2009
I'm building an app where I want to architect the app layer separately from the service layer (not android services). So I'll create a service interface(the apis) and then create a class(es) that implement that service interface. Inside the android application layer, I want to code to just that service interface. I think this is similar to how the google maps apis works. the api interface and stubs are in the framework, then each device actually provides the implementation. I don't need to go that far, but I am wondering how I package this up. One, where would I put these interfaces, so I can code to them in the app layer (like Activities). Second, how do I tell Android where the implementing classes are? I'm guessing this is somewhere in the manifest? For now I think I would probably just build the service implementation with the application source code, if that's easier. Eventually I'd like to break that out and drop it in as a 3rd-party jar.
View 4 Replies
Jun 13, 2009
Has anyone had success using Google Data APIs Client Libraries. I can't seem to successfully use the GData Java client libraries in an Android app. I notice that there used to be some GData access classes in the Wireless packages that have been removed. Should I be using some map data classes in the com.google.android.maps classes I'm not seeing? I started to go down the path of accessing data through raw http calls, but it's a beating.
View 3 Replies
View Related
Sep 10, 2010
I was really excited today when I saw the Tools r7 and ADT 0.9.8 were available and the latter had this note;
Fixes problems with handling of library project names that contain characters that are incompatible with the Eclipse path variable. Now properly sets up the link between the main project and the library project.
I create the library (foolib - no spaces, no caps, no punctuation). So far so good. I go to the main project, go to preferences --> Android. In the library box I add the new library. It appears. I press Apply. I press OK.
Nothing happens.
I return to the preferences, the library is no longer there JUST LIKE BEFORE.
View 2 Replies
View Related
Aug 21, 2010
I have a problem: Cant load library with my phone, but an other can open it, why?
CODE:..............
And yes, the other lib is there too.
View 2 Replies
View Related
Apr 12, 2010
I'm working on an Android app in which I would like to use multi-touch. However, I do not want to completely leave out those still running a 1.x OS phone. How do you program the app so that you can use the 2.x multi-touch APIs (or any other higher level API for that matter) and still allow it to gracefully degrade on 1.x systems. If you create a project in Eclipse for 1.x can you even still access the 2.x APIs?
Basically I want it to show up in the marketplace and work on all 1.6 and higher phones and just allow access to the higher level functionality if available.
Also, if anyone can point me to any data on the number of 1.x devices vs. 2.x devices in use.
View 2 Replies
View Related
May 20, 2010
I have recently started working on an app which has both Java and native components. I am trying to generate trace information for both components using Debug.startMethodTracing("myapp") and Debug.startNativeTracing() alternately.
However, both are behaving unexpectedly.
When I use Debug.startMethodTracing("myapp"), I can see a file /sdcard/myapp.trace being created but it is always empty no matter how long I run my app. When I use Debug.startNativeTracing() and start the emulator with the -trace <tracename> switch, I see a message saying "Trace started", but when I try to run my app, the
emulator crashes.
View 1 Replies
View Related
May 18, 2010
It seems a little ahead of tomorrows Google event.But I'm already getting many complaints that my app fails completely under Android 2.2.So that scares me a lot!Anyone know when the API might be released? Tomorrow perhaps?
View 5 Replies
View Related
Jun 15, 2009
I want to upload my documents(in the mobile) to google docs, Can Google data APIS work in Android?
View 2 Replies
View Related
Aug 10, 2009
In the Web When we apply the Map Keys, we need sumbit the URL of our sites. In the Google APIs Add-on , we need the MD5 of our soft to get the Map keys. but here is a big question.
1. MD5 is easy to be changed.
2. First I got the MD5 of my app ,and then submit, but when I add the new keys, if the MD5 is changed, there will have the problems of the martch.
3. what should I do?
View 2 Replies
View Related
Apr 25, 2009
I could see there are many APIs available in Android. If I have to create some device driver do I need to use Java(Android) for that also. Or that will be in C?
View 2 Replies
View Related
Jul 8, 2010
I work with Eclipse and implement some applications using the Android Emulator.
I'd like to know: Is it possible to extend Android APIs with other .jar file?
If it's possible, how can I extend the APIs?
I just have to add libraries to the project or do I copy it to the $ANDROID_HOME/platforms/android-8/tools/lib
View 1 Replies
View Related
May 25, 2010
Kinda like in the format of a class-dump result but in Java, I already have the Android.jar file and I would like to dump a clean listing of classes and methods for each .class file. How do I do this?
View 1 Replies
View Related
Nov 24, 2010
Anyone know where I can find what Android APIs are supported in the latest Flex AIR SDK (Hero). In particular is the speech to Text API supported?
View 2 Replies
View Related
Nov 3, 2009
How can we display a buffer on screen?
Currently I create a bitmap using Bitmap's CreateBitmap() and render it on screen using canvas' drawBitmap().
Is there any other way of doing this in Java layer?
View 8 Replies
View Related
Feb 19, 2009
I am developing maps application which has to support driving directions and route search and creation. But there is no API support in Android for this.
So i want to use google map APIs instead of Android APIs, Are there any APIs available for driving directions in google. If yes, What are those APIs, How can i use those APIs with Http request/response.
I read some where that earlier googlenav package was there in Android SDK, but it is now removed. May I know the reason for removal of this package, or When can i expect it to come back with fixed version of googlenav in Android? Looking forward to your reply.
View 3 Replies
View Related
Oct 26, 2010
Or is it essentially the same SDK/APIs as standard Android development?
View 5 Replies
View Related
Nov 10, 2010
Wondering what the differences between REST and JSON APIs are, how you interface with them, and how to go about parsing the results. My goal is to build a small application for my android phone to tell me when the next train will get to the subway station by my house, using the developer API provided by the transit agency.
I'm learning C++ in university, but hope to go about this in Java. I'm sorry if this is more of a discussion question rather than a black and white answer question, but I can't find any information elsewhere.
View 2 Replies
View Related
Jul 13, 2012
I am working on Eclipse and am looking for method to down load Android API's offline and then plug it to Eclipse
is there a method for that ? because my internet Connection drive me crazy.
View 2 Replies
View Related
May 24, 2010
Does anyone know if there is an API available to access all SMS messages as well as emails in the inbox? You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google groups.com To unsubscribe from this group, send email to android-developers+unsubscribe @googlegroups.com For more options, visit this group at http://groups.google .com/group/ android -developers?hl=en
View 9 Replies
View Related
Sep 22, 2010
I'm configuring a new machine for Android development and moving my current project over. I did a fresh install of all the Android tools and SDKs, and under "build targets", the Google APIs' target supports Android 2.2. Of course I need 1.5 as the base build target. My project doesn't build when I select that because the Google Maps stuff from maps.jar isn't there. In fact, after I did my full install I can't find maps.jar anywhere on my new machine. Is this jar file still required for Google Maps integration, or is it history? I'm using Eclipse 3.5. I guess I'd presume there would be a "google apis" for Android 1.5 build target. I'm thinking my install must be hosed; but maybe it's my understanding.. :)
View 1 Replies
View Related
Nov 1, 2009
I've been reading the Terms of Service for the Google APIs, both Maps and AJAX APIs. I have questions regarding future consequences of using these APIs in mobile apps that get distributed, hopefully, to many thousands or millions of devices.
Both say that the services must be available for free, so I'm assuming that means you cannot charge a fee for an Android app that uses these services, unless you arrange something special with Google. Which appears to be Google Maps API Premier, an advanced service that uses a page-view-counter-based calculation to determine charges, and is not cheap. Which pretty much says you'd need to charge a subscription fee if you're going to charge at all. If you don't charge now and suddenly get hit with a bill from Google, your free app must remain free (according to Android Terms) so you're out of luck? I suppose it might be possible to include a Terms of Service with the application that says the user assumes all responsibility for any charges related to use of the Google APIs, but that doesn't seem likely to succeed. I think it would be difficult to manage. I also suppose that you could ask Google to block requests that use your API key until you can get a new version out with a fee attached.
Google also says they could charge for the use of the API in the future. This is stated specifically in the AJAX APIs doc, and indirectly in the Maps doc (Google can change the terms at any time). Since the API key that is used when calling APIs belongs to the Android developer, that tells me we could potentially be on the hook for Google charges. The Terms say that we can decide to stop using the APIs. Which is fairly easy when you're running a web site, much different when your application is deployed to thousands or millions of devices. Especially if you've distributed the application for free, and with an expiration date as required of later than October 22, 2033.
I'm nervous now about using Google APIs in Android apps and wondered if anyone else has thought about this. Should Google APIs be avoided? At least until developers have some legal protection?
View 3 Replies
View Related
May 13, 2010
I have seen the BusinessCard example provide in Android examples.
I am using ContactAccessor abstract class to seperate out the SDK versions.
My code is running fine for 2.0 onwards, but when I am trying to build the code in Adnroid 1.6 I am getting the following errors:
Build.VERSION_CODES.ECLAIR is not resolved.
Getting errors in the whole class in which I have used Contacts APIs from 2.0 (say in class ContactAccessorSdk5.java).
How to resolve these issues?
I want to run my App on both the versions.
View 2 Replies
View Related
Dec 4, 2009
Are there any Android APIs that allow the application to retrieve the GSM Timing Advance?
View 2 Replies
View Related
Feb 14, 2010
I wish to know if Android 2.1 SDK support APIs for changing network settings such as bluetooth on/off, wifi on/off , airplane mode on/off.
View 2 Replies
View Related
Feb 15, 2010
Carrier want it's navigator use specific PDE server to get location information so we need API that can configure PDE server(IP, Port) Is it available?
View 2 Replies
View Related
Jul 29, 2009
How shall I get voice call information, such as calling time, duration, caller and etc. Any related APIs?
View 3 Replies
View Related
Mar 17, 2010
I just wanted to know if there were any free weather APIs available for commercial use without any issue of license or open-source or etc.
View 5 Replies
View Related
Jul 2, 2010
I am facing in Android display system(Video Rendering using Surface Flinger Native APIs).
As for my understanding, Android display system relies on Surfaceflinger library( a system wide screen composer). Surfaceflinger runs as a service along with Mediaserver service, Camera service, Audioflinger and these services interact with each other through Binder APIs at native level. If any user application wants to access SurfaceFlinger native APIs, it requires Surfaceflinger Access permissions.
My requirement is that I want to create a SurfaceView at the JAVA level (Android Application level) and render video data to that Surface, means, pass video data to the Surface flinger library by invoking native Surface Flinger APIs. But, because of Permission Problems, I am not able to invoke Native Surface Flinger APIs from Application Layer.
Is there any ways to invoke Surface Flinger Native APIs from Application Level ?
View 2 Replies
View Related
Mar 31, 2009
I would like to produce an android user interface which allows the user to move added components/widgets around the screen by selecting them and then dragging them around.
Is this possible using the standard android apis?
View 3 Replies
View Related
Nov 21, 2010
I'm a newbie developer in Android.
I want to make an app like SetCPU that can manipulate cpu frequency in Android.
But I couldn't find some related APIs or materials.
I want to know following two things sincerely.
1) Are there APIs to change cpu frequency in Android?
2) If not, are there some APIs in linux?
View 2 Replies
View Related