Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-12-06 Thread Zhihong GUO
Hi All, Just make clear of my question: is there an open source plugin for account management and contact sync for facebook in Andorid? Thanks a lot. James 2009/12/5 Zhihong GUO gzhh...@gmail.com Hi all, I am wandering if there is any examples on the account and sync plugin in Android Open

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-12-05 Thread Zhihong GUO
Hi all, I am wandering if there is any examples on the account and sync plugin in Android Open Source project. For example, if there are any code on Facebook plugin in contacts and sync. If not, can any one help me give the codes in Eclair contacts and email application related to the topic.

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-12-02 Thread Jerry Brady
The droids run 2.0, but the published Eclair source is 2.1 and that was the fastest way to get an emulator that included the Accounts Sync settings that isn't in the 2.0 emulator. AFAIK you'll need that in order to affect any testing that will work on shipping 2.0 devices. I don't have time to

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-12-01 Thread Dan Dumont
I'll update my project asap!Thanks for looking into this!! when we create the binder, do we need to verify that the account variable is for us? IE... will the intent be triggered for all providers, and we must figure out if the info is our or not? On Mon, Nov 30, 2009 at 2:35 PM, Jerry

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-12-01 Thread Dan Dumont
Drat...I don't want to build 2.1... I thought the droids ran 2.0? anyway...I updated the project. Please let me know if it works :) I get an error still in the 2.0 emulator... 12-01 19:54:36.454: ERROR/AndroidRuntime(93): android.content.ActivityNotFoundException: No Activity found

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-30 Thread Jerry Brady
Guys following this issue, I found the ultimate cause of the error and found a workaround that will allow you to work on a Droid. One thing that's helpful is building yourself an Eclair 2.1 SDK so you can use an emulator (2.1) that includes the Accounts Sync settings option we need in working

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-24 Thread Will
As you said, I tried the emulator also reboot too and could it be the sync on/off data problem? I added the exchange account by settings Acoounts sync first then added TestUser01 by Dan's AP and I checked the table accounts of accounts.db as below: sqlite select * from accounts;

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-23 Thread Jerry Brady
I'm going to be trying it on a Droid this morning. On Nov 21, 10:07 pm, Dan Dumont ddum...@gmail.com wrote: I get that exception in the emulator ( doesn't reboot though ) I thought it was due to missing pieces of the emulator...  does logcat output anything? On Sat, Nov 21, 2009 at 7:07

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-23 Thread Jerry Brady
Dan, My code and yours both work on the Droid, but there are some nasty side-effects. After adding an account with your application (or mine) whenever you visit the Accounts Sync settings screen, the system crashes hard and reboots. 11-23 13:21:34.863: WARN/dalvikvm(1011): threadid=13: thread

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-23 Thread Jerry Brady
Just filed a case for this: http://code.google.com/p/android/issues/detail?id=5009 On Nov 23, 1:47 pm, Jerry Brady jerry.br...@gmail.com wrote: Dan, My code and yours both work on the Droid, but there are some nasty side-effects.  After adding an account with your application (or mine)

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-23 Thread Dan Dumont
Nice, thanks for doing that!I'll star it, I hope we get a response soon. On Mon, Nov 23, 2009 at 5:32 PM, Jerry Brady jerry.br...@gmail.com wrote: Just filed a case for this: http://code.google.com/p/android/issues/detail?id=5009 On Nov 23, 1:47 pm, Jerry Brady jerry.br...@gmail.com

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Jerry Brady
Sukumar, I see the exact same behavior in my code. It's confusing. Everything seems to be setup properly, but the system never invokes by implementation of AbstractAccountAuthenticator. My assumption was that by defining the proper service and intent in the manifest, the account settings

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Jerry Brady
Dan, I didn't see this call in your current Google code project. Is your use of AddAccountExplicitly() in there? Cheers, Jerry On Nov 20, 7:53 am, Dan Dumont ddum...@gmail.com wrote: Yes.   But I make the AddAccountExplicitly call in my Authenticator.    You use the AccountManager to create

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Jerry Brady
Dan, Now I see what you are doing in your code and found the reference to AddAccountExplicitly(). I want to skip returning an intent to fire the an AccountAuthenticatorActivity and instead to return KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE directly from my AbstractAccountAuthenticator's addAccount

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread NitroDesk
Any of you folks tried this on a Droid? Simply installing the project that contains an Authenticator in the manfest and the other related items seems to cause the Add Account option in the account list on te droid to simply reoot the phone with an exception. Anyone else seen this or find a way to

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Dan Dumont
Your authenticator is launched when the Service returns the binder for your authenticator class. Look at what the service in the project is doing. On Sat, Nov 21, 2009 at 7:07 PM, NitroDesk gsuku...@gmail.com wrote: Any of you folks tried this on a Droid? Simply installing the project that

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-21 Thread Dan Dumont
I get that exception in the emulator ( doesn't reboot though ) I thought it was due to missing pieces of the emulator... does logcat output anything? On Sat, Nov 21, 2009 at 7:07 PM, NitroDesk gsuku...@gmail.com wrote: Any of you folks tried this on a Droid? Simply installing the project

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-20 Thread Dan Dumont
Yes. But I make the AddAccountExplicitly call in my Authenticator.You use the AccountManager to create accounts. If you call AddAccountExplicitly from a non-authenticator class, I guess it will work... But I think the security behind it will mean that only the class that created the account

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-20 Thread Dan Dumont
At least... this is as far as I understand it Please correct me if I'm wrong here. Also, if a google rep can speak to this point: If I have a few apps that all utilize a certain account type...What's the best recommended way of letting them all function independently of each other,

[android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-19 Thread Jerry Brady
Dan, Thanks for all of this. I just returned to the office and will be taking a look to see how much further I can get and I will certainly be interested in helping with your accounts project. I got as far as getting my account to show up in the list of accounts along with Google, Facebook and

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-19 Thread Dan Dumont
Because when you create an account, the only class, for security reasons, that can dissect and manage/read passwords is the class that created the account... in this case, your AccountAuthenticator implementation, and only for the account type that you registered the AccountAuthenticator to

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-19 Thread sukumar bhashyam
AddAccountExplicitly() would need Authenticator of same type. I created an Authenticator and called AddAccountExplicitly() for the same type which created an account ( Could verify it from AccountManager.getAccounts()) One strange thing I observer is none of the implementation class functions