[android-developers] Re: Android Library Broken

2010-07-14 Thread ydario
Hello Xavier, make sure you have the libs project in your library project (even if it's empty) this fixed my ant builds from terminal, but not from Eclipse. I have added my buildfiles to Ant eclipse page, but now clicking the run button gives the same NullPointer problem. Is there a way to

[android-developers] Re: How to display all contacts?

2010-03-13 Thread ydario
Hi Dmitri, Cursor cursor = mResolver.query( Data.CONTENT_URI,     new String[]{Event.DISPLAY_NAME, Event.DATA},     Data.MIMETYPE + = + Event.CONTENT_ITEM_TYPE + AND + Event.TYPE + = + Event.TYPE_BIRTHDAY, I use a similar code, and I can retrieve data edited using Google Contacts on the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-03 Thread ydario
because you're one of the top developers in Android Market with one or more of your applications having a 3.5 star or higher rating and more than 5,000 unique downloads. sigh, my rating is at 3.2 stars :-( and it depends mostly on users who did not understand what the programs are doing or

[android-developers] Re: Custom android ANT tasks

2009-12-16 Thread ydario
Hi Ward, and also (a la J2ME) modify some of the source files before we compile them. We also make different modifications depending on whether it is a debug or release build. how do you modify source code from ant scripts? I'd like to preprocess my souce code, but I don't see a clean way

[android-developers] Re: Contacts FAQ?

2009-12-12 Thread ydario
Hi Brian, unfortunately I don't have a 2.0 phone, and the emulator does not have working authenticators. -- ...I try to add a contact programatically using the ContactsContract API.  What happens?  This I'm not completely clear on.  If you use the RAW_CONTACTS uris, I suppose you [must?]

[android-developers] Re: Contacts FAQ?

2009-12-11 Thread ydario
Hi, When you navigate to Contacts-[menu]-Accounts-AddAccount or Settings-Accounts sync-Add Account does your custom account type appear?  If not, this is probably your next milestone.  I achieved this by reading the code in packages/apps/Email/, which is a far cry thanks for pointer. But

[android-developers] Re: Contacts FAQ?

2009-12-10 Thread ydario
Hi, You need two meta-data entries: ah, I wonder why I didn't do this... maybe being around midnight does not help ;-) See the (limited) sync adapter documentation for details on preparing res/xml/syncadapter_description.xml. very limited. Of course the original question still stands:

[android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread ydario
Hi, found the same problem here. Even this kind of code fails: Configuration config = context.getResources().getConfiguration(); config.locale = newLocale; context.getResources().updateConfiguration(config,

[android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-09 Thread ydario
Hi Dianne, No, changing the application's locale like this is not supported, and will not entirely work. yes, you need to restore locale on screen rotation or activity change, but this easy to do.  It shouldn't cause an activity to restart though... actually I can't imagine how this would

[android-developers] Power off the screen

2009-07-20 Thread ydario
Hi, I'm looking for a way to power off the device screen. I found the PowerManager class, but I see it can be used only by system apps. Is there some other way to achieve this? thanks, Yuri --~--~-~--~~~---~--~~ You received this message because you are