[android-developers] Can't query contacts in Android 2.0 emulator?

2009-10-28 Thread Yao
Hi guys,

I can't get contacts via content provider in Android 2.0 emulator. The test
code is pasted. When I click Account in the menu, it shows Force close.
Thanks a lot in advance for your help!

   Cursor cursor = getContentResolver().query(Contacts.People.CONTENT_URI,
new String[] {_id}, null, null, null);
while(cursor.moveToNext()) {
String id = cursor.getString(0);
Log.e(test, id);
}
cursor.close();

-- 
Best regards,
MTM
Contacts GroupU - Group your Android Contacts
http://contacts-groupu.appspot.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] Can't query contacts in Android 2.0 emulator?

2009-10-28 Thread Yao
Hi guys,

I can't get contacts via content provider in Android 2.0 emulator. The test
code is pasted. When I click Account in the menu, it shows Force close.
Thanks a lot in advance for your help!

   Cursor cursor = getContentResolver().query(Contacts.People.CONTENT_URI,
new String[] {_id}, null, null, null);
while(cursor.moveToNext()) {
String id = cursor.getString(0);
Log.e(test, id);
}
cursor.close();

-- 
Best regards,
MTM
Contacts GroupU - Group your Android Contacts
http://contacts-groupu.appspot.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: Unable to chmod sdcard: Read-only file system

2009-10-28 Thread Nima


I have tried this option also.But there is no hope.


On Oct 27, 6:59 pm, Pierre Henry phper...@gmail.com wrote:
 Nima,

 Try a *chmod 0777 sdcard* instead...

 --
 Pierre
--~--~-~--~~~---~--~~
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] Detecting a Tidal Wave of Android Apps

2009-10-28 Thread Peter Farago
Hi all,

Flurry, as you may know from previous emails, has been supporting Android
since we launched our mobile application analytics service this January.
This month, we measured the most significant spike to date of android
developer activity within our system.  We're very excited about the upcoming
launch of several more Android handsets and see the correlation between
major android handset launches and developer support.

We shared some stats with Om Malik at GigaOm who has been closely following
the Android story unfold since the beginning.  You can read his take on take
on Android and what's to come at:
http://gigaom.com/2009/10/26/will-there-be-an-android-app-boom-soon/

Best regards,

Peter Farago
VP Marketing
www.flurry.com
Follow us:
http://blog.flurry.com
http://twitter.com/FlurryMobile

--~--~-~--~~~---~--~~
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: Can't query contacts in Android 2.0 emulator?

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

Hi,

In the emulator, When I open the Contact application and click on
Accounts, it Force Closes, I dont know why.

The LogCat says, Activity not found

android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.settings.SYNC_SETTINGS (has extras)

I guess, this feature is not enabled on the emulator.

Thanks,
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: ADC2.0

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

Hey,

I guess there is no need to panic. Though the SDK is released, I don't
think they would be testing your apps on SKD 2.0 devices. And also,
the 2nd phase of judging will be getting over soon.

But, yes, it's extra work for the developers, for we have to maintain
different versions of our apps to cater to different releases. Thats
bad

Thanks,
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] Android RSS Reader, Please Help

2009-10-28 Thread GreenRiver

Hix, I tried following the tutorial below: ( RSS Reader Tutorial)
http://www.helloandroid.com/node/110#comment-6819
Because of the differences between the version of SDK that tutorial
using (M3 - I dont' know this version, maybe too old ) and of mine
( android-sdk-windows-1.5_r2), so it appeared many errors.
I tried to fix all of it, althought i printed to logcat the right
results but still have some problem with database so i can't put the
result to the database.
( My project  : http://www.mediafire.com/download.php?wjzqnztmdml)

Is anyone finished the  tutorial above (http://www.helloandroid.com/
node/110#comment-6819) , please show me or send the sourcecode to me
via email ( thong.dom...@gmail.com ).
I realy thanks in advance!

Regards,
thongdm

--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread GreenRiver

If someone has any ideas, please discuss via comments or contact me
view email ( thong.dom...@gmail.com ) . Thanks in advance :)

if you finish the tutorial http://www.helloandroid.com/node/110#comment-6819
, please contact me :)
--~--~-~--~~~---~--~~
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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-10-28 Thread Philip

Okay, setting - select force https:// to http://;.

On 10月28日, 上午11时08分, Philip phwang...@gmail.com wrote:
 I have the same problem on ubuntu. I create the file ~/.android/
 androidtool.cfg but it fails.

 On 10月28日, 上午7时31分, Xavier Ducrohet x...@android.com wrote:

  ok this is weird. Someone else (running ubuntu) had the same problem on IRC.

  It looks like it fails somehow to create the file containing the
  settings, but I don't know why (it works fine here).

  The file is ~/.android/androidtool.cfg

  try to create it manually and add one line to it:
  sdkman.force.http=true

  we'll try to figure out why it fails.

  Xav

  On Tue, Oct 27, 2009 at 3:58 PM, garycode garyma...@hotmail.com wrote:

   Hi,
   I'm trying to install a platform but when I type android the manager
   loads then I click Available Software then select the
  https://dl-ssl.google.com/android/repository/repository.xmlrepository
   I get this error.,

   Failed to fetch 
   URLhttps://dl-ssl.google.com/android/repository/repository.xml,
   reason: HTTPS SSL error. You might want to force download through HTTP
   in the settings.

   So I click the settings tab and select the force through http then
   click apply and save then nothing happens it doesn't save it because
   if i then close it and reload it the checkbox is unticked so it's not
   even using the force through http method. I get the same error if i go
   straight back to available software.

   I'm using Fedora and wget can download the xml file using ssl so I
   don't know why it's getting this https ssl error.

   Any ideas anyone?
   Thank you

  --
  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: Unable to chmod sdcard: Read-only file system

2009-10-28 Thread nagaraj attimani
Try to launch emulator with sdcard and avd..
ex: emulator -avd avd_name -sdcard sdcardname



On Wed, Oct 28, 2009 at 11:44 AM, Nima sayikuma...@gmail.com wrote:



 I have tried this option also.But there is no hope.


 On Oct 27, 6:59 pm, Pierre Henry phper...@gmail.com wrote:
  Nima,
 
  Try a *chmod 0777 sdcard* instead...
 
  --
  Pierre
 



-- 
Warm Regards,
Nagaraj

--~--~-~--~~~---~--~~
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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-10-28 Thread chandu
This error can be resolve by setting proper proxy.
check the proxy settings.


With Regards,
Chandrakant H

2009/10/28 Philip phwang...@gmail.com


 Okay, setting - select force https:// to http://;.

 On 10月28日, 上午11时08分, Philip phwang...@gmail.com wrote:
  I have the same problem on ubuntu. I create the file ~/.android/
  androidtool.cfg but it fails.
 
  On 10月28日, 上午7时31分, Xavier Ducrohet x...@android.com wrote:
 
   ok this is weird. Someone else (running ubuntu) had the same problem on
 IRC.
 
   It looks like it fails somehow to create the file containing the
   settings, but I don't know why (it works fine here).
 
   The file is ~/.android/androidtool.cfg
 
   try to create it manually and add one line to it:
   sdkman.force.http=true
 
   we'll try to figure out why it fails.
 
   Xav
 
   On Tue, Oct 27, 2009 at 3:58 PM, garycode garyma...@hotmail.com
 wrote:
 
Hi,
I'm trying to install a platform but when I type android the manager
loads then I click Available Software then select the
   https://dl-ssl.google.com/android/repository/repository.xmlrepository
I get this error.,
 
Failed to fetch URLhttps://
 dl-ssl.google.com/android/repository/repository.xml,
reason: HTTPS SSL error. You might want to force download through
 HTTP
in the settings.
 
So I click the settings tab and select the force through http then
click apply and save then nothing happens it doesn't save it because
if i then close it and reload it the checkbox is unticked so it's not
even using the force through http method. I get the same error if i
 go
straight back to available software.
 
I'm using Fedora and wget can download the xml file using ssl so I
don't know why it's getting this https ssl error.
 
Any ideas anyone?
Thank you
 
   --
   Xavier Ducrohet
   Android SDK Tech Lead
   Google Inc.
 



-- 
with regards.
chandu

--~--~-~--~~~---~--~~
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: NEEDED: Apps to feature on Sprint Microsite

2009-10-28 Thread Lance Nanek

Sprint's web site following your post and do not find any evidence there's 
even a phase 1

Maybe they are going to enhance that flying cloud of Android app
screenshots shortly into the flash movie on the site the OP linked:
http://now.sprint.com/android/

It seems like useless eye candy at the moment. I can't find any way to
rotate the cloud manually, zoom in, zoom out, pick a value for the
Whether you want to: control, there are lots of duplicates, the
screenshots aren't clearly labeled with what app they are, and
clicking on a screenshot does nothing. Still, all that could be fixed,
I suppose.

Maybe devs should make sure the name of their app features prominently
on any screenshot they submit just in case.

On Oct 28, 1:46 am, JP joachim.pfeif...@gmail.com wrote:
 Well let's see
 Just a few months ago I go sign up to Clearwire's Silicon Valley WiMax
 dev program. I'm up in SF so I suppose that wasn't close enough or
 whatever, I've never heard back so I couldn't say. Would have been
 nice to put that Nokia N810 WiMax Edition on their network and toy
 around with some of the stuff I built for that.
 Then there's Moto's Accelerator program that I've passed on,
 thankfully, as we hear not too many tangible results are coming out of
 that.
 In recent memory we've got an evangelist from Sprint that managed to
 throw away the upfront credit he's got here in just two post. That
 must be record time.

 Wayne, so far your effort has been laudable. But then... this morning
 I check on Sprint's web site following your post and do not find any
 evidence there's even a phase 1. So, with the above in mind, looks
 like another poorly executed effort, no?

 On Oct 27, 8:11 pm, Dianne Hackborn hack...@android.com wrote:

  On Tue, Oct 27, 2009 at 6:05 PM, JP joachim.pfeif...@gmail.com wrote:
   Generally speaking, I've stopped a long time ago signing up for stuff
   under such a premise. I get the sense I'm not alone here.

  What things like this have you been involved with that left a bad taste in
  your mouth?  I am genuinely curious?  The offer from Sprint seems quite
  attractive to me -- give them a screen shot and they may pick your app for
  free publicity.

  --
  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: ADC2.0

2009-10-28 Thread CraigsRace

My ADC2 entry broke with 2.0 as well.

I also got an e-mail from Google strongly encouraging me to fix the
errors in my non-ADC2 apps before next week.  So one might think
Android 2.0 is coming sooner rather then later.

 And also, the 2nd phase of judging will be getting over soon.

To my knowledge, it hasn't even started.


On Oct 28, 5:38 pm, Dexter#39;s Brain coomar@gmail.com wrote:
 Hey,

 I guess there is no need to panic. Though the SDK is released, I don't
 think they would be testing your apps on SKD 2.0 devices. And also,
 the 2nd phase of judging will be getting over soon.

 But, yes, it's extra work for the developers, for we have to maintain
 different versions of our apps to cater to different releases. Thats
 bad

 Thanks,
 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: Unable to chmod sdcard: Read-only file system

2009-10-28 Thread chandu
chmod 755 /sdcard


Try above solution.



With Regards,
Chandrakant H


On Wed, Oct 28, 2009 at 3:13 AM, nagaraj attimani 
nagaraj.attim...@gmail.com wrote:

 Try to launch emulator with sdcard and avd..
 ex: emulator -avd avd_name -sdcard sdcardname



 On Wed, Oct 28, 2009 at 11:44 AM, Nima sayikuma...@gmail.com wrote:



 I have tried this option also.But there is no hope.


 On Oct 27, 6:59 pm, Pierre Henry phper...@gmail.com wrote:
  Nima,
 
  Try a *chmod 0777 sdcard* instead...
 
  --
  Pierre 



-- 
with regards.
chandu

--~--~-~--~~~---~--~~
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: Unable to chmod sdcard: Read-only file system

2009-10-28 Thread chandrakant.honak...@gmail.com

chmod 755 /sdcard
Try this solution

WIth Regards,
Chandrakant H


On Oct 28, 3:13 am, nagaraj attimani nagaraj.attim...@gmail.com
wrote:
 Try to launch emulator with sdcard and avd..
 ex: emulator -avd avd_name -sdcard sdcardname

 On Wed, Oct 28, 2009 at 11:44 AM, Nima sayikuma...@gmail.com wrote:

  I have tried this option also.But there is no hope.

  On Oct 27, 6:59 pm, Pierre Henry phper...@gmail.com wrote:
   Nima,

   Try a *chmod 0777 sdcard* instead...

   --
   Pierre

 --
 Warm Regards,
 Nagaraj
--~--~-~--~~~---~--~~
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: ADC2.0

2009-10-28 Thread CraigsRace

I should also mention that Google were very helpful in tracking down
the reason that Android 2.0 broke my apps.  Thanks Google!  :)


