[android-developers] Re: Android 2.0 contact groups manipulation

2010-06-23 Thread Destra
Hello,

Have you solved your problem 'cause I'm trying to do the same thing.

Thanks

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 -Map not showing up

2010-05-22 Thread Surendra
You need a map key in your layout to use.

Follow the instructions at the site and obtain the map api key.

http://code.google.com/android/add-ons/google-apis/mapkey.html

And in in your layout xml file in the place you have these lines add
the map api key in the android:apikey place.

com.google.android.maps.mapview
android:id=@+id/mapview
android:visibility=visible
android:clickable=true
android:apiKey=Add your map api key here
android:layout_width=fill_parent
android:layout_height=fill_parent /

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 battery level

2010-02-17 Thread Mihai Fonoage
Take a look at 
http://developer.android.com/reference/android/os/BatteryManager.html#EXTRA_VOLTAGE.

Mihai Fonoage

On Feb 15, 7:49 am, Maxood maqs...@salsoft.net wrote:
 Hi Mark! I want to display Batter level stats in my app as shown in
 the following link:

 http://itunes.apple.com/us/app/app-genie/id352781306?mt=8

 Wonder how can i access batter voltage/power information at runtime?

 On Dec 23 2009, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote:



  Motalen wrote:
   Is this to say that the Droid has the capability to report higher
   precision values given the nature of the hardware BUT there is no way
   to access it?

  Here is my interpretation:

  -- Precision refers to the fineness of detail. Many Android devices
  report at 1% precision, but the DROID reports at 10% precision.

  -- Accuracy refers to how well the reported values reflect reality.

   If I am mistaken, which I hope I am, how would we go
   about accessing the finer granularity that is needed when developing
  batteryapplications on the Droid?

  As far as I know, you can't. As Ms. Hackborn said, [10%] is just the
  precision the Droidbatteryreports.

   I have no problem getting single
   digit precision with other handsets only the Droid produces the
   strange '10's increments' only.

  That's the way Motorola elected to implement thebatterylevel
  information. The SDK does not mandate a minimum level of precision, so
  device manufacturers can report 1%, 10%, 3.14%, or whatever floats their
  boats. Applications (particularly paid ones) should not be relying upon
  some minimum level of precision, just as they should not be relying on
  certain LED colors or the availability of a physical CAMERA button.

  If you have more detailed questions on Motorola devices, I recommend
  asking Motorola the questions, since they have developer support boards:

 http://developer.motorola.com

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://twitter.com/commonsguy

  Android Development Wiki:http://wiki.andmob.org

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 battery level

2010-02-15 Thread Maxood
Hi Mark! I want to display Batter level stats in my app as shown in
the following link:

http://itunes.apple.com/us/app/app-genie/id352781306?mt=8

Wonder how can i access batter voltage/power information at runtime?

On Dec 23 2009, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote:
 Motalen wrote:
  Is this to say that the Droid has the capability to report higher
  precision values given the nature of the hardware BUT there is no way
  to access it?

 Here is my interpretation:

 -- Precision refers to the fineness of detail. Many Android devices
 report at 1% precision, but the DROID reports at 10% precision.

 -- Accuracy refers to how well the reported values reflect reality.

  If I am mistaken, which I hope I am, how would we go
  about accessing the finer granularity that is needed when developing
 batteryapplications on the Droid?

 As far as I know, you can't. As Ms. Hackborn said, [10%] is just the
 precision the Droidbatteryreports.

  I have no problem getting single
  digit precision with other handsets only the Droid produces the
  strange '10's increments' only.

 That's the way Motorola elected to implement thebatterylevel
 information. The SDK does not mandate a minimum level of precision, so
 device manufacturers can report 1%, 10%, 3.14%, or whatever floats their
 boats. Applications (particularly paid ones) should not be relying upon
 some minimum level of precision, just as they should not be relying on
 certain LED colors or the availability of a physical CAMERA button.

 If you have more detailed questions on Motorola devices, I recommend
 asking Motorola the questions, since they have developer support boards:

 http://developer.motorola.com

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Development Wiki:http://wiki.andmob.org

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 Google Maps Navigation and app use of turn-by-turn directions?

2010-01-12 Thread Avanish
I would like to know if you could figure out a solution for this
problem

On Nov 14 2009, 5:10 pm, mobiledude akjer...@verizon.net wrote:
 While I don't have an answer to this question, I would like to concur
 with the sentiment in the hopes that this thread would get more
 attention. I am currently working on developing a location based
 service application and would like to use GoogleMapsNavigationas I
 don't want to get involved in thenavigationaspect of development.

 Although an API would be ideal, I was thinking one possible way to do
 this may be through a Content Provider (for example the Contacts
 database). If GoogleMapsuses a Content Provider that an application
 could get permission to access, then maybe the Content Provider can be
 used to supply a destination address for instance. Just a thought.
 Maybe someone out there may have some more insight into if or how one
 can interface with GoogleMapsNavigation.

 Thanks.

 On Oct 29, 1:19 pm, blindfold seeingwithso...@gmail.com wrote:

  Is anything known about how an app may tap turn-by-turn directions
  generated by Android 2.0's Google MapsNavigation? Until now we were
  prohibited by the GoogleMapsToS to offer turn-by-turn directions in
  our apps. Clearly it would be attractive to integrate some of that
  functionality in other mobile applications, or to be able to exert
  some level of control over Google MapsNavigationfrom one's app. In
  other words, are there any supplementary APIs for use with Google 
  MapsNavigation?

  Or does Google MapsNavigationrun as a Service such that at least one
  need not switch between applications to still get spoken turn-by-turn
  directions even while one's app Activity is running in the foreground?

  See also the discussion in the TTS-for-Android group 
  athttp://groups.google.com/group/tts-for-android/browse_thread/thread/4...

  Thanks!
-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2.0: Why does my transparent background turn white while scrolling??

2010-01-07 Thread Flying Coder
never mind, I found the answer:  
http://developer.android.com/resources/articles/listview-backgrounds.html

On Jan 7, 10:08 am, Flying Coder av8r.st...@gmail.com wrote:
 Hi,
     I'm using a ListView with a transparent background.  It works fine
 in Android 1.5  1.6, but in Android 2.0 and later, the ListView
 background turns white while scrolling.  I want it to stay
 transparent, just like in 1.5  1.6.

     Does anyone know what's going on, or better yet, how I can get
 this working correctly?

 Thanks a bunch!

 Steve
-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2.0 battery level

2009-12-23 Thread Motalen
Dianne,

Is this to say that the Droid has the capability to report higher
precision values given the nature of the hardware BUT there is no way
to access it? If I am mistaken, which I hope I am, how would we go
about accessing the finer granularity that is needed when developing
battery applications on the Droid? I have no problem getting single
digit precision with other handsets only the Droid produces the
strange '10's increments' only.

Much appreciated,

Sean

On Nov 10, 3:54 pm, Dianne Hackborn hack...@android.com wrote:
 That is just the precision the Droid battery reports.  Note that the Droid's
 battery measurement is actually much more accurate than the G1 or myTouch.

 On Mon, Nov 9, 2009 at 8:29 PM, Scott sag5...@gmail.com wrote:
  I don't know if this is an Android 2.0 or a Motorola Droid issue, but
  I noticed that the battery level only reports in increments of 10's.
  For example 70%, 60% etc. Any apps or widgets also can only see this
  as well. Is this a bug, what happened to the detailed stats?

  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android 2.0 battery level

2009-12-23 Thread Mark Murphy
Motalen wrote:
 Is this to say that the Droid has the capability to report higher
 precision values given the nature of the hardware BUT there is no way
 to access it?

Here is my interpretation:

-- Precision refers to the fineness of detail. Many Android devices
report at 1% precision, but the DROID reports at 10% precision.

-- Accuracy refers to how well the reported values reflect reality.

 If I am mistaken, which I hope I am, how would we go
 about accessing the finer granularity that is needed when developing
 battery applications on the Droid? 

As far as I know, you can't. As Ms. Hackborn said, [10%] is just the
precision the Droid battery reports.

 I have no problem getting single
 digit precision with other handsets only the Droid produces the
 strange '10's increments' only.

That's the way Motorola elected to implement the battery level
information. The SDK does not mandate a minimum level of precision, so
device manufacturers can report 1%, 10%, 3.14%, or whatever floats their
boats. Applications (particularly paid ones) should not be relying upon
some minimum level of precision, just as they should not be relying on
certain LED colors or the availability of a physical CAMERA button.

If you have more detailed questions on Motorola devices, I recommend
asking Motorola the questions, since they have developer support boards:

http://developer.motorola.com

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Contacts FAQ?

2009-12-14 Thread Mo
Hi Rachel,
This is a very informative and helpful blag. I really helped me in
with questions I had about 2.0 API changes for Contacts.

One thing I am still not able to resolve is How to get all the email
address for a contact As you mentioned in your explaination that
ContactsContract.CommonDataKinds.CommonColumns class does not exist.
so how did you made it to work?

Thanks,
Mo.


On Nov 13, 11:22 pm, Rachel Blackman ceruleanspa...@gmail.com wrote:
 On Nov 13, 2009, at 6:57 PM, Yao wrote:

  Another important thing is that are new contact APIs stable and public? 
  Will they be changed in the next release?

  I've been seeing this is a private method many times. Contacts APIs were 
  very stable before, but this time, new APIs  is a big change without any 
  document...

 Decent question.

 Okay, so the current list of Contacts Questions For a FAQ/Samples as far as I 
 can tell is as follows. If anyone's interested in taking on one of them and 
 writing up a sample to contribute, chime in?  And as noted above, we probably 
 should make sure whatever we figure out for any of these things is 
 /guaranteed/ public, supported API, not private API that just ended up in the 
 Javadocs or whatever.

 ---

 1) How do I just get ALL the contacts under the 2.0 API?

   * I already posted an example of this, and I can readily turn something 
 like that into a simple compilable project.

 2) Given a contact, how do I get all the phone numbers?

   * Ditto above.

 3) Given a contact, how do I get all the email addresses?

   * Ditto above, save that for some reason my copy of Eclipse claims that the 
 ContactsContract.CommonDataKinds.CommonColumns class does not exist.  So my 
 little sample from the other day doesn't compile for me, though replacing 
 ContactsContract.CommonDataKinds.CommonColumns.DATA with just data1 makes 
 everything work fine.  (Now I wonder if this is a problem in my install of 
 the SDK, or if I misread the docs. Hrm.)

 4) What sort of identifier should I represent a contact with in my local 
 data, so I can later get their most-current data?

   * There was a thread about this on the mailing list, which someone could 
 probably boil down into a sample

 5) How do I set a contact photo?

   * There were SEVERAL threads on this on the mailing list, which could 
 probably boil down into a sample.

 6) How do I add a contact to the address book from within an app?

   * There's been at least one vague thread on this, which... maybe can be a 
 sample?

 7) How do I work with groups? (Create a group, delete a group, get or alter 
 group membership.)

   * I don't think there's been a good answer to this.

 8) How do I add custom data to a contact?

   * I don't think there's been a clear answer to this.

 9) How do I /get/ the nifty status messages and the source for them (a'la 
 'Away for lunch' on 'Google Talk,' or 'eating a pie!' on 'Facebook'), so I 
 can display them alongside a contact in my own app? (Alternatively, some ask 
 how they can set the nifty status messages and have them appear in the 
 QuickContact bar or in other apps.)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 emulator (Droid skin) crawls

2009-12-10 Thread Sprouts
me four

On 1 Des, 16:57, kanatacrude garnet.ulr...@gmail.com wrote:
 I have the same issue. Eclipse 3.4.2 with the 2.0 SDK,ADT0.9.4 .

 Android2.0 emulationslowas molasses, 1.6 is fine.

 Hmm.  Guess not too many people have this problem given the lack of
 replies...

 garnet

 On Nov 12, 11:07 pm, Jay-andro jayan...@gmail.com wrote:

  Is it just me or is everyone experiencing excruciatinglyslowstartup
  time followed by extermely poor responsiveness on theAndroid2.0
  emulator? I've got Eclipse Ganymede 3.4.1,AndroidSDK 5. MyAndroid
  1.5 emulator launches in a flash and performs pretty close to the
  device itself. Whereas 2.0 moves in super-slow-mo.

  I'm using the Droid skin fromhttp://teavuihuang.com/android/

  The hardware I'm running on is more than capable, albeit I admit I'm
  on Vista :-(

  The point is the old emulator flies (and all my other apps fly), and
  the new emulator crawls.

  Any ideas?
  Thanks
  Jay

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-12-05 Thread ghassett
Yes Dmitri, this is exactly what I am doing -- I am not manually
inserting records into the contacts db like the test case does, but
there is definitely a contact with a mobile phone number
617939 (with real digits, not xs), and when I open a cursor on
the query:

Uri filterUri1 = Uri.withAppendedPath(Phones.CONTENT_FILTER_URL,
617939); // with real digits, not xs

I get back a valid cursor, but no rows (moveToFirst() returns false)
-- on 2.0 emulator only.  On 1.6 emulator, it works fine.

// greg //

On Dec 4, 7:21 pm, Dmitri Plotnikov dplotni...@google.com wrote:
 Hi Greg,

 Take a look at the testPhonesFilterQuery unit test we have for
 verifying the behavior in question:

 http://android.git.kernel.org/?p=platform/packages/providers/Contacts...

 Is what it's doing correct? Is it different from what you are doing?

 Thank you,
 - Dmitri

 On Fri, Dec 4, 2009 at 4:00 PM, ghassett greghass...@gmail.com wrote:
  Hi Dmitri -- I am not sure that the old API is still functional.  I am
  using what I think is the standard way of getting a display name from
  a phone number -- see the code below -- and it functions on a 1.6
  emulator but on on a 2.0 emulator.  Am I doing something wrong?  Is
  there an example somewhere of how to get a contact name from a phone
  number that will function in 1.5, 1.6, and 2.0?

  Here's the code -- it works when run in the 1.6 emulator, but not in
  the 2.0 emulator (Cursor comes back non-null, but there are no records
  so moveToFirst returns false):

 public String getDisplayName (ContentResolver contentResolver)
 {
 String retval = mPhoneNumber;

 Cursor cursor = contentResolver.query(
 Uri.withAppendedPath 
  (Contacts.Phones.CONTENT_FILTER_URL,
  Uri.encode(mPhoneNumber)),
 new String[] { Contacts.Phones.DISPLAY_NAME 
  },
 null, null, null);

 if (cursor != nullcursor.moveToFirst())
 {
 retval = cursor.getString(0);
 }

 return retval;
 }

  // thanks // greg //

  On Oct 30, 3:05 pm, Dmitri Plotnikov dplotni...@google.com wrote:
  It's deprecated, not removed.  The old API is still functional, but with
  restrictions:

  1. If your app was using something non-public, that part is likely to 
  break.
   We tested a bunch of apps on the market against the legacy API - most
  worked, but some did not.  Those were the cases when the app was using some
  knowledge of the undocumented underlying database structure.
  2. Legacy API will only give you access to the primary account, i.e. the
  first Google account you add to the phone.

  - Dmitri

  On Fri, Oct 30, 2009 at 11:40 AM, nEx.Software 
  email.nex.softw...@gmail.com

   wrote:

   Hold up... I'm confused. Are you saying that Contacts portion of the
   SDK is deprecated? Whatever happened to stick to the SDK because
   those are stable apis that won't break in future versions? Very
   disappointing...

   On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
Could you post the exact Uri you're passing to query()?  As the
javadoc describes, you need to append a filter string to the
CONTENT_FILTER_URI so it knows what to filter on.

Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI,
   phoneNumber);

