[android-developers] Fetch IMSI or detect SIM change?

2009-10-30 Thread javame_android

Hi,

I want to fetch the IMSI number so that I could keep it in memory and
detect whenever SIM card changes. Is it actually possible? Is there
anyone who can guide me a bit?

Hope to get a positive reply soon.



Regards
Sunil
--~--~-~--~~~---~--~~
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 name/icon problems on Hero after reboot

2009-10-30 Thread Dianne Hackborn
The standard platform doesn't do this.  If this is only happening on the
Hero, one possibility is HTC introduced some kind of caching that is broken.

On Thu, Oct 29, 2009 at 9:40 PM, Robert Green rbgrn@gmail.com wrote:


 Ok so maybe not cache but the thing that bothers me is that once
 broken, it's unfixable.  That says persistence to me.  My update
 doesn't fix it phones that had the bad one installed ever (though it
 was never bad, just bugs on hero), but people who have never installed
 before don't have any problems with the updated version of my app.

 Wouldn't you say it's possible that HTC persisted something for their
 version?  The other thing that bothers me is that a few apps have been
 fixed but the devs haven't posted any info about their workarounds.

 On Oct 29, 9:25 pm, Dianne Hackborn hack...@android.com wrote:
  There is -no- cached data for applications, at least in the standard
  platform.  We rescan and collect all of this data at each boot.
 
 
 
  On Thu, Oct 29, 2009 at 6:58 PM, Robert Green rbgrn@gmail.com
 wrote:
 
   Justin,
 
   Did the app name say Light Racer or net.rbgrn.lightracer after the
   reboot?  That was the problem with it.
 
   I had a version out that used a raw string as the app label in the
   manifest.  This updated one uses @string/app_name.  If you confirm
   that it's the correct name and not the package name, then that's
   certainly one of the bugs right there.  People that have installed it
   when it had the raw string app label never seem to get it fixed.  Even
   updating to the one you claim works doesn't work for them.  It's like
   once it's broken on the device, the cached data never goes away.
 
   That makes we wonder if there is a way to clear data on one of the
   system apps that will reset that cache...
 
   On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote:
I just downloaded it, played a round, rebooted and everything seems
 fine
with it.  Icon looks good and the game loads.  Swhat's amiss
 with
the rest of us?  Sheer dumb luck?  Poorly coded apps?
 
Justin
 
On Thu, Oct 29, 2009 at 6:16 PM, Robert Green rbgrn@gmail.com
   wrote:
 
 Justin, would you be willing to install Light Racer, reboot and
 check
 for me?  That will show if I've figured out part of the problem or
 not.
 
 Thanks!
 
 On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote:
  I installed pandahome (assuming that's what you meant by
 installing a
  different home app) and I get the same results.  Messed up
 launcher
   icons
  after reboot.
 
  Justin
 
  On Thu, Oct 29, 2009 at 2:13 PM, Greg Donald gdon...@gmail.com
   wrote:
 
   On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn 
   hack...@android.com
   wrote:
If this is only happening on Hero, it needs to be reported to
   HTC,
 not as
   a
generic platform bug.
 
   Do you know where the HTC bug reporting site is?  All I can
 find is
   a
   simple support form that doesn't even confirm I posted
 anything.
 
Has anyone tried installing an alternate home app and seeing
 if
   it
 still
happens there?  I wonder if this is something in their custom
   home
 app.
 
   I'd be happy to try if I can.  What would you suggest I try?
  (I
   wasn't previously aware I could install a new home app.)
 
   --
   Greg Donald
  http://destiney.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.
 



-- 
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] Android SDK 2.0

2009-10-30 Thread Sasikumar.S
Hi,


How to download Andoird SDK 2.0 file...
I need Andoird SDK 2.0 like 1.5...
I tryed to download that.
But it downloaded only 2.0 file updates.
we want to update it from 1.5 or 1.6...

Any one know how to donwload 2.0
pls reply to me

-- 
Thanks  Regards
Sasikumar.S

--~--~-~--~~~---~--~~
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] BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Beth

I have a question about the background thread handling change that
went into SDK 1.6.  I read here that BG threads get placed in a
scheduling class that can't use more than 5-10% of the CPU in order to
keep the foreground responsive.  Do system services get into that
scheduling class?

My app uses repeating alarms.  It was great with 1.5, very reliable.
Since the upgrade to 1.6, the phone seems to be dropping some of my
repeating broadcasts, especially if I am doing something fun in the
foreground like with WIFI when the Alarm is supposed to fire.  I do
not have any of the task killer programs that have been a hot topic
lately.  To be clear, the dropped alarm broadcast behavior is
intermittent.  I am not 100% sure if I really am doing something when
it has failed.  If the timer is a one shot, it seems to work better
but there is no real empirical evidence here. My phone is usually in
my pocket when I fire one of the one shot alarms.  If my theory about
system services in the background scheduling class is correct, then I
probably cannot find a workaround or defensively code a solution.
Will it be the same in 2.0?

Have others seen issues with alarms and with the setRepeating method?
I am looking for suggestions to troubleshoot this problem.  How can I
determine if the problem is the broadcast, if it is the repeating
alarm creation, or if there is some other issue like low memory coming
in to
play.  Any ideas?

Thanks and regards,
Beth
--~--~-~--~~~---~--~~
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: Camera Picture Size on Samsung i7500 Galaxy

2009-10-30 Thread spietari

Thanks but that's not it. It doesn't crash and anyway I'm catching any
exceptions there.



On Oct 28, 10:18 pm, Greivin Lopez greivin.lo...@gmail.com wrote:
 It is possible that you are facing the same problem described in this
 post:http://groups.google.com/group/android-developers/browse_thread/threa...

 If you are using camera.setPreviewSize in your code then just remove
 it because it causes setParameters method to crash (I believe it is a
 bug).

 Hope it works. Good luck.
--~--~-~--~~~---~--~~
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 WVGA support

2009-10-30 Thread tberthel

The Highest resolution I can get in the emulator is 1000x500.

I need 1200x600. How do I do it? or can I yet?

On Oct 29, 9:29 pm, Dianne Hackborn hack...@android.com wrote:
 Dammit yeah that would be broken.  I'll make sure this is fixed in the next
 version; for now i guess you will need to include both -v4 and -v5
 resources.





 On Thu, Oct 29, 2009 at 7:25 PM, Artem p.ar...@gmail.com wrote:

  Trying to help by digging up the code.

  I found this:

 http://www.google.com/codesearch/p?hl=ensa=Ncd=1ct=rc#uX1GffpyOZk/...

     // Return true if 'this' can be considered a match for the
  parameters in
     // 'settings'.
     // Note this is asymetric.  A default piece of data will match
  every request
     // but a request for the default should not match odd specifics
     // (ie, request with no mcc should not match a particular mcc's
  data)
     // settings is the requested settings
     inline bool match(const ResTable_config settings) const {
  ...

         if (version != 0) {
             if (settings.sdkVersion != 0  sdkVersion != 0
                  sdkVersion != settings.sdkVersion) {
                 return false;
             }
             if (settings.minorVersion != 0  minorVersion != 0
                  minorVersion != settings.minorVersion) {
                 return false;
             }
         }
         return true;
    }

  Of course I am not sure where this is used, but I only see an != here.
  Hopefully, this is not the right code. Or perhaps there is new code in
  Eclair that is not available yet, that makes this better.

  Thanks for the help.

  Artem

  On Oct 29, 9:12 pm, Artem Petakov p.ar...@gmail.com wrote:
   Dianne, I am sorry to say it also does not work for me. Actually, we had
   made a mistake and originally forgot the v4, which screwed up Cupcake,
  but
   now we added the v4 (and make no other changes), and it stopped working.

   Am I missing something? Or is there perhaps a serious problem? Please
  reply
   back so we can take action -- we need to publish a new APK for the
  Cupcake
   users, but we can't figure out how to do that without breaking Eclair.

   Artem

   On Thu, Oct 29, 2009 at 11:00 AM, webmonkey webmonke...@gmail.com
  wrote:

Hi Dianne,

The v flag does indeed not work, I am using the Android 2.0 SDK with
the following AndroidManifest settings:

uses-sdk
   android:minSdkVersion=3
    android:targetSdkVersion=5
/

Running on a WVGA854 emulator with density 240 and API 5, I get the
following results:

drawable-hdpi-v4

is ignored

drawable-hdpi-v5

is ignored, very strange

drawable-hdpi

works, but we can't use that

On Oct 29, 3:45 pm, Dianne Hackborn hack...@android.com wrote:
 I am pretty positive it works.  Nothing changed in 2.0 -- this has
  been
the
 same since 1.0, if the platform's SDK version is  the resource
  version,
 then the resource is ignored.

 On Wed, Oct 28, 2009 at 5:28 PM, Jeff codesec...@gmail.com wrote:

  Looks like -v4 flag doesn't work in Android 2.0. Any ideas?

  On Oct 22, 8:38 am, Nikolay Ananiev devuni...@gmail.com wrote:
   This is how I made my app resolution-independent and with Android
  1.5
  legacy
   support:

   Why did I put my high-dpi images in the drawable-hdpi-v4 folder
  and
not
  in
   drawable-hdpi? Because the Android 1.5 OS can't handle the -hdpi
  and
  tries
   to use these images instead of the ones in the res/drawable
  folder.
The
  -v4
   flag is only meaningful for Android 1.6 and works perfect.

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

 --
 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 capture Soft keyboard key events.

2009-10-30 Thread Gulfam

Hi Banny,

Thanks alot. I have implemented the code same as you its working very
well for me. It was very big issue for my app but now resolved :)
Thanks again.

Regads,
Gulfam Hassan

On Oct 30, 7:53 am, Banny helloba...@gmail.com wrote:
 I find the same problem of it.
 Finally, I found EditText.addTextChangedListener(new TextWatcher(){})
 will let get the event.
 Good luck.

 On Oct 29, 11:09 pm, Gulfam gulfa...@gmail.com wrote:

  Is there any solution I am still waiting for your Response

  Gulfam Hassa

  On Oct 28, 9:41 pm, Gulfam gulfa...@gmail.com wrote:

   Hi all group members,

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

   I have an  EditTextand a list of contacts. I want to search a
   contacts on maching with characters entered inEditTextfield. 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 touchEditTextfield  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 myEditTextfield.

   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: Interrupting the app uninstaller

2009-10-30 Thread biAji



On Oct 27, 3:27 am, Doug dougforp...@gmail.com wrote:
 I completely agree that there should be no way for an application to
 prevent its uninstallation - but there are valid reasons why the
 application may want to pop up some important information to the user
 either before or after the uninstall.

I can not agree more about this.  For example, I want to clean the
files my application written into the sd card before uninstall, and
can't find a way to do 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: Android WVGA support

2009-10-30 Thread Nikolay Ananiev
YES drawable-hdpi-v6 works for me too. I'll use it in my next release as a
workaround
Thanks Artem!


On Fri, Oct 30, 2009 at 7:15 AM, Artem Petakov p.ar...@gmail.com wrote:

 This will sound crazy, but -v6 works for me. There must be a strange reason
 why this works, or maybe there is a subtle reason why this workaround does
 not work. Can anyone confirm?


 On Thu, Oct 29, 2009 at 11:22 PM, Artem Petakov p.ar...@gmail.com wrote:

 Ah, that's too bad. Bugs happen.

 I am trying to understand the solution... Somehow having a -v5 version in
 there does not help (as webmonkey reported). I don't have my head around
 this fully, but I think Android somehow prefers the regular drawable
 directory (which I have for the Cupcake crowd). What is the recommended set
 of drawable directories at this point?

 Artem

 On Thu, Oct 29, 2009 at 10:29 PM, Dianne Hackborn hack...@android.comwrote:

 Dammit yeah that would be broken.  I'll make sure this is fixed in the
 next version; for now i guess you will need to include both -v4 and -v5
 resources.


 On Thu, Oct 29, 2009 at 7:25 PM, Artem p.ar...@gmail.com wrote:


 Trying to help by digging up the code.

 I found this:

 http://www.google.com/codesearch/p?hl=ensa=Ncd=1ct=rc#uX1GffpyOZk/include/utils/ResourceTypes.hq=ResTable_configl=787

// Return true if 'this' can be considered a match for the
 parameters in
// 'settings'.
// Note this is asymetric.  A default piece of data will match
 every request
// but a request for the default should not match odd specifics
// (ie, request with no mcc should not match a particular mcc's
 data)
// settings is the requested settings
inline bool match(const ResTable_config settings) const {
 ...

if (version != 0) {
if (settings.sdkVersion != 0  sdkVersion != 0
 sdkVersion != settings.sdkVersion) {
return false;
}
if (settings.minorVersion != 0  minorVersion != 0
 minorVersion != settings.minorVersion) {
return false;
}
}
return true;
   }

 Of course I am not sure where this is used, but I only see an != here.
 Hopefully, this is not the right code. Or perhaps there is new code in
 Eclair that is not available yet, that makes this better.

 Thanks for the help.

 Artem

 On Oct 29, 9:12 pm, Artem Petakov p.ar...@gmail.com wrote:
  Dianne, I am sorry to say it also does not work for me. Actually, we
 had
  made a mistake and originally forgot the v4, which screwed up Cupcake,
 but
  now we added the v4 (and make no other changes), and it stopped
 working.
 
  Am I missing something? Or is there perhaps a serious problem? Please
 reply
  back so we can take action -- we need to publish a new APK for the
 Cupcake
  users, but we can't figure out how to do that without breaking Eclair.
 
  Artem
 
 
 
  On Thu, Oct 29, 2009 at 11:00 AM, webmonkey webmonke...@gmail.com
 wrote:
 
   Hi Dianne,
 
   The v flag does indeed not work, I am using the Android 2.0 SDK with
   the following AndroidManifest settings:
 
   uses-sdk
  android:minSdkVersion=3
   android:targetSdkVersion=5
   /
 
   Running on a WVGA854 emulator with density 240 and API 5, I get the
   following results:
 
   drawable-hdpi-v4
 
   is ignored
 
   drawable-hdpi-v5
 
   is ignored, very strange
 
   drawable-hdpi
 
   works, but we can't use that
 
   On Oct 29, 3:45 pm, Dianne Hackborn hack...@android.com wrote:
I am pretty positive it works.  Nothing changed in 2.0 -- this has
 been
   the
same since 1.0, if the platform's SDK version is  the resource
 version,
then the resource is ignored.
 