On Oct 28, 6:17 pm, CraigsRace craig...@gmail.com wrote:
 My ADC2 entry broke with 2.0 as well.

 I also got an e-mail from Google strongly encouraging me to fix the
 errors in my non-ADC2 apps before next week.  So one might think
 Android 2.0 is coming sooner rather then later.

  And also, the 2nd phase of judging will be getting over soon.

 To my knowledge, it hasn't even started.

 On Oct 28, 5:38 pm, Dexter#39;s Brain coomar@gmail.com wrote:

  Hey,

  I guess there is no need to panic. Though the SDK is released, I don't
  think they would be testing your apps on SKD 2.0 devices. And also,
  the 2nd phase of judging will be getting over soon.

  But, yes, it's extra work for the developers, for we have to maintain
  different versions of our apps to cater to different releases. Thats
  bad

  Thanks,
  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] How to hide activity on BACK key without onDestroy?

2009-10-28 Thread tomei.ninge...@gmail.com

When user presses BACK key, my activity's onDestroy is called and then
it is killed. Is there a way (by overridding Activity.onKeyDown??) to
simply put the activity into background without killing it?

I want the BACK key to act like the HOME key (which doesn't kill my
app), except I want to show the activity immediately below my
activity.

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: How to hide activity on BACK key without onDestroy?

2009-10-28 Thread RichardC

You need to re-read the life-cycle documentation.  After pressing
[home] your app may be killed at any time, it just hasn't been killed
yet.

If you need a background process read up on services.

--
RichardC

On Oct 28, 7:26 am, tomei.ninge...@gmail.com
tomei.ninge...@gmail.com wrote:
 When user presses BACK key, my activity's onDestroy is called and then
 it is killed. Is there a way (by overridding Activity.onKeyDown??) to
 simply put the activity into background without killing it?

 I want the BACK key to act like the HOME key (which doesn't kill my
 app), except I want to show the activity immediately below my
 activity.

 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: how to read the app package under /data/app

2009-10-28 Thread Zhihong GUO
Can you give some example code on how to get the file name of the current
wallpaper?

Thanks

2009/10/27 vovkab vov...@gmail.com


 Yes you can.

 Just read it with
 File apkfile = new File(/data/app/com.package.name);

 On 27 окт, 11:43, Zhihong GUO gzhh...@gmail.com wrote:
  Hi All,
 
  I want to read out the binary content of the .apk packages installed in
  /data/app. Not only the package information, but the content of the
 package
  itselt.
  How can I do that.
  Thanks a lot,
 
  James
 


--~--~-~--~~~---~--~~
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: How to hide activity on BACK key without onDestroy?

2009-10-28 Thread tomei.ninge...@gmail.com

I can handle may be killed. I just don't want killed for sure.

Anyone got an answer for this?

On Oct 28, 12:37 am, RichardC richard.crit...@googlemail.com wrote:
 You need to re-read the life-cycle documentation.  After pressing
 [home] your app may be killed at any time, it just hasn't been killed
 yet.

 If you need a background process read up on services.

 --
 RichardC

 On Oct 28, 7:26 am, tomei.ninge...@gmail.com



 tomei.ninge...@gmail.com wrote:
  When user presses BACK key, my activity's onDestroy is called and then
  it is killed. Is there a way (by overridding Activity.onKeyDown??) to
  simply put the activity into background without killing it?

  I want the BACK key to act like the HOME key (which doesn't kill my
  app), except I want to show the activity immediately below my
  activity.

  Thanks!- 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 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: How to hide activity on BACK key without onDestroy?

2009-10-28 Thread Piotr

If you think how to get around application lifecycle, then you
project design is TOTALLY BAD. Really.

Redesign project.

On 28 Paź, 08:26, tomei.ninge...@gmail.com
tomei.ninge...@gmail.com wrote:
 When user presses BACK key, my activity's onDestroy is called and then
 it is killed. Is there a way (by overridding Activity.onKeyDown??) to
 simply put the activity into background without killing it?

 I want the BACK key to act like the HOME key (which doesn't kill my
 app), except I want to show the activity immediately below my
 activity.

 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] Can anybody share an unofficial download link of android SDK 2.0 eclair?

2009-10-28 Thread Hugh

As some of you may know, URL developers.android.com has been blocked
in China, thus I am unable to download the newest SDK.

Would anybody kindly upload the SDK to a server and let me know the
address for downloading.

Highly appreciated your help. Thanks,

Regards,
Hugh

--~--~-~--~~~---~--~~
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] Streaming problems with Android 2.0

2009-10-28 Thread moju

Hi !

I'm creating an app to stream video and audio files. It was quite fine
with Android 1.5 and 1.6, but with 2.0 none of my files want to
stream.

For videos I get the PVMFErrCorrupt error, whereas it was working with
1.6.
The audio codec is WMA9.2 (12 Kbps, 16kHz mono 1-pass CBR) and the
video codec is WMV9.
The video container is asf and the transport protocol is mms.

For the audio files, I have no error from MediaPlayer, I only have :
ERROR/PlayerDriver(31): Command (6) was cancelled

Any idea how to solve this ? Or even what could be the problem
exactly ?

Thanks,

Morgane

--~--~-~--~~~---~--~~
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] Java Date Objects slow to instantiate in Android 1.6?

2009-10-28 Thread Greg Marra

Hey everyone,

Java Date object creation seems much slower in Android 1.6/2.0 than in
Android 1.5. My application experienced about two orders of magnitude
of slowdown for certain Date intense operations.

I have reduced the number of Date and Calendar object instances
required to do this math, but my application is still many times
slower than it was on Android 1.5. If I build for Android 1.5 devices
with my current version of the framework, it is still slower.

I am making an application where I need to calculate how long ago
certain People checked in on a web service. I get the checkin events
from a web server I don't control, and they have date information
formatted in a string. To get all my objects, I do this:

private VectorPerson parseMapUpdate(String result) {
...
Date now = new Date();
for (String person_string : people_strings) {
people_vector.add(new Person(person_string, now));
Log.d(LOG, Made a Person.);
}
return people_vector;
}

...

Class Person {
public static final DateFormat kDateFormat = new SimpleDateFormat
(-MM-dd HH:mm:ss);
...
private void setTimeDelta(Date now) {
Date then = now;
try {
then = kDateFormat.parse(mTime);
} catch (ParseException e) {
Log.e(LOG, Bad time! Tried to parse  + mTime);
}
mTimeDelta = (now.getTime() - then.getTime()) / 6; //60k is 
a
minute in milliseconds
}

}

I am passing in the Date now because I found it to be substantially
faster than instantiating a new one for every object. On my emulator,
doing this sixty times takes about 1 second. On the phone, it takes
hundreds of miliseconds per Person that I create.

10-28 00:29:18.508: VERBOSE/MauradersMapAPI(2887): snip successful
data retrieval
10-28 00:29:18.808: INFO/ActivityManager(85): Stopping service:
com.android.providers.downloads/.DownloadService
10-28 00:29:18.808: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:19.478: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:19.788: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:19.788: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.028: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.028: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.248: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.468: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.468: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.698: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.878: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:20.878: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:21.148: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:21.148: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:21.368: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:21.588: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:21.588: DEBUG/MauradersMapAPI(2887): Got Map 1
10-28 00:29:22.198: DEBUG/dalvikvm(2887): GC freed 2595 objects /
169296 bytes in 228ms
10-28 00:29:22.828: VERBOSE/MauradersMapAPI(2887): snip, successful
data retrieval
10-28 00:29:23.058: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:23.058: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:23.288: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:23.528: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:23.528: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:23.788: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:23.788: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.028: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.268: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.268: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.488: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.488: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.718: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:24.908: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.048: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.268: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.268: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.548: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.688: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.868: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:25.868: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.078: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.078: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.308: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.548: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.548: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.768: DEBUG/MauradersMapAPI(2887): Made a Person.
10-28 00:29:26.768: 

[android-developers] how to get sdk version in program

2009-10-28 Thread 李一罡
hi ,
   how can i get sdk version in my code? For example ,i need to know the sdk
verison is 1.5 or 1.6

-- 
Best Regard!
李一罡

E-mail: hit.liyig...@gmail.com
Tel: +86-010-82173659
QQ: 270518794
MSN: hyliyig...@hotmail.com
Gtalk: hit.liyig...@gmail.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] GSM emulation problem

2009-10-28 Thread Andre

Did you find a solution?

I have the same problem, but on x32 ubuntu 9.04 and sdk 1.5...

Best Regards.

--~--~-~--~~~---~--~~
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] Will android work on samsung jet?

2009-10-28 Thread rachit.sp...@googlemail.com

hi everyone..
i tried installing android os over samsung Proprietary o.s
but whenever i am trying ti execute the android installer file but
phone hangs for couple of mins and then reboot.
so any opinions where i am going wrong?

--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread Michael Liao

hi
  i have finished an rss reader by myself. but the source code is not
check in to google-code svn yet.
  if you have interest, i can mail to you.

  regards,

Michael Liao

On Oct 28, 2:47 pm, GreenRiver thong.dom...@gmail.com wrote:
 If someone has any ideas, please discuss via comments or contact me
 view email ( thong.dom...@gmail.com ) . Thanks in advance :)

 if you finish the tutorialhttp://www.helloandroid.com/node/110#comment-6819
 , please contact me :)

--~--~-~--~~~---~--~~
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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-10-28 Thread orange80