Also, you might be able to skip your second step, since you can
directly ask for the PhoneLookup.DISPLAY_NAME column in the
projection.

j

On Fri, Oct 30, 2009 at 8:05 AM, agirardello

andrea.girarde...@gmail.com wrote:

 Dear all,

 I'm trying to adapt my application (Personalytics) for the brand new
 Android 2.0, however I'm facing an issue while accessing contacts'
 phone numbers...

 What I need to do is to retrieve the name associated to a stored
 contact based on his/her phone number. At present I'm doing this in
 two steps:
 1) from a phone number I get the corresponding ID of the stored
 contact (if present)
 2) I retrieve the contact's name based on that ID

 I managed to use the correct CONTENT_URI for reading contacts by 
 using
 reflection to be fully compatible with Android 2.0
 (ContactsContract.Contacts.CONTENT_URI) and the previous versions
 (People.CONTENT_URI).

 Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
 and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
 which is needed by step 2) mentioned above. But as soon as I try to
 get a contentResolver by using
 ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
 exception:

 java.lang.IllegalArgumentException: Unknown URL
   content://com.android.contacts/phone_lookup

 This looks really strange to me, since it should be correct (it is
 part of the official API)! Moreover, I tried to look at the API

Re: [android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-12-05 Thread Dmitri Plotnikov
Then it has to be an emulator issue, because the test passes fine on Droid.

See if you can read the phone number using the plain Data.CONTENT_URI API.
If you can, the issue is indeed with the lookup URI.

On Dec 5, 2009 8:37 AM, ghassett greghass...@gmail.com wrote:

Yes Dmitri, this is exactly what I am doing -- I am not manually
inserting records into the contacts db like the test case does, but
there is definitely a contact with a mobile phone number
617939 (with real digits, not xs), and when I open a cursor on
the query:

Uri filterUri1 = Uri.withAppendedPath(Phones.CONTENT_FILTER_URL,
617939); // with real digits, not xs

I get back a valid cursor, but no rows (moveToFirst() returns false)
-- on 2.0 emulator only.  On 1.6 emulator, it works fine.

// greg //

On Dec 4, 7:21 pm, Dmitri Plotnikov dplotni...@google.com wrote:  Hi
Greg,   Take a look at th...
 http://android.git.kernel.org/?p=platform/packages/providers/Contacts...

  Is what it's doing correct? Is it different from what you are doing?  
Thank you,  - Dmitri ...

 On Fri, Dec 4, 2009 at 4:00 PM, ghassett greghass...@gmail.com wrote: 
 Hi Dmitri -- I am not ...
--

You received this message because you are subscribed to the Google Groups
Android Developers group...

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-12-04 Thread Dmitri Plotnikov
Hi Greg,

Take a look at the testPhonesFilterQuery unit test we have for
verifying the behavior in question:

http://android.git.kernel.org/?p=platform/packages/providers/ContactsProvider.git;a=blob;f=tests/src/com/android/providers/contacts/LegacyContactsProviderTest.java;hb=HEAD

Is what it's doing correct? Is it different from what you are doing?

Thank you,
- Dmitri


On Fri, Dec 4, 2009 at 4:00 PM, ghassett greghass...@gmail.com wrote:
 Hi Dmitri -- I am not sure that the old API is still functional.  I am
 using what I think is the standard way of getting a display name from
 a phone number -- see the code below -- and it functions on a 1.6
 emulator but on on a 2.0 emulator.  Am I doing something wrong?  Is
 there an example somewhere of how to get a contact name from a phone
 number that will function in 1.5, 1.6, and 2.0?

 Here's the code -- it works when run in the 1.6 emulator, but not in
 the 2.0 emulator (Cursor comes back non-null, but there are no records
 so moveToFirst returns false):

        public String getDisplayName (ContentResolver contentResolver)
        {
                String retval = mPhoneNumber;

                Cursor cursor = contentResolver.query(
                                Uri.withAppendedPath 
 (Contacts.Phones.CONTENT_FILTER_URL,
 Uri.encode(mPhoneNumber)),
                                new String[] { Contacts.Phones.DISPLAY_NAME },
                                null, null, null);

                if (cursor != null    cursor.moveToFirst())
                {
                        retval = cursor.getString(0);
                }

                return retval;
        }


 // thanks // greg //



 On Oct 30, 3:05 pm, Dmitri Plotnikov dplotni...@google.com wrote:
 It's deprecated, not removed.  The old API is still functional, but with
 restrictions:

 1. If your app was using something non-public, that part is likely to break.
  We tested a bunch of apps on the market against the legacy API - most
 worked, but some did not.  Those were the cases when the app was using some
 knowledge of the undocumented underlying database structure.
 2. Legacy API will only give you access to the primary account, i.e. the
 first Google account you add to the phone.

 - Dmitri

 On Fri, Oct 30, 2009 at 11:40 AM, nEx.Software email.nex.softw...@gmail.com

  wrote:

  Hold up... I'm confused. Are you saying that Contacts portion of the
  SDK is deprecated? Whatever happened to stick to the SDK because
  those are stable apis that won't break in future versions? Very
  disappointing...

  On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
   Could you post the exact Uri you're passing to query()?  As the
   javadoc describes, you need to append a filter string to the
   CONTENT_FILTER_URI so it knows what to filter on.

   Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI,
  phoneNumber);

   Also, you might be able to skip your second step, since you can
   directly ask for the PhoneLookup.DISPLAY_NAME column in the
   projection.

   j

   On Fri, Oct 30, 2009 at 8:05 AM, agirardello

   andrea.girarde...@gmail.com wrote:

Dear all,

I'm trying to adapt my application (Personalytics) for the brand new
Android 2.0, however I'm facing an issue while accessing contacts'
phone numbers...

What I need to do is to retrieve the name associated to a stored
contact based on his/her phone number. At present I'm doing this in
two steps:
1) from a phone number I get the corresponding ID of the stored
contact (if present)
2) I retrieve the contact's name based on that ID

I managed to use the correct CONTENT_URI for reading contacts by using
reflection to be fully compatible with Android 2.0
(ContactsContract.Contacts.CONTENT_URI) and the previous versions
(People.CONTENT_URI).

Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
which is needed by step 2) mentioned above. But as soon as I try to
get a contentResolver by using
ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
exception:

java.lang.IllegalArgumentException: Unknown URL
  content://com.android.contacts/phone_lookup

This looks really strange to me, since it should be correct (it is
part of the official API)! Moreover, I tried to look at the API
Demos project, in particular to the classes:

com.example.android.apis.view.List2
com.example.android.apis.view.List3

which are still using the deprecated People.CONTENT_URI and
Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
course I have sample contacts in the emulator).

- Do you have any suggestion to solve this problem?
- Or is there another approach I can use to get the name of a contact
based on one of his/her numbers? (This must work on all versions of
Android)

Thank you ;-)

Andrea

   

Re: [android-developers] Re: Android 2.0 emulator (Droid skin) crawls

2009-12-02 Thread Magic.Xie
Me too.

2009/12/1 kanatacrude garnet.ulr...@gmail.com

 I have the same issue. Eclipse 3.4.2 with the 2.0 SDK, ADT 0.9.4 .

 Android 2.0 emulation slow as molasses, 1.6 is fine.

 Hmm.  Guess not too many people have this problem given the lack of
 replies...

 garnet

 On Nov 12, 11:07 pm, Jay-andro jayan...@gmail.com wrote:
  Is it just me or is everyone experiencing excruciatingly slow startup
  time followed by extermely poor responsiveness on the Android 2.0
  emulator? I've got Eclipse Ganymede 3.4.1, Android SDK 5. My Android
  1.5 emulator launches in a flash and performs pretty close to the
  device itself. Whereas 2.0 moves in super-slow-mo.
 
  I'm using the Droid skin fromhttp://teavuihuang.com/android/
 
  The hardware I'm running on is more than capable, albeit I admit I'm
  on Vista :-(
 
  The point is the old emulator flies (and all my other apps fly), and
  the new emulator crawls.
 
  Any ideas?
  Thanks
  Jay

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2.0 Review

2009-12-02 Thread DarkWhoppy
I've been using Android since v1.0 and Dianne is right. I don't have
v2.0 on my myTouch but there are options to turn on screen animations.
Also, the dialer has always had big buttons... Do you USE an Android
phone? Or have you just recently been using Android and feel you know
enough to write an article?

On Dec 1, 7:51 pm, Dianne Hackborn hack...@android.com wrote:
 Um.

 they do themselves repeated injustice by presenting their technology on
 very weak hardware specifications

 What is Droid?

 The Vibrate on Keypress - where did we see this before? Its very similar
 to the HTC Hero.

 Actually it's been a feature of the standard platform IME since its first
 version.

 Android 2.0 does have some surprises up its sleeve: new widgets and new
 classes that give it that iPhone feeling: fade-in, fade out
 sexy-touch-and-feel.

 I don't think there were any new widget classes in 2.0, nor significant new
 app widgets (that go on the home screen).  And the picture shown here is a
 little strange, since I don't think that api demo nor the controls in it
 changed significantly in 2.0 (there may have been some smallish tweaks to
 graphics as they were redone in high density).

 Also as far as animations -- the animations have always been a part of the
 platform since 1.0, but were turned off by default.  1.5 introduced a
 visible preference to turn them on, but left it off by default.  2.0 made
 this on by default, and added new animations involving the wallpaper since
 the wallpaper in 2.0 became a separate independent plane that applications
 could sit on top of.

 Finally, someone at Android figured out that increasing the button sizes
 for a phone dialer can only make the OS more user-friendly.

 This is really confusing since I think the buttons in 2.0 are actually a bit
 smaller, to allow space for the additional buttons on the bottom. :)  The
 graphics did change, which makes them look a little larger horizontally, but
 the hit area is the same in that direction (and a little smaller
 vertically).

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 emulator (Droid skin) crawls

2009-12-02 Thread ironosity
Me three.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 source group

2009-12-01 Thread Walles
This might be a bit crude, but what I usually do is this:

1. Search Google for:
mediarecorder.java site:.kernel.org

2. Click on the first hit.

3. Find MediaRecorder.java on that page and click on the blob link
next to it.

4. Click on HEAD.

I've always found the source code I wanted this way.  YMMV.

  Cheers //Johan

On 30 Nov, 17:49, me michaeltcon...@gmail.com wrote:
     Would someone be kind enough to zipup the android 2.0 source code
 related to the MediaRecorder class and email it to me?  My code works
 fine in the emulator but MediaRecorder.Start() is failing on the
 droid.  There error message only says could not start.

 Thanks
 michaelto...@yahoo.com

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 emulator (Droid skin) crawls

2009-12-01 Thread kanatacrude
I have the same issue. Eclipse 3.4.2 with the 2.0 SDK, ADT 0.9.4 .

Android 2.0 emulation slow as molasses, 1.6 is fine.

Hmm.  Guess not too many people have this problem given the lack of
replies...

garnet