On Wed, Oct 28, 2009 at 5:28 PM, Jeff codesec...@gmail.com
 wrote:
 
 Looks like -v4 flag doesn't work in Android 2.0. Any ideas?
 
 On Oct 22, 8:38 am, Nikolay Ananiev devuni...@gmail.com
 wrote:
  This is how I made my app resolution-independent and with
 Android 1.5
 legacy
  support:
 
  Why did I put my high-dpi images in the drawable-hdpi-v4
 folder and
   not
 in
  drawable-hdpi? Because the Android 1.5 OS can't handle the
 -hdpi and
 tries
  to use these images instead of the ones in the res/drawable
 folder.
   The
 -v4
  flag is only meaningful for Android 1.6 and works perfect.
 
--
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.




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






 



[android-developers] Searching Youtube from developer's app

2009-10-30 Thread Hunter Peress

Is there a way to search youtube from my app?  Ideally it would be as
easy as an Intent with ACTION_SEARCH and some user level place where
i can make youtube queries within my developer app

for now, I cannot find a way.

Failed paths: com.google.android.youtube.QueryActivity is not
available to my app

For now, Im using the gdata apis. but I wish there was an easier way.
--~--~-~--~~~---~--~~
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: VBO on Motorola CLIQ

2009-10-30 Thread Hexage

I'm not using logging or tracing, at least I'm not aware of that. I'm
using EGL/GL directly (not via GLSurfaceView) and it works on G1/Magic/
Hero/Droid.

While playing with EGL config selection on CLIQ I've noticed a strange
behavior. First config reported by eglChooseConfig is usually:

red=5 green=6 blue=5 alpha=0 depth=0

but sometimes, for no apparent reason, the first config is changed to:

red=5 green=6 blue=5 alpha=0 depth=16

when selected as first then VBO works. But if I select the same config
when it's not reported first, then it does not work. But maybe it's
not related.

On Oct 30, 3:00 am, Robert Green rbgrn@gmail.com wrote:
 Are you using a logging or trace option for OpenGL?  If so, you have
 to turn it off.  The log and trace wrappers for GL cause errors to be
 thrown when using VBO extensions.  I haven't tested on a Cliq but that
 happened to me on my G1.

 On Oct 29, 12:33 pm, Hexage ga...@hexage.net wrote:

  I've been testing our games on Motorola CLIQ (aka MB200) using
  DeviceAnywhere. While the OpenGL driver indicates support for VBO
  (GL_OES_vertex_buffer_object GL_ARB_vertex_buffer_object) calling any
  VBO function yields called unimplemented OpenGL ES API. The weird
  thing is that sometimes it works for no apparent reason with no
  changes made to app besides debug prints.

  Is anyone using VBO on CLIQ succesfully?

  Thanks,
  David


--~--~-~--~~~---~--~~
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] layout orientation problem

2009-10-30 Thread Wojciech Topolski
Hi

I have problem with orientation in my app. When phone is in vertical
orientation everything is ok, but when orientation changes to horizontal
layout (RelativeLayout) creeps. On the screen there is only a part of
layout. Maybe I need 2 files, one for horizontal, second for vertical
orientation, or?

Best regards.

--
===
Wojciech Topolski
wojciech.topol...@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] Re: how to set a shortcut key to launch an activity ?

2009-10-30 Thread swapnil kamble
Hi,
Thanks for your replies. I tried writing a service, overriden
onKeyDown(). But it could not get that message. Do I need to modify Home
Activity's code ? Or is there any other way too ?

Thanks in advance
Swapnil

On Wed, Oct 21, 2009 at 10:56 PM, Forest Wang wangme...@gmail.com wrote:

 This may need to add a service to listen to these key press event and
 trigger an app.

 2009/10/21 swapnil kamble swap.kam...@gmail.com

 Hello,
   how to set a shortcut key to launch an activity ?  Lets say I have an
 app TestApp. I want to set a shortcut key (e.g alt + T ) to launch
 activity of TestApp. Is there any way to set such shortcuts to android apps
 ?

 Thanks in advance.

 --
 ...Swapnil

 || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
 || Hare RamaHare Rama   Rama   RamaHare Hare ||




 


--~--~-~--~~~---~--~~
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: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-10-30 Thread James Wang

Thanks Mark! I will take a try.

On Oct 22, 8:23 pm, Mark Murphy mmur...@commonsware.com wrote:
 James Wang wrote:
  Hi,
  We are going to develop an app supporting 8000 * 8000 jpeg file (over
  hundreds of Megabytes).
  Is there any way to achieve it in ADP1?

 Step #1: Don't do that.

 Step #2: Generate 10,000 tiles that are 80*80 instead (100 * 100 tiles).

 Step #3: Render tiles on-screen by drawing them on the Canvas, and
 support swipe gestures to move through the image by replacing tiles,
 much like Google Maps works.

 You would need to do this on pretty much any platform (mobile, Web, even
 desktops if you don't want to mandate 64-bit and 16GB of RAM). Bear in
 mind that a JPEG of over hundreds of Megabytes, when uncompressed for
 display, will require many GB of RAM.

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

 Android Training in Germany, 18-22 January 2010:http://bignerdranch.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 return Typeface from Cursor

2009-10-30 Thread James Wang

I want to make a contentprovider for font file.
But I can not find any way to return a Typeface from Cursor. According
to SDK reference, MatrixCursor sounds like a solution, but it doesn't
support any object except String,Long,Double,Short,Flow.

Can anybody help me?

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] World Of Bombs (Action Game) ADC 2 Entry

2009-10-30 Thread croco

I was put forward by Samsung France during the competition for the
android
Galaxy phone.

World of Bombs received a place of honor in the competition for its
Samsung
potential and quality. OK I don't win the prize top5 but i'm in top 10
and visible on the Samnsung portal
So is a beautiful form of personal victory.

The number of applications was less about this competition so now I
know I have no chance of finishing on the podium top 3 in the games
category ADC2 shares

World Of Bombs is now available on your phone android
Favorite

Download the site of the competition results Samsung
http://fr.samsungmobile.com/pid181-content_id1372/galaxy/apps.html

or download the APK directly on the server of World of Bombs
directly to the url http://www.zeugame.com/wob2/worldofbombs-ms.apk

This version is improved compared to teh version you have judged for
ADC2 Round 1:

- Bug on player defeat fixed.
- Support multi-languages English French.
- Potential App error are now sent to a server for best analysis and
bug fixing.

I remind you that World of Bombs is played seamlessly on your PC
http://www.zeugame.com/wob2/ you are connecting your Android on or
PC;)

I have a lot of work to produce for the game come better and
better :)

The biggest interest of is beinf is its multiplayer mode and
connection of heterogeneous kind of player (web browser, Android
device). The site engresitre a 100 visits a day but at different hours
so match human vs human are really not often.
To meet I propose a permanent between 13h and 14 hours in Paris. We
play often at lunch time here.

Good luck to the ADC2 Round2 which I hope still qualify even though I
know now the podium hopes were dashed.
Thank you Google for this competition, thanks to this contest that I
started to develop on Android to my delight!

And World of Bombs is my first Android APP and at the end of ADC2 WoB
will go to the great android market and you will be able to follow the
updates. I'm motivated at 200%

Good luck to all ADC2 apps and to world of bombs too.


Regards.

Croco
--~--~-~--~~~---~--~~
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] Difference between View margin and padding , mPadding and mUserPadding?

2009-10-30 Thread GPU

Difference between View margin and padding , mPadding and mUserPadding?
--~--~-~--~~~---~--~~
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 capture Soft keyboard key events.

2009-10-30 Thread Nandy

Hi Banny, Hassan,

Even i faced the same problem and added on text change listener
through text watcher. But in this case I am not able to catch the
events of keys like caps, shift, changing from abc to 123.
Any idea on this how to solve?

Thanks and Regards,
Nandy

On Oct 30, 12:17 pm, Gulfam gulfa...@gmail.com wrote:
 Hi Banny,

 Thanks alot. I have implemented the code same as you its working very
 well for me. It was very big issue for my app but now resolved :)
 Thanks again.

 Regads,
 Gulfam Hassan

 On Oct 30, 7:53 am, Banny helloba...@gmail.com wrote:

  I find the same problem of it.
  Finally, I found EditText.addTextChangedListener(new TextWatcher(){})
  will let get the event.
  Good luck.

  On Oct 29, 11:09 pm, Gulfam gulfa...@gmail.com wrote:

   Is there any solution I am still waiting for your Response

   Gulfam Hassa

   On Oct 28, 9:41 pm, Gulfam gulfa...@gmail.com wrote:

Hi all group members,

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

I have an  EditTextand a list of contacts. I want to search a
contacts on maching with characters entered inEditTextfield. 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 touchEditTextfield  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 myEditTextfield.

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] how to call an Activity method from another java file

2009-10-30 Thread Stefan

Hello,

i have following problem:
I have my MainActivity. In this Activity, i start a thread
(SaxParser in another normal java file). Now I want to call a method
from the MainActivity out of the normal java file? I have read
something of an Application object, but i only find things, where i
have to create a new Intent (...).
Is it possible to use the application object in the other normal
java file like that:

Second/normal/SaxParser-file:

public class XMLHandler extends DefaultHandler implements Parcelable
{
   
   ConstructorOfSecondJavaFile(  ApplicationObject o)
   {
  this.applicationObject = o;
  ...
   }

...
o.callMethodOfMainActivity (int aValue);
}

MainActivity:

private int val;

public class MainAcitivity extends ...Acticity
{
  public onCreate (..)
  {
 ...
  }

  public callMethodOfManinActivity (int val)
  {
this.val = val;
  }
}


Thanks,
Stefan
--~--~-~--~~~---~--~~
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] ContentValues being overwritten

2009-10-30 Thread Sena

Hi,

We're seeing some very odd behaviour regarding ContentValues. It
appears that the key value pairs are being overwritten. We are seeing
the right mod count but not all the values are written in.

Any ideas would be much appreciated, the code in question is below.

int length = newsItems.length();
for (int i = 0; i  
length; i++) {
ContentValues 
cv = new ContentValues(20); // TODO find out
what the problem is with the content value class overwriting (serious
wtf)
JSONObject 
newsItem = newsItems.getJSONObject(i);
JSONArray 
contentItems = newsItem.getJSONArray(contentitem);

// TODO Use 
constants in SkyNewsDatabaseOpenHelper

cv.put(_newsitemid, newsItem.getString(newsitemid));

cv.put(firstcreated, newsItem.getString(firstcreated));

cv.put(thisrevisioncreated, newsItem.getString
(thisrevisioncreated));

cv.put(headline, newsItem.getString(headline));

cv.put(byline, newsItem.getString(byline));

cv.put(slugline, newsItem.getString(slugline));

cv.put(breakingnews, newsItem.getString(breakingnews));

cv.put(datacontent, newsItem.getString(datacontent));

// TODO 
Inefficient?
// TODO Remove 
magic numbers

cv.put(imageurl, contentItems.getJSONObject(0).getString
(href));

cv.put(thumbnailurl, contentItems.getJSONObject(1).getString
(href));

// TODO Make 
this less brittle

if(contentItems.length()  2)
{
// Has 
a video

cv.put(videourl, contentItems.getJSONObject(2).getString
(href));

cv.put(video, true);
}
else
{
// TODO 
Change database structure t default cideo field to
false so thsis code doesn't have to be executed.

cv.put(video, false);
}
db.insert
(SkyNewsDatabaseOpenHelper.TABLE_NAME_NEWS,SkyNewsDatabaseOpenHelper.COLUMN_NAME_TITLE,cv);
}
--~--~-~--~~~---~--~~
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-30 Thread agirardello

Try to use:

android.provider.ContactsContract.Contacts.CONTENT_URI



On Oct 28, 7:10 am, Yao cicikaka2...@gmail.com wrote:
 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 
 Contactshttp://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] first app - please check and tell suggestions

2009-10-30 Thread gatza

Hello!

I just uploaded an early version of our first app to android market
called BABBL.
Please write critics, ideas, suggestions if you would like to :)

http://uk.androlib.com/android.application.com-babbl-droid-znwE.aspx

sorry for beeing a bit offtopic.
thanks for your time
--~--~-~--~~~---~--~~
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: Updating one view also causes another view to update

2009-10-30 Thread Mihai Fonoage

Any help on this issue is greatly appreciated.

Mihai Fonoage

On Oct 29, 3:44 pm, Mihai Fonoage fonoag...@gmail.com wrote:
 Hello everyone,

 I have two views, one of which is a Chronometer. Whenever the
 Chronometer gets updated (every second, automatically, after its start
 () method has been called), the onDraw method of my second view is
 called. Any way I can stop this from happening?

 Thank you!

 Mihai Fonoage
--~--~-~--~~~---~--~~
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: IP broadcast on emulator

2009-10-30 Thread Anders

No info on this?

On Oct 17, 8:17 am, Anders lanils...@gmail.com wrote:
 Bump

 On Oct 15, 3:12 pm, Anders lanils...@gmail.com wrote:

  Hi,

  I have an application that acts as both client and server. I have a
  scenario that I need to test that involves three devices. One of them
  needs tobroadcasta message (UDP) to the other two.
  Running on physical devices, this is not a problem, and it works fine.
  On the emulator however, this is much harder.
  I have managed to get it work for two devices using the emulator. Here
  my client threadbroadcastthe message to 10.0.2.255 port 6002, and
  server thread listens on port 6006. By using redir addudp:6002:6006
  the server receives the message fine.
  Now, if I add another instance and do the same portforwarding, only
  one of them receives the message. I also tried to use a different port
  number on the server, and forward port 6002 to that number, with the
  same result.
  It appears as if a port can only be forwarded from one instance.
  Does anyone of a method tobroadcastusing the emulator, without
  sending a separate message to each emulator instance?

  Thanks,Anders
--~--~-~--~~~---~--~~
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 name/icon problems on Hero after reboot

2009-10-30 Thread Justin Giles
If this is a HTC problem, then who has enough arm twisting power to get them
to take notice?  Me along with some of my friends have contacted them about
this and we have received no response.