I'm still jammed on this.  I'm having the same problem as Philip but
on Mac OS X.  I have ~/.andriod/androidtool.cfg showing what you put
sdkman.force.http=true
Not sure what to do!!!
Can't wait to get my hands on 2.0 :)
On Oct 27, 10:08 pm, Philip phwang...@gmail.com wrote:
 I have the same problem on ubuntu. I create the file ~/.android/
 androidtool.cfg but it fails.

 On 10月28日, 上午7时31分, Xavier Ducrohet x...@android.com wrote:



  ok this is weird. Someone else (running ubuntu) had the same problem on IRC.

  It looks like it fails somehow to create the file containing the
  settings, but I don't know why (it works fine here).

  The file is ~/.android/androidtool.cfg

  try to create it manually and add one line to it:
  sdkman.force.http=true

  we'll try to figure out why it fails.

  Xav

  On Tue, Oct 27, 2009 at 3:58 PM, garycode garyma...@hotmail.com wrote:

   Hi,
   I'm trying to install a platform but when I type android the manager
   loads then I click Available Software then select the
  https://dl-ssl.google.com/android/repository/repository.xmlrepository
   I get this error.,

   Failed to fetch 
   URLhttps://dl-ssl.google.com/android/repository/repository.xml,
   reason: HTTPS SSL error. You might want to force download through HTTP
   in the settings.

   So I click the settings tab and select the force through http then
   click apply and save then nothing happens it doesn't save it because
   if i then close it and reload it the checkbox is unticked so it's not
   even using the force through http method. I get the same error if i go
   straight back to available software.

   I'm using Fedora and wget can download the xml file using ssl so I
   don't know why it's getting this https ssl error.

   Any ideas anyone?
   Thank you

  --
  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] how to invalidate the textview

2009-10-28 Thread pp

i meet a issue on Android , i can't set the background color ,  can
anyone help me? thanks in advance.

set a string to the textview, and use setOnTouchListener to capture
touch event, when receive MotionEvent.ACTION_UP event. set the
background color to 0x(red), when receive
MotionEvent.ACTION_DOWN event. set the background color to 0xFFFF
(blue)

my codes as below:
textView.setText(string);
final SpannableString str = new SpannableString(string);

textView.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
int eventaction = event.getAction();

switch (eventaction) {
case MotionEvent.ACTION_UP:
str.setSpan(new 
BackgroundColorSpan(0x), 0, string.length
(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
textView.invalidate();
return true;

case MotionEvent.ACTION_DOWN:
str.setSpan(new 
BackgroundColorSpan(0xFFFF), 0, string.length
(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
textView.invalidate();
return true;

default:
return v.onTouchEvent(event);
}
}
});

--~--~-~--~~~---~--~~
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: How do I build Android project

2009-10-28 Thread Vijay Ganti
thanks miguel. I will post the same on the android platform group.

On Tue, Oct 27, 2009 at 3:19 PM, Miguel Paraz mpa...@gmail.com wrote:


 On Oct 26, 3:15 pm, braid_pitt ganti.vi...@gmail.com wrote:
  I am trying to build android source code (specifically the
  applications such as the alarm clock, calendar) and when I do this
  using eclipse, there are 1000+ errrors being thrown possibly due to
  mismatch of class path and other environmental settings.
  Can somebody please help in terms of any said steps to follow for
  building the application projects under android using eclipse?
  This is important since I need to debug certain issues and due to
  failure of compiling I am unable to debug via Eclipse as debug
  requires an open project compiled successfully to be present.
 
  FYI- I have installed the DDMS plugin and ADT successfully and am able
  to communicate with the target successfully using eclipse, but
  unfortunately not able to debug due to the above said reasons.
 
  Any help is appreciated.


 Hi,
 It's actually not possible to build the open source apps using the
 SDK. They use classes that are not exposed in the SDK.

 Better to ask on the android-platform group about this.

 Maybe this info should be in a FAQ.
  



-- 
Regards,
Vijay Ganti

--~--~-~--~~~---~--~~
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] Is source code of Android 2.0 ready to download?

2009-10-28 Thread bluestar

I know Android SDK 2.0 was already ready.

Does it mean the source code of Android 2.0 is ready to download?
Could I repo the entire platform(include kernel) from Google?
(repo init -u git://android.git.kernel.org/platform/manifest.git)

Thanks for your answer!!!


Best Regards,
Alan
--~--~-~--~~~---~--~~
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 WebView and HTML5

2009-10-28 Thread Miguel Paraz

Hi,

On Oct 9, 6:37 pm, Anton Pirker an...@ignaz.at wrote:
 Hey fellow Androids!

 I am experimenting with Androids WebView[1] and itsHTML5features.
 I have written a little webpage with does the features detection like
 described here:http://diveintohtml5.org/detect.html

 And now I see (I am on a SDK1.6 Emulator) that the LocalStorage, the
 WebWorkers and Offline Web Applications are not supported!

 Does anyone know when these features will be supported? Or does anyone
 know the exact version (or build) of the webkit engine, that is used in
 Android 1.6?

 Any hints are greatly appreciated!

Looks like we have a pleasant surprise in Android 2.0.
I tried http://diveintohtml5.org/detect.html in a WebView, and it does
the detection.

However, it seems that the touch UI has some limitations. I tried the
examples in http://htmlfive.appspot.com/ and they don't work in the
touch UI. The video tag doesn't support the sample which is an Ogg
file - maybe it supports 3GPP only? We'll find out when we see the
Eclair source.

--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread GreenRiver

Thanks Liao :) , but i still need more answers :) Please show your
ideas?
--~--~-~--~~~---~--~~
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: how to get sdk version in program

2009-10-28 Thread Dianne Hackborn
See android.os.Build for all your version information needs.

2009/10/27 李一罡 hit.liyig...@gmail.com

 hi ,
how can i get sdk version in my code? For example ,i need to know the
 sdk verison is 1.5 or 1.6

 --
 Best Regard!
 李一罡
 
 E-mail: hit.liyig...@gmail.com
 Tel: +86-010-82173659
 QQ: 270518794
 MSN: hyliyig...@hotmail.com
 Gtalk: hit.liyig...@gmail.com

 



-- 
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: Load JNI failed at Android 2.0

2009-10-28 Thread Dianne Hackborn
You'll want to post this to android-ndk.