On Nov 12, 11:07 pm, Jay-andro jayan...@gmail.com wrote:
 Is it just me or is everyone experiencing excruciatingly slow startup
 time followed by extermely poor responsiveness on the Android 2.0
 emulator? I've got Eclipse Ganymede 3.4.1, Android SDK 5. My Android
 1.5 emulator launches in a flash and performs pretty close to the
 device itself. Whereas 2.0 moves in super-slow-mo.

 I'm using the Droid skin fromhttp://teavuihuang.com/android/

 The hardware I'm running on is more than capable, albeit I admit I'm
 on Vista :-(

 The point is the old emulator flies (and all my other apps fly), and
 the new emulator crawls.

 Any ideas?
 Thanks
 Jay

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 camera.setParameters(p) - Picture size must be 213x350?

2009-11-30 Thread Garfield
In 2.0, apps should call getSupportedPictureSizes to get valid picture
sizes and then setPictureSize.

http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPictureSizes()

On Nov 17, 12:28 am, Streets Of Boston flyingdutc...@gmail.com
wrote:
 That's just in the emulator. The emulatedcameraonly 'takes' 213x350
 pixel pictures.
 And you need to deal with it anyway in your code, just in case you set
 some picture width/height that is not supported by some real Android
 phone.

 On Oct 29, 10:03 am, chrispix chris...@gmail.com wrote:



  I am having an issue w/ 2.0 in the emulator when I am trying to set a
  couple of parameters.  Including the size.

  It appears these messages appear.. I guess my question is, why is the
  picture size stuck at 213x350? If I set my picture size to 640x480 it
  fails.

  Chris.

  10-29 14:55:24.261: DEBUG/CameraService(31): getParameters(picture-
  format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-
  rate=15;preview-size=176x144)
  10-29 14:55:24.261: DEBUG/CameraService(31): setParameters(preview-
  size=176x144;preview-format=yuv422sp;picture-size=640x480;picture-
  format=jpeg;preview-frame-rate=15)
  10-29 14:55:24.261: ERROR/CameraHardwareStub(31): Still picture size
  must be size of canned JPEG (213x350)
  10-29 14:55:24.271: DEBUG/CameraService(31): setParameters(focus-
  mode=auto;preview-size=176x144;preview-format=yuv422sp;picture-
  size=640x480;rotation=90;picture-format=jpeg;preview-frame-rate=15)
  10-29 14:55:24.271: ERROR/CameraHardwareStub(31): Still picture size
  must be size of canned JPEG (213x350)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-28 Thread ravi prasad
Hi,
Does this SDK support gdata api's?
Regards
ravi prasad


On Oct 27, 9:45 pm, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-28 Thread Jorgesys
test

On 27 oct, 10:45, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-26 Thread Buddy
Thanks a lot for the work !

Regards

On Nov 4, 9:07 am, Nishant nish...@saltriver.com wrote:
 Hello,

 Why in-build javax.sound API of Java not introduced in Android 2.0?
 Lots of problems occur in Android Sound API (AudioTrack as well as
 MediaPlayer).

 Regards,
 Nishant Shah

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-18 Thread GDroid
I would like to add one more question to this issue:

15) What is the best way to write the code so in case the API Level is
below 5, some of the contacts actions can still be done correctly.

As far as I've checked when publishing an application on the market
there is no way to publish two apks, for different API levels. As
noted in other threads, the only Phone I know of currently running
Android 2.0 is the Motorola Droid. My guess is that every developer
would like to be able to support other/older phones as well.



On Nov 17, 8:38 pm, Rachel Blackman ceruleanspa...@gmail.com wrote:
 On Nov 17, 2009, at 10:21 AM, Jeff Sharkey wrote:

  [ ... snip ... ]

 Thank you!  I'll try to write up an updated FAQ this evening, with some short 
 examples written for various queries, and post a draft. :)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-18 Thread Rachel Blackman

On Nov 18, 2009, at 1:43 AM, GDroid wrote:

 I would like to add one more question to this issue:
 
 15) What is the best way to write the code so in case the API Level is
 below 5, some of the contacts actions can still be done correctly.
 
 As far as I've checked when publishing an application on the market
 there is no way to publish two apks, for different API levels. As
 noted in other threads, the only Phone I know of currently running
 Android 2.0 is the Motorola Droid. My guess is that every developer
 would like to be able to support other/older phones as well.

If I understand rightly from what the Google folks have said in this thread so 
far, as long as you're willing to accept the limitations of the old API 
(dealing only with the raw contacts of the primary Google account, not the 
combined ones) AND you are not using any private contacts API, things should 
still work.  

If you have specific bits of contact goo that are not working at all under 2.0, 
go ahead and share 'em so that people can hash them out? :)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-18 Thread Jeff Sharkey
 15) What is the best way to write the code so in case the API Level is
 below 5, some of the contacts actions can still be done correctly.

Here's an excellent example that uses new ContactsContact APIs when
available, or otherwise falls back to the original API:

http://code.google.com/p/android-business-card/


-- 
Jeff Sharkey
jshar...@android.com

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 (eclair) source

2009-11-17 Thread Jeff Boody
[My Problem]

repo init -u git://android.git.kernel.org/platform/manifest.git

...

Getting manifest ...
   from git://android.git.kernel.org/platform/manifest.git
ssh: connect to host partner.source.android.com port 22: Connection
timed out
fatal: The remote end hung up unexpectedly
fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git

[Fix]

rm -rf .repo
mv ~/.gitconfig ~/.gitconfig.bak
repo init -u git://android.git.kernel.org/platform/manifest.git

Hope this helps ...

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-17 Thread Jeff Sharkey
4) What sort of identifier should I represent a contact with in my
local data, so I can later get their most-current data?

Use lookup-style Uris, as they are designed to help with fuzzy
resolution when the contact changes, or is split/joined by the user.
Contacts.getLookupUri() and Data.getContactLookupUri() can help you
build these lookup Uris from columns when you already know them, or
from normal ContentUris.withAppendedId()-style Uris.


6) How do I add a contact to the address book from within an app?

One of the easiest ways is to use Intents.Insert, since it doesn't
require adding the WRITE_CONTACTS permission to your app:

http://d.android.com/reference/android/provider/ContactsContract.Intents.Insert.html


7) How do I add custom data to a contact?

Pick a well-scoped MIME-type and just start using it as Data.MIMETYPE
when inserting custom Data rows.  For example, a row describing a VoIP
profile might use something like
vnd.android.cursor.item/vnd.com.example.voip.profile.


9) How do I /get/ the nifty status messages and the source for them
(a'la 'Away for lunch' on 'Google Talk,' or 'eating a pie!' on
'Facebook'), so I can display them alongside a contact in my own app?
(Alternatively, some ask how they can set the nifty status messages
and have them appear in the QuickContact bar or in other apps.)

Status messages like that can be read through StatusUpdates, and each
row is strongly tied to a Data row.  When status information is
displayed across the system, there is logic that picks the best
update based on timestamp.

http://d.android.com/reference/android/provider/ContactsContract.StatusUpdates.html

To add StatusUpdates you should attach them to a specific RawContact
owned by your application.  (This allows users to split and join the
RawContact from your service to the correct person in their address
book.)


10) How do I add an action to the QuickContact bar for a contact?

This is partially covered in this thread:

http://groups.google.com/group/android-developers/browse_thread/thread/fe814aa9149da1f0/

When Quick Contact encounters a custom Data row, it follows that row
back to the owning sync adapter (through ACCOUNT_NAME and _TYPE) to
look for XML metadata that describes how to render the row, both as a
list item when viewing the contact, and as a Quick Contact icon.  The
Quick Contact case also performs PackageManager queries to find apps
that support ACTION_VIEW on the custom MIME-type defined for that row,
which means you'll need to add an intent-filter.


13) How do I add a contact to a group?
14) How do I remove a contact from a group?

Similar to the original Contacts API, RawContacts can contain Data
rows that indicate GroupMembership.


-- 
Jeff Sharkey
jshar...@android.com

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-17 Thread Rachel Blackman

On Nov 17, 2009, at 10:21 AM, Jeff Sharkey wrote:

 [ ... snip ... ]

Thank you!  I'll try to write up an updated FAQ this evening, with some short 
examples written for various queries, and post a draft. :)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread stanlick
Hey Dmitri --

I have a question regarding the legacy apps only having access to the
primary account.  I am writing an application that interfaces with
contacts and started on it before 2.0 was released.  I am developing
with a Motorola CLIQ running 1.5 and my app works fine.  Today, I
purchased a Droid (2.0) and after setting it up I installed this 1.5
application, only to find that I have a much larger list of contacts
and the names in the list are all blank!  The code to read the
contacts is as follows:

String[] PROJECTION = new String[] { Contacts.People._ID,
Contacts.PeopleColumns.NAME };
Cursor c = managedQuery(Contacts.People.CONTENT_URI, PROJECTION,
null,
null, Contacts.People.DEFAULT_SORT_ORDER);

startManagingCursor(c);
adapter = new SimpleCursorAdapter(this,

android.R.layout.simple_list_item_multiple_choice, c,
new String[] { Contacts.PeopleColumns.NAME },
new int[] { android.R.id.text1 });
return adapter;

Can you riddle me this?  Since I selected google mail as an already
existing source of contacts during the activation, was this somehow
designated my primary account?  I notice this code is not picking up
contacts I add by hand to the Droid either.  I understand the design
challenges with merging many lists, so I won't scream about this to
you.  However, can you tell me how I would read the contacts under 2.0
and if there is a test I could make in my class to read them the 2.0
way or not?  Also, can you tell me how the contact primary key comes
into play?  I had to create my own SQL database to keep track of my
contact related attributes and I am keying on the _id from the contact
database.

Peace,
Scott



On Oct 30, 2:05 pm, Dmitri Plotnikov dplotni...@google.com wrote:
 It's deprecated, not removed.  The old API is still functional, but with
 restrictions:

 1. If your app was using something non-public, that part is likely to break.
  We tested a bunch of apps on the market against the legacy API - most
 worked, but some did not.  Those were the cases when the app was using some
 knowledge of the undocumented underlying database structure.
 2. Legacy API will only give you access to the primary account, i.e. the
 first Google account you add to the phone.

 - Dmitri

 On Fri, Oct 30, 2009 at 11:40 AM, nEx.Software email.nex.softw...@gmail.com

  wrote:

  Hold up... I'm confused. Are you saying that Contacts portion of the
  SDK is deprecated? Whatever happened to stick to the SDK because
  those are stable apis that won't break in future versions? Very
  disappointing...

  On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
   Could you post the exact Uri you're passing to query()?  As the
   javadoc describes, you need to append a filter string to the
   CONTENT_FILTER_URI so it knows what to filter on.

   Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI,
  phoneNumber);

   Also, you might be able to skip your second step, since you can
   directly ask for the PhoneLookup.DISPLAY_NAME column in the
   projection.

   j

   On Fri, Oct 30, 2009 at 8:05 AM, agirardello

   andrea.girarde...@gmail.com wrote:

Dear all,

I'm trying to adapt my application (Personalytics) for the brand new
Android 2.0, however I'm facing an issue while accessing contacts'
phone numbers...

What I need to do is to retrieve the name associated to a stored
contact based on his/her phone number. At present I'm doing this in
two steps:
1) from a phone number I get the corresponding ID of the stored
contact (if present)
2) I retrieve the contact's name based on that ID

I managed to use the correct CONTENT_URI for reading contacts by using
reflection to be fully compatible with Android 2.0
(ContactsContract.Contacts.CONTENT_URI) and the previous versions
(People.CONTENT_URI).

Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
which is needed by step 2) mentioned above. But as soon as I try to
get a contentResolver by using
ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
exception:

java.lang.IllegalArgumentException: Unknown URL
  content://com.android.contacts/phone_lookup

This looks really strange to me, since it should be correct (it is
part of the official API)! Moreover, I tried to look at the API
Demos project, in particular to the classes:

com.example.android.apis.view.List2
com.example.android.apis.view.List3

which are still using the deprecated People.CONTENT_URI and
Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
course I have sample contacts in the emulator).

- Do you have any suggestion to solve 

Re: [android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread Dianne Hackborn
On Fri, Nov 6, 2009 at 6:31 PM, Ravi textlo...@gmail.com wrote:

 Now 2.0 Breaks every thing.


Wow that's pretty over-the-top.  The original contacts API still works, as
long as you weren't using private parts of it, and only for the primary
Google account.  So it still gives you the same functionality (the new
feature of additional accounts is not accessible from it, but that is why a
new API was required) as before.  And as we've said repeatedly for
everything, if you use private APIs you will break in the future, so that
shouldn't be a surprise.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread nEx.Software
And as we've said repeatedly for everything, if you use private APIs
you will break in the future, so that shouldn't be a surprise.

You can also get your name on my handy dandy androidhallofshame
website for using private APIs. :)

On Nov 17, 1:31 pm, Dianne Hackborn hack...@android.com wrote:
 On Fri, Nov 6, 2009 at 6:31 PM, Ravi textlo...@gmail.com wrote:
  Now 2.0 Breaks every thing.

 Wow that's pretty over-the-top.  The original contacts API still works, as
 long as you weren't using private parts of it, and only for the primary
 Google account.  So it still gives you the same functionality (the new
 feature of additional accounts is not accessible from it, but that is why a
 new API was required) as before.  And as we've said repeatedly for
 everything, if you use private APIs you will break in the future, so that
 shouldn't be a surprise.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread stanlick
Both Wow! and over-the-top.  Now I am excited.  This pattern/technique
was lifted from a distinguished Android pro's recent textbook.  So
does the wow imply there is a better way to accomplish the mission?  I
think I considered the contact PICK Intent, but I need to allow the
user to select multiples.  If you can advise a published way to pull
this off across the a- versions, I may just buy you a lovely beverage!

Peace,
Scott

On Nov 17, 2:31 pm, Dianne Hackborn hack...@android.com wrote:
 On Fri, Nov 6, 2009 at 6:31 PM, Ravi textlo...@gmail.com wrote:
  Now 2.0 Breaks every thing.

 Wow that's pretty over-the-top.  The original contacts API still works, as
 long as you weren't using private parts of it, and only for the primary
 Google account.  So it still gives you the same functionality (the new
 feature of additional accounts is not accessible from it, but that is why a
 new API was required) as before.  And as we've said repeatedly for
 everything, if you use private APIs you will break in the future, so that
 shouldn't be a surprise.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread Bonifaz
How do we then get all contacts/phonenumbers from all accounts?
If I use the new Contacts API and send an ACTION.PICK for phone
numbers like

Intent i = new Intent(Intent.ACTION_PICK,
android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_URI);