On Fri, Oct 30, 2009 at 1:10 AM, Dianne Hackborn hack...@android.comwrote:

 The standard platform doesn't do this.  If this is only happening on the
 Hero, one possibility is HTC introduced some kind of caching that is broken.


 On Thu, Oct 29, 2009 at 9:40 PM, Robert Green rbgrn@gmail.com wrote:


 Ok so maybe not cache but the thing that bothers me is that once
 broken, it's unfixable.  That says persistence to me.  My update
 doesn't fix it phones that had the bad one installed ever (though it
 was never bad, just bugs on hero), but people who have never installed
 before don't have any problems with the updated version of my app.

 Wouldn't you say it's possible that HTC persisted something for their
 version?  The other thing that bothers me is that a few apps have been
 fixed but the devs haven't posted any info about their workarounds.

 On Oct 29, 9:25 pm, Dianne Hackborn hack...@android.com wrote:
  There is -no- cached data for applications, at least in the standard
  platform.  We rescan and collect all of this data at each boot.
 
 
 
  On Thu, Oct 29, 2009 at 6:58 PM, Robert Green rbgrn@gmail.com
 wrote:
 
   Justin,
 
   Did the app name say Light Racer or net.rbgrn.lightracer after the
   reboot?  That was the problem with it.
 
   I had a version out that used a raw string as the app label in the
   manifest.  This updated one uses @string/app_name.  If you confirm
   that it's the correct name and not the package name, then that's
   certainly one of the bugs right there.  People that have installed it
   when it had the raw string app label never seem to get it fixed.  Even
   updating to the one you claim works doesn't work for them.  It's like
   once it's broken on the device, the cached data never goes away.
 
   That makes we wonder if there is a way to clear data on one of the
   system apps that will reset that cache...
 
   On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote:
I just downloaded it, played a round, rebooted and everything seems
 fine
with it.  Icon looks good and the game loads.  Swhat's amiss
 with
the rest of us?  Sheer dumb luck?  Poorly coded apps?
 
Justin
 
On Thu, Oct 29, 2009 at 6:16 PM, Robert Green rbgrn@gmail.com
   wrote:
 
 Justin, would you be willing to install Light Racer, reboot and
 check
 for me?  That will show if I've figured out part of the problem or
 not.
 
 Thanks!
 
 On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote:
  I installed pandahome (assuming that's what you meant by
 installing a
  different home app) and I get the same results.  Messed up
 launcher
   icons
  after reboot.
 
  Justin
 
  On Thu, Oct 29, 2009 at 2:13 PM, Greg Donald gdon...@gmail.com
 
   wrote:
 
   On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn 
   hack...@android.com
   wrote:
If this is only happening on Hero, it needs to be reported
 to
   HTC,
 not as
   a
generic platform bug.
 
   Do you know where the HTC bug reporting site is?  All I can
 find is
   a
   simple support form that doesn't even confirm I posted
 anything.
 
Has anyone tried installing an alternate home app and seeing
 if
   it
 still
happens there?  I wonder if this is something in their
 custom
   home
 app.
 
   I'd be happy to try if I can.  What would you suggest I try?
  (I
   wasn't previously aware I could install a new home app.)
 
   --
   Greg Donald
  http://destiney.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.




 --
 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 call an Activity method from another java file

2009-10-30 Thread Mark Murphy

Stefan wrote:
 i have following problem:
 I have my MainActivity. In this Activity, i start a thread
 (SaxParser in another normal java file). Now I want to call a method
 from the MainActivity out of the normal java file? 

Option #1: Pass the Activity in the constructor of your object from your
normal java file

Option #2: Have the Activity call a setter on your object from your
normal java file (e.g., setActivity(this);)

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

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Difference between View margin and padding , mPadding and mUserPadding?

2009-10-30 Thread Mark Murphy

GPU wrote:
 Difference between View margin and padding , mPadding and mUserPadding?

For the purposes of determining the boundaries of a background, padding
is considered inside the widget (and so padding area gets the
background) and margin is outside the widget (and so does not get the
background).

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

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to return Typeface from Cursor

2009-10-30 Thread Mark Murphy

James Wang wrote:
 I want to make a contentprovider for font file.
 But I can not find any way to return a Typeface from Cursor. According
 to SDK reference, MatrixCursor sounds like a solution, but it doesn't
 support any object except String,Long,Double,Short,Flow.

You cannot return a Typeface from a Cursor.

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

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: App name/icon problems on Hero after reboot

2009-10-30 Thread Justin Giles
Installed, played 1 round, rebooted, icon  text looked fine.  Game started
with no problems.

Justin

On Thu, Oct 29, 2009 at 11:35 PM, Robert Green rbgrn@gmail.com wrote:


 Ah ha!

 Ok, that at least shows something.  Before I changed the raw string to
 @string/app_name, it was causing the game to display as the package
 name instead of the label after a reboot.  Now, if you've never
 installed it before, it works fine, but for those have already
 installed it, it keeps breaking even after installing the update.

 I know it's speculation but it feels like a caching issue directly or
 indirectly to me.  Regardless of what's causing it, I'm glad that new
 installs are working with the updates I've made.  Now to figure out
 how to fix it when someone's installed and has the bug already...

 Justin - I don't want you to have to spend any money but Light Racer
 3D is showing up normally at install but then after reboot, the icon
 turns to a random drawable resource in the package and the label
 changes to com.batterypoweredgames.lightracer3d.  I've also applied
 the app label update to this one as well.  I don't suppose you'd be
 willing to test it?  You could always refund it when you're done.
 That would totally confirm it for me.

 Also, Justin, what firmware version do you have specifically?  I want
 to compare with the versions I've seen it break on before.

 Thanks!


 On Oct 29, 9:28 pm, Justin Giles jtgi...@gmail.com wrote:
  It says Light Racer.  Cacheit's good if it's in your wallet...not
 so
  good when it causes bugs.
 
  On Thu, Oct 29, 2009 at 8:58 PM, Robert Green rbgrn@gmail.com
 wrote:
 
   Justin,
 
   Did the app name say Light Racer or net.rbgrn.lightracer after the
   reboot?  That was the problem with it.
 
   I had a version out that used a raw string as the app label in the
   manifest.  This updated one uses @string/app_name.  If you confirm
   that it's the correct name and not the package name, then that's
   certainly one of the bugs right there.  People that have installed it
   when it had the raw string app label never seem to get it fixed.  Even
   updating to the one you claim works doesn't work for them.  It's like
   once it's broken on the device, the cached data never goes away.
 
   That makes we wonder if there is a way to clear data on one of the
   system apps that will reset that cache...
 
   On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote:
I just downloaded it, played a round, rebooted and everything seems
 fine
with it.  Icon looks good and the game loads.  Swhat's amiss
 with
the rest of us?  Sheer dumb luck?  Poorly coded apps?
 
Justin
 
On Thu, Oct 29, 2009 at 6:16 PM, Robert Green rbgrn@gmail.com
   wrote:
 
 Justin, would you be willing to install Light Racer, reboot and
 check
 for me?  That will show if I've figured out part of the problem or
 not.
 
 Thanks!
 
 On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote:
  I installed pandahome (assuming that's what you meant by
 installing a
  different home app) and I get the same results.  Messed up
 launcher
   icons
  after reboot.
 
  Justin
 
  On Thu, Oct 29, 2009 at 2:13 PM, Greg Donald gdon...@gmail.com
   wrote:
 
   On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn 
   hack...@android.com
   wrote:
If this is only happening on Hero, it needs to be reported to
   HTC,
 not as
   a
generic platform bug.
 
   Do you know where the HTC bug reporting site is?  All I can
 find is
   a
   simple support form that doesn't even confirm I posted
 anything.
 
Has anyone tried installing an alternate home app and seeing
 if
   it
 still
happens there?  I wonder if this is something in their custom
   home
 app.
 
   I'd be happy to try if I can.  What would you suggest I try?
  (I
   wasn't previously aware I could install a new home app.)
 
   --
   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: Updating one view also causes another view to update

2009-10-30 Thread Mark Murphy

Mihai Fonoage wrote:
 Any help on this issue is greatly appreciated.

Your question cannot be answered in the abstract. You need to find this
out for yourself.

Put a breakpoint or dump a stack trace in onDraw() of your second view.
Figure out from there what is triggering it. If I had to guess, it is
being triggered somehow through whatever layout contains both your view
and the Chronometer.

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

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to call an Activity method from another java file

2009-10-30 Thread Stefan

Hi,

thanks for your answer. i try option 1 today, but i couldnt call the
funtion in my MainActivity class:

My steps:

in MainActivity:
xmlHandler = new XMLHandler ( MainActivity.this ); // -- is that the
Activity, i think so ??

in XMLHandler (normal java file):

Activity main;
public XMLHandler (Activity act)
{
  this.main = act;
}

I now want to call the specific function, but i can't say:
act.callMethodOfMainActivity (aValue);

I also try to pass the Context, but first i dont think, that this is
the activity and secondly, the same error occur.

Thanks,
Stefan

PS: Is it also possilbe to use the Singleton Pattern? But the easier
way and also my favorite is option 1.


On Oct 30, 1:13 pm, Mark Murphy mmur...@commonsware.com wrote:
 Stefan wrote:
  i have following problem:
  I have my MainActivity. In this Activity, i start a thread
  (SaxParser in another normal java file). Now I want to call a method
  from the MainActivity out of the normal java file?

 Option #1: Pass the Activity in the constructor of your object from your
 normal java file

 Option #2: Have the Activity call a setter on your object from your
 normal java file (e.g., setActivity(this);)

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

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: getting open source eclair source code

2009-10-30 Thread Disconnect

There was finally a statement yesterday afternoon that eclair source
will land in AOSP. (No info on timing - could be there already for all
I know, or it could be months, but it will happen.)

This shouldn't have needed to be said :( Even in 1.5/1.6 it was when
not if, but all week 2.0 has been if.

On Thu, Oct 29, 2009 at 5:38 PM, Tim tdh...@gmail.com wrote:


 On Oct 29, 2:03 pm, Disconnect dc.disconn...@gmail.com wrote:
 Now they are saying we don't
 know IF it will be released.)

 Really? I know the new navigation thing won't be freely available, but
 I would have thought the source for the base 2.0 system will.


--~--~-~--~~~---~--~~
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 reverse the childs position in RelativeLayout

2009-10-30 Thread GPU


By reversing the  mRules - result : not working in all places

By changing the child.onLayout - mLeft and nRight? not getting the
childs exact position

By changing applySizeRules()
like changing getRelatedViewParams(rules, LEFT_OF); to
getRelatedViewParams(rules, RIGHT_OF);

or is their any other way to reverse it;

--~--~-~--~~~---~--~~
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 capture Soft keyboard key events.

2009-10-30 Thread Dianne Hackborn
There are no events for those things.  They are just internal state changes
in the IME.  Some IMEs may not even have such changes -- for example a
handwriting one may allow you to write letters and numbers in the same area.

On Fri, Oct 30, 2009 at 3:56 AM, Nandy satirthana...@gmail.com wrote:


 Hi Banny, Hassan,

 Even i faced the same problem and added on text change listener
 through text watcher. But in this case I am not able to catch the
 events of keys like caps, shift, changing from abc to 123.
 Any idea on this how to solve?

 Thanks and Regards,
 Nandy

 On Oct 30, 12:17 pm, Gulfam gulfa...@gmail.com wrote:
  Hi Banny,
 
  Thanks alot. I have implemented the code same as you its working very
  well for me. It was very big issue for my app but now resolved :)
  Thanks again.
 
  Regads,
  Gulfam Hassan
 
  On Oct 30, 7:53 am, Banny helloba...@gmail.com wrote:
 
   I find the same problem of it.
   Finally, I found EditText.addTextChangedListener(new TextWatcher(){})
   will let get the event.
   Good luck.
 
   On Oct 29, 11:09 pm, Gulfam gulfa...@gmail.com wrote:
 
Is there any solution I am still waiting for your Response
 
Gulfam Hassa
 
On Oct 28, 9:41 pm, Gulfam gulfa...@gmail.com wrote:
 
 Hi all group members,
 
 I am facing a problem any one can help me regarding this.
 
 I have an  EditTextand a list of contacts. I want to search a
 contacts on maching with characters entered inEditTextfield. 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 touchEditTextfield  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 myEditTextfield.
 
 Any useful solution would be highly appriciated.
 Thanks in advance.
 Gulfam Hassan
 
 
 



-- 
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 call an Activity method from another java file

2009-10-30 Thread Mark Murphy

Stefan wrote:
 thanks for your answer. i try option 1 today, but i couldnt call the
 funtion in my MainActivity class:
 
 My steps:
 
 in MainActivity:
 xmlHandler = new XMLHandler ( MainActivity.this ); // -- is that the
 Activity, i think so ??
 
 in XMLHandler (normal java file):
 
 Activity main;
 public XMLHandler (Activity act)
 {
   this.main = act;
 }
 
 I now want to call the specific function, but i can't say:
 act.callMethodOfMainActivity (aValue);

Of course. Your XMLHandler is holding an Activity, not a MainActivity.

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

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get the childs right and left position from RelativeLayout.onLayout() ralted to the parentLayout width

2009-10-30 Thread GPU

How to get the childs right and left position from
RelativeLayout.onLayout() ralted to the parentLayout width

If i call the child.getLeft or child.getRIght its giving 0 in onLayout
();
--~--~-~--~~~---~--~~
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: BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Dianne Hackborn
No, the alarm manager does not run at the background priority, and when
delivering an intent broadcast to an application it is actually pulled into
the foreground scheduling class (else there would often be ANRs and such).

On Thu, Oct 29, 2009 at 11:31 PM, Beth emez...@gmail.com wrote:


 I have a question about the background thread handling change that
 went into SDK 1.6.  I read here that BG threads get placed in a
 scheduling class that can't use more than 5-10% of the CPU in order to
 keep the foreground responsive.  Do system services get into that
 scheduling class?

 My app uses repeating alarms.  It was great with 1.5, very reliable.
 Since the upgrade to 1.6, the phone seems to be dropping some of my
 repeating broadcasts, especially if I am doing something fun in the
 foreground like with WIFI when the Alarm is supposed to fire.  I do
 not have any of the task killer programs that have been a hot topic
 lately.  To be clear, the dropped alarm broadcast behavior is
 intermittent.  I am not 100% sure if I really am doing something when
 it has failed.  If the timer is a one shot, it seems to work better
 but there is no real empirical evidence here. My phone is usually in
 my pocket when I fire one of the one shot alarms.  If my theory about
 system services in the background scheduling class is correct, then I
 probably cannot find a workaround or defensively code a solution.
 Will it be the same in 2.0?

 Have others seen issues with alarms and with the setRepeating method?
 I am looking for suggestions to troubleshoot this problem.  How can I
 determine if the problem is the broadcast, if it is the repeating
 alarm creation, or if there is some other issue like low memory coming
 in to
 play.  Any ideas?

 Thanks and regards,
 Beth
 



-- 
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 call an Activity method from another java file

2009-10-30 Thread Stefan

Thanks a lot. That was the error :)
Now it works.

