Android :: How To Provide Your Own LocationProvider On Android?
Aug 3, 2010Does anyone know how to provide your own LocationProvider and publish it to the system,so other apps may fetch a reference to it from the LocationManager?

Does anyone know how to provide your own LocationProvider and publish it to the system,so other apps may fetch a reference to it from the LocationManager?
I would like to implement a new LocationProvider. In this case, one that uses OpenCellID.org. I figured the pattern wou be quite similar to providing an AccountAuthenticator but was stunned that I could not find any documentation on this.
Looking at the source http://www.netmite.com/android/mydroid/frameworks/base/location/java/... all the relevant code seems to be in a service providing the ILocationManager.aidl -interface that I cannot navigate to or find using Goole Code Search.
Is it supported to provide your own LocationProvider at all? If so, what do I have to do to acomplish this?
I am almost 100% satisfied with my EVO I have had for 2 days.The only complait I have is I want to me notified via an audible alert about a text message or missed call until I answer it.I couldn't find a way to do that in the setup, so I was wondering is there an app that would let me do that?Choose how often it repeats?
View 5 Replies View RelatedHi,
I'm planning to use my website to provide updates for my android application whenever the user decides to perform an update( in case there is one available) . I'm thinking to use http requests for the communication between the user and the server, so whenever there is a new update the server sents back to the user the link to download the apk of the update through the android browser. So far I think it should work !?!. But once I have the apk of the new update on the card ,and the installed old version of the application how do I actually perform the update ?
"This interface provides random read-write access to the result set returned by a database query." but I can't find any way to update a database with a cursor.I have started noting things like this as a sidewiki entry for the documentation page.
View 3 Replies View RelatedI am using camera to capture snapshots. But i am unable to view taken pictures location. I am also unable to browse sdcard directory using DDMS in eclipse.
View 2 Replies View RelatedIn my application 'x' there is a download manager which downloads a.mp3,b.mp3 and stored in the /sdcard /x/a.mp3.How to provide the security only my application can access the downloaded files not to the other applications?Is there any API provided by android or any other solution?
View 3 Replies View RelatedIn my Touch Pro 2, i was able to open a calendar and click a conf call phone number, it called the number. (same as on my EVO).Then once i am in the call, I could click the back button and view 1/2 calendar and 1/2 dial pad. It was very helpful because i could see my passcode from the calendar for my conf call WHILE i dialed them in at the same time.Is there any app or function like this with Android?
View 1 Replies View RelatedI have a .jar in my Android project which has many references and uses of the java.awt.* classes and other classes not available on Android. How can I provide my own implementations of these classes so that I can embed the unmodified .jar file (the only modification is being ran through dx) in my Android application and it will use my own class implementations?
View 1 Replies View RelatedI want to provide different resource files to users. But I don't know how to load strings from a resource file other than strings.xml?
View 1 Replies View RelatedDoes Android provide an API for JDBC to SQLite? What I found around are Java wrappers or native drivers but not sure these are compatible with Android. Anyone has any pointers to info I can use
I have created the db using the adb shell and all I need to do is to connect to the db from an activity and run a simple query to retrieve and file.
Can any one provide sample Remote service example. I want it like two different application. One application should contain service. Another application should use that service.
Thanks in adv....
I have 10 rows in my listview, and i want to provide different colors in each row.
View 1 Replies View RelatedWhen you disable a button, it becomes greyed out. However with the Spinner, the same UI principle does not hold. Just wondered if it is a bug.
View 5 Replies View RelatedNew fennec a.k.a firefox for android is launched. And it has an awesome UI. It's speedy and it prompts for auto updates.
View 15 Replies View RelatedIs it possible to provide directions on a map on Android from 1 place (e.g a specific lat/lng) to another specific lat/lng? I realise this is doable with the Google-maps API but can you do it within Androids native implementation?
View 1 Replies View RelatedWe're planning to export an application layer AIDL interface. What are some best practices with regards for managing version compatibility? Does Android provide any version-related mechanisms for AIDL interfaces?
View 1 Replies View RelatedIs there any API in Android Calendar/DateUtils which provides a list of holidays based on the locale? If no currently, is there any plan to support this in future?
View 2 Replies View Relatedi am providing copy protection for Android paid applications by using Android Market Licensing mechanism. But it supports only for the paid applications. How can i provide copy-protection to Free application. Is there any alternatives?
View 1 Replies View RelatedI want to encrypt individual contacts stored by the Contacts application on Android based on user's preference. So, I am thinking I'll have to hook/extend the Contacts application before the it stores data into the database and decrypt it when the user wants to view it. Also, I am assuming I will have to store the key for encryption in a file.
View 1 Replies View RelatedIn Android, what functionality do ListActivity and ListView provide beyond a regular Activity and View?
View 2 Replies View RelatedI have some java code that I want to share with some classmates however I do not want to share the source with them.What is the standard method to provide someone with a Java executable that they can use but they cannot see the source.Not sure if this is relevant but the code that I will be giving them will be run on android.
View 3 Replies View RelatedSometimes I need to provide a Context object to call specific functions, such as
Intent intent = new Intent(context, MyClass.class);
in order to start a service
context.startService(intent);
Or, provide a Context object to do a query
Cursor cursor = context.managedQuery(uri, projection, null, null, null);
If this is done in a UI class which extends Activity, that's fine.
However, If I want to create my own utility class (a singleton) that doesn't extend anything and call these functions, I don't have necessary Context object. Now my workaround is to pass an activity reference while initializing the utility class and have that reference to call those functions. I'm wondering what's the correct way to do that. It should not be reasonable to have every class to extends Context so that it can call those functions.
how can we formate fonts in android application such as provide style to the font?
View 3 Replies View RelatedHere is some background about my app:
I am developing an Android app that will display a random quote or verse to the user. For this I am using an SQLite database. The size of the DB would be approximately 5K to 10K records, possibly increasing to upto 1M in later versions as new quotes and verses are added. Thus the user would need to update the DB as and when newer versions are of the app or DB are released.
After reading through some forums online, there seem to be two feasible ways I could provide the DB: 1. Bundle it along with the .APK file of the app, or 2. Upload it to my app's website from where users will have to download it
I want to know which method would be better (if there is yet another approach other than these, please do let me know).
After pondering this problem for some time, I have these thoughts regarding the above approaches:
Approach 1: Users will obtain the DB along with the app, and won't have to download it separately. Installation would thereby be easier. But, users will have to reinstall the app every time there is a new version of the DB. Also, if the DB is large, it will make the installable too cumbersome.
Approach 2: Users will have to download the full DB from the website (although I can provide a small, sample version of the DB via Approach 1). But, the installer will be simpler and smaller in size. Also, I would be able to provide future versions of the DB easily for those who might not want newer versions of the app.
The idea is to allow developers to access a remote database provided by google.In android the developer will need a special permission to be set at the manifest file.This could allow applications to keep a backup of users application data without having to sign in ever, seamless.Users could than sign-in to their gmail and see a list of applications that are currently storing data on their gmail space.The user could be allowed to wipe the data or even block the application from storing data to it.This idea make the most sense since Android will be a platform were users will be constantly changing android phones as new better ones come out.
View 2 Replies View RelatedIs there something in the Android developer guidelines that disuades developers from providing the option to "exit" (stop running) an application from within the application itself? I love multitasking and all but it's not clear to me why: the vast majority of apps don't have their own Exit functions and hence just keep running forever don't give you a choice about running when you turn on the phone - they just do by default Both of these things lead to memory usage constantly increasing and your device running with this performance burden all of the time despite the fact that you may only want certain apps to run some of the time.
View 4 Replies View RelatedI have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this.When we call another Activity in Android it gives its default animation and then it calls shrink animation.What I want is that the default animation should not occur and the animation that I want should occur.Can we actually give the animation when calling another Activity?
View 2 Replies View RelatedI feeling that the UIPickerView of iPhone is good idea and easy to use on touchable mobile phone. I am strange that why Android SDK do not provide the same effect widget?or maybe coder have to clone it on Android ?
View 4 Replies View RelatedI have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this.When we call another Activity in Android it gives its default animation and then it calls shrink animation.What I want is that the default animation should not occur and the animation that I want should occur.Can we actually give the animation when calling another Activity?
View 3 Replies View Related