it doesn't give me for example Facebook account phone numbers.

even

Intent i = new Intent(Intent.ACTION_PICK,
android.provider.ContactsContract.Contacts.CONTENT_URI);

doesn't show a list of all available contacts from all accounts (again
I tried with Facebook contacts and they didn't show up).

Dianne, could you please tell us how we use the PICK intent to get a
list of all available phone numbers from all accounts.

This would be really helpful.


On Nov 17, 3:31 pm, Dianne Hackborn hack...@android.com wrote:
 On Fri, Nov 6, 2009 at 6:31 PM, Ravi textlo...@gmail.com wrote:
  Now 2.0 Breaks every thing.

 Wow that's pretty over-the-top.  The original contacts API still works, as
 long as you weren't using private parts of it, and only for the primary
 Google account.  So it still gives you the same functionality (the new
 feature of additional accounts is not accessible from it, but that is why a
 new API was required) as before.  And as we've said repeatedly for
 everything, if you use private APIs you will break in the future, so that
 shouldn't be a surprise.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 camera.setParameters(p) - Picture size must be 213x350?

2009-11-16 Thread Streets Of Boston
That's just in the emulator. The emulated camera only 'takes' 213x350
pixel pictures.
And you need to deal with it anyway in your code, just in case you set
some picture width/height that is not supported by some real Android
phone.

On Oct 29, 10:03 am, chrispix chris...@gmail.com wrote:
 I am having an issue w/ 2.0 in the emulator when I am trying to set a
 couple of parameters.  Including the size.

 It appears these messages appear.. I guess my question is, why is the
 picture size stuck at 213x350? If I set my picture size to 640x480 it
 fails.

 Chris.

 10-29 14:55:24.261: DEBUG/CameraService(31): getParameters(picture-
 format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-
 rate=15;preview-size=176x144)
 10-29 14:55:24.261: DEBUG/CameraService(31): setParameters(preview-
 size=176x144;preview-format=yuv422sp;picture-size=640x480;picture-
 format=jpeg;preview-frame-rate=15)
 10-29 14:55:24.261: ERROR/CameraHardwareStub(31): Still picture size
 must be size of canned JPEG (213x350)
 10-29 14:55:24.271: DEBUG/CameraService(31): setParameters(focus-
 mode=auto;preview-size=176x144;preview-format=yuv422sp;picture-
 size=640x480;rotation=90;picture-format=jpeg;preview-frame-rate=15)
 10-29 14:55:24.271: ERROR/CameraHardwareStub(31): Still picture size
 must be size of canned JPEG (213x350)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 (eclair) source

2009-11-16 Thread Master_Ne0
Not sure how accurate this info is, but i read (can't remember where
now! Doh!) that the eclair branch is not and will not be public. You
have to wait until they merge it into master, i think some modules
have been done done all ready.

Let us know if this wrong!!

Ne0

On 8 Nov, 06:51, jpntiger jpntiger.w...@gmail.com wrote:
 Anybody had success getting eclair source?

 On Nov 5, 9:27 am, Eric eric.gerv...@gmail.com wrote:

  I'm having the same issue. It used to say that there were noeclair
  branch. Fair enough. However now there is aneclairbranch, only repo
  fails to get it with the ugly error message outlined by Doug.

  Eric

  On Oct 28, 8:50 pm, tu tuqh...@163.com wrote:

   Yes, I also entered the same error message, some body can help us
   ASAP? thanks and best regards.

   On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote:

Any idea when theeclairsourcewill be available viagit?
If I try to init a repo with -beclair I get an error stating that
the manifest is missing.
If I init a repo to head there doesn't seem to be much/anyeclaircode
in there.

Why do I ask?  Well, the docs looks like they're still in the process
of being updated (fair enough) but certain methods that have now been
deprecated don't seem to have been replaced with ones that perform
similar tasks - I need to browse thesourceso I can find out how to
get my application working against this new build.

(I got the following init command 
fromhttp://source.android.com/download)

$ repo init -ugit://android.git.kernel.org/platform/manifest.git-beclair
Getting repo ...
   fromgit://android.git.kernel.org/tools/repo.git
remote: Counting objects: 945, done.
remote: Compressing objects: 100% (372/372), done.
remote: Total 945 (delta 592), reused 894 (delta 553)
Receiving objects: 100% (945/945), 282.14 KiB, done.
Resolving deltas: 100% (592/592), done.
.
.
.
 * [new branch]      eclair    - origin/eclair
.
.
.
Fromgit://android.git.kernel.org/platform/manifest
 * [new tag]        android-1.0 -android-1.0
fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 (eclair) source

2009-11-16 Thread joebowbeer
Eclair is now in AOSP
http://groups.google.com/group/android-platform/browse_thread/thread/db968455d490dfad

On Nov 16, 7:24 am, Master_Ne0 master.ne0s.soluti...@googlemail.com
wrote:
 Not sure how accurate this info is, but i read (can't remember where
 now! Doh!) that the eclair branch is not and will not be public. You
 have to wait until they merge it into master, i think some modules
 have been done done all ready.

 Let us know if this wrong!!

 Ne0

 On 8 Nov, 06:51, jpntiger jpntiger.w...@gmail.com wrote:

  Anybody had success getting eclair source?

  On Nov 5, 9:27 am, Eric eric.gerv...@gmail.com wrote:

   I'm having the same issue. It used to say that there were noeclair
   branch. Fair enough. However now there is aneclairbranch, only repo
   fails to get it with the ugly error message outlined by Doug.

   Eric

   On Oct 28, 8:50 pm, tu tuqh...@163.com wrote:

Yes, I also entered the same error message, some body can help us
ASAP? thanks and best regards.

On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote:

 Any idea when theeclairsourcewill be available viagit?
 If I try to init a repo with -beclair I get an error stating that
 the manifest is missing.
 If I init a repo to head there doesn't seem to be much/anyeclaircode
 in there.

 Why do I ask?  Well, the docs looks like they're still in the process
 of being updated (fair enough) but certain methods that have now been
 deprecated don't seem to have been replaced with ones that perform
 similar tasks - I need to browse thesourceso I can find out how to
 get my application working against this new build.

 (I got the following init command 
 fromhttp://source.android.com/download)

 $ repo init 
 -ugit://android.git.kernel.org/platform/manifest.git-beclair
 Getting repo ...
    fromgit://android.git.kernel.org/tools/repo.git
 remote: Counting objects: 945, done.
 remote: Compressing objects: 100% (372/372), done.
 remote: Total 945 (delta 592), reused 894 (delta 553)
 Receiving objects: 100% (945/945), 282.14 KiB, done.
 Resolving deltas: 100% (592/592), done.
 .
 .
 .
  * [new branch]      eclair    - origin/eclair
 .
 .
 .
 Fromgit://android.git.kernel.org/platform/manifest
  * [new tag]        android-1.0 -android-1.0
 fatal: manifest 'default.xml' not available
 fatal: manifest default.xml not found



-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android 2.0 (eclair) source

2009-11-16 Thread Dianne Hackborn
Hi, discussion about the source code should be directed to android-porting,
where these questions have probably already been answered.  Thanks!

On Mon, Nov 16, 2009 at 7:24 AM, Master_Ne0 
master.ne0s.soluti...@googlemail.com wrote:

 Not sure how accurate this info is, but i read (can't remember where
 now! Doh!) that the eclair branch is not and will not be public. You
 have to wait until they merge it into master, i think some modules
 have been done done all ready.

 Let us know if this wrong!!

 Ne0

 On 8 Nov, 06:51, jpntiger jpntiger.w...@gmail.com wrote:
  Anybody had success getting eclair source?
 
  On Nov 5, 9:27 am, Eric eric.gerv...@gmail.com wrote:
 
   I'm having the same issue. It used to say that there were noeclair
   branch. Fair enough. However now there is aneclairbranch, only repo
   fails to get it with the ugly error message outlined by Doug.
 
   Eric
 
   On Oct 28, 8:50 pm, tu tuqh...@163.com wrote:
 
Yes, I also entered the same error message, some body can help us
ASAP? thanks and best regards.
 
On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote:
 
 Any idea when theeclairsourcewill be available viagit?
 If I try to init a repo with -beclair I get an error stating that
 the manifest is missing.
 If I init a repo to head there doesn't seem to be
 much/anyeclaircode
 in there.
 
 Why do I ask?  Well, the docs looks like they're still in the
 process
 of being updated (fair enough) but certain methods that have now
 been
 deprecated don't seem to have been replaced with ones that perform
 similar tasks - I need to browse thesourceso I can find out how to
 get my application working against this new build.
 
 (I got the following init command fromhttp://
 source.android.com/download)
 
 $ repo init -ugit://
 android.git.kernel.org/platform/manifest.git-beclair
 Getting repo ...
fromgit://android.git.kernel.org/tools/repo.git
 remote: Counting objects: 945, done.
 remote: Compressing objects: 100% (372/372), done.
 remote: Total 945 (delta 592), reused 894 (delta 553)
 Receiving objects: 100% (945/945), 282.14 KiB, done.
 Resolving deltas: 100% (592/592), done.
 .
 .
 .
  * [new branch]  eclair- origin/eclair
 .
 .
 .
 Fromgit://android.git.kernel.org/platform/manifest
  * [new tag]android-1.0 -android-1.0
 fatal: manifest 'default.xml' not available
 fatal: manifest default.xml not found

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2.0 Google Maps Navigation and app use of turn-by-turn directions?

2009-11-15 Thread mobiledude
While I don't have an answer to this question, I would like to concur
with the sentiment in the hopes that this thread would get more
attention. I am currently working on developing a location based
service application and would like to use Google Maps Navigation as I
don't want to get involved in the navigation aspect of development.

Although an API would be ideal, I was thinking one possible way to do
this may be through a Content Provider (for example the Contacts
database). If Google Maps uses a Content Provider that an application
could get permission to access, then maybe the Content Provider can be
used to supply a destination address for instance. Just a thought.
Maybe someone out there may have some more insight into if or how one
can interface with Google Maps Navigation.

Thanks.

On Oct 29, 1:19 pm, blindfold seeingwithso...@gmail.com wrote:
 Is anything known about how an app may tap turn-by-turn directions
 generated by Android 2.0's Google MapsNavigation? Until now we were
 prohibited by the Google Maps ToS to offer turn-by-turn directions in
 our apps. Clearly it would be attractive to integrate some of that
 functionality in other mobile applications, or to be able to exert
 some level of control over Google MapsNavigationfrom one's app. In
 other words, are there any supplementary APIs for use with Google 
 MapsNavigation?

 Or does Google MapsNavigationrun as a Service such that at least one
 need not switch between applications to still get spoken turn-by-turn
 directions even while one's app Activity is running in the foreground?

 See also the discussion in the TTS-for-Android group 
 athttp://groups.google.com/group/tts-for-android/browse_thread/thread/4...

 Thanks!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 camera.setParameters(p) - Picture size must be 213x350?

2009-11-15 Thread mocrsoft jw
Saw the same error. The app works fine on Android 1.5 and 1.6.

On Oct 29, 7:03 am, chrispix chris...@gmail.com wrote:
 I am having an issue w/ 2.0 in the emulator when I am trying to set a
 couple of parameters.  Including the size.

 It appears these messages appear.. I guess my question is, why is the
 picture size stuck at 213x350? If I set my picture size to 640x480 it
 fails.

 Chris.

 10-29 14:55:24.261: DEBUG/CameraService(31): getParameters(picture-
 format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-
 rate=15;preview-size=176x144)
 10-29 14:55:24.261: DEBUG/CameraService(31): setParameters(preview-
 size=176x144;preview-format=yuv422sp;picture-size=640x480;picture-
 format=jpeg;preview-frame-rate=15)
 10-29 14:55:24.261: ERROR/CameraHardwareStub(31): Still picture size
 must be size of canned JPEG (213x350)
 10-29 14:55:24.271: DEBUG/CameraService(31): setParameters(focus-
 mode=auto;preview-size=176x144;preview-format=yuv422sp;picture-
 size=640x480;rotation=90;picture-format=jpeg;preview-frame-rate=15)
 10-29 14:55:24.271: ERROR/CameraHardwareStub(31): Still picture size
 must be size of canned JPEG (213x350)

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 and ADP (necessary to flash the ADP?)

2009-11-15 Thread Shrenik Vikam
if we want to use/create  the wireless or blue-tooth application
then what to use ?

On Nov 13, 4:57 pm, WoodManEXP woodman...@gmail.com wrote:
 How are we suppose to take advantage of the 2.0 upgrades if it is not
 going to be available for the ADPs? Will it ever be available for the
 ADPs?

 On Nov 12, 2:24 pm, Disconnect dc.disconn...@gmail.com wrote:

  That is because android 2.0 is closed source.

  On Thu, Nov 12, 2009 at 9:33 AM,WoodManEXPwoodman...@gmail.com wrote:
   Apologies if this is a silly question, but is it necessary to flash an
   updated OS into the ADP1 to run SDK version 5 apps in the ADP?

   If so where are the images? I do not see them 
   athttp://developer.htc.com/adp.html
   like for the other system images.

   Any one know?

   Thanks!

   --
   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@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK - BluetoothSocket Question

2009-11-14 Thread Chen Ganir
Nick,

Thanks. Didn't know which discussion board you were reading more
often :)

Thanks for your response.

Chen Ganir.


On Nov 14, 2:31 am, Nick Pelly npe...@google.com wrote:
 Answered this one on android-platform.





 On Thu, Nov 12, 2009 at 6:58 AM, Chen Ganir chen.ga...@gmail.com wrote:
  Hi.

  I've read the new API specifications for the BluetoothSocket and i
  encountered some unresolved issues regarding the connection
  limitations for BluetoothServerSocket.

  At
 http://developer.android.com/reference/android/bluetooth/BluetoothAda...
  there is a description of the Creation of BluetoothServerSocket.It
  says there that it creates a new listening RFCOMMsocketfor incoming
  connections. One should use accept to get the connected
  BluetoothSocket from this ServerSocket. My questions are :
  1. What happens if a connection is established before accept is
  called? Will it hold and wait for an accept command or dropped until
  an accept command is invoked and allow reconnection?
  2. Can more than one connections exist to a single
  BluetoothSocketServer?

  Athttp://developer.android.com/reference/android/bluetooth/BluetoothSer...
  the accept method is described. My questions are :
  3. Will i get a connected BluetoothSocket for a connection which was
  established prior to calling the accept method?
  4. What happens if after the first accept, i do another accept? Will i
  get another incoming connection? Or will the BluetoothServerSocket
  block any incoming connections until the previous connection is
  disconnected?
  5. If Connection Queue is available - what is the limit? how many
  connections will be held in Queue ?

  5. Does the BluetoothServerSocket support multiple connections from
  different devices? What about multiple connections from the same
  device?

  Athttp://code.google.com/p/apps-for-android/source/browse/trunk/BTClick...
  there is a sample application demonstrating the use of BluetoothSocket
  and BluetoothServerSocket. This application creates 7 different
  servers (different UUID's) and listens to 7 incoming connections on 7
  different servers. In addition, this sample closes the
  BluetoothServerSocket once a single connection is made to each of the
  servers. This does not show the behavior of the API as described in
  the official API documentation.

  I would appreciate any thoughts or ideas you have about this issue.

  Thanks,
  Chen Ganir.

  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-14 Thread Bonifaz
A Blog entry about the new Contacts API from Google covering these
points would be helpful.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 and ADP (necessary to flash the ADP?)

2009-11-13 Thread WoodManEXP
How are we suppose to take advantage of the 2.0 upgrades if it is not
going to be available for the ADPs? Will it ever be available for the
ADPs?



On Nov 12, 2:24 pm, Disconnect dc.disconn...@gmail.com wrote:
 That is because android 2.0 is closed source.

 On Thu, Nov 12, 2009 at 9:33 AM,WoodManEXPwoodman...@gmail.com wrote:
  Apologies if this is a silly question, but is it necessary to flash an
  updated OS into the ADP1 to run SDK version 5 apps in the ADP?

  If so where are the images? I do not see them 
  athttp://developer.htc.com/adp.html
  like for the other system images.

  Any one know?

  Thanks!

  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-12 Thread WoodManEXP
Xavier,

Where is the 2.0 system image for ADP?

On Oct 27, 11:45 am, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 and ADP (necessary to flash the ADP?)

2009-11-12 Thread Thomas Riley
Hello,

Sadly 2.0 is only available for the Motorola Droid at the moment, so
stick with a 2.0 AVD for now.


Tom.

On Nov 12, 2:33 pm, WoodManEXP woodman...@gmail.com wrote:
 Apologies if this is a silly question, but is it necessary to flash an
 updated OS into the ADP1 to run SDK version 5 apps in the ADP?

 If so where are the images? I do not see them 
 athttp://developer.htc.com/adp.html
 like for the other system images.

 Any one know?

 Thanks!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 and ADP (necessary to flash the ADP?)

2009-11-12 Thread WoodManEXP
Thank you Tom. This means the android:minSdkVersion in the Manifest
should stay at 3 or 4 for now, right, since the ADP can only get to 4?

On Nov 12, 9:56 am, Thomas Riley tomrile...@googlemail.com wrote:
 Hello,

 Sadly 2.0 is only available for the Motorola Droid at the moment, so
 stick with a 2.0 AVD for now.

 Tom.

 On Nov 12, 2:33 pm,WoodManEXPwoodman...@gmail.com wrote:

  Apologies if this is a silly question, but is it necessary to flash an
  updated OS into the ADP1 to run SDK version 5 apps in the ADP?

  If so where are the images? I do not see them 
  athttp://developer.htc.com/adp.html
  like for the other system images.

  Any one know?

  Thanks!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-10 Thread st...@lawrence-enterprise
Now just waiting for Android 2.0 Firmware for the Google Dev 1
Phone...   So can actually test apps.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 vs 1.6 not running

2009-11-10 Thread Chopcsu
Found the culprit.

I was calling Looper.prepare() in a thread outside of the main paint
thread, It seemed this stopped the painting.

Strange that 2.0 would not work but 1.6 worked.

On Nov 10, 5:03 pm, Chopcsu st...@kilsby.com.au wrote:
 I Have an app that is running fine in 1.6,

 I have now updated my sdk to 2.0 and the app never starts properly

 I was wondering if anyone had an idea of what would stop an app
 running on the newer version that runs fine usually.

 Once it is started, it runs threads correctly, but nothing gets
 displayed then i get the error

 WARN/ActivityManager(69): Activity idle timeout for HistoryRecord
 {43b57a38 com.vlm.DojoSquabble/.Mid}

 I have another application that is very similar that works correctly.
 Its manifest defines its Activity class
 as android:name=.Mid , whereas the app that is failing has it as
 android:name=Mid . Does not seem to make a difference when i change
 it but it is the only thing i can see that is different

 Any help would be appreciated but if I figure it out ill post my
 findings here anyway.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 web capabilities question

2009-11-10 Thread Tuno
Mark --

Thank you for the reply. I used the word streaming because my code
uses C# Stream objects to download the file (one for reading, one for
writing).

One thing I didn't make clear is that I want my application to execute
the downloads offline, in the background, something else I still
need to make sure is possible. (Similar to the way my gmail gets
downloaded while the Droid is in standby.)

-ted

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android 2.0 web capabilities question

2009-11-10 Thread Mark Murphy
Tuno wrote:
 Thank you for the reply. I used the word streaming because my code
 uses C# Stream objects to download the file (one for reading, one for
 writing).
 
 One thing I didn't make clear is that I want my application to execute
 the downloads offline, in the background, something else I still
 need to make sure is possible. (Similar to the way my gmail gets
 downloaded while the Droid is in standby.)