Regards,
Stefan

On Oct 30, 1:48 pm, Mark Murphy mmur...@commonsware.com wrote:
 Stefan wrote:
  thanks for your answer. i try option 1 today, but i couldnt call the
  funtion in my MainActivity class:

  My steps:

  in MainActivity:
  xmlHandler = new XMLHandler ( MainActivity.this ); // -- is that the
  Activity, i think so ??

  in XMLHandler (normal java file):

  Activity main;
  public XMLHandler (Activity act)
  {
    this.main = act;
  }

  I now want to call the specific function, but i can't say:
  act.callMethodOfMainActivity (aValue);

 Of course. Your XMLHandler is holding an Activity, not a MainActivity.

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

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: App name/icon problems on Hero after reboot

2009-10-30 Thread Justin Giles
Oh, forgot to include my firmware build number:

1.29.651.1 CL69164 release-keys



On Fri, Oct 30, 2009 at 7:20 AM, Justin Giles jtgi...@gmail.com wrote:

 Installed, played 1 round, rebooted, icon  text looked fine.  Game started
 with no problems.

 Justin


 On Thu, Oct 29, 2009 at 11:35 PM, Robert Green rbgrn@gmail.comwrote:


 Ah ha!

 Ok, that at least shows something.  Before I changed the raw string to
 @string/app_name, it was causing the game to display as the package
 name instead of the label after a reboot.  Now, if you've never
 installed it before, it works fine, but for those have already
 installed it, it keeps breaking even after installing the update.

 I know it's speculation but it feels like a caching issue directly or
 indirectly to me.  Regardless of what's causing it, I'm glad that new
 installs are working with the updates I've made.  Now to figure out
 how to fix it when someone's installed and has the bug already...

 Justin - I don't want you to have to spend any money but Light Racer
 3D is showing up normally at install but then after reboot, the icon
 turns to a random drawable resource in the package and the label
 changes to com.batterypoweredgames.lightracer3d.  I've also applied
 the app label update to this one as well.  I don't suppose you'd be
 willing to test it?  You could always refund it when you're done.
 That would totally confirm it for me.

 Also, Justin, what firmware version do you have specifically?  I want
 to compare with the versions I've seen it break on before.

 Thanks!


 On Oct 29, 9:28 pm, Justin Giles jtgi...@gmail.com wrote:
  It says Light Racer.  Cacheit's good if it's in your wallet...not
 so
  good when it causes bugs.
 
  On Thu, Oct 29, 2009 at 8:58 PM, Robert Green rbgrn@gmail.com
 wrote:
 
   Justin,
 
   Did the app name say Light Racer or net.rbgrn.lightracer after the
   reboot?  That was the problem with it.
 
   I had a version out that used a raw string as the app label in the
   manifest.  This updated one uses @string/app_name.  If you confirm
   that it's the correct name and not the package name, then that's
   certainly one of the bugs right there.  People that have installed it
   when it had the raw string app label never seem to get it fixed.  Even
   updating to the one you claim works doesn't work for them.  It's like
   once it's broken on the device, the cached data never goes away.
 
   That makes we wonder if there is a way to clear data on one of the
   system apps that will reset that cache...
 
   On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote:
I just downloaded it, played a round, rebooted and everything seems
 fine
with it.  Icon looks good and the game loads.  Swhat's amiss
 with
the rest of us?  Sheer dumb luck?  Poorly coded apps?
 
Justin
 
On Thu, Oct 29, 2009 at 6:16 PM, Robert Green rbgrn@gmail.com
   wrote:
 
 Justin, would you be willing to install Light Racer, reboot and
 check
 for me?  That will show if I've figured out part of the problem or
 not.
 
 Thanks!
 
 On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote:
  I installed pandahome (assuming that's what you meant by
 installing a
  different home app) and I get the same results.  Messed up
 launcher
   icons
  after reboot.
 
  Justin
 
  On Thu, Oct 29, 2009 at 2:13 PM, Greg Donald gdon...@gmail.com
 
   wrote:
 
   On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn 
   hack...@android.com
   wrote:
If this is only happening on Hero, it needs to be reported
 to
   HTC,
 not as
   a
generic platform bug.
 
   Do you know where the HTC bug reporting site is?  All I can
 find is
   a
   simple support form that doesn't even confirm I posted
 anything.
 
Has anyone tried installing an alternate home app and seeing
 if
   it
 still
happens there?  I wonder if this is something in their
 custom
   home
 app.
 
   I'd be happy to try if I can.  What would you suggest I try?
  (I
   wasn't previously aware I could install a new home app.)
 
   --
   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] Paint (fill) a Path with a texture

2009-10-30 Thread mscwd01

Hey,

I currently draw Paths to the screen and fill them with a simple
color; however, is it possible to take a bitmap and fill the path with
this texture?

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] How to get the version of os used in the phone

2009-10-30 Thread Dilli


Hi all,

How can i get the os version currently using the android mobile

is any way to get that programatically

Thank you

Dilli Rao.M
--~--~-~--~~~---~--~~
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: Time To Lift Dev Phone Purchase Limitations

2009-10-30 Thread Disconnect

You can do ad-hoc deployment to as many devices as you want. So far,
all retail devices allow for installation of any app you want. That is
one of the big differences between android and iphone.

On Thu, Oct 29, 2009 at 1:21 PM, Madjack jack.fro...@gmail.com wrote:

 With the new Android devices coming out, will Google lift the
 restriction on buying one developer device?

 For instance, as I understand it, I can't currently test SDK 2.0 apps
 on the unlocked G1 phone I originally bought.

 I believe the iPhone Developer Program allows a development account to
 do ad-hoc app deployment to 100 devices.

 Isn't it time to open up the very narrow unlocked device limit?

 jack

 


--~--~-~--~~~---~--~~
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 the version of os used in the phone

2009-10-30 Thread Mark Murphy

Dilli wrote:
 How can i get the os version currently using the android mobile
 
 is any way to get that programatically

Look at android.os.Build.

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

Android App Developer Training: http://commonsware.com/training

--~--~-~--~~~---~--~~
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 call an Activity method from another java file

2009-10-30 Thread Dilli

You can implement some listener concept

write a interface in your normal java file
and implement that method in activity

then by calling that method in the normal java file you can make a
call to implemented method in activity class

Use handlers to do any Operations in the activity ( in implemented
method - other wise it will give u error)

May be this will help you a little.

On Oct 30, 4:00 pm, Stefan ebay-dah...@web.de wrote:
 Hello,

 i have following problem:
 I have my MainActivity. In this Activity, i start a thread
 (SaxParser in another normal java file). Now I want to call a method
 from the MainActivity out of the normal java file? I have read
 something of an Application object, but i only find things, where i
 have to create a new Intent (...).
 Is it possible to use the application object in the other normal
 java file like that:

 Second/normal/SaxParser-file:

 public class XMLHandler extends DefaultHandler implements Parcelable
 {
    
    ConstructorOfSecondJavaFile(  ApplicationObject o)
    {
       this.applicationObject = o;
       ...
    }

     ...
     o.callMethodOfMainActivity (int aValue);

 }

 MainActivity:

 private int val;

 public class MainAcitivity extends ...Acticity
 {
   public onCreate (..)
   {
      ...
   }

   public callMethodOfManinActivity (int val)
   {
     this.val = val;
   }

 }

 Thanks,
 Stefan
--~--~-~--~~~---~--~~
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 the version of os used in the phone

2009-10-30 Thread Dilli

Thank you,


On Oct 30, 6:31 pm, Mark Murphy mmur...@commonsware.com wrote:
 Dilli wrote:
  How can i get the os version currently using the android mobile

  is any way to get that programatically

 Look at android.os.Build.

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

 Android App Developer Training:http://commonsware.com/training
--~--~-~--~~~---~--~~
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 name/icon problems on Hero after reboot

2009-10-30 Thread Robert Green

Justin,

Thank you SO MUCH for testing this!  I can now say with certainty that
I have fixed the problem going forward and have identified at least
one thing that triggers this problem.  Hero doesn't like raw string
app labels.  It was probably developed with the assumption that app
labels are resource strings, though the reference docs say that as a
convenience while you are developing it can be set as a raw string.
Perhaps they didn't test with anything set like that.

Erik,

Thanks for providing a list of apps that are experiencing the bug.  A
friend of mine told me that handcent sms was broken but is now fixed
on his Hero.  I wonder if it's just luck of the draw with this
problem?  I was hoping there was a deterministic way to make it
work.

On Oct 30, 8:08 am, Justin Giles jtgi...@gmail.com wrote:
 Oh, forgot to include my firmware build number:

 1.29.651.1 CL69164 release-keys

 On Fri, Oct 30, 2009 at 7:20 AM, Justin Giles jtgi...@gmail.com wrote:
  Installed, played 1 round, rebooted, icon  text looked fine.  Game started
  with no problems.

  Justin

  On Thu, Oct 29, 2009 at 11:35 PM, Robert Green rbgrn@gmail.comwrote:

  Ah ha!

  Ok, that at least shows something.  Before I changed the raw string to
  @string/app_name, it was causing the game to display as the package
  name instead of the label after a reboot.  Now, if you've never
  installed it before, it works fine, but for those have already
  installed it, it keeps breaking even after installing the update.

  I know it's speculation but it feels like a caching issue directly or
  indirectly to me.  Regardless of what's causing it, I'm glad that new
  installs are working with the updates I've made.  Now to figure out
  how to fix it when someone's installed and has the bug already...

  Justin - I don't want you to have to spend any money but Light Racer
  3D is showing up normally at install but then after reboot, the icon
  turns to a random drawable resource in the package and the label
  changes to com.batterypoweredgames.lightracer3d.  I've also applied
  the app label update to this one as well.  I don't suppose you'd be
  willing to test it?  You could always refund it when you're done.
  That would totally confirm it for me.

  Also, Justin, what firmware version do you have specifically?  I want
  to compare with the versions I've seen it break on before.

  Thanks!

  On Oct 29, 9:28 pm, Justin Giles jtgi...@gmail.com wrote:
   It says Light Racer.  Cacheit's good if it's in your wallet...not
  so
   good when it causes bugs.

   On Thu, Oct 29, 2009 at 8:58 PM, Robert Green rbgrn@gmail.com
  wrote:

Justin,

Did the app name say Light Racer or net.rbgrn.lightracer after the
reboot?  That was the problem with it.

I had a version out that used a raw string as the app label in the
manifest.  This updated one uses @string/app_name.  If you confirm
that it's the correct name and not the package name, then that's
certainly one of the bugs right there.  People that have installed it
when it had the raw string app label never seem to get it fixed.  Even
updating to the one you claim works doesn't work for them.  It's like
once it's broken on the device, the cached data never goes away.

That makes we wonder if there is a way to clear data on one of the
system apps that will reset that cache...

On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote:
 I just downloaded it, played a round, rebooted and everything seems
  fine
 with it.  Icon looks good and the game loads.  Swhat's amiss
  with
 the rest of us?  Sheer dumb luck?  Poorly coded apps?

 Justin

 On Thu, Oct 29, 2009 at 6:16 PM, Robert Green rbgrn@gmail.com
wrote:

  Justin, would you be willing to install Light Racer, reboot and
  check
  for me?  That will show if I've figured out part of the problem or
  not.

  Thanks!

  On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote:
   I installed pandahome (assuming that's what you meant by
  installing a
   different home app) and I get the same results.  Messed up
  launcher
icons
   after reboot.

   Justin

   On Thu, Oct 29, 2009 at 2:13 PM, Greg Donald gdon...@gmail.com

wrote:

On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn 
hack...@android.com
wrote:
 If this is only happening on Hero, it needs to be reported
  to
HTC,
  not as
a
 generic platform bug.

Do you know where the HTC bug reporting site is?  All I can
  find is
a
simple support form that doesn't even confirm I posted
  anything.

 Has anyone tried installing an alternate home app and seeing
  if
it
  still
 happens there?  I wonder if this is something in their
  custom
home
  app.

