provider

Anyone able to get video resolution from the media content provider in Android?

I'm getting null back for the 'Video.Media.RESOLUTION' column on a Nexus One and Droid. Anyone been able to successfully query for the resolution of a video file in Android? ...

Has anybody implemented 2 Legged OAuth using DNOA?

I am trying to create an Authentication Module in CSharp where I need to verify the Signature from the request using DotNetOpenAuth(DNOA) Library for 2 Legged OAuth which only has consumer Key and a Secret. If you have any sample implementation of 2 Legged OAuth using DNOA that would be helpful. If not, any ideas on how to implement wo...

Creating a Linq->HQL provider

Hi all, I have a client application that connects to a server. The server uses hibernate for persistence and querying so it has a set of annotated hibernate objects for persistence. The client sends HQL queries to the server and gets responses back. The client has an auto-generated set of objects that match the server hibernate objec...

Custom config file for provider configuration

Hello, I'm building a custom provider and would like to know how to specify a different configuration file (ex: MyProvider.Config) for my provider to pick the configuration from. By default it is using Web.Config. Can I specify the path to the custom config file in MyProviderConfiguration class? Example: internal class MyProviderConf...

LinqProvider that gets data from from two places and merges them

Hi all, I have a Linq query that looks something like the following var query3 = from c in Session.CreateLinq<AccountTransaction>() join a in Session.CreateLinq<Account>() on c.Account equals a where c.DebitAmount >= 0 select new { a.Name, c.DebitAmount } ; The Session object interacts with a da...

Problem with java XML Parsing - FactoryConfigurationError: Provider not found

I have a java applet that parses a string of xml. However, running the following code: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document d = db.parse(xml); Generates the following error: javax.xml.parsers.FactoryConfigurationError: Provider <HTML> not found S...

Installing a new Location Provider

There is an entry in 1.5 of the SDK for installLocationProvider. That entry is marked: @hide. I would like to provide an alternate location provider, the why is not important, just the how. Does anyone know the "trick" for using the "installLocationProvider" entry point or where to find details of building a complete or partial solution?...

ASP.NET MVC 2 and SQL Table Profile Provider

I'm trying to add the sample table profile provider from http://www.asp.net/downloads/sandbox/table-profile-provider-samples to a new MVC 2 site. After a bit of research and fiddling around, I've arrived at a profile class that looks like this. namespace MyNamespace.Models { public class UserProfile : ProfileBase { [Set...

customising asp.net sitemap provider

hi all, My current project has a requirement to show a site menu at the top of the page (and others elsewhere) that is dependant on the users roles in the application. A user is able to modify their roles at run time (or have them modified by someone else) and as such the menu must show or hide those links. This particular site we are...

Android AppWidgetProvider and BroadcastReceivers

The online android documentation says: Everything you can do with AppWidgetProvider, you can do with a regular BroadcastReceiver. So, what i want to do is to register via registerReceiver() another event other than ACTION_APPWIDGET_* on my Widget. For example ACTION_BATTERY_OKAY, is there any way to do this? Obviously i cant regist...

Can't access content provider of another application (android)

Hi, I have created a custom content provider in application A and have another application B access this content provider in A. Below are my code snippets: In content provider in application A: public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int ta...

Read mobile provider from the phone

Using my new Android phone established a small problem: I'm living in country A but my mobile provider is from country B, because it's just cheaper. Concerning mobile phone tarifs my country isn't a foreign country for country B. However I have to enable data roaming in my Android phone. The problem is, I'm also quite often in country C ...

PHP: LightOpenID, how to fetch account data from provider?

Hi! I'm having problems with a small OpenID-library called LightOpenID . I can authenticate to almost all providers, but I don't know how to fetch the data from the provider. I only get Array(), eaven with print_r(). ...

Use PreferenceActivity and save preferences in ContentProvider, how?

Hello, Jeff Sharkey in this post (http://goo.gl/G3wt) shows how to create save application preferences in database by hack on PreferenceActivity. It said i can use a ContentProvider, too. Can you give me an example on how to save preferences from PreferenceActivity to ContentProvider? thanks ...

Email Provider : dynamic content

Hi, We are building a daily newsletter based on member preferences. The member can choose a city and some categories among a list of 10. Basically each email will be different. Each email is generated by our server. We are unable to find a provider with an API that can do that. Would you have any solution that ensure a 99% delivery. ...

Automatically Determine SMS Carrier-Provided Email from Mobile Number

Is there away to automatically determine the SMS carrier email domain from a mobile number? (Similar to how you can look up a hostname from an IP address?) ...

How do I implement a custom role provider which supports sub roles?

Are there any good guides on how to implement a custom role provider which has support for parent and child roles? I have a requirement to have high level Role permissions as per the usual Role provider functionality. However, I also have a requirement to further breakdown permissions into sub roles. I toyed with the idea of having fur...

How to MapPath in an IIS7 Rewrite Provider?

Hi, I am using the rather excellent IIS7 Rewrite module (V2), and want to create a custom RewriteProvider that rewrites differently depeneding on whether the physical file exists. I have successfully created a provider, as in this tutorial: http://learn.iis.net/page.aspx/804/developing-a-custom-rewrite-provider-for-url-rewrite-module/ ...

Location Providers in Android?

Hi, My application requires current location of the user. For this I have implemented the code and I am able to get the current location. The code tries to get the best provider first and then fetches location information. The problem is that the current location is returned from NETWORK_PROVIDER if GPS_PROVIDER is disabled. If both NET...

how to replicate sd card changes to content provider

Hi, I'm writing custom content provider and i have to make changes to content provider(means in the table records are stored) when i delete,download or update file in the sdcard please give the solution.How to get intent when file deletes, updated or downloaded to sdcard Thanks, ...