Sure, downloading in the background is perfectly fine.

You will want to create a Service that is scheduled via AlarmManager to
wake up and grab the files at your desired time. Since that work may
take a while, you'll need to grab a WakeLock, to make sure the phone
doesn't go back to sleep while the work is going on.

You can see an implementation of that pattern here:

http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm/

There's probably an existing app that does scheduled file downloads if
you don't want to write it yourself.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.6 Programming Books: http://commonsware.com/books

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 (eclair) source

2009-11-09 Thread jpntiger
Anybody had success getting eclair source?

On Nov 5, 9:27 am, Eric eric.gerv...@gmail.com wrote:
 I'm having the same issue. It used to say that there were noeclair
 branch. Fair enough. However now there is aneclairbranch, only repo
 fails to get it with the ugly error message outlined by Doug.

 Eric

 On Oct 28, 8:50 pm, tu tuqh...@163.com wrote:



  Yes, I also entered the same error message, some body can help us
  ASAP? thanks and best regards.

  On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote:

   Any idea when theeclairsourcewill be available via git?
   If I try to init a repo with -beclair I get an error stating that
   the manifest is missing.
   If I init a repo to head there doesn't seem to be much/anyeclaircode
   in there.

   Why do I ask?  Well, the docs looks like they're still in the process
   of being updated (fair enough) but certain methods that have now been
   deprecated don't seem to have been replaced with ones that perform
   similar tasks - I need to browse thesourceso I can find out how to
   get my application working against this new build.

   (I got the following init command fromhttp://source.android.com/download)

   $ repo init -u git://android.git.kernel.org/platform/manifest.git -beclair
   Getting repo ...
  from git://android.git.kernel.org/tools/repo.git
   remote: Counting objects: 945, done.
   remote: Compressing objects: 100% (372/372), done.
   remote: Total 945 (delta 592), reused 894 (delta 553)
   Receiving objects: 100% (945/945), 282.14 KiB, done.
   Resolving deltas: 100% (592/592), done.
   .
   .
   .
* [new branch]  eclair- origin/eclair
   .
   .
   .
   From git://android.git.kernel.org/platform/manifest
* [new tag]android-1.0 -android-1.0
   fatal: manifest 'default.xml' not available
   fatal: manifest default.xml not found

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 (eclair) source

2009-11-05 Thread Eric
I'm having the same issue. It used to say that there were no eclair
branch. Fair enough. However now there is an eclair branch, only repo
fails to get it with the ugly error message outlined by Doug.

Eric

On Oct 28, 8:50 pm, tu tuqh...@163.com wrote:
 Yes, I also entered the same error message, some body can help us
 ASAP? thanks and best regards.

 On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote:

  Any idea when theeclairsourcewill be available via git?
  If I try to init a repo with -beclair I get an error stating that
  the manifest is missing.
  If I init a repo to head there doesn't seem to be much/anyeclaircode
  in there.

  Why do I ask?  Well, the docs looks like they're still in the process
  of being updated (fair enough) but certain methods that have now been
  deprecated don't seem to have been replaced with ones that perform
  similar tasks - I need to browse thesourceso I can find out how to
  get my application working against this new build.

  (I got the following init command fromhttp://source.android.com/download)

  $ repo init -u git://android.git.kernel.org/platform/manifest.git -beclair
  Getting repo ...
     from git://android.git.kernel.org/tools/repo.git
  remote: Counting objects: 945, done.
  remote: Compressing objects: 100% (372/372), done.
  remote: Total 945 (delta 592), reused 894 (delta 553)
  Receiving objects: 100% (945/945), 282.14 KiB, done.
  Resolving deltas: 100% (592/592), done.
  .
  .
  .
   * [new branch]      eclair    - origin/eclair
  .
  .
  .
  From git://android.git.kernel.org/platform/manifest
   * [new tag]        android-1.0 -android-1.0
  fatal: manifest 'default.xml' not available
  fatal: manifest default.xml not found



-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread Nishant
Hello,

Why in-build javax.sound API of Java not introduced in Android 2.0?
Lots of problems occur in Android Sound API (AudioTrack as well as
MediaPlayer).

Regards,
Nishant Shah

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread poohtbear
Hi.
I'm trying to produce source code for the SDK (gather it from the git
repository and put it under ./sources directory under platform-2.0).
i can't however find a tag in the git repository of 2.0 ? can anyone
tell me why ? how do i check out the code of 2.0 ?

Eyal.

On Oct 27, 6:45 pm, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread Nishant
Hi,

You can download source code from:

http://android.git.kernel.org/?p=platform/dalvik.git;a=tree;hb=HEAD

Thanks  Regards,
Nishant Shah

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android 2.0 SDK is here!

2009-11-04 Thread Disconnect
Thats not 2.0.

ISTR 2.0 sources are tagged, but only the bare minimum to cover the
sdk gpl requirements.

On Wed, Nov 4, 2009 at 6:28 AM, Nishant nish...@saltriver.com wrote:
 Hi,

 You can download source code from:

 http://android.git.kernel.org/?p=platform/dalvik.git;a=tree;hb=HEAD

 Thanks  Regards,
 Nishant Shah

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-02 Thread Dmitri Plotnikov
It's deprecated, not removed.  The old API is still functional, but with
restrictions:

1. If your app was using something non-public, that part is likely to break.
 We tested a bunch of apps on the market against the legacy API - most
worked, but some did not.  Those were the cases when the app was using some
knowledge of the undocumented underlying database structure.
2. Legacy API will only give you access to the primary account, i.e. the
first Google account you add to the phone.

- Dmitri

On Fri, Oct 30, 2009 at 11:40 AM, nEx.Software email.nex.softw...@gmail.com
 wrote:


 Hold up... I'm confused. Are you saying that Contacts portion of the
 SDK is deprecated? Whatever happened to stick to the SDK because
 those are stable apis that won't break in future versions? Very
 disappointing...

 On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
  Could you post the exact Uri you're passing to query()?  As the
  javadoc describes, you need to append a filter string to the
  CONTENT_FILTER_URI so it knows what to filter on.
 
  Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI,
 phoneNumber);
 
  Also, you might be able to skip your second step, since you can
  directly ask for the PhoneLookup.DISPLAY_NAME column in the
  projection.
 
  j
 
  On Fri, Oct 30, 2009 at 8:05 AM, agirardello
 
 
 
  andrea.girarde...@gmail.com wrote:
 
   Dear all,
 
   I'm trying to adapt my application (Personalytics) for the brand new
   Android 2.0, however I'm facing an issue while accessing contacts'
   phone numbers...
 
   What I need to do is to retrieve the name associated to a stored
   contact based on his/her phone number. At present I'm doing this in
   two steps:
   1) from a phone number I get the corresponding ID of the stored
   contact (if present)
   2) I retrieve the contact's name based on that ID
 
   I managed to use the correct CONTENT_URI for reading contacts by using
   reflection to be fully compatible with Android 2.0
   (ContactsContract.Contacts.CONTENT_URI) and the previous versions
   (People.CONTENT_URI).
 
   Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
   and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
   which is needed by step 2) mentioned above. But as soon as I try to
   get a contentResolver by using
   ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
   exception:
 
   java.lang.IllegalArgumentException: Unknown URL
 content://com.android.contacts/phone_lookup
 
   This looks really strange to me, since it should be correct (it is
   part of the official API)! Moreover, I tried to look at the API
   Demos project, in particular to the classes:
 
   com.example.android.apis.view.List2
   com.example.android.apis.view.List3
 
   which are still using the deprecated People.CONTENT_URI and
   Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
   course I have sample contacts in the emulator).
 
   - Do you have any suggestion to solve this problem?
   - Or is there another approach I can use to get the name of a contact
   based on one of his/her numbers? (This must work on all versions of
   Android)
 
   Thank you ;-)
 
   Andrea
 
  --
  Jeff Sharkey
  jshar...@android.com
 --~--~-~--~~~---~--~~
 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 -~--~~~~--~~--~--~---