I'd be happy to try if I can.  What would you suggest I try?
   (I
wasn't previously aware I could 

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

2009-10-30 Thread Yao
On Fri, Oct 30, 2009 at 7:25 PM, agirardello andrea.girarde...@gmail.comwrote:


 Try to use:

 android.provider.ContactsContract.Contacts.CONTENT_URI


It works. Thanks!




 On Oct 28, 7:10 am, Yao cicikaka2...@gmail.com wrote:
  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 Contactshttp://
 contacts-groupu.appspot.com
 



-- 
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: VBO on Motorola CLIQ

2009-10-30 Thread Robert Green

I gotta throw it out there:  Can you try with GLSurfaceView and report
your result?

On Oct 30, 3:40 am, Hexage ga...@hexage.net wrote:
 I'm not using logging or tracing, at least I'm not aware of that. I'm
 using EGL/GL directly (not via GLSurfaceView) and it works on G1/Magic/
 Hero/Droid.

 While playing with EGL config selection on CLIQ I've noticed a strange
 behavior. First config reported by eglChooseConfig is usually:

 red=5 green=6 blue=5 alpha=0 depth=0

 but sometimes, for no apparent reason, the first config is changed to:

 red=5 green=6 blue=5 alpha=0 depth=16

 when selected as first then VBO works. But if I select the same config
 when it's not reported first, then it does not work. But maybe it's
 not related.

 On Oct 30, 3:00 am, Robert Green rbgrn@gmail.com wrote:

  Are you using a logging or trace option for OpenGL?  If so, you have
  to turn it off.  The log and trace wrappers for GL cause errors to be
  thrown when using VBO extensions.  I haven't tested on a Cliq but that
  happened to me on my G1.

  On Oct 29, 12:33 pm, Hexage ga...@hexage.net wrote:

   I've been testing our games on Motorola CLIQ (aka MB200) using
   DeviceAnywhere. While the OpenGL driver indicates support for VBO
   (GL_OES_vertex_buffer_object GL_ARB_vertex_buffer_object) calling any
   VBO function yields called unimplemented OpenGL ES API. The weird
   thing is that sometimes it works for no apparent reason with no
   changes made to app besides debug prints.

   Is anyone using VBO on CLIQ succesfully?

   Thanks,
   David


--~--~-~--~~~---~--~~
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 name/icon problems on Hero after reboot

2009-10-30 Thread Justin Giles
I'm not entirely sure the raw string vs resource string is the full issue
here though.  It might be part of the problem, but not the whole
explanation.  As Greg mentioned earlier, he never had his app name set as a
raw string and he is experiencing the problem.  On one of my applications
I'm developing, I'm experiencing it as well with the app name always having
been a resource.  It's sounding more and more like HTC having done something
funky with the package management.  Especially since Dianne has been saying
that stock Android doesn't have this problem.  And all of my inquiries to
HTC  Sprint have resulted in nothing.

Justin

On Fri, Oct 30, 2009 at 9:34 AM, Robert Green rbgrn@gmail.com wrote:


 Justin,

 Thank you SO MUCH for testing this!  I can now say with certainty that
 I have fixed the problem going forward and have identified at least
 one thing that triggers this problem.  Hero doesn't like raw string
 app labels.  It was probably developed with the assumption that app
 labels are resource strings, though the reference docs say that as a
 convenience while you are developing it can be set as a raw string.
 Perhaps they didn't test with anything set like that.

 Erik,

 Thanks for providing a list of apps that are experiencing the bug.  A
 friend of mine told me that handcent sms was broken but is now fixed
 on his Hero.  I wonder if it's just luck of the draw with this
 problem?  I was hoping there was a deterministic way to make it
 work.

 On Oct 30, 8:08 am, Justin Giles jtgi...@gmail.com wrote:
  Oh, forgot to include my firmware build number:
 
  1.29.651.1 CL69164 release-keys
 
  On Fri, Oct 30, 2009 at 7:20 AM, Justin Giles jtgi...@gmail.com wrote:
   Installed, played 1 round, rebooted, icon  text looked fine.  Game
 started
   with no problems.
 
   Justin
 
   On Thu, Oct 29, 2009 at 11:35 PM, Robert Green rbgrn@gmail.com
 wrote:
 
   Ah ha!
 
   Ok, that at least shows something.  Before I changed the raw string to
   @string/app_name, it was causing the game to display as the package
   name instead of the label after a reboot.  Now, if you've never
   installed it before, it works fine, but for those have already
   installed it, it keeps breaking even after installing the update.
 
   I know it's speculation but it feels like a caching issue directly or
   indirectly to me.  Regardless of what's causing it, I'm glad that new
   installs are working with the updates I've made.  Now to figure out
   how to fix it when someone's installed and has the bug already...
 
   Justin - I don't want you to have to spend any money but Light Racer
   3D is showing up normally at install but then after reboot, the icon
   turns to a random drawable resource in the package and the label
   changes to com.batterypoweredgames.lightracer3d.  I've also applied
   the app label update to this one as well.  I don't suppose you'd be
   willing to test it?  You could always refund it when you're done.
   That would totally confirm it for me.
 
   Also, Justin, what firmware version do you have specifically?  I want
   to compare with the versions I've seen it break on before.
 
   Thanks!
 
   On Oct 29, 9:28 pm, Justin Giles jtgi...@gmail.com wrote:
It says Light Racer.  Cacheit's good if it's in your
 wallet...not
   so
good when it causes bugs.
 
On Thu, Oct 29, 2009 at 8:58 PM, Robert Green rbgrn@gmail.com
   wrote:
 
 Justin,
 
 Did the app name say Light Racer or net.rbgrn.lightracer after
 the
 reboot?  That was the problem with it.
 
 I had a version out that used a raw string as the app label in the
 manifest.  This updated one uses @string/app_name.  If you confirm
 that it's the correct name and not the package name, then that's
 certainly one of the bugs right there.  People that have installed
 it
 when it had the raw string app label never seem to get it fixed.
  Even
 updating to the one you claim works doesn't work for them.  It's
 like
 once it's broken on the device, the cached data never goes away.
 
 That makes we wonder if there is a way to clear data on one of the
 system apps that will reset that cache...
 
 On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote:
  I just downloaded it, played a round, rebooted and everything
 seems
   fine
  with it.  Icon looks good and the game loads.  Swhat's
 amiss
   with
  the rest of us?  Sheer dumb luck?  Poorly coded apps?
 
  Justin
 
  On Thu, Oct 29, 2009 at 6:16 PM, Robert Green 
 rbgrn@gmail.com
 wrote:
 
   Justin, would you be willing to install Light Racer, reboot
 and
   check
   for me?  That will show if I've figured out part of the
 problem or
   not.
 
   Thanks!
 
   On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote:
I installed pandahome (assuming that's what you meant by
   installing a
different home app) and I get the same results.  Messed up
   launcher
   

[android-developers] How will dev phone be able to run Eclair?

2009-10-30 Thread Tamas Jozsa
Hi All,

I have read and double checked that there is theoretically no chance to have
Eclair on G1 productive phone.

Take a look at this site:
http://androidandme.com/2009/10/news/g1-owners-could-miss-out-on-android-2-0/

I was wondering if there is actually a method to repartiotion the system
partition so that Eclair would fit on G1 dev phone.

What do you think?

Thanks,
Regards,
Tamas

--~--~-~--~~~---~--~~
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-30 Thread niko20

Well I still havent' heard anything back from him myself. Maybe my
posting was way to negative lol.

-niko

On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote:
 niko, fyi, we emailed Quentin the same day his post appeared and he
 actually called us the next day...

 On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote:

  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.
   Thatmicrositestuff 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'sweb 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 fromSprintthat 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 onSprint'sweb 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 fromSprintseems 
  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] Disable 2g and 3g networks

2009-10-30 Thread Anton Pirker

Hi all!

I am developing an application that is used for a sort of tournaments.
The requirements are that if the application is running it should be
impossible to make and receive phone calls.

Can i disable 2g/3g from within my app?
(Airplane mode is no option, because i still need GPS)

Thanks in advance!
Anton


--~--~-~--~~~---~--~~
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: Disable 2g and 3g networks

2009-10-30 Thread Jamie

GPS receiver is independent of the cell receiver.  GPS can be turned
on while airplane mode is ON.

Good luck!!

On Oct 30, 10:59 am, Anton Pirker l...@ignaz.at wrote:
 Hi all!

 I am developing an application that is used for a sort of tournaments.
 The requirements are that if the application is running it should be
 impossible to make and receive phone calls.

 Can i disable 2g/3g from within my app?
 (Airplane mode is no option, because i still need GPS)

 Thanks in advance!
 Anton
--~--~-~--~~~---~--~~
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-30 Thread niko20

See I think this is starting to prove my point.

I sent an email to Quentin. Didn't hear anything back for over 3
days.

So I tried to forward it to Sara's email. It got bounced back (unknown
account).

So once again as I said before, this is how it usually goes down, lots
of talk, but little action. And what action there is is disorganized.
That's why I've become jaded to these offers.


-niko

On Oct 30, 9:50 am, niko20 nikolatesl...@yahoo.com wrote:
 Well I still havent' heard anything back from him myself. Maybe my
 posting was way to negative lol.

 -niko

 On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote:

  niko, fyi, we emailed Quentin the same day his post appeared and he
  actually called us the next day...

  On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote:

   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.
Thatmicrositestuff 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'sweb 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 fromSprintthat 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 onSprint'sweb 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 fromSprintseems 
   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: Sometimes the running emulator is not found from within Eclipse?!

2009-10-30 Thread Mariano Kamp
The issue still happens with Android 2.0 and ADT 0.94.

2009/10/13 Diego Torres Milano dtmil...@gmail.com


 +1 (Linux)

 On Oct 12, 2:55 am, idoun idou...@gmail.com wrote:
  I have also same problem after upgrading the plugin to 0.9.3
 
  On Oct 10, 10:31 pm, Mariano Kamp mariano.k...@gmail.com wrote:
 
   Hi,
 
 when launching my app from within Eclipse, sometimes the running
 emulator
   is found and displayed in the launch dialog, sometimes it isn't?!
 Killing
   adb, the emulator and Eclipse usually helps ... until it happens again.
 
 Any idea why this is? I see this behavior since the launch of
 Android.
 
 I am running on Mac OS X. And it happened on Leopard as well as Snow
   Leopard.
 
   Cheers,
   Mariano
 
 
 


--~--~-~--~~~---~--~~
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 2.0] Accessing contact's phone numbers

2009-10-30 Thread agirardello

Dear all,

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

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

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

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

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

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

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

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

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

Thank you ;-)

Andrea
--~--~-~--~~~---~--~~
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: Keyboard, detect ALT Locked

2009-10-30 Thread vovkab

Any examples on how to detect locked state (shift or alt)?

On Oct 29, 10:04 pm, Dianne Hackborn hack...@android.com wrote:
 Again, there is no lock state in general.  The text receiving input
 maintains its own internal state for some things like this; if you want to
 get at that state, you can do so with the text APIs.  
 See:http://developer.android.com/reference/android/text/method/MetaKeyKey...

 http://developer.android.com/reference/android/text/method/MetaKeyKey...Other
 than that, no lock state exists.

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

  Need help.

  On 27 окт, 15:17, vovkab vov...@gmail.com wrote:
   So, how to get it?

   On 19 окт, 05:57, Dianne Hackborn hack...@android.com wrote:

The concept of the alt lock state only exists inside of the text
  object, as
it deals with editing being done on it.

On Sun, Oct 18, 2009 at 6:57 AM, iron ironph...@gmail.com wrote:

 Any ideas?

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

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

2009-10-30 Thread vovkab

Filled two bugs here: http://code.google.com/p/android/issues/detail?id=4417

On Oct 28, 8:59 pm, fadden fad...@android.com wrote:
 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: App name/icon problems on Hero after reboot

2009-10-30 Thread Greg Donald

On Fri, Oct 30, 2009 at 9:41 AM, Justin Giles jtgi...@gmail.com wrote:
 I'm not entirely sure the raw string vs resource string is the full issue
 here though.  It might be part of the problem, but not the whole
 explanation.  As Greg mentioned earlier, he never had his app name set as a
 raw string and he is experiencing the problem.  On one of my applications
 I'm developing, I'm experiencing it as well with the app name always having
 been a resource.  It's sounding more and more like HTC having done something
 funky with the package management.  Especially since Dianne has been saying
 that stock Android doesn't have this problem.  And all of my inquiries to
 HTC  Sprint have resulted in nothing.

I'm considering returning the phone, I still have a few days before my
30 day return option has past.  I mean, who really knows when this
might be fixed?

What other options are there at this point?


-- 
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: Updating one view also causes another view to update

2009-10-30 Thread Mihai Fonoage

Hi Mark,

The stack trace is as follows:

W/System.err(  769): java.lang.Throwable: stack dump
W/System.err(  769):at java.lang.Thread.dumpStack(Thread.java:610)
W/System.err(  769):at package_name.SecondView.onDraw(SecondView
.java:381)
W/System.err(  769):at android.view.View.draw(View.java:6274)
W/System.err(  769):at android.view.ViewGroup.drawChild
(ViewGroup.java:1526)
W/System.err(  769):at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1256)
W/System.err(  769):at android.view.ViewGroup.drawChild
(ViewGroup.java:1524)
W/System.err(  769):at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1256)
W/System.err(  769):at android.view.View.draw(View.java:6277)
W/System.err(  769):at android.widget.FrameLayout.draw
(FrameLayout.java:352)
W/System.err(  769):at android.view.ViewGroup.drawChild
(ViewGroup.java:1526)
W/System.err(  769):at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1256)
W/System.err(  769):at android.view.ViewGroup.drawChild
(ViewGroup.java:1524)
W/System.err(  769):at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1256)
W/System.err(  769):at android.view.View.draw(View.java:6277)
W/System.err(  769):at android.widget.FrameLayout.draw
(FrameLayout.java:352)
W/System.err(  769):at com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(Pho
neWindow.java:1883)
W/System.err(  769):at android.view.ViewRoot.draw(ViewRoot.java:
1332)
W/System.err(  769):at android.view.ViewRoot.performTraversals
(ViewRoot.java:1097)
W/System.err(  769):at android.view.ViewRoot.handleMessage
(ViewRoot.java:1613)
W/System.err(  769):at android.os.Handler.dispatchMessage
(Handler.java:99)
W/System.err(  769):at android.os.Looper.loop(Looper.java:123)
W/System.err(  769):at android.app.ActivityThread.main
(ActivityThread.java:4203)
W/System.err(  769):at java.lang.reflect.Method.invokeNative
(Native Method)
W/System.err(  769):at java.lang.reflect.Method.invoke(Method.java:
521)
W/System.err(  769):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(Zygo
teInit.java:791)
W/System.err(  769):at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:549)
W/System.err(  769):at dalvik.system.NativeStart.main(Native
Method)

I have a LinearLayout that contains the Chronometer (+ some TextViews
all in another LinearLayout), and the SecondView view. I guess the
problem is that all child views (Chronometer + SecondView) of the root
LinearLayout view are updated in case one of its child views
(Chronometer) gets updated (there is no concept of partially updating
the screen?). Should it be like this. Since I haven't changed anything
in my second view, it should not be re-drawn. The problem is that this
is out of my control. There is nothing I can do to stop the second
view of being re-drawn.

Mihai Fonoage

On Oct 30, 8:35 am, Mark Murphy mmur...@commonsware.com wrote:
 Mihai Fonoage wrote:
  Any help on this issue is greatly appreciated.

 Your question cannot be answered in the abstract. You need to find this
 out for yourself.

 Put a breakpoint or dump a stack trace in onDraw() of your second view.
 Figure out from there what is triggering it. If I had to guess, it is
 being triggered somehow through whatever layout contains both your view
 and the Chronometer.

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

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Updating one view also causes another view to update

2009-10-30 Thread String

On Oct 29, 7:44 pm, Mihai Fonoage fonoag...@gmail.com wrote:

 I have two views, one of which is a Chronometer. Whenever the
 Chronometer gets updated (every second, automatically, after its start
 () method has been called), the onDraw method of my second view is
 called. Any way I can stop this from happening?

Might this be your problem?
http://www.curious-creature.org/2009/05/02/drawable-mutations/

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

2009-10-30 Thread Moto

Guys this is true...  I got contacted by them via email not through
this forum... So its legit...

-Jona

On Oct 30, 11:04 am, niko20 nikolatesl...@yahoo.com wrote:
 See I think this is starting to prove my point.

 I sent an email to Quentin. Didn't hear anything back for over 3
 days.

 So I tried to forward it to Sara's email. It got bounced back (unknown
 account).

 So once again as I said before, this is how it usually goes down, lots
 of talk, but little action. And what action there is is disorganized.
 That's why I've become jaded to these offers.

 -niko

 On Oct 30, 9:50 am, niko20 nikolatesl...@yahoo.com wrote:

  Well I still havent' heard anything back from him myself. Maybe my
  posting was way to negative lol.

  -niko

  On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote:

   niko, fyi, we emailed Quentin the same day his post appeared and he
   actually called us the next day...

   On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote:

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.
 Thatmicrositestuff 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'sweb 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 fromSprintthat 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 onSprint'sweb 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 fromSprintseems 
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 