On Tue, Oct 27, 2009 at 11:36 PM, Alger, Lin addr...@gmail.com wrote:


 I write some JNI files for my application, and it works smoothly at
 Android 1.5, and Android 1.6.

 However, my application not work on Android 2.0 emulator, because my
 SO file can't be loaded, no matter I put it to data/data/my package/
 lib, or /system/lib

 And I found log below.
 INFO/dalvikvm(109): Unable to dlopen(/data/data/***/lib/***_jni.so):
 Cannot load library: reloc_library[1232]:30 cannot locate
 'memcpy'...
 ...
 ...
 ERROR/AndroidRuntime(109): Caused by: java.lang.UnsatisfiedLinkError:
 Library ***_jni not found

 Why I got those message at Android 2.0 emulator? How to fix this issue?
 



-- 
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: ADC2.0

2009-10-28 Thread String

On Oct 28, 7:20 am, CraigsRace craig...@gmail.com wrote:

 I should also mention that Google were very helpful in tracking down
 the reason that Android 2.0 broke my apps.  Thanks Google!  :)

Lucky you. Mind sharing what the problem was? I've filed a report on
one of the regression bugs that broke my app, but am still nailing
down the second one.

Thanks,

String
--~--~-~--~~~---~--~~
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: how to read the app package under /data/app

2009-10-28 Thread vovkab

Seems like, you don't know what you need.

Use WallpaperManager to get wallpapper. Why you need filename from
package o_O?

On 28 окт, 10:46, Zhihong GUO gzhh...@gmail.com wrote:
 Can you give some example code on how to get the file name of the current
 wallpaper?

 Thanks

 2009/10/27 vovkab vov...@gmail.com





  Yes you can.

  Just read it with
  File apkfile = new File(/data/app/com.package.name);

  On 27 окт, 11:43, Zhihong GUO gzhh...@gmail.com wrote:
   Hi All,

   I want to read out the binary content of the .apk packages installed in
   /data/app. Not only the package information, but the content of the
  package
   itselt.
   How can I do that.
   Thanks a lot,

   James
--~--~-~--~~~---~--~~
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] Toggle Button remove light indicator programmatically

2009-10-28 Thread Guillaume

Hi All,

I would like to know how to remove the light indicator of a Toggle
Button.

In the API, there is a variable called Alpha which can be
disabledAlpha (XML attributes).
According to the API, The alpha to apply to the indicator when
disabled.

I have searched on the internet, and found no way of setting the this
variable programmatically.
All examples I can find are doing it via XML.
I can use setTextOn, setTextOff, but unfortunately there isn't
anything like setDisabledAlpha.

API of Toggle Button:
http://developer.android.com/reference/android/widget/ToggleButton.html

The variable I am talking about:
http://developer.android.com/reference/android/widget/ToggleButton.html#attr_android:disabledAlpha

I don't know if I can set it programmatically or is it only allowed to
be modified using XML attributes.
If anyone can help me out on this, it would be good,

Thank you very much,
Best regards,

Guillaume
--~--~-~--~~~---~--~~
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] make a SurfaceView visible/invisible at runtime

2009-10-28 Thread allstars

hi
can i make a SurfaceView visible/invisible at runtime??

i use the GLSurfaceView in ApiDemos as example

i use setFormat(PixelFormat.TRANSLUCENT) and
setFormat(PixelFormat.OPAQUE) interchangeablelly

i found that i only can set it to invisible at first
but can not make it visible afterwards, and it will crash

so can i make a SurfaceView visible and invisible at runtime??

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] Can other applications use the share function of Facebook for Android?

2009-10-28 Thread feeling3_4

Hi, guys

Facebook for Android is great, but I just wonder that whether my
application can use the share function of it. Or, does the Facebook
for Android release some apis and let other applications use the
built in functions like share or feed?

Any advice is greatly appreciated. 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] 1.6 and 2.0 builds ?

2009-10-28 Thread jarkman

We have an app which is very involved with contact data, and will need
to be ported to the new contacts APIs to work properly under 2.0.

It looks like the change will affect quite a lot of code, so ideally
we would fork the project, make the right changes, and then have 1.6
and 2.0 builds in the market. We would need to maintain both branches
for a few months, till 2.0 is widely deployed, then move forwards from
the new branch.

We can't do that as long as the Market doesn't support multiple builds
per app, obviously. What else can we do ?

There's reflection, of course:
http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html
which would let us build some kind of cross-version-compatible wrapper
for both contacts APIs. Is that really the only way ? Is anyone
solving the problem in any tidier ways ?

Thanks,

Richard

--~--~-~--~~~---~--~~
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 RSS Reader, Please Help

2009-10-28 Thread GreenRiver

UP UP UP

On Oct 28, 4:34 pm, GreenRiver thong.dom...@gmail.com wrote:
 Thanks Liao :) , but i still need more answers :) Please show your
 ideas?
--~--~-~--~~~---~--~~
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 tasks and activities

2009-10-28 Thread RichardC

I am sure there is something in here that will help:
http://developer.android.com/guide/topics/fundamentals.html#acttask
and also here:
http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html

(confession - so much information it makes my head hurt)

--
RichardC


On Oct 28, 5:45 am, Lee labor...@gmail.com wrote:
 I've got an application that has a number of activities.  One of the
 things that it can do is create a shortcut on the homescreen that when
 pressed starts an activity inside my application.  I am finding
 however that there's an issue with how tasks are working and screens
 that I don't expect to be shown are shown.

 Here's my situation:

 1) I am running activity A of my application in the foreground
 2) I press the home key and move back to the home screen
 3) I start a shortcut which starts activity B of my application'
 4) From within activity B I press the back button
 5) **ACTIVITY A IS SHOWN AND NOT THE HOME SCREEN

 From user feedback this isn't what users expect.  At step 5 above they
 would like to see the home screen rather than activity A since
 activity A is very independent of activity B and seeing it again is
 not what they'd expect.

 What can be done to ensure that pressing back on activity B at step 5
 above shows the home screen again rather than activity A

 Thanks
 Lee
--~--~-~--~~~---~--~~
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: 1.6 and 2.0 builds ?

2009-10-28 Thread String

There's also from runtime detection of API version, a la
http://groups.google.com/group/android-developers/msg/887fbc62b6367fa9,
which you could use to branch your code internally. Not that that's
inherently cleaner, but it might work out that way for certain
circumstances.

String

On Oct 28, 11:18 am, jarkman jark...@gmail.com wrote:
 We have an app which is very involved with contact data, and will need
 to be ported to the new contacts APIs to work properly under 2.0.

 It looks like the change will affect quite a lot of code, so ideally
 we would fork the project, make the right changes, and then have 1.6
 and 2.0 builds in the market. We would need to maintain both branches
 for a few months, till 2.0 is widely deployed, then move forwards from
 the new branch.

 We can't do that as long as the Market doesn't support multiple builds
 per app, obviously. What else can we do ?

 There's reflection, of 
 course:http://android-developers.blogspot.com/2009/04/backward-compatibility...
 which would let us build some kind of cross-version-compatible wrapper
 for both contacts APIs. Is that really the only way ? Is anyone
 solving the problem in any tidier ways ?

 Thanks,

 Richard
--~--~-~--~~~---~--~~
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: Help me: My emulator reported an error that com.android.settings has no certificates at entry AndroidManifest.xml

2009-10-28 Thread yagbu

I verified the signature of my modified settings.apk by jarsigner
tool.
$jarsigner -verify settings.apk

It reported that jar verified.

So the signature of settings.apk should be right. But why did it
report error of has no certificates at install stage?

On 10月23日, 下午10时29分, yagbu yagbu.c...@gmail.com wrote:
 Hi,

 I did some modification about the java code and AndroidManifest.xml of
 com.android.settings package.
 Then I ran the emulator like this:
 make;
 lunch 1;
 emulator 

 When PackageManagerService was scanning the /system/app/Settings.apk
 packages at boot time, it reported an error that com.android.settings
 has no certificates at entry AndroidManifest.xml.

 I guess my modified Settings.apk could not pass the signature
 verify. How can I run my modified Settings.apk successfully?
 Could anybody help me?

 Thanks,yagbu
--~--~-~--~~~---~--~~
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: myMap.setData(uri) - KML

2009-10-28 Thread qlimax

sorry is there a way to write a Dom document to an xml file?? in
normal java se there is a Transformer class, but in android no.

I need that because I have to create the URI with that file.
--~--~-~--~~~---~--~~
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] Quick Search Box and ActivityGroup

2009-10-28 Thread skyman

Hello,

I've just added QuickSearchBox support in my app.
Everything is working okay except that when I press search button in
by main activity which is extendng ActivityGroup the default
QuickSearchBox is displayed with global search suggestions, but when I
change activity within group I'm getting application specific search
box.

What am I doing wrong?
--~--~-~--~~~---~--~~
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: Help me: My emulator reported an error that com.android.settings has no certificates at entry AndroidManifest.xml

2009-10-28 Thread RichardC

Looks like a question for
http://groups.google.com/group/android-platform
or
http://groups.google.com/group/android-porting

If I am right and you are modifying the Android platform code I think
it needs to be signed with a key you do not have.

--
RichardC

On Oct 28, 12:30 pm, yagbu yagbu.c...@gmail.com wrote:
 I verified the signature of my modified settings.apk by jarsigner
 tool.
 $jarsigner -verify settings.apk

 It reported that jar verified.

 So the signature of settings.apk should be right. But why did it
 report error of has no certificates at install stage?

 On 10月23日, 下午10时29分, yagbu yagbu.c...@gmail.com wrote:

  Hi,

  I did some modification about the java code and AndroidManifest.xml of
  com.android.settings package.
  Then I ran the emulator like this:
  make;
  lunch 1;
  emulator 

  When PackageManagerService was scanning the /system/app/Settings.apk
  packages at boot time, it reported an error that com.android.settings
  has no certificates at entry AndroidManifest.xml.

  I guess my modified Settings.apk could not pass the signature
  verify. How can I run my modified Settings.apk successfully?
  Could anybody help me?

  Thanks,yagbu


--~--~-~--~~~---~--~~
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: I can't save a DOM Document into an xml file.

2009-10-28 Thread qlimax

that's S**T because I'm searching for that also!

no way? :(

On 9 Set, 12:06, Guijoye guij...@gmail.com wrote:
 Hi all,

 I'm using org.w3c.dom.Document to create a document and I need now towriteit 
 into a .xmlfile. I saw tutorials refering the
 javax.xml.transform.Transformer package but this one is not avalaible
 in the Android platform.

 My code looks like this :

 [...]

 org.w3c.dom.Document document = null;

 DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
 DocumentBuilder docBuilder;

 try
 {
   docBuilder = dbfac.newDocumentBuilder();
   document = docBuilder.newDocument();

   processDocument(document);}

 catch (ParserConfigurationException e)
 {
   // TODO Auto-generated catch block
   e.printStackTrace();

 }

 if (document != null)
 {
   documentToFile(document, filename); // this is what I need!

 }

 [...]

 I've been looking for hours now and I can't find a way to get this
 working!

 Thanks for any help.
--~--~-~--~~~---~--~~
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: First QVGA Android Phone — HTC Tattoo™ — on sale October 2009. Is your applicat ion ready?

2009-10-28 Thread htcand...@gmail.com

Thank you for your question.

We expect the same look and feel between the QVGA emulator and the
device, so if the UI of your application does not have a problem
displaying on the emulator, then it should not have a problem on the
device.

Regarding providing unlocked devices to developers, currently we don't
have such a plan. If we do receive enough demand from developers, then
we may consider to start offering our support in this area.



On 10月11日, 上午2時04分, JoaJP joachim.pfeif...@gmail.com wrote:
 First off, thank you for approaching the dev community (I assume to
 speak for the rest here...)

 Question (cc to androidsupp...@htc.com, for reference: this is a
 response to your post in the Android Developers group):
 After devs exhaust the tools and resources that Donut offers, and
 access to a physical device is still needed to appropriately test the
 apps for the different screen sizes (and potentially other behavioral
 changes outside of that aspect) - does HTC offer a path to such
 devices outside of having to purchase the devices outright?
 Example: Augmented Reality apps rely on sensor inputs that DDMS does
 not seem to support, at least at this point (Outside of that, it's a
 pain to work with DDMS/emulators to begin with). At the current price
 point of the average app, it takes a considerable amount of executed
 sales to recover that potential cost, to a degree that the acquisition
 of the various devices to perpetuate the app beyond the current set of
 devices cannot be justified. (Assuming the dev is unwilling to go into
 the hole on an ongoing basis).

 On Oct 10, 8:46 am, htcand...@gmail.com htcand...@gmail.com wrote:



  HTC Corporation is set to launch the HTC Tattoo(tm) -- the first Android
  phone with QVGA resolution -- this month with major European and Asian
  operators. The QVGA screen has helped make the HTC Tattoo a very
  affordable offering, while it still maintains HTC Sense and features
  such as a 3 Megapixel camera, WiFi, GPS and 4-way D-pad navigation to
  ensure compatibility with your applications and provide an excellent
  user experience. Because it was designed as an affordable,
  customizable phone, we expect it will lead many new users to the
  Android platform and create additional demand for Android Market
  applications.

  HTC Tattoo is powered by Android 1.6, also referred to as Donut, in
  order to support the QVGA resolution. Due to the new Android Market's
  filtering mechanism, QVGA devices will only see applications which
  have been recompiled with Donut. We strongly recommend that you
  recompile your applications with Donut to ensure that it is available
  to Tattoo and other Donut devices that take advantage of new
  resolutions on the market.

  To help you reach your total potential customer base on Android
  Market, we would like to share our experiences about the porting
  process. We will be posting FAQs and porting suggestions on our
  website so that you can leverage what we have learned and get your
  QVGA compatible applications published quickly and effectively.
  Furthermore, if you encounter problems not mentioned in our FAQ
  section, feel free to email us at androidsupp...@htc.com. Our
  engineering support team will try our best to resolve any porting
  issues.

  For HTC - Tattoo QVGA Technical support, visithttp://developer.htc.com/
  For more information on HTC Tattoo, 
  visithttp://www.htc.com/www/product/tattoo/overview.html- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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] emulator: could not find virtual device named...

2009-10-28 Thread westmeadboy

This is a problem where the .android folder is being placed in the
wrong location on Vista.

When I do this:

android create avd -n android1.5 -t 2

the .android folder is placed at d:\.android.

This is the same when using the Eclipse ADT plugin.

However, the documentation states:

By default, the android tool creates the AVD directory inside ... C:
\Users\user\.android\ on Windows Vista.

So something is clearly going wrong.

I assume its because I have relocated most of my special folders like
Desktop and Documents to the d:\ drive.

When I then do:

android list avds

it correctly shows the avd I have just created.

However, if I try to run the emulator then the avd cannot be found.

My workaround for this is to copy the d:\.android folder to C:\Users
\user\.android

In short, it looks as though the emulator and the android command are
using different logic to work out the default .android location.

I've tested this using the 1.5 and 2.0 SDKs.
--~--~-~--~~~---~--~~
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: showDialog() fails to show anything

2009-10-28 Thread Greg Donald

On Mon, Oct 26, 2009 at 9:49 PM, Greg Donald gdon...@gmail.com wrote:
 I'm having problems getting showDialog() to show anything.

 I have this for my onCreateDialog() callback:

 private static final int ID_DIALOG_X = 1;

 protected Dialog onCreateDialog(int id) {
  if (id == ID_DIALOG_X) {
    ProgressDialog pg = new ProgressDialog(this);
      pg.setMessage(Loading..);
      return pg;
  }
  return super.onCreateDialog(id);
 }

 And then I'm calling it like this:

 showDialog(ID_DIALOG_X);

 But nothing shows up, no errors either.

 Using ddms and Log.i() I can see my onCreateDialog() is being
 executed, the new progress dialog gets created, but then nothing shows
 up.

 Any ideas?  TIA.


Anyone?



-- 
Greg Donald
http://destiney.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] T2S OnUtteranceCompletedListener not working

2009-10-28 Thread Markus Gursch

Hello

i have a problem to recognize when speak has finished.

here is my code

t2s = new TextToSpeech(this, this);
int result = t2s.setOnUtteranceCompletedListener(completeListener);

result is equal to TextToSpeech.ERROR (-1) - i don't know why.

i speak like this but onUtteranceComplete is not fired:

HashMapString, String params = new HashMapString, String();
params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, theUtId);
t2s.speak(speechText, TextToSpeech.QUEUE_FLUSH, params);

what is the problem???
--~--~-~--~~~---~--~~
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: T2S OnUtteranceCompletedListener not working

2009-10-28 Thread blindfold

Perhaps related to 
http://groups.google.com/group/tts-for-android/browse_frm/thread/6d5feb49a599e9f9
or else ask in that group?

On Oct 28, 2:37 pm, Markus Gursch swordia...@gmail.com wrote:
 Hello

 i have a problem to recognize when speak has finished.

 here is my code

 t2s = new TextToSpeech(this, this);
 int result = t2s.setOnUtteranceCompletedListener(completeListener);

 result is equal to TextToSpeech.ERROR (-1) - i don't know why.

 i speak like this but onUtteranceComplete is not fired:

 HashMapString, String params = new HashMapString, String();
 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, theUtId);
 t2s.speak(speechText, TextToSpeech.QUEUE_FLUSH, params);

 what is the problem???
--~--~-~--~~~---~--~~
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: T2S OnUtteranceCompletedListener not working

2009-10-28 Thread Markus Gursch


Thanks, i saw this entries, but they didnt help me. my problem is at
adding the listener.

but i dont know what i am doing wrong


On 28 Okt., 14:45, blindfold seeingwithso...@gmail.com wrote:
 Perhaps related 
 tohttp://groups.google.com/group/tts-for-android/browse_frm/thread/6d5f...
 or else ask in that group?

 On Oct 28, 2:37 pm, Markus Gursch swordia...@gmail.com wrote:

  Hello

  i have a problem to recognize when speak has finished.

  here is my code

  t2s = new TextToSpeech(this, this);
  int result = t2s.setOnUtteranceCompletedListener(completeListener);

  result is equal to TextToSpeech.ERROR (-1) - i don't know why.

  i speak like this but onUtteranceComplete is not fired:

  HashMapString, String params = new HashMapString, String();
  params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, theUtId);
  t2s.speak(speechText, TextToSpeech.QUEUE_FLUSH, params);

  what is the problem???


--~--~-~--~~~---~--~~
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: showDialog() fails to show anything

2009-10-28 Thread qlimax

have you tried

Dialog pg=new ProgressDialog(this)

then return pg ?

just to try it... and UP this thread...:)

On 28 Ott, 14:27, Greg Donald gdon...@gmail.com wrote:
 On Mon, Oct 26, 2009 at 9:49 PM, Greg Donald gdon...@gmail.com wrote:
  I'm having problems getting showDialog() to show anything.

  I have this for my onCreateDialog() callback:

  private static final int ID_DIALOG_X = 1;

  protected Dialog onCreateDialog(int id) {
   if (id == ID_DIALOG_X) {
     ProgressDialog pg = new ProgressDialog(this);
       pg.setMessage(Loading..);
       return pg;
   }
   return super.onCreateDialog(id);
  }

  And then I'm calling it like this:

  showDialog(ID_DIALOG_X);

  But nothing shows up, no errors either.

  Using ddms and Log.i() I can see my onCreateDialog() is being
  executed, the new progress dialog gets created, but then nothing shows
  up.

  Any ideas?  TIA.

 Anyone?

 --
 Greg Donaldhttp://destiney.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: showDialog() fails to show anything

2009-10-28 Thread Greg Donald

On Wed, Oct 28, 2009 at 9:14 AM, qlimax eneager...@gmail.com wrote:

 have you tried

 Dialog pg=new ProgressDialog(this)

 then return pg ?

 just to try it... and UP this thread...:)


Tried it:

protected Dialog onCreateDialog(int id) {
if (id == ID_DIALOG_X) {
Dialog pg = new ProgressDialog(this);
return pg;
}

return super.onCreateDialog(id);
}


Didn't help.


-- 
Greg Donald
http://destiney.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: First QVGA Android Phone — HTC Tattoo™ — on sale October 2009. Is your applicat ion ready?

2009-10-28 Thread JP

I've already tested the Tattoo's (and other) screen sizes; works fine
in the emulator... i've built that capability into my products from
day one. But that's starter issues;  emulator testing only goes only
so far.
As an example, there is no adequate representation of the camera
preview in the emulator. Sensors (accelerometer, magnetometer) fall
into that category as well. Given different processors/clocking
resulting in different execution speeds, race conditions in multi-
threaded apps may be revealed. Or some work might be required for
those that integrate an audio codec in their app, to bring up another
example.

Even on relatively closely related devices like the G1 and the Google
Ion (please fill in the correct HTC product names), we've seen
problems with the camera preview. And with other manufacturer's
products we heard about  differences in sensor outputs. So, at least
speaking for myself, with emulator testing only, it is not possible to
ready an app for the upcoming Tatoo, or any new device, with
sufficient confidence.


On Oct 28, 6:07 am, htcand...@gmail.com htcand...@gmail.com wrote:
 Thank you for your question.

 We expect the same look and feel between the QVGA emulator and the
 device, so if the UI of your application does not have a problem
 displaying on the emulator, then it should not have a problem on the
 device.

--~--~-~--~~~---~--~~
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: How to hide activity on BACK key without onDestroy?

2009-10-28 Thread Streets Of Boston

I agree with Piotr.

Tomei,
We may be able to help you with the *how*, if you told us *what* you
are trying to accomplish. I am almost 100% it could be done without
trying to circumvent Android's lifecycle management.

On Oct 28, 4:42 am, Piotr piotr.zag...@gmail.com wrote:
 If you think how to get around application lifecycle, then you
 project design is TOTALLY BAD. Really.

 Redesign project.

 On 28 Paź, 08:26, tomei.ninge...@gmail.com



 tomei.ninge...@gmail.com wrote:
  When user presses BACK key, my activity's onDestroy is called and then
  it is killed. Is there a way (by overridding Activity.onKeyDown??) to
  simply put the activity into background without killing it?

  I want the BACK key to act like the HOME key (which doesn't kill my
  app), except I want to show the activity immediately below my
  activity.

  Thanks!- 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] how to invoke a APK file

2009-10-28 Thread tstanly

hi guys,

if I wnat to invoke b.apk from a.apk (such as click a button on a.apk)
and if I don't know the package name and class name(entry point) about
b.apk,
can it still to do that??

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: NEEDED: Apps to feature on Sprint Microsite

2009-10-28 Thread Wayne Wenthin
I hope you were not associating me with Sprint.   I merely hinted that he
may want to put some conditions on what type of apps he was looking to
promote.   My app is obviously not intended for anyone under 18 and deals
with adult subject matter.   This is probably the type of information that
should be put out with any call for app submissions.

Now if he wants to hand me his paycheck I'll let you associate me with
sprint for awhile.   ;-)


On Tue, Oct 27, 2009 at 10:46 PM, JP joachim.pfeif...@gmail.com wrote:


 Well let's see
 Just a few months ago I go sign up to Clearwire's Silicon Valley WiMax
 dev program. I'm up in SF so I suppose that wasn't close enough or
 whatever, I've never heard back so I couldn't say. Would have been
 nice to put that Nokia N810 WiMax Edition on their network and toy
 around with some of the stuff I built for that.
 Then there's Moto's Accelerator program that I've passed on,
 thankfully, as we hear not too many tangible results are coming out of
 that.
 In recent memory we've got an evangelist from Sprint that managed to
 throw away the upfront credit he's got here in just two post. That
 must be record time.

 Wayne, so far your effort has been laudable. But then... this morning
 I check on Sprint's web site following your post and do not find any
 evidence there's even a phase 1. So, with the above in mind, looks
 like another poorly executed effort, no?


 On Oct 27, 8:11 pm, Dianne Hackborn hack...@android.com wrote:
  On Tue, Oct 27, 2009 at 6:05 PM, JP joachim.pfeif...@gmail.com wrote:
   Generally speaking, I've stopped a long time ago signing up for stuff
   under such a premise. I get the sense I'm not alone here.
 
  What things like this have you been involved with that left a bad taste
 in
  your mouth?  I am genuinely curious?  The offer from Sprint seems quite
  attractive to me -- give them a screen shot and they may pick your app
 for
  free publicity.
 
  --
  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.
 



-- 
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] getNetworkLocation in 2.0

2009-10-28 Thread Wayne Wenthin
I can't get this to work in the emulator.

LocationManager lm = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000L,
500.0f, this);
Location loc = lm
.getLastKnownLocation(lm.getProviders(true).get(0));

loc always returns NULL.I have tried to push the location with geo fix
and the emulators DDMS view.   I am using COARSE_LOCATION and seem to be
getting a new error that I haven't seen before:
10-28 15:10:12.470: ERROR/LocationMasfClient(59): getNetworkLocation():
accuracy is too high 24000

Any clues?   Is this just an issue with the emulator or am I missing some
upgraded code in 2.0?



-- 
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: adc 2 Second Round

2009-10-28 Thread jgostylo

If Google tells you that posting about it means instant
disqualification then I don't think it would be worth the risk
considering only the people moving forward would know.  But I see your
point.  News like that would almost certainly leak if not from the
people advancing to the next round and that news would definitely
spread considering how many people are searching for those results.

On Oct 26, 3:50 pm, ander...@phdgaming.com ander...@phdgaming.com
wrote:
 I'm sure someone would have posted if this was the case. As far as I
 can tell, there is just no information publicly available at this time
 and all of us are in the dark.

 On Oct 26, 4:04 pm, dadical keyes...@gmail.com wrote:

  My guess is that if you haven't received a notification from Google
  about being in round two by now, you didn't make it.  I'd wager that
  they gave an upgrade period to devs that made the cut so that they
  could deal with the fairly significant issues introduced in the mid-
  contest upgrade to Donut.

  Messy, messy.  Lots of balls in the air and too many jugglers it
  seems...
--~--~-~--~~~---~--~~
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] Preferred way to support multiple Android OS Versions?

2009-10-28 Thread Beowolve

Hi all,

I have a few scenarios where I guess I am not alone with. There is no
easy solution but this has to be on top of the list I think...

1. Suppose you have an application that is compiled with 1.5 and is
working fine even if started on a 1.6 device. But you now want to
support other resolutions, so you need to compile with 1.6.
Problem:
If I recompile and publish the new apk, the 1.5 users want see my
applications. Users already downloaded my application can not
upgrade... (will there be a new version available shown to them in
the market?)

2. Lets say your application works fine on 1.5 and 1.6 and you decided
to publish your application twice with different package names.
MyApplication 1.5 and MyApplication 1.6 for example.
Problem:
The user upgrading from a older version does not know that there is a
new version, because you published a new Application. You can write it
into the description and tell the user to download the 1.6 version but
many users might not read that...
Settings from the other application are lost...
Your downloads are split into two applications, so you might not make
it into the top ranks that easy . You might even need to publish 4
applications if you have a light and a paid version.

3. Now 2.0 SDK is available and you want to add multi touch features
or any other new stuff for all 2.0 users.
Problem:
The above problems are getting even worse. There is no way to easily
upload multiple apks for the same application.
Having to rename the package is also not making this better. Every
time svn freaks out and marks everything as new. Sharing code between
versions is difficult because of that.



I don't know if its just 3 (provider in Austria), but I still have
not received an official update to 1.6. Testing on the real device is
not possible with a 1.6 image if you don't want to root your phone and
update the rom manually. 2.0 will be on some devices soon, so there is
definitely a need to support all 3 versions.


Conclusion:
There should be a faster update cycle for the users or a slower update
of new versions meaning bigger steps.
or
We get an easier way to support multiple versions. This also means we
need a way to know how many actual devices with version 1.5 / 1.6 /
2.0 are already sold and/or upgraded. If i know that 1.5 is only on
about 5% of the devices left, then I can just stop supporting that
version and upgrade.

At the moment we can just guess...
--~--~-~--~~~---~--~~
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] update a ListView with getView

2009-10-28 Thread jax

Hi

I am trying to update a ListView with the following:

TextView listItem= (TextView)mAvailableOptionsListView.getAdapter
().getView(1, null, null);

listItem.setText(test);


The problem is that it does not update in the
mAvailableOptionsListView ListView.  Why is that?
--~--~-~--~~~---~--~~
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] BluetoothAdapter - ACTION_DISCOVERY_FINISHED

2009-10-28 Thread Ne0

Ok i may be missing something here, but i can't see any documentation
on what (if any) data is returned with Intent
ACTION_DISCOVERY_FINISHED.

I would hope that there is a list of discovered devices, but i cant
find any documentation on it plus i don't have an android phone to
test this on.

Any idea's on how we get the actually get a List of discovered
devices back? or is it possible from the SDK?

Thanks,

Liam.

Also anyone know where i can get an Android 2 image for the ADP1,
still waiting for the source 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] cant see my text box while typing on soft keypad

2009-10-28 Thread zeeshan

Hi Dear,

i have a relative layout with Edit text fileds and some buttons at
bottom.
when i try to write anything on edittext field in the middle of
screen, it just being hidden by the keypad and buttons layout comes on
top.

any idea how can i have soft keypad working fine for my edit texts?
--~--~-~--~~~---~--~~
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] Can't Get CameraPreview Example to Work

2009-10-28 Thread polyclefsoftware

I upgraded to the 2.0 SDK yesterday...don't know if that has anything
to do with it. I can't get the CameraPreview example from the API
Demos to work. I get the same error in both my emulator and on my G1:

E/AndroidRuntime( 4758): java.lang.RuntimeException: Fail to connect
to camera service

Anyone else experiencing this? If not, any ideas on what's going on?
--~--~-~--~~~---~--~~
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: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-28 Thread Armond Avanes

Xavier,

I've downloaded the SDK package (v3) and have run both SDK Setup.exe and
android.bat (I'm on WinXP). But still the same problem... There are not
any open command-lines (but the one running the SDK tool itself) or
explorers!

Can't it be a bug?

Regards,
Armond 

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Xavier Ducrohet
 Sent: Wednesday, October 28, 2009 4:19 AM
 To: android-developers@googlegroups.com
 Subject: [android-developers] Re: Eclair install choked with errors about
 locks and died horribly leaving corrupted install
 
 
 That's correct.
 
 Windows users who are not using eclipse, we recommend that you
 download the SDK package at
 http://developer.android.com/sdk/index.html
 
 This is basically only the tools folder, but it also includes a SDK
 Setup.exe at the top SDK folder which calls android.bat in update
 mode. This should fix the lock problem.
 
 Xav
 
 On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston
 flyingdutc...@gmail.com wrote:
 
  I have the same issue.
 
  I started android.bat from the command prompt.
  Since android.bat is in the directory that is reported to be locked,
  my command prompt is holding a lock to it when starting
  android.bat not very handy...
 
  On Oct 27, 7:36 pm, Xavier Ducrohet x...@android.com wrote:
  Hi,
 
  the issue is with Windows putting locks on files/folders. For instance
  if you have a file explorer opened on the folder being updated (e.g.
  the docs folder), it'll prevent other programs from modifying the
  files/folders.
 
  If you have problem using it from eclipse you can always use
  SDK/tools/android.bat which provide you with the same UI.
 
  Which version of Eclipse are you using? I'll double-check that Eclipse
  doesn't open/lock some files in the documentation.
 
  Xav
 
  On Tue, Oct 27, 2009 at 2:31 PM, Jim Showalter
 
 
 
 
 
  jamesleeshowal...@gmail.com wrote:
   Followed the instructions in
  http://developer.android.com/sdk/adding-components.htmlfor adding 2.0
 as
   components to an existing 1.6 SDK, from within Eclipse.
 
   It didn't work. Not by a long shot. Instead, it got partway through
 and then
   said that C:\android-sdk-windows-1.6_r1\
   temp\DocPackage.new01 couldn't be copied because of a lock, and
 similarly
   for PlatformPackage.new01.
 
   It said to shut down running programs, but the only program running
 was
   Eclipse, which was needed to do the upgrade.
 
   The cancel button was disabled, and the close box didn't work.
 Shutting down
   Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a
 corrupted
   state. Restarting Eclipse showed the Android projects with errors, no
 SDK,
   and a disabled Android SDK and AVD Manager (which means no ability to
 rerun
   the install).
 
   Shutting down Eclipse, renaming the corrupted SDK directory,
 unzipping 1.6
   again into C:, and restarting Eclipse made it as if nothing had ever
   happened, which is good. But it is not possible to complete the
 install from
   Eclipse, which is bad.
 
   The dialog says:
 
   Failed to rename directory
   C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
   C:\android-sdk-windows-1.6_r1\docs
   -= Warning ! =-
   A folder failed to be renamed or moved. On Windows this typically
 means that
   a program is using that folder (for example Windows Explorer.) Please
 close
   all running programs that may belockingthe directory
   'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
 
   Failed to rename directory
   C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
   C:\android-sdk-windows-1.6_r1\docs
   -= Warning ! =-
   A folder failed to be renamed or moved. On Windows this typically
 means that
   a program is using that folder (for example Windows Explorer.) Please
 close
   all running programs that may belockingthe directory
   'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
   Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)
 
  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.- Hide quoted text -
 
  - Show quoted text -
  
 
 
 
 
 --
 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: update a ListView with getView

2009-10-28 Thread jax

ok fixed that, I used this:

mAvailableOptionsListView.getChildAt(correctPosition).setAnimation
(shake)

my next problem is that when I set this animation the view does not
seem to set the animation immediately...why is that?  Do I have to
invalidate anything or manually refresh the display somehow?

On Oct 28, 10:54 pm, jax jackma...@gmail.com wrote:
 Hi

 I am trying to update a ListView with the following:

 TextView listItem= (TextView)mAvailableOptionsListView.getAdapter
 ().getView(1, null, null);

 listItem.setText(test);

 The problem is that it does not update in the
 mAvailableOptionsListView ListView.  Why is that?
--~--~-~--~~~---~--~~
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: Preferred way to support multiple Android OS Versions?

2009-10-28 Thread JP


Well it's everybody's guess right now.

First, let me interject a remark regarding having to root a device for
1.6: Normally you shouldn't have to do that. See if you can find the
installation packages for your device and upgrade manually. As far as
the Google Ion is concerned, for instance, HTC offers the required
packages and instructions on their web site.

Other than that... I wouldn't worry about 2.0 that much quite yet.
What I've done is to blank out Verizon in the Android Market. They are
the only carrier that I'm aware of that's said to be pushing a 2.0
device sometime in the near future, and sure, that'll miss a 1.5
device they'll be coming out with. Although you might not reach every
last potential customer when you do that.. you'll buy yourself some
time so you can establish yourself comfortably on 1.6 and square that
issue away first. You may find none or only small changes are required
to accommodate 1.6 so that should cover 1.5 and 1.6 for you. Then you
go on to new challenges.



On Oct 28, 8:19 am, Beowolve beowo...@gmail.com wrote:
 Hi all,

 I have a few scenarios where I guess I am not alone with. There is no
 easy solution but this has to be on top of the list I think...

 1. Suppose you have an application that is compiled with 1.5 and is
 working fine even if started on a 1.6 device. But you now want to
 support other resolutions, so you need to compile with 1.6.
 Problem:
 If I recompile and publish the new apk, the 1.5 users want see my
 applications. Users already downloaded my application can not
 upgrade... (will there be a new version available shown to them in
 the market?)

 2. Lets say your application works fine on 1.5 and 1.6 and you decided
 to publish your application twice with different package names.
 MyApplication 1.5 and MyApplication 1.6 for example.
 Problem:
 The user upgrading from a older version does not know that there is a
 new version, because you published a new Application. You can write it
 into the description and tell the user to download the 1.6 version but
 many users might not read that...
 Settings from the other application are lost...
 Your downloads are split into two applications, so you might not make
 it into the top ranks that easy . You might even need to publish 4
 applications if you have a light and a paid version.

 3. Now 2.0 SDK is available and you want to add multi touch features
 or any other new stuff for all 2.0 users.
 Problem:
 The above problems are getting even worse. There is no way to easily
 upload multiple apks for the same application.
 Having to rename the package is also not making this better. Every
 time svn freaks out and marks everything as new. Sharing code between
 versions is difficult because of that.

 I don't know if its just 3 (provider in Austria), but I still have
 not received an official update to 1.6. Testing on the real device is
 not possible with a 1.6 image if you don't want to root your phone and
 update the rom manually. 2.0 will be on some devices soon, so there is
 definitely a need to support all 3 versions.

 Conclusion:
 There should be a faster update cycle for the users or a slower update
 of new versions meaning bigger steps.
 or
 We get an easier way to support multiple versions. This also means we
 need a way to know how many actual devices with version 1.5 / 1.6 /
 2.0 are already sold and/or upgraded. If i know that 1.5 is only on
 about 5% of the devices left, then I can just stop supporting that
 version and upgrade.

 At the moment we can just guess...
--~--~-~--~~~---~--~~
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] How to capture Soft keyboard key events.

2009-10-28 Thread Gulfam

Hi all group members,

I am facing a problem any one can help me regarding this.

I have an  EditText and a list of contacts. I want to search a
contacts on maching with characters entered in EditText field. In my
activity I have implemented  OnKeyListener .

and in onCreat (){
  searchField = (EditText)findViewById(R.id.search_field);
  searchField.setOnKeyListener(this);
}
 and i have also implemented the method like this

public boolean onKey(View v, int keyCode, KeyEvent event) {

//Here i am getting text from my search field and comparing with
contacts and updating contacts list
}

When i pressed keys like (abc --- xyz or 0 --9 or any key) from my
computer key board or
keyboard which is displaying on right side of the emulator my code is
working fine. Currently I am using HTC Magic Emulator and Device also.

***Its workin fine for me**
But now move to issue--

when i touch EditText field  a software keyboard launched and when i
pressed any key from my screen keyboard
its not giving me the events in onKey() method in other words its not
calling onKey(){} method. but this method is called on specific keys
like (0 to 9 and Delete key).

I have also implement keyListener interface and its 4 to 5 methods
like keyUp(), keyDown(),etc  but when i implement keyListener
softkeyboard is not launching on touching my EditText field.

Any useful solution would be highly appriciated.
Thanks in advance.
Gulfam Hassan

--~--~-~--~~~---~--~~
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: update a ListView with getView

2009-10-28 Thread jax

ok, I used invalidateViews() and it seemed to work.  This will
invalidate all views.  Is it better to use a Rect in this case or does
it not really matter?

On Oct 28, 11:25 pm, jax jackma...@gmail.com wrote:
 ok fixed that, I used this:

 mAvailableOptionsListView.getChildAt(correctPosition).setAnimation
 (shake)

 my next problem is that when I set this animation the view does not
 seem to set the animation immediately...why is that?  Do I have to
 invalidate anything or manually refresh the display somehow?

 On Oct 28, 10:54 pm, jax jackma...@gmail.com wrote:

  Hi

  I am trying to update a ListView with the following:

  TextView listItem= (TextView)mAvailableOptionsListView.getAdapter
  ().getView(1, null, null);

  listItem.setText(test);

  The problem is that it does not update in the
  mAvailableOptionsListView ListView.  Why is that?


--~--~-~--~~~---~--~~
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: Can anybody share an unofficial download link of android SDK 2.0 eclair?

2009-10-28 Thread Lance Nanek

Do the direct downloads work for you? They are on a different
subdomain:
http://dl.google.com/android/android-sdk_r3-windows.zip
http://dl.google.com/android/android-sdk_r3-mac.zip
http://dl.google.com/android/android-sdk_r3-linux.tgz
http://dl.google.com/android/ADT-0.9.4.zip

I'd mirror them for you, but the license forbids redistribution.

On Oct 27, 8:12 pm, Hugh bo...@gmail.com wrote:
 As some of you may know, URL developers.android.com has been blocked
 in China, thus I am unable to download the newest SDK.

 Would anybody kindly upload the SDK to a server and let me know the
 address for downloading.

 Highly appreciated your help. Thanks,

 Regards,
 Hugh
--~--~-~--~~~---~--~~
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: T2S OnUtteranceCompletedListener not working

2009-10-28 Thread Markus Gursch

other hints 

i need to know when the speak is over

On 28 Okt., 14:52, Markus Gursch swordia...@gmail.com wrote:
 Thanks, i saw this entries, but they didnt help me. my problem is at
 adding the listener.

 but i dont know what i am doing wrong

 On 28 Okt., 14:45, blindfold seeingwithso...@gmail.com wrote:

  Perhaps related 
  tohttp://groups.google.com/group/tts-for-android/browse_frm/thread/6d5f...
  or else ask in that group?

  On Oct 28, 2:37 pm, Markus Gursch swordia...@gmail.com wrote:

   Hello

   i have a problem to recognize when speak has finished.

   here is my code

   t2s = new TextToSpeech(this, this);
   int result = t2s.setOnUtteranceCompletedListener(completeListener);

   result is equal to TextToSpeech.ERROR (-1) - i don't know why.

   i speak like this but onUtteranceComplete is not fired:

   HashMapString, String params = new HashMapString, String();
   params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, theUtId);
   t2s.speak(speechText, TextToSpeech.QUEUE_FLUSH, params);

   what is the problem???


--~--~-~--~~~---~--~~
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: Preferred way to support multiple Android OS Versions?

2009-10-28 Thread Michael MacDonald

I don't think this is as hard as you think.  You don't need to have
multiple versions of the application.

If you want to support different resolutions, just change (or add) the
targetSdkVersion attribute in your Android manifest to 4 (which is
1.6).  If you don't change the minSdkVersion, it will still be available
to users with older versions of Android.

Things only get tricky if you want to use API's from later versions of
Android, while still retaining compatibility with previous versions. 
Then you have to isolate the code that uses the new API in a class that
you reference only dynamically, so you can test if the new API is
available before trying to use the class.

Beowolve wrote:
 Hi all,

 I have a few scenarios where I guess I am not alone with. There is no
 easy solution but this has to be on top of the list I think...

 1. Suppose you have an application that is compiled with 1.5 and is
 working fine even if started on a 1.6 device. But you now want to
 support other resolutions, so you need to compile with 1.6.
 Problem:
 If I recompile and publish the new apk, the 1.5 users want see my
 applications. Users already downloaded my application can not
 upgrade... (will there be a new version available shown to them in
 the market?)

 2. Lets say your application works fine on 1.5 and 1.6 and you decided
 to publish your application twice with different package names.
 MyApplication 1.5 and MyApplication 1.6 for example.
 Problem:
 The user upgrading from a older version does not know that there is a
 new version, because you published a new Application. You can write it
 into the description and tell the user to download the 1.6 version but
 many users might not read that...
 Settings from the other application are lost...
 Your downloads are split into two applications, so you might not make
 it into the top ranks that easy . You might even need to publish 4
 applications if you have a light and a paid version.

 3. Now 2.0 SDK is available and you want to add multi touch features
 or any other new stuff for all 2.0 users.
 Problem:
 The above problems are getting even worse. There is no way to easily
 upload multiple apks for the same application.
 Having to rename the package is also not making this better. Every
 time svn freaks out and marks everything as new. Sharing code between
 versions is difficult because of that.



 I don't know if its just 3 (provider in Austria), but I still have
 not received an official update to 1.6. Testing on the real device is
 not possible with a 1.6 image if you don't want to root your phone and
 update the rom manually. 2.0 will be on some devices soon, so there is
 definitely a need to support all 3 versions.


 Conclusion:
 There should be a faster update cycle for the users or a slower update
 of new versions meaning bigger steps.
 or
 We get an easier way to support multiple versions. This also means we
 need a way to know how many actual devices with version 1.5 / 1.6 /
 2.0 are already sold and/or upgraded. If i know that 1.5 is only on
 about 5% of the devices left, then I can just stop supporting that
 version and upgrade.

 At the moment we can just guess...



--~--~-~--~~~---~--~~
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] buttons in list entries

2009-10-28 Thread alexdonnini

Hello,

I have an application that generates a list with two buttons for each
entry in the list.

It's working to a limited extent. I have run into a problem which I
have not be able to resolve.

Can anyone point me to a tutorial or code sample, or both where I
could see a working example of a list with buttons attached to
individual list entries?

Thanks in advance for your help.

Alex Donnini
--~--~-~--~~~---~--~~
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: adc 2 Second Round

2009-10-28 Thread Maps.Huge.Info (Maps API Guru)

comedy
Hey, they haven't contacted me yet and I'm sure at least one of my
apps will make it into the next round...
/comedy

-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: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-28 Thread Streets Of Boston

I had the same problem.
I decided to just unzip the contents of the SDK package - tools
directory only; you'll find the others are empty - into the the tools
directory of the Android SDKs used by Eclipse.

This did the trick for Eclipse. Although, i still see that weird
message when opening android.bat (see my earlier posts).

On Oct 28, 12:23 pm, Armond Avanes armond...@yahoo.com wrote:
 Xavier,

 I've downloaded the SDK package (v3) and have run both SDK Setup.exe and
 android.bat (I'm on WinXP). But still the same problem... There are not
 any open command-lines (but the one running the SDK tool itself) or
 explorers!

 Can't it be a bug?

 Regards,
 Armond



  -Original Message-
  From: android-developers@googlegroups.com [mailto:android-
  develop...@googlegroups.com] On Behalf Of Xavier Ducrohet
  Sent: Wednesday, October 28, 2009 4:19 AM
  To: android-developers@googlegroups.com
  Subject: [android-developers] Re: Eclair install choked with errors about
  locks and died horribly leaving corrupted install

  That's correct.

  Windows users who are not using eclipse, we recommend that you
  download the SDK package at
 http://developer.android.com/sdk/index.html

  This is basically only the tools folder, but it also includes a SDK
  Setup.exe at the top SDK folder which calls android.bat in update
  mode. This should fix the lock problem.

  Xav

  On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston
  flyingdutc...@gmail.com wrote:

   I have the same issue.

   I started android.bat from the command prompt.
   Since android.bat is in the directory that is reported to be locked,
   my command prompt is holding a lock to it when starting
   android.bat not very handy...

   On Oct 27, 7:36 pm, Xavier Ducrohet x...@android.com wrote:
   Hi,

   the issue is with Windows putting locks on files/folders. For instance
   if you have a file explorer opened on the folder being updated (e.g.
   the docs folder), it'll prevent other programs from modifying the
   files/folders.

   If you have problem using it from eclipse you can always use
   SDK/tools/android.bat which provide you with the same UI.

   Which version of Eclipse are you using? I'll double-check that Eclipse
   doesn't open/lock some files in the documentation.

   Xav

   On Tue, Oct 27, 2009 at 2:31 PM, Jim Showalter

   jamesleeshowal...@gmail.com wrote:
Followed the instructions in
   http://developer.android.com/sdk/adding-components.htmlforadding 2.0
  as
components to an existing 1.6 SDK, from within Eclipse.

It didn't work. Not by a long shot. Instead, it got partway through
  and then
said that C:\android-sdk-windows-1.6_r1\
temp\DocPackage.new01 couldn't be copied because of a lock, and
  similarly
for PlatformPackage.new01.

It said to shut down running programs, but the only program running
  was
Eclipse, which was needed to do the upgrade.

The cancel button was disabled, and the close box didn't work.
  Shutting down
Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a
  corrupted
state. Restarting Eclipse showed the Android projects with errors, no
  SDK,
and a disabled Android SDK and AVD Manager (which means no ability to
  rerun
the install).

Shutting down Eclipse, renaming the corrupted SDK directory,
  unzipping 1.6
again into C:, and restarting Eclipse made it as if nothing had ever
happened, which is good. But it is not possible to complete the
  install from
Eclipse, which is bad.

The dialog says:

Failed to rename directory
C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
C:\android-sdk-windows-1.6_r1\docs
-= Warning ! =-
A folder failed to be renamed or moved. On Windows this typically
  means that
a program is using that folder (for example Windows Explorer.) Please
  close
all running programs that may belockingthe directory
'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.

Failed to rename directory
C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
C:\android-sdk-windows-1.6_r1\docs
-= Warning ! =-
A folder failed to be renamed or moved. On Windows this typically
  means that
a program is using that folder (for example Windows Explorer.) Please
  close
all running programs that may belockingthe directory
'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)

   --
   Xavier Ducrohet
   Android SDK Tech Lead
   Google Inc.- Hide quoted text -

   - Show quoted text -

  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.

  Please do not send me questions directly. Thanks!- 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 

[android-developers] Re: adc 2 Second Round

2009-10-28 Thread niko20

This is why I didn't bother with ADC2 and also why I'm always wary of
any other people that come around these forums proposing to expose
our apps to the world. Because it's always just talk, and I have yet
to see results from any of them. It's like they all jumped on the
android bandwagon but don't know what the heck they are doing/talking
about. It gets old being disappointed all the time with it.

-niko

On Oct 28, 12:43 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 comedy
 Hey, they haven't contacted me yet and I'm sure at least one of my
 apps will make it into the next round...
 /comedy

 -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: Orientation Sensors - they don't seem correct?

2009-10-28 Thread Neilz

No ideas? Has no one else experienced this?

On Oct 27, 10:06 am, Neilz neilhorn...@googlemail.com wrote:
 Hi all. I wanted to get to grips with the orientation sensors (using
 HTC Hero) and have written a simple Spirit Level app which has two
 bars displayed, one showing the horizontal level, and the other
 showing the vertical. Just like a real spirit level :-)

 I've played around with the Sensor and SensorManager classes, but they
 just don't seem to work quite correctly. There are two issues:

 1) I would expect the tilt reading to give Zero when it is level - a
 tip either way gives a positive or negative reading. But I can see
 from looking at my device that zero clearly isn't level - it's just
 off. About 5 is actually level!

 2) For the vertical reading from the same sensor, the sensor readings
 seem to get stuck. They get as far as about 75 degrees, as you get
 near vertical, but then the readings seem to stick and eventually jump
 to somewhere over 100. You can imagine, my app needs a smooth
 transition of readings, and this is useless.

 So either the sensor doesn't work, or I'm missing something. The
 latter is the more likely! What could be going wrong? Here's some of
 the code:

 mSensorManager = (SensorManager) this.getSystemService
 (Context.SENSOR_SERVICE);
 sensors = mSensorManager.getSensorList(Sensor.TYPE_ORIENTATION);
 Sensor dirSensor = sensors.get(0);
 mSensorManager.registerListener(mySensorListener, dirSensor,
 SensorManager.SENSOR_DELAY_NORMAL);

 public void onSensorChanged(SensorEvent event) {
         // event.values[1] gives me my tilt reading

 }


--~--~-~--~~~---~--~~
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: App Fault [SIGSEGV]

2009-10-28 Thread fadden

On Oct 27, 5:12 am, vovkab vov...@gmail.com wrote:
 Why this can happen?

   950                   DEBUG  I  *** *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** ***
   950                   DEBUG  I  Build fingerprint: 'generic/sdk/
 generic/:1.6/DRC76/13852:eng/test-keys'
   950                   DEBUG  I  pid: 1095, tid:    .. 
   950                   DEBUG  I  signal 11 (SIGSEGV), fault addr
 1b04
[...]
   950                   DEBUG  I           #00  pc 0004eef8  /system/
 lib/libsgl.so
   950                   DEBUG  I           #01  pc 000483b8  /system/
 lib/libsgl.so

You're crashing somewhere in the Skia library.  Are you using native
code, or just the Java-language interfaces?  Is this problem easy to
reproduce?

If it crashes reliably, and your program is in a state (or can be put
in a state) where it can be made public, please file a bug on
b.android.com, attach the APK, and include instructions for generating
the fault.

--~--~-~--~~~---~--~~
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: T2S OnUtteranceCompletedListener not working

2009-10-28 Thread Lee

I had this problem too.

I used tts.isSpeaking() as a workaround.

Lee

On Oct 28, 5:12 pm, Markus Gursch swordia...@gmail.com wrote:
 other hints 

 i need to know when the speak is over

 On 28 Okt., 14:52, Markus Gursch swordia...@gmail.com wrote:

  Thanks, i saw this entries, but they didnt help me. my problem is at
  adding the listener.

  but i dont know what i am doing wrong

  On 28 Okt., 14:45, blindfold seeingwithso...@gmail.com wrote:

   Perhaps related 
   tohttp://groups.google.com/group/tts-for-android/browse_frm/thread/6d5f...
   or else ask in that group?

   On Oct 28, 2:37 pm, Markus Gursch swordia...@gmail.com wrote:

Hello

i have a problem to recognize when speak has finished.

here is my code

t2s = new TextToSpeech(this, this);
int result = t2s.setOnUtteranceCompletedListener(completeListener);

result is equal to TextToSpeech.ERROR (-1) - i don't know why.

i speak like this but onUtteranceComplete is not fired:

HashMapString, String params = new HashMapString, String();
params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, theUtId);
t2s.speak(speechText, TextToSpeech.QUEUE_FLUSH, params);

what is the problem???


--~--~-~--~~~---~--~~
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] Listen for MapView zoom?

2009-10-28 Thread Mark Wyszomierski

Hi,

I'm using a MapView, with the default zoom controls. Is there any way
to listen for zoom events? I tried this:

  android.widget.ZoomButtonsController zzz =
mMapView.getZoomButtonsController();

but eclipse can't seem to resolve ZoomButtonsController?

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: adc 2 Second Round

2009-10-28 Thread maennj

I'm sure they have good reason about it. There are plenty of reasons
that can delay the process. Maybe they were trying to find a solution
to rectify the damage done by Android 1.6 release. Maybe it's better
for us all if they're reviewing all apps, because honestly, end user
community is not reliable enough to make judgments especially with 100
reviews per app. Look at some comments on every successful or
unsuccessful application in Market, you will see what I mean,
subjectivity hurts us all.

I would give Google the benefit of the doubt.

Good luck everyone.

On Oct 28, 1:54 pm, niko20 nikolatesl...@yahoo.com wrote:
 This is why I didn't bother with ADC2 and also why I'm always wary of
 any other people that come around these forums proposing to expose
 our apps to the world. Because it's always just talk, and I have yet
 to see results from any of them. It's like they all jumped on the
 android bandwagon but don't know what the heck they are doing/talking
 about. It gets old being disappointed all the time with it.

 -niko

 On Oct 28, 12:43 pm, Maps.Huge.Info (Maps API Guru)

 cor...@gmail.com wrote:
  comedy
  Hey, they haven't contacted me yet and I'm sure at least one of my
  apps will make it into the next round...
  /comedy

  -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: Application max heap size

2009-10-28 Thread fadden

On Oct 27, 3:15 pm, String sterling.ud...@googlemail.com wrote:
  I there an API method to get the value of this max heap size? I
  haven't looked into that yet.

 long heapSize = Runtime.getRuntime().maxMemory();

FWIW, this is configured with the dalvik.vm.heapsize system property
(default 16m).  Apps can't change it, but if you're using a rooted
device or the emulator it's now much easier to experiment with
different memory limits.

--~--~-~--~~~---~--~~
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 getConnectionInfo() crash

2009-10-28 Thread Khetzal

No, now it work perfectly ! I'm a beginer in android programmation and
i didn't know that i've to add permission in manifest.xml,
Thanks you very much !

On 26 oct, 23:34, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 The code looks fine to me. Are you using the Access_Wifi_State
 permission in the manifest file?

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Oct 26, 3:12 am, Khetzal quetz...@gmail.com wrote:

  Hello,

  I'm trying to get wifi signal strength in an android 1.6 dev phone
  with this code:

  WifiManager m = (WifiManager) getSystemService(Context.WIFI_SERVICE);
  WifiInfo w;
  w= m.getConnectionInfo();

  But when their is the getConnectionInfo, the application crash.
  Is there something wrong with my code ? I've search without founding.

  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: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-28 Thread Raphael

On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston
flyingdutc...@gmail.com wrote:

 I have the same issue.

 I started android.bat from the command prompt.
 Since android.bat is in the directory that is reported to be locked,
 my command prompt is holding a lock to it when starting
 android.bat not very handy...

Hmm you're right. I guess I could force the tool to close and delay
the installation later but that seems convoluted.

A simple workaround is to run tool\android.bat from the SDK directory.
IIRC that doesn't lock the directory.

R/

--~--~-~--~~~---~--~~
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: NEEDED: Apps to feature on Sprint Microsite

2009-10-28 Thread JP

That was my impression too. It also links to the thin Android Market
web, but that's a different topic...

On second thought - that might be what's been referenced to as phase
1.
That microsite stuff is nice to look at though. I've seen this first
time at Porsche USA on their Panamera campaign. (Just to find my next
conveyance bought from all the proceeds I make by releasing mobile
apps (;-). Could be running out of the same agency, actually.
It seems ineffective in presenting specific content though, it's like
pulling stuff out of a hat.



On Oct 28, 12:15 am, Lance Nanek lna...@gmail.com wrote:
 Sprint's web site following your post and do not find any evidence there's 
 even a phase 1

 Maybe they are going to enhance that flying cloud of Android app
 screenshots shortly into the flash movie on the site the OP 
 linked:http://now.sprint.com/android/

 It seems like useless eye candy at the moment. I can't find any way to
 rotate the cloud manually, zoom in, zoom out, pick a value for the
 Whether you want to: control, there are lots of duplicates, the
 screenshots aren't clearly labeled with what app they are, and
 clicking on a screenshot does nothing. Still, all that could be fixed,
 I suppose.

 Maybe devs should make sure the name of their app features prominently
 on any screenshot they submit just in case.

 On Oct 28, 1:46 am, JP joachim.pfeif...@gmail.com wrote:

  Well let's see
  Just a few months ago I go sign up to Clearwire's Silicon Valley WiMax
  dev program. I'm up in SF so I suppose that wasn't close enough or
  whatever, I've never heard back so I couldn't say. Would have been
  nice to put that Nokia N810 WiMax Edition on their network and toy
  around with some of the stuff I built for that.
  Then there's Moto's Accelerator program that I've passed on,
  thankfully, as we hear not too many tangible results are coming out of
  that.
  In recent memory we've got an evangelist from Sprint that managed to
  throw away the upfront credit he's got here in just two post. That
  must be record time.

  Wayne, so far your effort has been laudable. But then... this morning
  I check on Sprint's web site following your post and do not find any
  evidence there's even a phase 1. So, with the above in mind, looks
  like another poorly executed effort, no?

  On Oct 27, 8:11 pm, Dianne Hackborn hack...@android.com wrote:

   On Tue, Oct 27, 2009 at 6:05 PM, JP joachim.pfeif...@gmail.com wrote:
Generally speaking, I've stopped a long time ago signing up for stuff
under such a premise. I get the sense I'm not alone here.

   What things like this have you been involved with that left a bad taste in
   your mouth?  I am genuinely curious?  The offer from Sprint seems quite
   attractive to me -- give them a screen shot and they may pick your app for
   free publicity.

   --
   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] QSB and Images in suggestion provider

2009-10-28 Thread pperotti

hi Everyone,

I was playing with the QSB and content providers and I found a problem
at the time of using suggestions providers. What I want to achieve is
what the contact app have which is to show an image in a suggestion
with the particular need that the image is not a resource, I have them
stored in a database so, basically I have them as bytes.

As far as I understood a row (in a matrix cursor) for the field
SUGGEST_COLUMN_ICON_1 can be completed using a content, a resource id
or a file.

When I try to set the value for that image as content://com.mycompany/
items/1 the content provider that is supposed to handle this is not
ever invoked.

Can anyone give a any clue about what I am doing wrong or how can I
achieve this ? If

Regards, Pablo
--~--~-~--~~~---~--~~
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: NEEDED: Apps to feature on Sprint Microsite

2009-10-28 Thread niko20

Hmm well I did send an email to Quentin last night asking about more
details, but I haven't heard anything back yet

-niko

On Oct 28, 1:34 pm, JP joachim.pfeif...@gmail.com wrote:
 That was my impression too. It also links to the thin Android Market
 web, but that's a different topic...

 On second thought - that might be what's been referenced to as phase
 1.
 That microsite stuff is nice to look at though. I've seen this first
 time at Porsche USA on their Panamera campaign. (Just to find my next
 conveyance bought from all the proceeds I make by releasing mobile
 apps (;-). Could be running out of the same agency, actually.
 It seems ineffective in presenting specific content though, it's like
 pulling stuff out of a hat.

 On Oct 28, 12:15 am, Lance Nanek lna...@gmail.com wrote:

  Sprint's web site following your post and do not find any evidence there's 
  even a phase 1

  Maybe they are going to enhance that flying cloud of Android app
  screenshots shortly into the flash movie on the site the OP 
  linked:http://now.sprint.com/android/

  It seems like useless eye candy at the moment. I can't find any way to
  rotate the cloud manually, zoom in, zoom out, pick a value for the
  Whether you want to: control, there are lots of duplicates, the
  screenshots aren't clearly labeled with what app they are, and
  clicking on a screenshot does nothing. Still, all that could be fixed,
  I suppose.

  Maybe devs should make sure the name of their app features prominently
  on any screenshot they submit just in case.

  On Oct 28, 1:46 am, JP joachim.pfeif...@gmail.com wrote:

   Well let's see
   Just a few months ago I go sign up to Clearwire's Silicon Valley WiMax
   dev program. I'm up in SF so I suppose that wasn't close enough or
   whatever, I've never heard back so I couldn't say. Would have been
   nice to put that Nokia N810 WiMax Edition on their network and toy
   around with some of the stuff I built for that.
   Then there's Moto's Accelerator program that I've passed on,
   thankfully, as we hear not too many tangible results are coming out of
   that.
   In recent memory we've got an evangelist from Sprint that managed to
   throw away the upfront credit he's got here in just two post. That
   must be record time.

   Wayne, so far your effort has been laudable. But then... this morning
   I check on Sprint's web site following your post and do not find any
   evidence there's even a phase 1. So, with the above in mind, looks
   like another poorly executed effort, no?

   On Oct 27, 8:11 pm, Dianne Hackborn hack...@android.com wrote:

On Tue, Oct 27, 2009 at 6:05 PM, JP joachim.pfeif...@gmail.com wrote:
 Generally speaking, I've stopped a long time ago signing up for stuff
 under such a premise. I get the sense I'm not alone here.

What things like this have you been involved with that left a bad taste 
in
your mouth?  I am genuinely curious?  The offer from Sprint seems quite
attractive to me -- give them a screen shot and they may pick your app 
for
free publicity.

--
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
-~--~~~~--~~--~--~---



  1   2   >