-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2.0 Source code

2009-11-01 Thread AndroidKing
anyone knows when 2.0 source will be public???

On Oct 31, 12:41 pm, AndroidKing rbasso...@gmail.com wrote:
 why isn't the source code for 2.0 on the public repository..

 developing for Android without looking at the source code is
 impossible due to poor APIs and or documentations

 please make this public ASAP, or most applications will break with 2.0

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android 2.0 Bluetooth Code Samples

2009-10-31 Thread ding eric
It's awesome

thanks CLC

On Thu, Oct 29, 2009 at 9:11 AM, CLC
clchen+...@google.comclchen%2b...@google.com
 wrote:


 Hi jb,

  Here is some sample code that uses Bluetooth:

 http://code.google.com/p/apps-for-android/source/browse/trunk/BTClickLinkCompete

  This is the demo that was shown in the Eclair 2.0 video. You run the
 app on two (or more) Android 2.0 devices, and you can then flick the
 Android robot between the screens of the devices as if it were all
 just one big screen.

 -Charles

 On Oct 27, 5:25 pm, jb jburket...@gmail.com wrote:
  Does anyone have any working code with the added Bluetooth support?
  Also, were you able to get Bluetooth working in the AVD? Thanks.

 --~--~-~--~~~---~--~~
 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 -~--~~~~--~~--~--~---



-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-10-30 Thread Jeff Sharkey

Could you post the exact Uri you're passing to query()?  As the
javadoc describes, you need to append a filter string to the
CONTENT_FILTER_URI so it knows what to filter on.

Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI, phoneNumber);

Also, you might be able to skip your second step, since you can
directly ask for the PhoneLookup.DISPLAY_NAME column in the
projection.

j



On Fri, Oct 30, 2009 at 8:05 AM, agirardello
andrea.girarde...@gmail.com wrote:

 Dear all,

 I'm trying to adapt my application (Personalytics) for the brand new
 Android 2.0, however I'm facing an issue while accessing contacts'
 phone numbers...

 What I need to do is to retrieve the name associated to a stored
 contact based on his/her phone number. At present I'm doing this in
 two steps:
 1) from a phone number I get the corresponding ID of the stored
 contact (if present)
 2) I retrieve the contact's name based on that ID

 I managed to use the correct CONTENT_URI for reading contacts by using
 reflection to be fully compatible with Android 2.0
 (ContactsContract.Contacts.CONTENT_URI) and the previous versions
 (People.CONTENT_URI).

 Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
 and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
 which is needed by step 2) mentioned above. But as soon as I try to
 get a contentResolver by using
 ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
 exception:

 java.lang.IllegalArgumentException: Unknown URL 
 content://com.android.contacts/phone_lookup

 This looks really strange to me, since it should be correct (it is
 part of the official API)! Moreover, I tried to look at the API
 Demos project, in particular to the classes:

 com.example.android.apis.view.List2
 com.example.android.apis.view.List3

 which are still using the deprecated People.CONTENT_URI and
 Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
 course I have sample contacts in the emulator).

 - Do you have any suggestion to solve this problem?
 - Or is there another approach I can use to get the name of a contact
 based on one of his/her numbers? (This must work on all versions of
 Android)

 Thank you ;-)

 Andrea
 




-- 
Jeff Sharkey
jshar...@android.com

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-30 Thread Marek Pola

Hello,

You probably need to set up the proxy settings in the Android
application's Settings. That did the trick for me.

See also this thread for other problems which was referenced above:
http://groups.google.com/group/android-developers/browse_thread/thread/63a44163a8d07cd9#

Regards
Marek

On Oct 29, 2:05 pm, Abhi abhishek.r.sha...@gmail.com wrote:
 Hi,

 I am having trouble upgrading my SDK 1.6 to 2.0 on my laptop. My
 laptop is behind my company's firewall and when I try to install the
 new SDK components using the Android SDK and AVD Manager, I get this
 error saying Failed to fetch 
 URLhttp://dl-ssl.google.com/android/repository/repository.xml,
 reason: Connection timed out: connect. I tried all methods, using
 Eclipse, using command 'android.bat update sdk' and also directly
 running 'SDK Setup.exe'.

 Please help! I need to get this new SDK running ASAP.

 Thanks,

 Abhi

 On Oct 27, 12:45 pm, Xavier Ducrohet x...@android.com wrote:

  Hello everyone!

  We've just announced the Android 2.0 
  SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

  If you already have the 1.6 SDK, note that you can simply use the SDK
  Manager to add Android 2.0 to your SDK. Make sure you also get the new
  SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
  shipped with 1.6) doesn't enforce dependencies between platforms and
  Tools (fixed in rev 3)

  For more information about using the SDK Manager, 
  see:http://developer.android.com/sdk/adding-components.html

  Have fun!
  Xav
  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-10-30 Thread nEx.Software

Hold up... I'm confused. Are you saying that Contacts portion of the
SDK is deprecated? Whatever happened to stick to the SDK because
those are stable apis that won't break in future versions? Very
disappointing...

On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
 Could you post the exact Uri you're passing to query()?  As the
 javadoc describes, you need to append a filter string to the
 CONTENT_FILTER_URI so it knows what to filter on.

 Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI, phoneNumber);

 Also, you might be able to skip your second step, since you can
 directly ask for the PhoneLookup.DISPLAY_NAME column in the
 projection.

 j

 On Fri, Oct 30, 2009 at 8:05 AM, agirardello



 andrea.girarde...@gmail.com wrote:

  Dear all,

  I'm trying to adapt my application (Personalytics) for the brand new
  Android 2.0, however I'm facing an issue while accessing contacts'
  phone numbers...

  What I need to do is to retrieve the name associated to a stored
  contact based on his/her phone number. At present I'm doing this in
  two steps:
  1) from a phone number I get the corresponding ID of the stored
  contact (if present)
  2) I retrieve the contact's name based on that ID

  I managed to use the correct CONTENT_URI for reading contacts by using
  reflection to be fully compatible with Android 2.0
  (ContactsContract.Contacts.CONTENT_URI) and the previous versions
  (People.CONTENT_URI).

  Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
  and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
  which is needed by step 2) mentioned above. But as soon as I try to
  get a contentResolver by using
  ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
  exception:

  java.lang.IllegalArgumentException: Unknown URL 
  content://com.android.contacts/phone_lookup

  This looks really strange to me, since it should be correct (it is
  part of the official API)! Moreover, I tried to look at the API
  Demos project, in particular to the classes:

  com.example.android.apis.view.List2
  com.example.android.apis.view.List3

  which are still using the deprecated People.CONTENT_URI and
  Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
  course I have sample contacts in the emulator).

  - Do you have any suggestion to solve this problem?
  - Or is there another approach I can use to get the name of a contact
  based on one of his/her numbers? (This must work on all versions of
  Android)

  Thank you ;-)

  Andrea

 --
 Jeff Sharkey
 jshar...@android.com
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-10-30 Thread Jeff Sharkey

The original, public android.provider.Contacts APIs that has shipped
since Android 1.0 are still very much supported, but are now marked as
deprecated.  There are additional features (like multiple accounts)
that will require upgrading to the new
android.provider.ContactsContract APIs to access.  For example, only
data from the primary account is exposed through the now-legacy
android.provider.Contacts APIs.

j


On Fri, Oct 30, 2009 at 11:40 AM, nEx.Software
email.nex.softw...@gmail.com wrote:

 Hold up... I'm confused. Are you saying that Contacts portion of the
 SDK is deprecated? Whatever happened to stick to the SDK because
 those are stable apis that won't break in future versions? Very
 disappointing...

 On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
 Could you post the exact Uri you're passing to query()?  As the
 javadoc describes, you need to append a filter string to the
 CONTENT_FILTER_URI so it knows what to filter on.

 Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI, phoneNumber);

 Also, you might be able to skip your second step, since you can
 directly ask for the PhoneLookup.DISPLAY_NAME column in the
 projection.

 j

 On Fri, Oct 30, 2009 at 8:05 AM, agirardello



 andrea.girarde...@gmail.com wrote:

  Dear all,

  I'm trying to adapt my application (Personalytics) for the brand new
  Android 2.0, however I'm facing an issue while accessing contacts'
  phone numbers...

  What I need to do is to retrieve the name associated to a stored
  contact based on his/her phone number. At present I'm doing this in
  two steps:
  1) from a phone number I get the corresponding ID of the stored
  contact (if present)
  2) I retrieve the contact's name based on that ID

  I managed to use the correct CONTENT_URI for reading contacts by using
  reflection to be fully compatible with Android 2.0
  (ContactsContract.Contacts.CONTENT_URI) and the previous versions
  (People.CONTENT_URI).

  Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
  and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
  which is needed by step 2) mentioned above. But as soon as I try to
  get a contentResolver by using
  ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
  exception:

  java.lang.IllegalArgumentException: Unknown URL 
  content://com.android.contacts/phone_lookup

  This looks really strange to me, since it should be correct (it is
  part of the official API)! Moreover, I tried to look at the API
  Demos project, in particular to the classes:

  com.example.android.apis.view.List2
  com.example.android.apis.view.List3

  which are still using the deprecated People.CONTENT_URI and
  Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
  course I have sample contacts in the emulator).

  - Do you have any suggestion to solve this problem?
  - Or is there another approach I can use to get the name of a contact
  based on one of his/her numbers? (This must work on all versions of
  Android)

  Thank you ;-)

  Andrea

 --
 Jeff Sharkey
 jshar...@android.com
 




-- 
Jeff Sharkey
jshar...@android.com

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-10-30 Thread nEx.Software

Jeff, thanks for clarifying. I'd hate to have seen a bunch of apps
break in the meantime.

On Oct 30, 1:26 pm, Jeff Sharkey jshar...@android.com wrote:
 The original, public android.provider.Contacts APIs that has shipped
 since Android 1.0 are still very much supported, but are now marked as
 deprecated.  There are additional features (like multiple accounts)
 that will require upgrading to the new
 android.provider.ContactsContract APIs to access.  For example, only
 data from the primary account is exposed through the now-legacy
 android.provider.Contacts APIs.

 j

 On Fri, Oct 30, 2009 at 11:40 AM, nEx.Software



 email.nex.softw...@gmail.com wrote:

  Hold up... I'm confused. Are you saying that Contacts portion of the
  SDK is deprecated? Whatever happened to stick to the SDK because
  those are stable apis that won't break in future versions? Very
  disappointing...

  On Oct 30, 11:12 am, Jeff Sharkey jshar...@android.com wrote:
  Could you post the exact Uri you're passing to query()?  As the
  javadoc describes, you need to append a filter string to the
  CONTENT_FILTER_URI so it knows what to filter on.

  Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_URI, phoneNumber);

  Also, you might be able to skip your second step, since you can
  directly ask for the PhoneLookup.DISPLAY_NAME column in the
  projection.

  j

  On Fri, Oct 30, 2009 at 8:05 AM, agirardello

  andrea.girarde...@gmail.com wrote:

   Dear all,

   I'm trying to adapt my application (Personalytics) for the brand new
   Android 2.0, however I'm facing an issue while accessing contacts'
   phone numbers...

   What I need to do is to retrieve the name associated to a stored
   contact based on his/her phone number. At present I'm doing this in
   two steps:
   1) from a phone number I get the corresponding ID of the stored
   contact (if present)
   2) I retrieve the contact's name based on that ID

   I managed to use the correct CONTENT_URI for reading contacts by using
   reflection to be fully compatible with Android 2.0
   (ContactsContract.Contacts.CONTENT_URI) and the previous versions
   (People.CONTENT_URI).

   Now I'm trying to do the same for Phones.CONTENT_URI (Android = 1.6)
   and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0)
   which is needed by step 2) mentioned above. But as soon as I try to
   get a contentResolver by using
   ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following
   exception:

   java.lang.IllegalArgumentException: Unknown URL 
   content://com.android.contacts/phone_lookup

   This looks really strange to me, since it should be correct (it is
   part of the official API)! Moreover, I tried to look at the API
   Demos project, in particular to the classes:

   com.example.android.apis.view.List2
   com.example.android.apis.view.List3

   which are still using the deprecated People.CONTENT_URI and
   Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of
   course I have sample contacts in the emulator).

   - Do you have any suggestion to solve this problem?
   - Or is there another approach I can use to get the name of a contact
   based on one of his/her numbers? (This must work on all versions of
   Android)

   Thank you ;-)

   Andrea

  --
  Jeff Sharkey
  jshar...@android.com

 --
 Jeff Sharkey
 jshar...@android.com
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0: Browser/WebView can no longer load fonts?

2009-10-30 Thread BoD

Here is the associated bug:

http://code.google.com/p/android/issues/detail?id=4448


BoD

On Oct 29, 11:57 pm, BoD bodl...@gmail.com wrote:
 Hi,

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 Suppress local search on key event

2009-10-30 Thread JP
I guess I'm answering myself again. *** And a question below.

First to get this out of the way: Suppressing the quick search box
works as before. Catch keyCode == KEY_SEARCH and return true; in the
overriden onKeyDown() or onKeyUp()

I got confused here for a while by the following problem:
Following the release notes I switched from overriding onKeyDown() to
onKeyUp() to call the desired functionality for all buttons with
alternate action. In my case, this includes BACK.
There's  a problem with _BACK however. With the physical keyboard on
an Ion running 1.6, onKeyUp() is being dispatched to the activity that
BACK returns to (one back in the call stack). That of course leads to
the unintended result of executing BACK there, now that onKeyUp() is
used to execute the alternative action of the BACK key. That, I
suppose, is behind the pattern in the release notes (http://
developer.android.com/intl/zh-TW/sdk/android-2.0.html),
using .startTracking() and a couple of additional, new methods. The
problem with this: This is 2.0 only, i.e. not backwards compatible,
and the following advice is to hack something together so the legacy
application (as the release notes so delicately put it) can function
on both 1.x and 2.0 devices. With no chance to test this on 2.0
without a new device that uses soft keys, I suppose. (Have had that
before)