[android-developers] Re: How to modify system preferences?

2009-10-30 Thread Grahamdroid

Settings.System.getInt(ContentResolver, settingToGetAt);

On Oct 15, 1:40 am, Armond Avanes armond...@yahoo.com wrote:
 Hi Guys,

 Does anyone know how I can access and modify the system preferences (the
 options you see on system 'Settings' application)?

 Cheersss,
 Armond
--~--~-~--~~~---~--~~
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-30 Thread niko20

Well great for you then..

But see my posts above. I had an email BOUNCED BACK. An email that was
posted as we were supposed to be able to use. Once again it's
disorganized (or seems so), so it starts to wither my faith.

I think these companies need to understand, that as developers, we
have actually had quite a few offers for promotions. But I've yet to
see any succeed. If they really want us to take them seriously, they
will be quick to respond and have their act together.

-niko20

On Oct 30, 10:28 am, Moto medicalsou...@gmail.com wrote:
 Guys this is true...  I got contacted by them via email not through
 this forum... So its legit...

 -Jona

 On Oct 30, 11:04 am, niko20 nikolatesl...@yahoo.com wrote:

  See I think this is starting to prove my point.

  I sent an email to Quentin. Didn't hear anything back for over 3
  days.

  So I tried to forward it to Sara's email. It got bounced back (unknown
  account).

  So once again as I said before, this is how it usually goes down, lots
  of talk, but little action. And what action there is is disorganized.
  That's why I've become jaded to these offers.

  -niko

  On Oct 30, 9:50 am, niko20 nikolatesl...@yahoo.com wrote:

   Well I still havent' heard anything back from him myself. Maybe my
   posting was way to negative lol.

   -niko

   On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote:

niko, fyi, we emailed Quentin the same day his post appeared and he
actually called us the next day...

On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote:

 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.
  Thatmicrositestuff 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'sweb 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 fromSprintthat 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 onSprint'sweb 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 
 fromSprintseems quite
 attractive to me -- give them a screen shot and they may 

[android-developers] Re: Updating one view also causes another view to update

2009-10-30 Thread Mihai Fonoage

Thanks for the link String! I am trying to figure out what Drawable is
shared between the Chronometer and my SecondView (which draws some
bitmaps), but I cannot come with anything. Looking at my stack trace,
there is nothing there to suggest anything similar. I will look more
into that, but my feeling is that it might be another (though similar)
problem.

Mihai Fonoage

On Oct 30, 11:22 am, String sterling.ud...@googlemail.com wrote:
 On Oct 29, 7:44 pm, Mihai Fonoage fonoag...@gmail.com wrote:

  I have two views, one of which is a Chronometer. Whenever the
  Chronometer gets updated (every second, automatically, after its start
  () method has been called), the onDraw method of my second view is
  called. Any way I can stop this from happening?

 Might this be your 
 problem?http://www.curious-creature.org/2009/05/02/drawable-mutations/

 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: Updating one view also causes another view to update

2009-10-30 Thread Mark Murphy

Mihai Fonoage wrote:
 I have a LinearLayout that contains the Chronometer (+ some TextViews
 all in another LinearLayout), and the SecondView view. I guess the
 problem is that all child views (Chronometer + SecondView) of the root
 LinearLayout view are updated in case one of its child views
 (Chronometer) gets updated (there is no concept of partially updating
 the screen?). Should it be like this. Since I haven't changed anything
 in my second view, it should not be re-drawn. The problem is that this
 is out of my control. There is nothing I can do to stop the second
 view of being re-drawn.

Why are you worried about this?

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

_Beginning Android_ from Apress Now Available!

--~--~-~--~~~---~--~~
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: Updating one view also causes another view to update

2009-10-30 Thread skink



On Oct 30, 12:36 pm, Mihai Fonoage fonoag...@gmail.com wrote:
 Any help on this issue is greatly appreciated.

 Mihai Fonoage

 On Oct 29, 3:44 pm, Mihai Fonoage fonoag...@gmail.com wrote:



  Hello everyone,

  I have two views, one of which is a Chronometer. Whenever the
  Chronometer gets updated (every second, automatically, after its start
  () method has been called), the onDraw method of my second view is
  called. Any way I can stop this from happening?

  Thank you!

  Mihai Fonoage

hi,

my guess is that Chronometer when updated can change its size causing
parent ViewGroup to re-leyout its children and as a consequence to
draw all children

pskink
--~--~-~--~~~---~--~~
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] Assign EditText android:singleLine=true programmatically

2009-10-30 Thread bennyb

How can you programmatically set the android:singleLine=true
property of a TextView?

I want my EditText to open a numeric keypad with the Done button.

--~--~-~--~~~---~--~~
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: Updating one view also causes another view to update

2009-10-30 Thread skink



On Oct 30, 5:15 pm, skink psk...@gmail.com wrote:
 On Oct 30, 12:36 pm, Mihai Fonoage fonoag...@gmail.com wrote:





  Any help on this issue is greatly appreciated.

  Mihai Fonoage

  On Oct 29, 3:44 pm, Mihai Fonoage fonoag...@gmail.com wrote:

   Hello everyone,

   I have two views, one of which is a Chronometer. Whenever the
   Chronometer gets updated (every second, automatically, after its start
   () method has been called), the onDraw method of my second view is
   called. Any way I can stop this from happening?

   Thank you!

   Mihai Fonoage

 hi,

 my guess is that Chronometer when updated can change its size causing
 parent ViewGroup to re-leyout its children and as a consequence to
 draw all children

 pskink

i checked that Chronometer is a TextView so it could be the case.

try for testing purposes set both layout_width/layout_height to
'fill_parent'






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Beth

That's good news.  Thanks for the quick response.  Here is a follow
on...
Would the resulting execution of my broadcast receiver from the
AlarmManager broadcast go into the background thread pool or get into
the foreground inheriting from the AlarmManager?  I'm relieved to know
that a system service will not starve and now I want to know if
onReceive is sure to get all the CPU time it needs.

On Oct 30, 5:51 am, Dianne Hackborn hack...@android.com wrote:
 No, the alarm manager does not run at the background priority, and when
 delivering an intent broadcast to an application it is actually pulled into
 the foreground scheduling class (else there would often be ANRs and such).





 On Thu, Oct 29, 2009 at 11:31 PM, Beth emez...@gmail.com wrote:

  I have a question about the background thread handling change that
  went into SDK 1.6.  I read here that BG threads get placed in a
  scheduling class that can't use more than 5-10% of the CPU in order to
  keep the foreground responsive.  Do system services get into that
  scheduling class?

  My app uses repeating alarms.  It was great with 1.5, very reliable.
  Since the upgrade to 1.6, the phone seems to be dropping some of my
  repeating broadcasts, especially if I am doing something fun in the
  foreground like with WIFI when the Alarm is supposed to fire.  I do
  not have any of the task killer programs that have been a hot topic
  lately.  To be clear, the dropped alarm broadcast behavior is
  intermittent.  I am not 100% sure if I really am doing something when
  it has failed.  If the timer is a one shot, it seems to work better
  but there is no real empirical evidence here. My phone is usually in
  my pocket when I fire one of the one shot alarms.  If my theory about
  system services in the background scheduling class is correct, then I
  probably cannot find a workaround or defensively code a solution.
  Will it be the same in 2.0?

  Have others seen issues with alarms and with the setRepeating method?
  I am looking for suggestions to troubleshoot this problem.  How can I
  determine if the problem is the broadcast, if it is the repeating
  alarm creation, or if there is some other issue like low memory coming
  in to
  play.  Any ideas?

  Thanks and regards,
  Beth

 --
 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: Updating one view also causes another view to update

2009-10-30 Thread Mihai Fonoage

@Mark
I care because something needs to be drawn if the onDraw method is
being called. If there are no actual changes to the view, then this is
a waste of resources (probably unnoticeable) and I need to deal with
this case specifically, which complicates my application logic a
little (here though it is probably my fault - not a perfect design).

@skink
You are right, there is an issue with the layout, but while I can get
it to work and not have onDraw called every second, the views are not
displayed as I want to. I will play around with this layout issue some
more and see if I can get a fix.

Beside all this, I do find it unnecessary; characters representing
numbers from 0 to 9 have the same height, so the layout height (which
is set to wrap_content) should not change.

Mihai Fonoage

On Oct 30, 12:25 pm, skink psk...@gmail.com wrote:
 On Oct 30, 5:15 pm, skink psk...@gmail.com wrote:





  On Oct 30, 12:36 pm, Mihai Fonoage fonoag...@gmail.com wrote:

   Any help on this issue is greatly appreciated.

   Mihai Fonoage

   On Oct 29, 3:44 pm, Mihai Fonoage fonoag...@gmail.com wrote:

Hello everyone,

I have two views, one of which is a Chronometer. Whenever the
Chronometer gets updated (every second, automatically, after its start
() method has been called), the onDraw method of my second view is
called. Any way I can stop this from happening?

Thank you!

Mihai Fonoage

  hi,

  my guess is that Chronometer when updated can change its size causing
  parent ViewGroup to re-leyout its children and as a consequence to
  draw all children

  pskink

 i checked that Chronometer is a TextView so it could be the case.

 try for testing purposes set both layout_width/layout_height to
 'fill_parent'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: NEEDED: Apps to feature on Sprint Microsite

2009-10-30 Thread Kumaravel Kandasami
Quentin Perry,

FYI - Looks like the sara_jagiel...@gspsf.com email address is misspelled in
the body of the message. See on the CC of the original message.

Kumar_/|\_
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...


On Fri, Oct 30, 2009 at 10:50 AM, niko20 nikolatesl...@yahoo.com wrote:


 Well great for you then..

 But see my posts above. I had an email BOUNCED BACK. An email that was
 posted as we were supposed to be able to use. Once again it's
 disorganized (or seems so), so it starts to wither my faith.

 I think these companies need to understand, that as developers, we
 have actually had quite a few offers for promotions. But I've yet to
 see any succeed. If they really want us to take them seriously, they
 will be quick to respond and have their act together.

 -niko20

 On Oct 30, 10:28 am, Moto medicalsou...@gmail.com wrote:
  Guys this is true...  I got contacted by them via email not through
  this forum... So its legit...
 
  -Jona
 
  On Oct 30, 11:04 am, niko20 nikolatesl...@yahoo.com wrote:
 
   See I think this is starting to prove my point.
 
   I sent an email to Quentin. Didn't hear anything back for over 3
   days.
 
   So I tried to forward it to Sara's email. It got bounced back (unknown
   account).
 
   So once again as I said before, this is how it usually goes down, lots
   of talk, but little action. And what action there is is disorganized.
   That's why I've become jaded to these offers.
 
   -niko
 
   On Oct 30, 9:50 am, niko20 nikolatesl...@yahoo.com wrote:
 
Well I still havent' heard anything back from him myself. Maybe my
posting was way to negative lol.
 
-niko
 
On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote:
 
 niko, fyi, we emailed Quentin the same day his post appeared and he
 actually called us the next day...
 
 On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote:
 
  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.
   Thatmicrositestuff 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'sweb 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 fromSprintthat
 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 onSprint'sweb 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
  

[android-developers] Re: Updating one view also causes another view to update

2009-10-30 Thread Mark Murphy

Mihai Fonoage wrote:
 and I need to deal with
 this case specifically, which complicates my application logic a
 little (here though it is probably my fault - not a perfect design).

Your View should not care about how many times it is drawn. Relying on
assumed behavior (e.g., onDraw() is only called in certain scenarios) is
not safe. Otherwise, your code may break in future Android releases
where your assumption is no longer valid.

You are certainly welcome to figure out how to avoid onDraw()
unnecessarily, but you really need to implement support for onDraw()
occurring when you are not necessarily expecting it.

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

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~-~--~~~---~--~~
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: BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Mark Murphy

Beth wrote:
 Would the resulting execution of my broadcast receiver from the
 AlarmManager broadcast go into the background thread pool or get into
 the foreground inheriting from the AlarmManager?  

BroadcastReceiver is invoked on the UI thread, which is to say, the
primary thread for your application.

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

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~-~--~~~---~--~~
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: BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Beth Mezias
OK, but my application is not running at the time.  Does that mean it goes
into the foreground thread pool even if there is no window?  There is
supposed to be a notification drawn on the top left but that might not
qualify the code into the foreground.

On Fri, Oct 30, 2009 at 10:12 AM, Mark Murphy mmur...@commonsware.comwrote:


 Beth wrote:
  Would the resulting execution of my broadcast receiver from the
  AlarmManager broadcast go into the background thread pool or get into
  the foreground inheriting from the AlarmManager?

 BroadcastReceiver is invoked on the UI thread, which is to say, the
 primary thread for your application.

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

 _Android Programming Tutorials_ Version 1.0 In Print!

 



-- 

Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html  -
If God had wanted man to play soccer, he wouldn't have given us arms.

--~--~-~--~~~---~--~~
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: Updating one view also causes another view to update

2009-10-30 Thread Mihai Fonoage

Mark Murphy mmur...@commonsware.com wrote:
 Mihai Fonoage wrote:
  and I need to deal with
  this case specifically, which complicates my application logic a
  little (here though it is probably my fault - not a perfect design).

 Your View should not care about how many times it is drawn. Relying on
 assumed behavior (e.g., onDraw() is only called in certain scenarios) is
 not safe. Otherwise, your code may break in future Android releases
 where your assumption is no longer valid.

 You are certainly welcome to figure out how to avoid onDraw()
 unnecessarily, but you really need to implement support for onDraw()
 occurring when you are not necessarily expecting it.

That is what I ended up doing. I just found everything to be curious
to say the least.

Thank you all for the feedback!

Mihai Fonoage
--~--~-~--~~~---~--~~
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-30 Thread niko20

Ok guys, an update.

Quentin sent me an email about and hour ago with the info I needed, so
I would like to thank him for contacting me finally :) I was started
to lose hope again



-niko20

On Oct 30, 12:07 pm, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:
 Quentin Perry,

 FYI - Looks like the sara_jagiel...@gspsf.com email address is misspelled in
 the body of the message. See on the CC of the original message.

 Kumar    _/|\_www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...

 On Fri, Oct 30, 2009 at 10:50 AM, niko20 nikolatesl...@yahoo.com wrote:

  Well great for you then..

  But see my posts above. I had an email BOUNCED BACK. An email that was
  posted as we were supposed to be able to use. Once again it's
  disorganized (or seems so), so it starts to wither my faith.

  I think these companies need to understand, that as developers, we
  have actually had quite a few offers for promotions. But I've yet to
  see any succeed. If they really want us to take them seriously, they
  will be quick to respond and have their act together.

  -niko20

  On Oct 30, 10:28 am, Moto medicalsou...@gmail.com wrote:
   Guys this is true...  I got contacted by them via email not through
   this forum... So its legit...

   -Jona

   On Oct 30, 11:04 am, niko20 nikolatesl...@yahoo.com wrote:

See I think this is starting to prove my point.

I sent an email to Quentin. Didn't hear anything back for over 3
days.

So I tried to forward it to Sara's email. It got bounced back (unknown
account).

So once again as I said before, this is how it usually goes down, lots
of talk, but little action. And what action there is is disorganized.
That's why I've become jaded to these offers.

-niko

On Oct 30, 9:50 am, niko20 nikolatesl...@yahoo.com wrote:

 Well I still havent' heard anything back from him myself. Maybe my
 posting was way to negative lol.

 -niko

 On Oct 28, 1:56 pm, newbyca newb...@gmail.com wrote:

  niko, fyi, we emailed Quentin the same day his post appeared and he
  actually called us the next day...

  On Oct 28, 2:39 pm, niko20 nikolatesl...@yahoo.com wrote:

   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.
Thatmicrositestuff 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'sweb 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 fromSprintthat
  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 onSprint'sweb site following your post and do not
  find any
  evidence there's 

[android-developers] Priced apps - is there a wa

2009-10-30 Thread fhucho

Hi,
I just finished a chess game and have found out that I can't sell it
on Android Market because my country is not supported (Czech
Republic). Is there a way to circumvent this restriction (e.g. pretend
that I am from US in the registration form)? What would you advise me
if I want to earn some money on my app? I was thinking about giving it
for free now and when priced apps are supported in CR start to charge
for it.
--~--~-~--~~~---~--~~
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 WVGA support

2009-10-30 Thread webmonkey

drawable-hdpi-v6 does indeed work in the 2.0 emulator but not in a 1.6
emulator. And because it is not exactly clear what the problem is I do
not recommend using it.

I am still hoping to find a solution where I can just use drawable-
hdpi

On Oct 30, 8:49 am, Nikolay Ananiev devuni...@gmail.com wrote:
 YES drawable-hdpi-v6 works for me too. I'll use it in my next release as a
 workaround
 Thanks Artem!

 On Fri, Oct 30, 2009 at 7:15 AM, Artem Petakov p.ar...@gmail.com wrote:
  This will sound crazy, but -v6 works for me. There must be a strange reason
  why this works, or maybe there is a subtle reason why this workaround does
  not work. Can anyone confirm?

  On Thu, Oct 29, 2009 at 11:22 PM, Artem Petakov p.ar...@gmail.com wrote:

  Ah, that's too bad. Bugs happen.

  I am trying to understand the solution... Somehow having a -v5 version in
  there does not help (as webmonkey reported). I don't have my head around
  this fully, but I think Android somehow prefers the regular drawable
  directory (which I have for the Cupcake crowd). What is the recommended set
  of drawable directories at this point?

  Artem

  On Thu, Oct 29, 2009 at 10:29 PM, Dianne Hackborn 
  hack...@android.comwrote:

  Dammit yeah that would be broken.  I'll make sure this is fixed in the
  next version; for now i guess you will need to include both -v4 and -v5
  resources.

  On Thu, Oct 29, 2009 at 7:25 PM, Artem p.ar...@gmail.com wrote:

  Trying to help by digging up the code.

  I found this:

 http://www.google.com/codesearch/p?hl=ensa=Ncd=1ct=rc#uX1GffpyOZk/...

     // Return true if 'this' can be considered a match for the
  parameters in
     // 'settings'.
     // Note this is asymetric.  A default piece of data will match
  every request
     // but a request for the default should not match odd specifics
     // (ie, request with no mcc should not match a particular mcc's
  data)
     // settings is the requested settings
     inline bool match(const ResTable_config settings) const {
  ...

         if (version != 0) {
             if (settings.sdkVersion != 0  sdkVersion != 0
                  sdkVersion != settings.sdkVersion) {
                 return false;
             }
             if (settings.minorVersion != 0  minorVersion != 0
                  minorVersion != settings.minorVersion) {
                 return false;
             }
         }
         return true;
    }

  Of course I am not sure where this is used, but I only see an != here.
  Hopefully, this is not the right code. Or perhaps there is new code in
  Eclair that is not available yet, that makes this better.

  Thanks for the help.

  Artem

  On Oct 29, 9:12 pm, Artem Petakov p.ar...@gmail.com wrote:
   Dianne, I am sorry to say it also does not work for me. Actually, we
  had
   made a mistake and originally forgot the v4, which screwed up Cupcake,
  but
   now we added the v4 (and make no other changes), and it stopped
  working.

   Am I missing something? Or is there perhaps a serious problem? Please
  reply
   back so we can take action -- we need to publish a new APK for the
  Cupcake
   users, but we can't figure out how to do that without breaking Eclair.

   Artem

   On Thu, Oct 29, 2009 at 11:00 AM, webmonkey webmonke...@gmail.com
  wrote:

Hi Dianne,

The v flag does indeed not work, I am using the Android 2.0 SDK with
the following AndroidManifest settings:

uses-sdk
   android:minSdkVersion=3
    android:targetSdkVersion=5
/

Running on a WVGA854 emulator with density 240 and API 5, I get the
following results:

drawable-hdpi-v4

is ignored

drawable-hdpi-v5

is ignored, very strange

drawable-hdpi

works, but we can't use that

On Oct 29, 3:45 pm, Dianne Hackborn hack...@android.com wrote:
 I am pretty positive it works.  Nothing changed in 2.0 -- this has
  been
the
 same since 1.0, if the platform's SDK version is  the resource
  version,
 then the resource is ignored.

 On Wed, Oct 28, 2009 at 5:28 PM, Jeff codesec...@gmail.com
  wrote:

  Looks like -v4 flag doesn't work in Android 2.0. Any ideas?

  On Oct 22, 8:38 am, Nikolay Ananiev devuni...@gmail.com
  wrote:
   This is how I made my app resolution-independent and with
  Android 1.5
  legacy
   support:

   Why did I put my high-dpi images in the drawable-hdpi-v4
  folder and
not
  in
   drawable-hdpi? Because the Android 1.5 OS can't handle the
  -hdpi and
  tries
   to use these images instead of the ones in the res/drawable
  folder.
The
  -v4
   flag is only meaningful for Android 1.6 and works perfect.

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

[android-developers] Source Code required for Android App

2009-10-30 Thread Maxood

Source code is required for a simple content based app.

It involves simple vertical scrolling and random access and retrieval
of data from SQLite database. Possibly random numbers are used. On
each view a single random fact is fetched from the database and
displayed(possibly ListView with a custom adapter is required).
The user keeps on scrolling until the app is terminated by the user.

Here is the link to the application that gives an overview about it:

http://www.amusingsexfacts.com/#

Although the app is very simple in functionality but if there are any
questions, please feel free to ask me on my hotmail id:
maqsood_rah...@hotmail.com. Payment will be made on the desired time.

Waiting for your reply,

Maxood
--~--~-~--~~~---~--~~
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: Quick Contacts popup

2009-10-30 Thread Jeff Sharkey

The easiest way is using the new QuickContactBadge widget.  You can
add it to your layout, and there are helper methods to bind it using
phone, email, or a normal Uri.

http://d.android.com/reference/android/widget/QuickContactBadge.html

This control will automatically give you the frame around the photo,
and launch the track when clicked.  If you're looking to launch the
Quick Contacts popup manually yourself, you can use the API directly:

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

Just call QuickContact.showQuickContact() and pass in a target Rect
area in screen coordinates.  The Quick Contact window adjusts and
points towards that target area.

j



On Thu, Oct 29, 2009 at 5:13 AM, Fedor Vlasov the...@gmail.com wrote:

 I can see a new Quick Contacts popup in Android 2.0. How can I use it
 in my application? Can't find any samples.

 Thanks!

 




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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Mark Murphy

Beth Mezias wrote:
 OK, but my application is not running at the time.

Sure it is. If your code runs, your application is running.

 Does that mean it
 goes into the foreground thread pool even if there is no window? 

Unless specifically documented, all threads in Android are normal priority.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

2009-10-30 Thread Artem Petakov
Right, you have to use -v4 for that of course. It's similar to what Dianne
had suggested above (using both -v4 and -v5), except v5 is actually v6. It
just seems that somewhere deep in this part of the Eclair code there is
something that makes it think that the sdkVersion is 6, not 5. Dianne, could
you please comment since this is the only workaround that works so far?

I would love to find this out myself, but since the Eclair code is not yet
available, it's hard to figure this out. I'm assuming the code drop is
coming soon.

I have verified that by using both -v4 and -v6, I can get things to work on
every platform.

For those interested, to avoid duplicating actual pngs/jpgs, I am using an
ugly hack. Here is an example

Folder drawable-160dpi:
example_image.png (the mdpi version of image)

Folder drawable-240dpi-v4:
XML file example_image.xml with the following inside:
bitmap xmlns:android=http://schemas.android.com/apk/res/android;
android:src=@drawable/example_image_hdpi
/

Folder drawable-240dpi-v6:
Same example_image.xml with the following inside:
bitmap xmlns:android=http://schemas.android.com/apk/res/android;
android:src=@drawable/example_image_hdpi
/

Folder drawable-nodpi:
example_image_hdpi.png (the hdpi version of image)

Yes, it's very ugly. Any better ideas are very welcome.

Artem

On Fri, Oct 30, 2009 at 1:36 PM, webmonkey webmonke...@gmail.com wrote:


 drawable-hdpi-v6 does indeed work in the 2.0 emulator but not in a 1.6
 emulator. And because it is not exactly clear what the problem is I do
 not recommend using it.

 I am still hoping to find a solution where I can just use drawable-
 hdpi

 On Oct 30, 8:49 am, Nikolay Ananiev devuni...@gmail.com wrote:
  YES drawable-hdpi-v6 works for me too. I'll use it in my next release as
 a
  workaround
  Thanks Artem!
 
  On Fri, Oct 30, 2009 at 7:15 AM, Artem Petakov p.ar...@gmail.com
 wrote:
   This will sound crazy, but -v6 works for me. There must be a strange
 reason
   why this works, or maybe there is a subtle reason why this workaround
 does
   not work. Can anyone confirm?
 
   On Thu, Oct 29, 2009 at 11:22 PM, Artem Petakov p.ar...@gmail.com
 wrote:
 
   Ah, that's too bad. Bugs happen.
 
   I am trying to understand the solution... Somehow having a -v5 version
 in
   there does not help (as webmonkey reported). I don't have my head
 around
   this fully, but I think Android somehow prefers the regular drawable
   directory (which I have for the Cupcake crowd). What is the
 recommended set
   of drawable directories at this point?
 
   Artem
 
   On Thu, Oct 29, 2009 at 10:29 PM, Dianne Hackborn 
 hack...@android.comwrote:
 
   Dammit yeah that would be broken.  I'll make sure this is fixed in
 the
   next version; for now i guess you will need to include both -v4 and
 -v5
   resources.
 
   On Thu, Oct 29, 2009 at 7:25 PM, Artem p.ar...@gmail.com wrote:
 
   Trying to help by digging up the code.
 
   I found this:
 
  
 http://www.google.com/codesearch/p?hl=ensa=Ncd=1ct=rc#uX1GffpyOZk/...
 
  // Return true if 'this' can be considered a match for the
   parameters in
  // 'settings'.
  // Note this is asymetric.  A default piece of data will match
   every request
  // but a request for the default should not match odd specifics
  // (ie, request with no mcc should not match a particular mcc's
   data)
  // settings is the requested settings
  inline bool match(const ResTable_config settings) const {
   ...
 
  if (version != 0) {
  if (settings.sdkVersion != 0  sdkVersion != 0
   sdkVersion != settings.sdkVersion) {
  return false;
  }
  if (settings.minorVersion != 0  minorVersion != 0
   minorVersion != settings.minorVersion) {
  return false;
  }
  }
  return true;
 }
 
   Of course I am not sure where this is used, but I only see an !=
 here.
   Hopefully, this is not the right code. Or perhaps there is new code
 in
   Eclair that is not available yet, that makes this better.
 
   Thanks for the help.
 
   Artem
 
   On Oct 29, 9:12 pm, Artem Petakov p.ar...@gmail.com wrote:
Dianne, I am sorry to say it also does not work for me. Actually,
 we
   had
made a mistake and originally forgot the v4, which screwed up
 Cupcake,
   but
now we added the v4 (and make no other changes), and it stopped
   working.
 
Am I missing something? Or is there perhaps a serious problem?
 Please
   reply
back so we can take action -- we need to publish a new APK for the
   Cupcake
users, but we can't figure out how to do that without breaking
 Eclair.
 
Artem
 
On Thu, Oct 29, 2009 at 11:00 AM, webmonkey 
 webmonke...@gmail.com
   wrote:
 
 Hi Dianne,
 
 The v flag does indeed not work, I am using the Android 2.0 SDK
 with
 the following AndroidManifest settings:
 
 uses-sdk
android:minSdkVersion=3
 

[android-developers] Re: IP broadcast on emulator

2009-10-30 Thread David Turner
well, this is simply not supported at the moment.

On Thu, Oct 15, 2009 at 6:12 AM, Anders lanils...@gmail.com wrote:


 Hi,

 I have an application that acts as both client and server. I have a
 scenario that I need to test that involves three devices. One of them
 needs to broadcast a message (UDP) to the other two.
 Running on physical devices, this is not a problem, and it works fine.
 On the emulator however, this is much harder.
 I have managed to get it work for two devices using the emulator. Here
 my client thread broadcast the message to 10.0.2.255 port 6002, and
 server thread listens on port 6006. By using redir add udp:6002:6006
 the server receives the message fine.
 Now, if I add another instance and do the same portforwarding, only
 one of them receives the message. I also tried to use a different port
 number on the server, and forward port 6002 to that number, with the
 same result.
 It appears as if a port can only be forwarded from one instance.
 Does anyone of a method to broadcast using the emulator, without
 sending a separate message to each emulator instance?

 Thanks,
 Anders
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-10-30 Thread Jeff Sharkey

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

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

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

j



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

 Dear all,

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

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

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

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

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

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

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

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

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

 Thank you ;-)

 Andrea
 




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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BG threads with 1.6; is the AlarmManager starving?

2009-10-30 Thread Beth Mezias
Sorry but I still need clarification here.  This new 1.6 feature
distinguishes between foreground and background and would seem to alter
thread priorities based on that characteristic despite all priorities being
normal.

Assume that when the broadcast receiver is called, another application might
have the UI Thread by running an interactive window with the Android end
user.  In this case, does onReceive run in the foreground or background?

Dianne made clear that the System Service is not starved and the broadcast
is sent. It still looks to me like the resulting broadcast receiver may not
be getting the CPU.  Is there any way to defensively code for this
situation?

Regards,
Beth

On Oct 30, 2009 11:03 AM, Mark Murphy mmur...@commonsware.com wrote:

Beth Mezias wrote:  OK, but my application is not running at the time.
Sure it is. If your code runs, your application is running.

 Does that mean it  goes into the foreground thread pool even if there is
no window?
Unless specifically documented, all threads in Android are normal priority.

--

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

--~--~-~--~~~---~--~~
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: Priced apps - is there a wa

2009-10-30 Thread Wouter

I have this problem too! I live in belgium and cant sell my
applications..

How can we do this?

On Oct 30, 6:28 pm, fhucho fhu...@gmail.com wrote:
 Hi,
 I just finished a chess game and have found out that I can't sell it
 on Android Market because my country is not supported (Czech
 Republic). Is there a way to circumvent this restriction (e.g. pretend
 that I am from US in the registration form)? What would you advise me
 if I want to earn some money on my app? I was thinking about giving it
 for free now and when priced apps are supported in CR start to charge
 for it.
--~--~-~--~~~---~--~~
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: setResult() for AppWidget

2009-10-30 Thread Jeff Sharkey

It sounds like the ACTION_VIEW might be launched as startActivity()
instead of startActivityForResult(), which means the result is being
dropped on the path back to Launcher.

The forecast widget example interacts with the system search dialog,
and uses singleTop and onNewIntent() to catch searches and still
return correctly:

http://code.google.com/p/android-sky/source/browse/trunk/Sky/AndroidManifest.xml#57
http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/ConfigureActivity.java#287

j

On Tue, Oct 27, 2009 at 2:25 AM, Ollie Weng ollie.w...@gmail.com wrote:

 Hi, (resend with heading title)

 I'm making a appwidget, and hope to use search UI to let user filter
 some infomation while setup widget on receiving APPWIDGET_CONFIGURE. My
 current problem is APPWIDGET_CONFIGURE intent depends on setResult() to
 decide if adding widget successful. However, using search UI cause
 activity reentry to fail to setResult() to original caller.

 Below codes show how and where my code to setResult(),
 first when user try to add widget in home screen, we launch the search
 UI on APPWIDGET_CONFIGURE intent, and after search UI return result with
 Intent.ACTION_VIEW to same activity, it failed to setResult() to tell
 caller widget is configured.
 But in onUserInteraction()  setResult() work, but it's just not correct
 timing. Tried extend finish() but still in vain.

 Any suggest is appreciated!


 public void onCreate(Bundle savedInstanceState)
 {
  super.onCreate(savedInstanceState);
  Intent launchIntent = getIntent();

  Bundle extras = launchIntent.getExtras();

  if(Intent.ACTION_VIEW.equals(launchIntent.getAction()))
  {
     // this is where to handle search result indent, but failed to set
 result

    if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) {
        Intent intent = new Intent();
        intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
        setResult(RESULT_OK, intent);
    }

  } else if(Intent.ACTION_SEARCH.equals(launchIntent.getAction()))
  {
    String query = launchIntent.getStringExtra(SearchManager.QUERY);

    if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) {
        Intent intent = new Intent();
        intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
        setResult(RESULT_OK, intent);
    }

  } else {
    //  deal android.appwidget.action.APPWIDGET_CONFIGURE here
    onSearchRequested();
  }
 }


 TIA,
 Ollie

 




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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to detect if a Bluetooth A2DP headset is connected

2009-10-30 Thread Stephen Lin

Is there anybody know the answer?

I just saw the API setBluetoothA2dpOn(boolean on) in AudioManager is
deprecated.

I need provide a choice in my application for the user to select audio
route to Bluetooth headset or speaker.  I can use the API
setBluetoothA2dpOn() to route audio to bluetooth headset, if the A2DP
is paired and connected.  But if it is not connected, the audio is
off.

My questions are:
1. Is there an API for the application to control audio routing to
Bluetooth headset?
2. How to detect if an A2DP headset is connected?

Thanks a lot.
--~--~-~--~~~---~--~~
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: VBO on Motorola CLIQ

2009-10-30 Thread Hexage

I've tested it with GLSurfaceView, still the same problem (called
unimplemented OpenGL ES API).

The problem was also reported by several unhappy CLIQ owners on retail
handsets.

On Oct 30, 3:40 pm, Robert Green rbgrn@gmail.com wrote:
 I gotta throw it out there:  Can you try with GLSurfaceView and report
 your result?

 On Oct 30, 3:40 am, Hexage ga...@hexage.net wrote:

  I'm not using logging or tracing, at least I'm not aware of that. I'm
  using EGL/GL directly (not via GLSurfaceView) and it works on G1/Magic/
  Hero/Droid.

  While playing with EGL config selection on CLIQ I've noticed a strange
  behavior. First config reported by eglChooseConfig is usually:

  red=5 green=6 blue=5 alpha=0 depth=0

  but sometimes, for no apparent reason, the first config is changed to:

  red=5 green=6 blue=5 alpha=0 depth=16

  when selected as first then VBO works. But if I select the same config
  when it's not reported first, then it does not work. But maybe it's
  not related.

  On Oct 30, 3:00 am, Robert Green rbgrn@gmail.com wrote:

   Are you using a logging or trace option for OpenGL?  If so, you have
   to turn it off.  The log and trace wrappers for GL cause errors to be
   thrown when using VBO extensions.  I haven't tested on a Cliq but that
   happened to me on my G1.

   On Oct 29, 12:33 pm, Hexage ga...@hexage.net wrote:

I've been testing our games on Motorola CLIQ (aka MB200) using
DeviceAnywhere. While the OpenGL driver indicates support for VBO
(GL_OES_vertex_buffer_object GL_ARB_vertex_buffer_object) calling any
VBO function yields called unimplemented OpenGL ES API. The weird
thing is that sometimes it works for no apparent reason with no
changes made to app besides debug prints.

Is anyone using VBO on CLIQ succesfully?

Thanks,
David


--~--~-~--~~~---~--~~
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: Touch HD

2009-10-30 Thread kaguendiez

Hi Christian,

you can read that 
http://wiki.xda-developers.com/index.php?pagename=BlackstoneLinux

Cheers,
Jonathan


On 4 oct, 17:07, eweq-t...@live.com eweq-t...@live.com wrote:
 Hey guys,

 I read this article 
 herehttp://androidcommunity.com/android-coming-to-the-htc-touch-hd-20081007/
 which states that Android is being ported to the Blackstone.Is that
 true?I talked to the guy from xda-developers who was supposed to port
 Android for the TouchHDbut it seems he got a new phone... so... he
 won't be doing it.Is someone porting android for Blackstone?
 I've been researching Adnroid running on Blackstone and there are tons
 and tons of people who want to install it.I saw some youtube videos on
 how to install Android but when you do you don't have mic or sound (so
 when both sides can't hear each other when talking) and these kinda
 stuff...
 Android is awesome I would love to be an Android user!

 Cheers,

 Christian

--~--~-~--~~~---~--~~
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] Problem installing Android 2.0 on Mac (Snow Leopard)

2009-10-30 Thread Kevin

Hi all,

I was trying to install Android 2.0 on Mac which running snow
leopard.

When I run android, it give me error message. I forgot the exact
message, but it roughly says I cannot run a 32 bit code on a 64 bit
virtual machine or something similar.

Does anyone else have the same problem? How can I solve it?

Regards,
Kevin


--~--~-~--~~~---~--~~
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: Couldn't install Android 2.0 platform

2009-10-30 Thread pdecat

 On 29 окт, 01:01, sanczo_dev adamfar...@gmail.com wrote:
 I have the similar problem. But after download i get: unzip failed:
 Cannot run program chmod: java.io.IOException: error=24, too many
 files opened. I downloading Android 2.0 sdk and API 5. I have
 installed already sdk 1.1 and 1.5 before AVD comes.

I had the same error message on Ubuntu Jaunty amd64 but not on x86.
Added a comment to the LP bug.

--~--~-~--~~~---~--~~
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: World Of Bombs (Action Game) ADC 2 Entry

2009-10-30 Thread mike177

Croco, fun app!  Keep confident...  I trust this app will be among the
20 finalist in the action game category.  It is a great game to play
when I need to wait for something and I need a time killer.  Congrats!

--~--~-~--~~~---~--~~
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] bitmap size exceeds VM budget

2009-10-30 Thread Richard

I'm getting some reports from the remote stack trace plug-in, with
this error (see below)

What I'm doing, is
findViewById(R.id.instructionsBack).setBackgroundResource
(R.drawable.instructions1);


And then when I need to change the image,
findViewById(R.id.instructionsBack).setBackgroundResource
(R.drawable.instructions2);


From the error, I'm guessing that the old image is staying in the
memory and preventing the new one from loading?

What's the correct way to do this kind of thing?



Thanks,
Richard



java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:
363)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:
212)
at android.graphics.drawable.Drawable.createFromResourceStream
(Drawable.java:663)
at android.content.res.Resources.loadDrawable(Resources.java:1637)
at android.content.res.Resources.getDrawable(Resources.java:535)
at android.view.View.setBackgroundResource(View.java:6489)
at com.stickycoding.FlyingAces.Instructions.updateScreen
(Instructions.java:33)
at com.stickycoding.FlyingAces.Instructions.onClick(Instructions.java:
52)
at android.view.View.performClick(View.java:2179)
at android.view.View.onTouchEvent(View.java:3828)
at android.view.View.dispatchTouchEvent(View.java:3368)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1752)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1206)
at android.app.Activity.dispatchTouchEvent(Activity.java:1998)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1736)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1547)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3948)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)

--~--~-~--~~~---~--~~
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] Problem while playing buffer data

2009-10-30 Thread Nishant

Hi,

I have developed application in Java using javax.sound api.
It works perfectly in Java Applet Player.

But the same application developed in Android using android.media
library.
I have used AudioTrack class to play the sound.

The content of the buffer used in Java Player, i have written in the
wav file.
You can download that wav file from : http://saltriver.com/download/qed.wav

Regards,
Nishant Shah


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] PendingIntent fired but not received on boot

2009-10-30 Thread kapil

i am having a problem in receiving a pending intent.It is fired
successfully at the requested time but if i boot my device before
that time, I refire the pendingIntent on device startup in a service,
pending intent is fired (which i check in OnSendFinished listener of
pending intent) but not received in the respective receiver(Log
statements in the onReceive method of the receiver are not
displayed ).


I want to know whether pendingIntent  that have been fired are
canceled at boot time and do we need to refire them or do they exist
and would work normally on startup.





--~--~-~--~~~---~--~~
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: There is NO AVD Target...

2009-10-30 Thread Joe Hopper

I just had this problem as well.  It looks like the SDK must not come
with any platforms by default, so I did the following to fix this:

- Run the SDK Setup.exe file (found wherever you extracted the Android
SDK to)
- Click on Available Packages on the left side.
- Check the Platforms you need
- Click Install Selected

It probably took 10 mins or so, but eventually they were downloaded
and installed.  Now when I went back to create the avd, everything
worked fine.

Here's the page that helped me figure this out:
http://developer.android.com/sdk/adding-components.html

I hope this helps!


On Oct 29, 11:40 pm, Nobody111 adam.ornst...@gmail.com wrote:
 Hi all!

 Trying to set up my eclipse envirnment to actually be able to try some
 things out on android...

 I've installed the sdk, put it in my path variable, installed the ADT,
 downloaded the developer tools from the eclpise menu..

 But... Then I go to the command line, navigate to the tools folder of
 my sdk, and run android createavd--target2 --name mine

 and I get this error:

 Error:Targetid is not valid. Use 'android.bat list targets' to get
 thetarget
 ids.

 So, I of course happily run the 'android.bat list targets'  and get
 the following message!

 Available Android Targets:

 That's it.  There are no targets  I open theAVDwindow in
 eclipse, there are no targets... I click New in that window, and atargetis 
 required, but the drop down is disabled because there are NOAVDTARGETS.

 Any advice?

--~--~-~--~~~---~--~~
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 do some services(like com.android.inputmethod.latin) start when the emulator boots?

2009-10-30 Thread caixia

Hi all,

I am reading the initialization process of Android system on the
emulator. I use adb logcat to see the internal output.

I have read according to the following order:
init - init.rc - zygote(init1-init2) - systemReady(start
com.android.phone and android.process.acore)

However, the log has some lines about starting other processes, such
as:

I/ActivityManager(  567): Start proc com.android.inputmethod.latin for
service com.android.inputmethod.latin/.LatinIME: pid=668 uid=10006
gids={3003}
I/ActivityManager(  567): Start proc android.process.media for
broadcast com.android.providers.media/.MediaScannerReceiver: pid=677
uid=1 gids={1006, 2001, 3003}

But I can't find the calling stack about those services and broadcast
receivers. How do those services and receivers start?

Can anyone help me?

Thanks very much,
Caixia

--~--~-~--~~~---~--~~
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: There is NO AVD Target...

2009-10-30 Thread vojd

Hello!
I had exactly the same problem.
Changing the permissions on the directory where Android stores its avd
and config files did the trick!
(on Linux this is located at ~/.android/).
sudo chmod 555 ~/.android/


On 30 Okt, 05:40, Nobody111 adam.ornst...@gmail.com wrote:
 Hi all!

 Trying to set up my eclipse envirnment to actually be able to try some
 things out onandroid...

 I've installed the sdk, put it in my path variable, installed the ADT,
 downloaded the developer tools from the eclpise menu..

 But... Then I go to the command line, navigate to the tools folder of
 my sdk, and run androidcreate avd --target 2 --name mine

 and I get this error:

 Error: Target id is not valid. Use 'android.bat listtargets' to get
 the target
 ids.

 So, I of course happily run the 'android.bat listtargets'  and get
 the following message!

 AvailableAndroidTargets:

 That's it.  There are notargets  I open the AVD window in
 eclipse, there are notargets... I click New in that window, and a
 target is required, but the drop down is disabled because there are NO
 AVDTARGETS.

 Any advice?

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