Let me propose a much simpler approach: * Is it possible for an
app to query whether key events are issued in a key-down/key-up pair,
or key-up only? With such a switch it should be much simpler: Just
execute the alternative action following a key down for the variant
key-down/key-up versus following a key up.





On Oct 29, 10:05 pm, JP joachim.pfeif...@gmail.com wrote:
 One of my apps implements a search function which is invoked when the
 user presses the Search button.
 In 1.6, Android Quick Search Box can be suppressed by overriding
 Activity.onKeyDown() and picking out KEY_SEARCH.
 On Android 2.0, no more... Android's Quick Search pops up no matter
 whether Activity.onKeyDown(), Activity.onKeyUp() is overridden, or
 Activity.setDefaultKey(DEFAULT_KEYS_DISABLE) is set.

 Has anybody had any luck getting rid of the Android Quick Search?

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 SDK is here!

2009-10-30 Thread luoqii
cl working

On 10月28日, 上午12时45分, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.0 Bluetooth Code Samples

2009-10-29 Thread CLC

Hi jb,

  Here is some sample code that uses Bluetooth:
http://code.google.com/p/apps-for-android/source/browse/trunk/BTClickLinkCompete

  This is the demo that was shown in the Eclair 2.0 video. You run the
app on two (or more) Android 2.0 devices, and you can then flick the
Android robot between the screens of the devices as if it were all
just one big screen.

-Charles

On Oct 27, 5:25 pm, jb jburket...@gmail.com wrote:
 Does anyone have any working code with the added Bluetooth support?
 Also, were you able to get Bluetooth working in the AVD? Thanks.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 (eclair) source

2009-10-29 Thread tu

Yes, I also entered the same error message, some body can help us
ASAP? thanks and best regards.

On 10月29日, 上午2时53分, Doug dougforp...@gmail.com wrote:
 Any idea when theeclairsourcewill be available via git?
 If I try to init a repo with -beclair I get an error stating that
 the manifest is missing.
 If I init a repo to head there doesn't seem to be much/anyeclaircode
 in there.

 Why do I ask?  Well, the docs looks like they're still in the process
 of being updated (fair enough) but certain methods that have now been
 deprecated don't seem to have been replaced with ones that perform
 similar tasks - I need to browse thesourceso I can find out how to
 get my application working against this new build.

 (I got the following init command fromhttp://source.android.com/download)

 $ repo init -u git://android.git.kernel.org/platform/manifest.git -beclair
 Getting repo ...
    from git://android.git.kernel.org/tools/repo.git
 remote: Counting objects: 945, done.
 remote: Compressing objects: 100% (372/372), done.
 remote: Total 945 (delta 592), reused 894 (delta 553)
 Receiving objects: 100% (945/945), 282.14 KiB, done.
 Resolving deltas: 100% (592/592), done.
 .
 .
 .
  * [new branch]      eclair    - origin/eclair
 .
 .
 .
 From git://android.git.kernel.org/platform/manifest
  * [new tag]        android-1.0 -android-1.0
 fatal: manifest 'default.xml' not available
 fatal: manifest default.xml not found

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-29 Thread Abhi

Hi,

I am having trouble upgrading my SDK 1.6 to 2.0 on my laptop. My
laptop is behind my company's firewall and when I try to install the
new SDK components using the Android SDK and AVD Manager, I get this
error saying Failed to fetch URL 
http://dl-ssl.google.com/android/repository/repository.xml,
reason: Connection timed out: connect. I tried all methods, using
Eclipse, using command 'android.bat update sdk' and also directly
running 'SDK Setup.exe'.

Please help! I need to get this new SDK running ASAP.

Thanks,

Abhi

On Oct 27, 12:45 pm, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 Bluetooth Code Samples

2009-10-29 Thread tjozsa

Hi,

Thanks for the code sample.

I have a problem, though. I've rad that the Emulator does not allow
Bluetooth.

How to test this? I have a G1 from an operator.

Thanks,
Tamas

On okt. 29, 02:11, CLC clchen+...@google.com wrote:
 Hi jb,

   Here is some sample code that uses 
 Bluetooth:http://code.google.com/p/apps-for-android/source/browse/trunk/BTClick...

   This is the demo that was shown in the Eclair 2.0 video. You run the
 app on two (or more) Android 2.0 devices, and you can then flick the
 Android robot between the screens of the devices as if it were all
 just one big screen.

 -Charles

 On Oct 27, 5:25 pm, jb jburket...@gmail.com wrote:



  Does anyone have any working code with the added Bluetooth support?
  Also, were you able to get Bluetooth working in the AVD? Thanks.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-29 Thread Nerdsley

When will the android 2.0 upgrade be pushed onto the phones like the
G1 and myTouch?

On Oct 29, 7:05 am, Abhi abhishek.r.sha...@gmail.com wrote:
 Hi,

 I am having trouble upgrading my SDK 1.6 to 2.0 on my laptop. My
 laptop is behind my company's firewall and when I try to install the
 new SDK components using the Android SDK and AVD Manager, I get this
 error saying Failed to fetch 
 URLhttp://dl-ssl.google.com/android/repository/repository.xml,
 reason: Connection timed out: connect. I tried all methods, using
 Eclipse, using command 'android.bat update sdk' and also directly
 running 'SDK Setup.exe'.

 Please help! I need to get this new SDK running ASAP.

 Thanks,

 Abhi

 On Oct 27, 12:45 pm, Xavier Ducrohet x...@android.com wrote:



  Hello everyone!

  We've just announced the Android 2.0 
  SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

  If you already have the 1.6 SDK, note that you can simply use the SDK
  Manager to add Android 2.0 to your SDK. Make sure you also get the new
  SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
  shipped with 1.6) doesn't enforce dependencies between platforms and
  Tools (fixed in rev 3)

  For more information about using the SDK Manager, 
  see:http://developer.android.com/sdk/adding-components.html

  Have fun!
  Xav
  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 Bluetooth Code Samples

2009-10-29 Thread Xavier Ducrohet

There is not bluetooth support in the emulator. You will need a device
running android 2.0

Xav

On Thu, Oct 29, 2009 at 11:59 AM, tjozsa tjo...@gmail.com wrote:

 Hi,

 Thanks for the code sample.

 I have a problem, though. I've rad that the Emulator does not allow
 Bluetooth.

 How to test this? I have a G1 from an operator.

 Thanks,
 Tamas

 On okt. 29, 02:11, CLC clchen+...@google.com wrote:
 Hi jb,

   Here is some sample code that uses 
 Bluetooth:http://code.google.com/p/apps-for-android/source/browse/trunk/BTClick...

   This is the demo that was shown in the Eclair 2.0 video. You run the
 app on two (or more) Android 2.0 devices, and you can then flick the
 Android robot between the screens of the devices as if it were all
 just one big screen.

 -Charles

 On Oct 27, 5:25 pm, jb jburket...@gmail.com wrote:



  Does anyone have any working code with the added Bluetooth support?
  Also, were you able to get Bluetooth working in the AVD? Thanks.

 




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread Dexter#39;s Brain

Hi,

I am all excited with the new release. I can't wait for the
documentation to be released. I am having problems with the Maps API.

Thanks and Regards,
Dexter

http://tech-droid.blogspot.com
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread biAji



On Oct 28, 9:40 am, mingkg21 mingkg21 mingk...@gmail.com wrote:
 http://androidappdocs.appspot.com/sdk/android-2.0.html

 在中国用这个访问吧。

nice tips...lol
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread Neelam Ara

hi.i am new to this group..kindly tell me about Android.

On Oct 28, 9:34 am, James W jpbwebs...@gmail.com wrote:
 A question about the Bluetooth functionality... it says that Bluetooth
 2.1 is supported, and particularly the OPP (Object Push Profile).
 Specifically, does this mean that we will finally be able to send and
 receive files between other phones and PCs?

 OPP is I beleive based on OBEX, which is what tends to normally be
 used for this sort of thing.

 Really hoping the answer is yes, as then the most requested and highly
 starred issue in the Google Android codeset will finally be put to
 rest!

 http://code.google.com/p/android/issues/detail?id=1725

 I still feel a twinge of shame whenever I am asked to bluetooth a
 photo to a friend's WinMo or Nokia, and have to admit my shiny new
 Android smartphone lacks that basic functionality..

 On Oct 28, 12:45 am, Xavier Ducrohet x...@android.com wrote:



  Hello everyone!

  We've just announced the Android 2.0 
  SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

  If you already have the 1.6 SDK, note that you can simply use the SDK
  Manager to add Android 2.0 to your SDK. Make sure you also get the new
  SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
  shipped with 1.6) doesn't enforce dependencies between platforms and
  Tools (fixed in rev 3)

  For more information about using the SDK Manager, 
  see:http://developer.android.com/sdk/adding-components.html

  Have fun!
  Xav
  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-28 Thread MrChaz



 For what it's worth, I believe the biggest causes of apps breaking on the
 newer devices are them having trouble with the new screen densities / sizes,
 and them using private APIs.  We got the screen support out earlier in 1.6
 and have been trying to beat that drum to get people to start to address
 that, since that is one of the biggest impacts on them.

It's also a tedious and boring task - not your fault obviously.  That
doesn't mean it'll get done any quicker though ;)

 There are certainly some specific kinds of apps where running against
 specific hardware is much more useful (open gl and camera are the two main
 ones that I would think about), but as far as dealing with different
 platform versions, the platform is the platform, and whether you run it in
 the emulator or on one device or another it behaves the same.

Are you allowed to say anything about Droid's openGl version?
From looking at all the leaks (or PR if you ask me) it seems to be a
2.0 device like the 3gs or pre but there is nothing in the
documentation
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-28 Thread Dianne Hackborn
On Wed, Oct 28, 2009 at 2:16 AM, MrChaz mrchazmob...@googlemail.com wrote:

 Are you allowed to say anything about Droid's openGl version?
 From looking at all the leaks (or PR if you ask me) it seems to be a
 2.0 device like the 3gs or pre but there is nothing in the
 documentation


Hm, well OpenGL is not my area, but we would be making a lot of noise if
there was some big upcoming device that was not compatible with any of the
existing OpenGL apps.

Of course, OpenGL is one of those tricky things since the actual
implementation of the API comes with the hardware, so different hardware can
have slight different behavior that breaks assumptions of some apps.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 Force close in contacts app

2009-10-28 Thread jarkman

Xavier - one of our apps is very dependent on contact data.

Right now, running it in the Emulator with a couple contacts added in
the Contacts app, it appears to be completely broken. I suspect it is
something to do with a change in the behaviour of group memberships.

I'd like to port it to 2.0 and the new ContactsContract API. Before I
can do that effectively, I will need to be able to populate an
emulator with realistic test data, which I think means running a
couple of sync adapters.

Is there anything we can do to make progress ?

Thanks,

Richard


On Oct 27, 11:53 pm, Xavier Ducrohet x...@android.com wrote:
 this is a known issue. However, note that the system image for 2.0
 does not include any sync adapters so you wouldn't be able to add any
 account anyway.

 Xav

 On Tue, Oct 27, 2009 at 2:20 PM, Alexey alex...@gmail.com wrote:

  When I launch Contacts app in the emulator for API level 5, then go to
  Menu - Accounts, I get exception. Anyone else see this. How to try new
  multiple Accounts feature?

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. Thanks!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 Force close in contacts app

2009-10-28 Thread sukumar bhashyam
hi Xav,

Andorid 2.0 SDK release page talks more about Contacts Sync Adaptor, which
is not supported in Official Android 2.0 SDK.

Could you please let me know when it will be supported. Will there be
another 2.0 SDK release with Sync Adaptor changes?.

Regards,
Sukumar.


On Wed, Oct 28, 2009 at 5:23 AM, Xavier Ducrohet x...@android.com wrote:


 this is a known issue. However, note that the system image for 2.0
 does not include any sync adapters so you wouldn't be able to add any
 account anyway.

 Xav

 On Tue, Oct 27, 2009 at 2:20 PM, Alexey alex...@gmail.com wrote:
 
  When I launch Contacts app in the emulator for API level 5, then go to
  Menu - Accounts, I get exception. Anyone else see this. How to try new
  multiple Accounts feature?
 
  
 



 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. Thanks!

 


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread konic

OK,
I could not install Android 2.0, API 5, rev1 because of this error:
SSL peer shut down incorrectly.
What does this mean?
Next, download from Eclipse is so slow, is there any way to download
standalone redistributable for Android 2.0
and then install it?
I mean, like it was for 1.5 and 1.6.
Thanks
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread Naseer

How can I use the new MotionEvent API with multiple touches on the
emulator ?




On Oct 27, 9:45 pm, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-28 Thread Nick Pelly

On Tue, Oct 27, 2009 at 9:34 PM, James W jpbwebs...@gmail.com wrote:

 A question about the Bluetooth functionality... it says that Bluetooth
 2.1 is supported, and particularly the OPP (Object Push Profile).
 Specifically, does this mean that we will finally be able to send and
 receive files between other phones and PCs?

Yes


 OPP is I beleive based on OBEX, which is what tends to normally be
 used for this sort of thing.

OBEX is the object exchange protocol.

OPP is Object Push. It is a description of how the user uses OBEX - in
this case to push files.

Android 2.0 has OBEX and OPP.


 Really hoping the answer is yes, as then the most requested and highly
 starred issue in the Google Android codeset will finally be put to
 rest!

 http://code.google.com/p/android/issues/detail?id=1725

 I still feel a twinge of shame whenever I am asked to bluetooth a
 photo to a friend's WinMo or Nokia, and have to admit my shiny new
 Android smartphone lacks that basic functionality..


 On Oct 28, 12:45 am, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
 


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread MrChaz

Yeah it would but given it's their job to support the community and
the community is demanding more maybe they should start to look at
their practices.

On Oct 26, 11:41 pm, Marco Nelissen marc...@android.com wrote:
 On Mon, Oct 26, 2009 at 4:29 PM, Frank arro...@gmail.com wrote:

  Why is the SDK for all android releases always so late on arrival?
  Developers usually have barely 1-2 weeks to prepare before the release
  is dropped into consumer's hands.  With Android 2.0 coming out soon on
  the Droid, set to be announced in October 28th and then possibly
  releasing in November, the developers are once again VERY late in the
  game.

  I know it takes a lot of work in getting an SDK with all the
  documentation out.

 Yes, it does.

   But maybe release a beta SDK just for developers
  first? As changes are implemented, newer beta SDKs are provided?  At

 Wouldn't that be even *more* work?



  least now developers are given MORE time to optimize and verify that
  their apps still work on the new version release.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Al Sutton

In the words of the big bad D -

Huzzah! Android 2.0 SDK: http://bit.ly/bKGWM;

Al.
--

* Looking for Android Apps? - Try http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.On Oct 27, 9:14 am, MrChaz mrchazmob...@googlemail.com
wrote:
 Yeah it would but given it's their job to support the community and
 the community is demanding more maybe they should start to look at
 their practices.

 On Oct 26, 11:41 pm, Marco Nelissen marc...@android.com wrote:



  On Mon, Oct 26, 2009 at 4:29 PM, Frank arro...@gmail.com wrote:

   Why is the SDK for all android releases always so late on arrival?
   Developers usually have barely 1-2 weeks to prepare before the release
   is dropped into consumer's hands.  With Android2.0coming out soon on
   the Droid, set to be announced in October 28th and then possibly
   releasing in November, the developers are once again VERY late in the
   game.

   I know it takes a lot of work in getting an SDK with all the
   documentation out.

  Yes, it does.

    But maybe release a beta SDK just for developers
   first? As changes are implemented, newer beta SDKs are provided?  At

  Wouldn't that be even *more* work?

   least now developers are given MORE time to optimize and verify that
   their apps still work on the new version release.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Marco Nelissen

On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote:

 Yeah it would but given it's their job to support the community and
 the community is demanding more maybe they should start to look at
 their practices.

It's not my job to support the community, but since I'm obviously
doing so poorly at it, this will be my last post.
In any case, all I meant to say was that the reasoning in the first
message in this thread is flawed: if SDKs are late because it's a
lot of work to put them together, then having multiple beta SDK
releases will be even more work, and is therefore likely not going to
result in faster delivery.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread niko20

WOot! 2.0 SDK. And Multitouch! for devices that support it, up to 3
points at once. Great!


On Oct 27, 11:25 am, Marco Nelissen marc...@android.com wrote:
 On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote:

  Yeah it would but given it's their job to support the community and
  the community is demanding more maybe they should start to look at
  their practices.

 It's not my job to support the community, but since I'm obviously
 doing so poorly at it, this will be my last post.
 In any case, all I meant to say was that the reasoning in the first
 message in this thread is flawed: if SDKs are late because it's a
 lot of work to put them together, then having multiple beta SDK
 releases will be even more work, and is therefore likely not going to
 result in faster delivery.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Disconnect

That assumes that each sdk is an independent unrelated release, which
is not the case. Multiple -FINAL- sdks may in fact be more work, but
multiple betas are not - the work done to release rc1 is built upon by
rc2, rc3...rcN and the final release.

On Tue, Oct 27, 2009 at 12:25 PM, Marco Nelissen marc...@android.com wrote:

 On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote:

 Yeah it would but given it's their job to support the community and
 the community is demanding more maybe they should start to look at
 their practices.

 It's not my job to support the community, but since I'm obviously
 doing so poorly at it, this will be my last post.
 In any case, all I meant to say was that the reasoning in the first
 message in this thread is flawed: if SDKs are late because it's a
 lot of work to put them together, then having multiple beta SDK
 releases will be even more work, and is therefore likely not going to
 result in faster delivery.

 


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Wayne Wenthin
I agree that the work may be built on each successive release.   I think a
bigger issue may be that items come and go through a beta release cycle.
If you got beta1 and relied on getAndroidToastButteringSchedule(), if it
never makes to to the final release and you failed to keep up with
successive beta releases you are really going to be hacked off at everyone
but yourself.The current developer community (present company excluded)
seems to be very green and will probably make many mistakes regarding the
development process.  I have now lost my train of thought...   I guess to
sum it up it would be nice if there were beta releases for seasoned
developers that know how to handle them and don't expect much support but I
see it turning into a flame fest if that were to happen.



On Tue, Oct 27, 2009 at 9:34 AM, Disconnect dc.disconn...@gmail.com wrote:


 That assumes that each sdk is an independent unrelated release, which
 is not the case. Multiple -FINAL- sdks may in fact be more work, but
 multiple betas are not - the work done to release rc1 is built upon by
 rc2, rc3...rcN and the final release.

 On Tue, Oct 27, 2009 at 12:25 PM, Marco Nelissen marc...@android.com
 wrote:
 
  On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com
 wrote:
 
  Yeah it would but given it's their job to support the community and
  the community is demanding more maybe they should start to look at
  their practices.
 
  It's not my job to support the community, but since I'm obviously
  doing so poorly at it, this will be my last post.
  In any case, all I meant to say was that the reasoning in the first
  message in this thread is flawed: if SDKs are late because it's a
  lot of work to put them together, then having multiple beta SDK
  releases will be even more work, and is therefore likely not going to
  result in faster delivery.
 
  
 

 



-- 
Writing code is one of few things
that teaches me I don't know everything.

http://www.fuligin.com

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Disconnect

Last cycle there were betas for seasoned developers - they were part
of the still-missing open source release. (Unless you needed calendars
or google services/google maps, it worked fine..)

On Tue, Oct 27, 2009 at 12:48 PM, Wayne Wenthin wa...@fuligin.com wrote:
 I agree that the work may be built on each successive release.   I think a
 bigger issue may be that items come and go through a beta release cycle.
 If you got beta1 and relied on getAndroidToastButteringSchedule(), if it
 never makes to to the final release and you failed to keep up with
 successive beta releases you are really going to be hacked off at everyone
 but yourself.    The current developer community (present company excluded)
 seems to be very green and will probably make many mistakes regarding the
 development process.  I have now lost my train of thought...   I guess to
 sum it up it would be nice if there were beta releases for seasoned
 developers that know how to handle them and don't expect much support but I
 see it turning into a flame fest if that were to happen.


 On Tue, Oct 27, 2009 at 9:34 AM, Disconnect dc.disconn...@gmail.com wrote:

 That assumes that each sdk is an independent unrelated release, which
 is not the case. Multiple -FINAL- sdks may in fact be more work, but
 multiple betas are not - the work done to release rc1 is built upon by
 rc2, rc3...rcN and the final release.

 On Tue, Oct 27, 2009 at 12:25 PM, Marco Nelissen marc...@android.com
 wrote:
 
  On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com
  wrote:
 
  Yeah it would but given it's their job to support the community and
  the community is demanding more maybe they should start to look at
  their practices.
 
  It's not my job to support the community, but since I'm obviously
  doing so poorly at it, this will be my last post.
  In any case, all I meant to say was that the reasoning in the first
  message in this thread is flawed: if SDKs are late because it's a
  lot of work to put them together, then having multiple beta SDK
  releases will be even more work, and is therefore likely not going to
  result in faster delivery.
 
  
 





 --
 Writing code is one of few things
 that teaches me I don't know everything.

 http://www.fuligin.com

 


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-27 Thread Bo

wow~
Now we have bluetooth!

On Oct 27, 5:45 pm, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-27 Thread roland

Thanks for your hard work.

On 27 oct, 17:45, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Eric F

I want to congratulate you guys on how speedy the 2.0 SDK has been
pushed out. After just releasing 1.6 and it did not include many of
the features people were hoping for (Bluetooth SDK, multi-touch, etc)
I figured we'd be well into 2010 before we even were close to these
much desired platform features. I haven't had a chance to look at sync
adapters, but I think those could end up being the single greatest
improvement to 2.0!

So, once again, congratulations! I think the grumbling is more about
how all the development is done behind closed doors, if this weren't
the case then a simple git pull would be enough to give developers an
idea of how their apps will work in future releases without putting
extra burden on Android engineers.

And I think most of us here know that it's not your guys' decision
whether or not to keep Android and AOSP so far apart. I for one am
excited about the speed of the maturation of the Android platform.
Once the platform really matures, I think the difference between a
hypothetical Android 3.1 and 3.2 won't be so great that everyone will
be so touchy about the way it is released.

Thanks again to all the android team.

-E

On Oct 27, 9:25 am, Marco Nelissen marc...@android.com wrote:
 On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote:

  Yeah it would but given it's their job to support the community and
  the community is demanding more maybe they should start to look at
  their practices.

 It's not my job to support the community, but since I'm obviously
 doing so poorly at it, this will be my last post.
 In any case, all I meant to say was that the reasoning in the first
 message in this thread is flawed: if SDKs are late because it's a
 lot of work to put them together, then having multiple beta SDK
 releases will be even more work, and is therefore likely not going to
 result in faster delivery.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread JP


Sorry if we hurt your feelings, but if you can't take the heat, then
this indeed might not be for you.

Outside of that I agree with Disconnect. We all like to think we're
done in one step but the reality is a different one. From what I can
gather, the Android team has lost the community by remaining silent
about the release of 2.0 just to come out one full day in advance of
the release of the first devices(s?). This doesn't work as far as the
community of independent devs is concerned. Everybody understands
that, and some acknowledgment on the part of the Android team would go
a long way towards the future.


On Oct 27, 9:25 am, Marco Nelissen marc...@android.com wrote:
 On Tue, Oct 27, 2009 at 2:14 AM, MrChaz mrchazmob...@googlemail.com wrote:

  Yeah it would but given it's their job to support the community and
  the community is demanding more maybe they should start to look at
  their practices.

 It's not my job to support the community, but since I'm obviously
 doing so poorly at it, this will be my last post.
 In any case, all I meant to say was that the reasoning in the first
 message in this thread is flawed: if SDKs are late because it's a
 lot of work to put them together, then having multiple beta SDK
 releases will be even more work, and is therefore likely not going to
 result in faster delivery.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Maps.Huge.Info (Maps API Guru)

I'm  guessing there must be some sort of non-disclosure involved with
this Droid thing and Android 2.0, or else we would have something to
work with. It's a bit frightening to think that there could be
100,000+ devices sold on day one and I've never seen the SDK, don't
know if my app will break or have any idea what workload I'll be stuck
with when the release reaches my desk.

The real stinker here is that the popularity index in the market seems
to be tied to the retention percentage (the number of people that
download the app and keep it). If my apps malfunction on this droid
thing and 2000 people download it, find it defective and uninstall,
the app will plummet in the rankings (Radar Now is currently 60%, #28
in News and Weather and #478 overall).

-John Coryat

Radar Now!

What Zip Code?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-27 Thread Thomas Riley

Love some of the new features in the new SDK! :)

Any idea when the ADP1 will see a 2.0 ROM so my soon to be created 2.0
code can be tested in my hand?

Thanks,
Tom.

On Oct 27, 4:45 pm, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-27 Thread vendor.net

Android 2.0 seems to be awesome!!!

Will be available for ADP1/G1 ? I am asking, because I have ADP1 and I
know that there are some storage problems and there was a discussion
about 1.6 if it will be available to ADP1. I am with 1.6, but will 2.0
be available to ADP1?

Thanks! And great improvements!!!

On 27 Окт, 18:45, Xavier Ducrohet x...@android.com wrote:
 Hello everyone!

 We've just announced the Android 2.0 
 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, 
 see:http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0 SDK is here!

2009-10-27 Thread Aniruddh Bajirao
Android 2.0 seems to have great improvements and interesting features.
Great work.


On Tue, Oct 27, 2009 at 11:45 AM, Xavier Ducrohet x...@android.com wrote:


 Hello everyone!

 We've just announced the Android 2.0 SDK

 http://android-developers.blogspot.com/2009/10/announcing-android-20-support-in-sdk.html

 If you already have the 1.6 SDK, note that you can simply use the SDK
 Manager to add Android 2.0 to your SDK. Make sure you also get the new
 SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
 shipped with 1.6) doesn't enforce dependencies between platforms and
 Tools (fixed in rev 3)

 For more information about using the SDK Manager, see:
 http://developer.android.com/sdk/adding-components.html

 Have fun!
 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 



-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Great spirits have always found violent opposition from mediocrities. The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his intelligence.
... Albert Einstein.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Aniruddh Bajirao
www.ryze.com/Aniruddh

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Pieter

I thought your ranking was based on absolute retention count, not on
percentage.

Your rating will suffer however even when only a fraction of those
2000 people give you
1 star because your app is broken on their phone...


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 2.0

2009-10-27 Thread Maps.Huge.Info (Maps API Guru)

We'll see here soon (tomorrow maybe?). I have an app ahead of me
that's in the 1000-5000 count range for downloads and my install
numbers are approaching 5000, so if it's absolute installs, then the
app ahead of me should move to the 5000-1 count range by tomorrow.
Interesting to find out.

-John Coryat

Radar Now!

What Zip Code?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >