[android-developers] How to get IME supported languages?

2009-09-08 Thread GPU

Hi ,

 Is their any way to get the IME Supported language list  selected
language ?

 InputMethod   InputMethodManager not having any function to get this
details.





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-09-08 Thread Al Sutton

I can see 800x480 on 1.5 as a stop gap measure, so I'm holding off for
1.6 devices before buying 800x480 hardware.

The reason for this is that I could spend time sorting out a 800x480
layout which works on a 1.5 device only to find that all that work
goes out the window when the OEM releases a firmware update to bring
the device to 1.6 and adopts donuts method of layout scaling.

An example of what I've seen in terms of difference between the 1.5
Archos WVGA skin and the 1.6 SDK WVGA skin can be seen with image
sizes; If you have an app which doesn't have a supports-screens tag or
declare a minimum SDK level of 4 (yup, declaring minimum SDK of donut
alters the layout behaviour) and a layout file within it has an
ImageButton containing an image which is 48 pixels high (i.e. 10% of
the screen hight in portrait mode) it's hight is still 48 pixels on
the 1.5 Archos WVGA skin (thus making it only 6% of the screen hight
in portrait mode), but on 1.6 it's scaled so the image ends up being
72 pixels high (thus making it around 9% of the screen hight, closer
to the original).

This means that on a 1.5 WVGA device the layout can look sparse and
odd, whereas on 1.6 it looks a lot closer to what you originally had.

Given the state of the open source repo (I've been using the 1.6 build
from the open repo for a few days and it seems rock solid) I'd suggest
we're in the last weeks of Donut development the useful lifespan of a
1.5 supporting non-HVGA layout is most likley limited.

Al.

On Sep 7, 11:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 Dianne Hackborn wrote:
  There shouldn't be any until WVGA is officially supported in the
  platform.  That is planned for 1.6, but 1.6 is not yet officially
  supported, and there is a fair lag from when the platform software is
  done to new devices being released with it.

 Uh, no offense, but HTC Magic devices shipped with Android 1.5 right
 about when the SDK became available. In Spain, IIRC. You may recall
 modest gnashing of teeth over this.

 While the core Android team may know timelines vis a vis product
 launches, we out here in the hinterlands have to plan for another
 possible here's the SDK! better support it tomorrow! release.

  Afaik, the Archos tablet is based on 1.5, and thus does not use the
  official screen support in the 1.6 platform.  I have no idea what
  exactly they are doing, but unless it is a 1.6-based device, it would be
  of questionable value for someone wanting to follow the standard platform.

 If it sells in decent quantity, or looks like it might, whether it is
 the standard platform or not means little -- we have to know how to
 support it. That means some of us will need to get our grubby
 medium-sized hands on it, to test apps and advise others. In fact, the
 possibility that they *do* deviate from the norm is all the more reason
 some of us will need hardware, since we will not be able to rely upon
 emulators as much.

 As the long-standing Chinese proverb/curse goes: May you live in
 interesting mobile OS platforms (or something like that)...

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

 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.1 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: Android WVGA support

2009-09-08 Thread Howard M. Harte



On Sep 7, 3:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 Dianne Hackborn wrote:
  There shouldn't be any until WVGA is officially supported in the
  platform.  That is planned for 1.6, but 1.6 is not yet officially
  supported, and there is a fair lag from when the platform software is
  done to new devices being released with it.

 Uh, no offense, but HTC Magic devices shipped with Android 1.5 right
 about when the SDK became available. In Spain, IIRC. You may recall
 modest gnashing of teeth over this.

 While the core Android team may know timelines vis a vis product
 launches, we out here in the hinterlands have to plan for another
 possible here's the SDK! better support it tomorrow! release.

  Afaik, the Archos tablet is based on 1.5, and thus does not use the
  official screen support in the 1.6 platform.  I have no idea what
  exactly they are doing, but unless it is a 1.6-based device, it would be
  of questionable value for someone wanting to follow the standard platform.

 If it sells in decent quantity, or looks like it might, whether it is
 the standard platform or not means little -- we have to know how to
 support it. That means some of us will need to get our grubby
 medium-sized hands on it, to test apps and advise others. In fact, the
 possibility that they *do* deviate from the norm is all the more reason
 some of us will need hardware, since we will not be able to rely upon
 emulators as much.

You can download a WVGA emulator skin for the Archos from appslib.com:
http://appslib.com/developers/index.html?disp=full

I tried this today with Al's 1.6 SDK.  It reproduced exactly the
problem that I was having testing an app on the LogicPD Zoom2
development kit which also has WVGA.  My app showed up in the upper
middle of the screen, with black background all around.  When I
changed the AndroidManifest.xml uses-sdk to:
android:minSdkVersion=4

The problem went away, and now my app uses the entire screen
properly.  I tried also adding the following to the
AndroidManifest.xml:
supports-screens android:smallScreens=true
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true /

Then I changed back to minSdkVersion=3 to see if the app would still
work properly, but it did not.

Is there a way to make my app use the entire display area, even if I
keep the minSdkVersion=3?

Thanks,
Howard

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



[android-developers] Sample mobile application query

2009-09-08 Thread Sudeep Jha
Hi,
Can you please tell me about the security management in mobile
banking application?
-- 
Warm Regards,
Sudeep

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-09-08 Thread Romain Guy

 ImageButton containing an image which is 48 pixels high (i.e. 10% of
 the screen hight in portrait mode) it's hight is still 48 pixels on
 the 1.5 Archos WVGA skin (thus making it only 6% of the screen hight
 in portrait mode), but on 1.6 it's scaled so the image ends up being
 72 pixels high (thus making it around 9% of the screen hight, closer
 to the original).

This has nothing to do with WVGA, this is about the pixel density of
the device. I don't remember what we've done in the 1.6 SDK but it
looks like the WVGA skin is using a high density configuration
(probably 240 dpi.) You can very well run the 1.6 emulator in WVGA
with a density that matches Dream/Magic/Hero/Galaxy/etc.

 This means that on a 1.5 WVGA device the layout can look sparse and
 odd, whereas on 1.6 it looks a lot closer to what you originally had.

Android 1.5 actually has limited support for higher and lower
densities. The device has to be built with the information about the
screen density so that images can be scaled accordingly.

If your app is correctly using layouts and not according positions, it
should work fine on a WVGA normal density device (screen density of
a Deam, which means a 5 WVGA display.) If you want your app to work
on a high-density or low-density device (for instance a 3 WVGA or a
3 QVGA display,) Android 1.6 will be required.

If you have an app which doesn't have a supports-screens tag or
declare a minimum SDK level of 4 (yup, declaring minimum SDK of donut
alters the layout behaviour)

It doesn't really alter the layout behavior. It takes the app out of
compatibility mode. In compatibility mode, the application runs as if
it was on an HVGA standard density device (a Dream/Magic/etc.) This
way the app works as it's supposed to. When you compile against SDK
level 4, we assume you are aware that you must now support different
resolutions and/or densities. Your app is taken out of compatibility
mode and is laid out based on the actual screen resolution. At this
point, your app is still using a limited compatibility mode: if the
device has a density that is not 160 dpi (or close, a Dream is
actually 180 dpi but is assumed to have 160 dpi,) the bitmap resources
are scaled to match the screen density (a 100x100 bitmap becomes
150x150 on a 240 dpi device, or 75x75 on a 120 dpi device.)

Your job as an app developer is to:
- Make sure your activities layout correctly in various resolutions (HVGA, WVGA)
- Decide whether you want to use assets specific to various screen
densities (drawable-hdpi/ for displays  160 dpi for instance.)
- Correct possible use of absolute pixel dimensions in your code by
taking into account the screen density (DisplayMetrics.density gives
you the correct scale factor)

Of all those 3 points, the second one is optional. Taking care of it
will make sure your app looks great.

I know this is all complicated and probably confusing (and this email
is light on details and does not cover everything) but when Android
1.6 is released, we'll tell you everything there is to know about
supporting various resolutions and densities.

P.S: Now some of you might understand why we deprecated AbsoluteLayout
to discourage its use :)

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Customizing alert dialog

2009-09-08 Thread gshetty

Thanks for the info :)

On Sep 7, 10:32 pm, Isuru danagalle iisuru@gmail.com wrote:
 http://developer.android.com/reference/android/app/AlertDialog.Builde...

 On Mon, Sep 7, 2009 at 9:19 PM, gshetty gshett...@gmail.com wrote:

  Hi All

  I want to custmize an alert dialog. I can set the content using
  setContentView and other api's, but Android always gives a white
  border with rounded edges around the Alert dialog. Is it possible to
  remove this white border from the dialog box?

  Regards
  gshetty
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-09-08 Thread Romain Guy

 I tried this today with Al's 1.6 SDK.  It reproduced exactly the
 problem that I was having testing an app on the LogicPD Zoom2
 development kit which also has WVGA.  My app showed up in the upper
 middle of the screen, with black background all around.  When I
 changed the AndroidManifest.xml uses-sdk to:
 android:minSdkVersion=4

This is not a problem, this is your application running in
compatibility mode on a device with the same screen density as a Dream
(160 dpi.) Your application is simply told the screen is actually
WVGA.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Free space required for a package install

2009-09-08 Thread Dan Sherman
Oh sorry.

I must not have specified, this is with just an APK, completely outside of
the market.  We've heard complaints of users having issues through the
market, but with a full uninstall of the application, and an install from a
downloaded APK (which I imagine should be a fresh install), it requires 22mb
free during the install process.

- Dan

On Tue, Sep 8, 2009 at 1:18 AM, Dianne Hackborn hack...@android.com wrote:

 If you select the option when putting your app on market it to copy protect
 it (which uses forward locking on the device).


 On Mon, Sep 7, 2009 at 7:21 PM, Dan Sherman impact...@gmail.com wrote:

 Thanks for the responses,

 Dianne, what do you mean by forward-locked?

 - Dan

 On Mon, Sep 7, 2009 at 2:51 PM, Dianne Hackborn hack...@android.comwrote:

 If your app is forward locked, it can take significantly more space, even
 after the install is done (unfortunately all of the resources currently have
 to be installed twice).


 On Mon, Sep 7, 2009 at 8:13 AM, Dan Sherman impact...@gmail.com wrote:

 Hey guys,

 The package installer looks to take up a good amount of space when
 installing applications.  We've published a very large game (ProjectINF -
 6mb).  And it looks to be taking up a good amount of space during the
 install process, to the point that we have a lot of users emailing us with
 complaints/requests to fix it.

 From what we've seen, it looks to take about 22mb of free space to
 install a 6mb apk.  While I can imagine taking double or so for unpacking
 and temp locations, almost 4x the size seems a bit high.  After an install
 with 22mb free, the device has 16mb free (which makes perfect sense).

 Users also seem to be getting errors on the market when trying to
 install with less than that amount of space (with no real clear error
 message, just Install Failed.

 I doubt theres anything we can do on our side (besides shrinking our app
 all around), but figured I'd ask :)

 - Dan





 --
 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: Android WVGA support

2009-09-08 Thread Don Tran

I know this is hard due to ongoing things changing but if it's
possible to give more information on how to deal with various
resolutions and densities, it will be great.  Back in the cupcake 1.5
release, developers probably had a week maximum to make changes after
the new SDK was released and before cupcake was released to the
general public.

Maybe consider giving an official preview build only to developers
(similar to how Apple provides a dev release version months before the
actual release to allow developers to better prepare for it) will be
ideal.

On Sep 7, 11:31 pm, Romain Guy romain...@google.com wrote:
  I tried this today with Al's 1.6 SDK.  It reproduced exactly the
  problem that I was having testing an app on the LogicPD Zoom2
  development kit which also has WVGA.  My app showed up in the upper
  middle of the screen, with black background all around.  When I
  changed the AndroidManifest.xml uses-sdk to:
  android:minSdkVersion=4

 This is not a problem, this is your application running in
 compatibility mode on a device with the same screen density as a Dream
 (160 dpi.) Your application is simply told the screen is actually
 WVGA.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android WVGA support

2009-09-08 Thread Dianne Hackborn
We're getting things out as fast as we can.  It's not as fast as anyone
would like, but it's the best we can do right now.

On Mon, Sep 7, 2009 at 11:37 PM, Don Tran arro...@gmail.com wrote:


 I know this is hard due to ongoing things changing but if it's
 possible to give more information on how to deal with various
 resolutions and densities, it will be great.  Back in the cupcake 1.5
 release, developers probably had a week maximum to make changes after
 the new SDK was released and before cupcake was released to the
 general public.

 Maybe consider giving an official preview build only to developers
 (similar to how Apple provides a dev release version months before the
 actual release to allow developers to better prepare for it) will be
 ideal.

 On Sep 7, 11:31 pm, Romain Guy romain...@google.com wrote:
   I tried this today with Al's 1.6 SDK.  It reproduced exactly the
   problem that I was having testing an app on the LogicPD Zoom2
   development kit which also has WVGA.  My app showed up in the upper
   middle of the screen, with black background all around.  When I
   changed the AndroidManifest.xml uses-sdk to:
   android:minSdkVersion=4
 
  This is not a problem, this is your application running in
  compatibility mode on a device with the same screen density as a Dream
  (160 dpi.) Your application is simply told the screen is actually
  WVGA.
 
  --
  Romain Guy
  Android framework engineer
  romain...@android.com
 
  Note: please don't send private questions to me, as I don't have time
  to provide private support.  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 get IME supported languages?

2009-09-08 Thread Dianne Hackborn
Sorry, there is no such concept.

On Mon, Sep 7, 2009 at 11:03 PM, GPU gopuraj...@gmail.com wrote:


 Hi ,

  Is their any way to get the IME Supported language list  selected
 language ?

  InputMethod   InputMethodManager not having any function to get this
 details.





 



-- 
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] Repeat Button Event

2009-09-08 Thread Pedro Fraca

Hi.

I'm trying to develop the same functionality as the alarm app. When
you go to set an alarm time you see a pop-up with plus and minus
buttons. Well, if you maintain pressed any button the number is
increased automatically. I can't find any reference to develop this
feature. Can anyone give me any update about it?.

Cheers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: error: killing myApp because provider com.android.Browser.Browserprovider is dying

2009-09-08 Thread r3

Hi Mark,

thanks for your reply. i will act upon ur advice and get back to u
people soon.

On Sep 7, 8:20 pm, Mark Murphy mmur...@commonsware.com wrote:
 r3 wrote:
  when i run my application for long time then my applicatiojn gets
  killed:

  i always get the same logs which are attached with this post.

  kindly help me out...

 snip

  I/ActivityManager(  587): Low Memory: No more background processes.

 Something on your device or emulator is leaking memory. Eventually,
 Android has to start killing things off to free up memory, and
 eventually that causes com.android.Browser.BrowserProvider to be killed,
 which kills your application.

 Use DDMS to identify what application is leaking memory. If it is yours,
 fix the leak.

 --
 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] Re: error: killing myApp because provider com.android.Browser.Browserprovider is dying

2009-09-08 Thread r3

Hi Dianne,

Thanks for reply...
i will check this.




On Sep 7, 11:48 pm, Dianne Hackborn hack...@android.com wrote:
 Also if you are keeping an open cursor or client reference on the bookmarks
 content provider, I would really recommend against that, since that requires
 that the browser stay running as long as your app is (and the browser can
 use a lot of memory).  Also as you have seen, if it does get killed, any
 apps that are currently using it also get killed as well.





 On Mon, Sep 7, 2009 at 8:20 AM, Mark Murphy mmur...@commonsware.com wrote:

  r3 wrote:
   when i run my application for long time then my applicatiojn gets
   killed:

   i always get the same logs which are attached with this post.

   kindly help me out...

  snip

   I/ActivityManager(  587): Low Memory: No more background processes.

  Something on your device or emulator is leaking memory. Eventually,
  Android has to start killing things off to free up memory, and
  eventually that causes com.android.Browser.BrowserProvider to be killed,
  which kills your application.

  Use DDMS to identify what application is leaking memory. If it is yours,
  fix the leak.

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

  Android Training in Germany, 18-22 January 2010:http://bignerdranch.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.- Hide quoted text -

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



[android-developers] Re: Android WVGA support

2009-09-08 Thread Al Sutton

I've put some screenshots up to show the differences. The app used was
declared as requiring midSDK 1;

1.5 HVGA : http://download.funkyandroid.net/15hvga.png
1.5 WVGA : http://download.funkyandroid.net/15wvga.png
1.6 WVGA : http://download.funkyandroid.net/16wvga.png

For those in doubt; The 1.6 one isn't zoomed by me, this is what
happens on the 1.6 donut emulator.

I understand the problem is down to pixel densities, but the point I'm
trying to raise is that if a developer does nothing with their app
they should expect differences between a 1.5 WVGA device and a 1.6
WVGA one will differ.

And yes, I understand that 1.5 WVGA isn't supported by Google, but
companies out there are doing it, so as Mark says, it's something that
developers need to make a decision about supporting (even if, like me,
the decision is to do nothing specific for it in the expectation 1.6
will gain traction on WVGA devices before 1.5 gets too settled in).

Al.

On Sep 8, 7:29 am, Romain Guy romain...@google.com wrote:
  ImageButton containing an image which is 48 pixels high (i.e. 10% of
  the screen hight in portrait mode) it's hight is still 48 pixels on
  the 1.5 Archos WVGA skin (thus making it only 6% of the screen hight
  in portrait mode), but on 1.6 it's scaled so the image ends up being
  72 pixels high (thus making it around 9% of the screen hight, closer
  to the original).

 This has nothing to do with WVGA, this is about the pixel density of
 the device. I don't remember what we've done in the 1.6 SDK but it
 looks like the WVGA skin is using a high density configuration
 (probably 240 dpi.) You can very well run the 1.6 emulator in WVGA
 with a density that matches Dream/Magic/Hero/Galaxy/etc.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  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: apk validation by file size

2009-09-08 Thread Lee

 PackageManager#getPackageInfo() returns a PackageInfo which has a
 signatures field.

Thanks Mark, should've thought of PackageInfo ahem.

 I don't think you have any supported means of figuring out the size of
 the APK on the device.

Well the thing is just lying around in the file system, it's easy to
test it's size.

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



[android-developers] Re: Android WVGA support

2009-09-08 Thread Romain Guy

1.5 HVGA : http://download.funkyandroid.net/15hvga.png
1.5 WVGA : http://download.funkyandroid.net/15wvga.png
1.6 WVGA : http://download.funkyandroid.net/16wvga.png

Let me correct this:

1.5 HVGA
1.5 w...@160dpi
1.6 w...@240dpi

 And yes, I understand that 1.5 WVGA isn't supported by Google, but
 companies out there are doing it, so as Mark says, it's something that
 developers need to make a decision about supporting (even if, like me,
 the decision is to do nothing specific for it in the expectation 1.6
 will gain traction on WVGA devices before 1.5 gets too settled in).

As long as these 1.5 WVGA devices have the same density as a Dream,
there's not much well written apps (i.e. apps using layouts) should
have to do. I would be really surprised if manufacturers started
rolling out devices with a non-default density using Android  1.6.
This would pretty much guarantee that existing apps would not run on
their device, and I highly doubt that's what they want :)


 Al.

 On Sep 8, 7:29 am, Romain Guy romain...@google.com wrote:
  ImageButton containing an image which is 48 pixels high (i.e. 10% of
  the screen hight in portrait mode) it's hight is still 48 pixels on
  the 1.5 Archos WVGA skin (thus making it only 6% of the screen hight
  in portrait mode), but on 1.6 it's scaled so the image ends up being
  72 pixels high (thus making it around 9% of the screen hight, closer
  to the original).

 This has nothing to do with WVGA, this is about the pixel density of
 the device. I don't remember what we've done in the 1.6 SDK but it
 looks like the WVGA skin is using a high density configuration
 (probably 240 dpi.) You can very well run the 1.6 emulator in WVGA
 with a density that matches Dream/Magic/Hero/Galaxy/etc.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

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




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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



[android-developers] Re: Android WVGA support

2009-09-08 Thread Al Sutton

Sounds like the LogicPD Zoom2 dev kit is donut based.

If they update to the latest donut build you'll most likley see you
app zoomed as opposed to bordered. The android-x86 guys reported black
bordering on the AndAppStore client on an pre-last friday donut build
which is what started me down this path.

Al.

On Sep 8, 7:22 am, Howard M. Harte hhar...@gmail.com wrote:
 On Sep 7, 3:41 pm, Mark Murphy mmur...@commonsware.com wrote:



  Dianne Hackborn wrote:
   There shouldn't be any until WVGA is officially supported in the
   platform.  That is planned for 1.6, but 1.6 is not yet officially
   supported, and there is a fair lag from when the platform software is
   done to new devices being released with it.

  Uh, no offense, but HTC Magic devices shipped with Android 1.5 right
  about when the SDK became available. In Spain, IIRC. You may recall
  modest gnashing of teeth over this.

  While the core Android team may know timelines vis a vis product
  launches, we out here in the hinterlands have to plan for another
  possible here's the SDK! better support it tomorrow! release.

   Afaik, the Archos tablet is based on 1.5, and thus does not use the
   official screen support in the 1.6 platform.  I have no idea what
   exactly they are doing, but unless it is a 1.6-based device, it would be
   of questionable value for someone wanting to follow the standard platform.

  If it sells in decent quantity, or looks like it might, whether it is
  the standard platform or not means little -- we have to know how to
  support it. That means some of us will need to get our grubby
  medium-sized hands on it, to test apps and advise others. In fact, the
  possibility that they *do* deviate from the norm is all the more reason
  some of us will need hardware, since we will not be able to rely upon
  emulators as much.

 You can download a WVGA emulator skin for the Archos from 
 appslib.com:http://appslib.com/developers/index.html?disp=full

 I tried this today with Al's 1.6 SDK.  It reproduced exactly the
 problem that I was having testing an app on the LogicPD Zoom2
 development kit which also has WVGA.  My app showed up in the upper
 middle of the screen, with black background all around.  When I
 changed the AndroidManifest.xml uses-sdk to:
 android:minSdkVersion=4

 The problem went away, and now my app uses the entire screen
 properly.  I tried also adding the following to the
 AndroidManifest.xml:
 supports-screens android:smallScreens=true
                   android:normalScreens=true
                   android:largeScreens=true
                   android:anyDensity=true /

 Then I changed back to minSdkVersion=3 to see if the app would still
 work properly, but it did not.

 Is there a way to make my app use the entire display area, even if I
 keep the minSdkVersion=3?

 Thanks,
 Howard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: MapView with itemizedOverlay still don't work

2009-09-08 Thread sweet

Thanks a lot it's work very well but how can i focused in the area
with my itemizedOverlay ?

On 8 sep, 01:59, Nicholas Albion nalb...@gmail.com wrote:
 You need to call:
     mapOverlays.add( itemizedOverlay );

 also, if you're adding/removing overlay items to/from ItemizedOverlay,
 you may need to call setLastFocusedIndex(-1) (or whatever the method
 is).  I think in your case you won't need to worry with this as you
 only call addOverlay and populate once.

 On Sep 7, 6:34 pm,sweetbrou...@gmail.com wrote:

  I've try to make a mapview with itemized overlay and it's not work.
  I share my code if anyone see anything :

  java class mapview:

  import java.util.List;
  import android.content.Intent;
  import android.graphics.drawable.Drawable;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuInflater;
  import android.view.MenuItem;
  import android.widget.LinearLayout;
  import android.widget.ZoomControls;
  import com.google.android.maps.GeoPoint;
  import com.google.android.maps.MapActivity;
  import com.google.android.maps.MapView;
  import com.google.android.maps.Overlay;
  import com.google.android.maps.OverlayItem;

  public class Map extends MapActivity {
          ListOverlay mapOverlays;
          Drawable drawable;
          NewItemizedOverlay itemizedOverlay;
          LinearLayout linearLayout;
          MapView mapView;
          ZoomControls mZoom;

          @Override
      public void onCreate(Bundle savedInstanceState) {

                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.map);
                  mapView = (MapView) findViewById(R.id.mapview);
                  mapView.setBuiltInZoomControls(true);
                  mapView.setSatellite(true);

                  mapOverlays = mapView.getOverlays();

                  drawable = this.getResources().getDrawable
  (R.drawable.androidmarker);
                  itemizedOverlay = new NewItemizedOverlay(drawable);

                  GeoPoint point = new GeoPoint(1924,-9912);
                  OverlayItem overlayitem = new OverlayItem(point, , );
                  itemizedOverlay.addOverlay(overlayitem);

      }
          protected boolean isRouteDisplayed() {
                  return false;
          }

  java ItemizedOverlay class:

  import java.util.ArrayList;
  import android.graphics.drawable.Drawable;
  import com.google.android.maps.ItemizedOverlay;
  import com.google.android.maps.OverlayItem;

  public class NewItemizedOverlay extends ItemizedOverlay {

          private ArrayListOverlayItem mOverlays = new 
  ArrayListOverlayItem
  ();

          public NewItemizedOverlay(Drawable defaultMarker) {
                  super(boundCenterBottom(defaultMarker));
                  // TODO Auto-generated constructor stub
          }
          public void addOverlay(OverlayItem overlay) {
              mOverlays.add(overlay);
              populate();
          }

          @Override
          protected OverlayItem createItem(int i) {
            return mOverlays.get(i);
          }

          @Override
          public int size() {
                  return mOverlays.size();
          }

  }

  xml mapview file :

  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
      android:orientation=vertical
      android:layout_width=fill_parent
      android:layout_height=fill_parent
      com.google.android.maps.MapView
          android:id=@+id/mapview
          android:layout_width=fill_parent
          android:layout_height=fill_parent
          android:clickable=true
          android:apiKey=0G***fwcg/
          LinearLayout
      android:id=@+id/zoomview
      android:layout_width=wrap_content
      android:layout_height=wrap_content
      android:layout_alignBottom=@id/mapview
      android:layout_centerHorizontal=true/
  /LinearLayout

  Thanks for your help
 Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-09-08 Thread Xavier Ducrohet

On Mon, Sep 7, 2009 at 11:29 PM, Romain Guyromain...@google.com wrote:
 This has nothing to do with WVGA, this is about the pixel density of
 the device. I don't remember what we've done in the 1.6 SDK but it
 looks like the WVGA skin is using a high density configuration
 (probably 240 dpi.) You can very well run the 1.6 emulator in WVGA
 with a density that matches Dream/Magic/Hero/Galaxy/etc.

Just to confirm to everyone.

The skins are associated to each platform in the SDK.
The skins packaged with Android 1.5 and earlier have no density
associated to them, meaning they'll behave like medium density devices
(160dpi).

The skins packaged with Android 1.6 are the following:
q...@120dpi (low)
h...@160dpi (med)
WVGA(800854)@240dpi (high)

When creating an avd from the command (with 'android create avd') you
can override this value. Just say 'yes' to using a custom hardware
config and change the property lcd.density (or something close).

This way you can test all different sorts of resolution/density combos.

Xav

-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

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



[android-developers] Re: Tabs and intents

2009-09-08 Thread jouke

Thanks for your response, I tried to use EMBED but the problem
remains.
Tab1 works fine but as soon as I hit the spinner in tab2, it opens and
crashes raising a null pointer exception.

Jouke




On Sep 7, 4:34 pm, andersg anders.gjett...@gmail.com wrote:
 I believe you should use android.intent.category.EMBED and not
 android.intent.category.EMBEDDED

 On Sep 3, 12:38 pm, jouke jouke.hijlk...@gmail.com wrote:



  Nobody has this strange behaviour ??? I'll try to upgrade to the r3
  sdk 1.5 ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] CompareEverywhere

2009-09-08 Thread paultwa

hi,
Is the project ‘CompareEverywhere’  the OpenSource one?
If it is the OpenSource one, where can download 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: MapView with itemizedOverlay still don't work

2009-09-08 Thread sweet

And how make him clickable with a label who's display ???

thanks for your help
Sweet

On 8 sep, 09:24, sweet brou...@gmail.com wrote:
 Thanks a lot it's work very well but how can i focused in the area
 with my itemizedOverlay ?

 On 8 sep, 01:59, Nicholas Albion nalb...@gmail.com wrote:

  You need to call:
      mapOverlays.add( itemizedOverlay );

  also, if you're adding/removing overlay items to/from ItemizedOverlay,
  you may need to call setLastFocusedIndex(-1) (or whatever the method
  is).  I think in your case you won't need to worry with this as you
  only call addOverlay and populate once.

  On Sep 7, 6:34 pm,sweetbrou...@gmail.com wrote:

   I've try to make a mapview with itemized overlay and it's not work.
   I share my code if anyone see anything :

   java class mapview:

   import java.util.List;
   import android.content.Intent;
   import android.graphics.drawable.Drawable;
   import android.os.Bundle;
   import android.view.Menu;
   import android.view.MenuInflater;
   import android.view.MenuItem;
   import android.widget.LinearLayout;
   import android.widget.ZoomControls;
   import com.google.android.maps.GeoPoint;
   import com.google.android.maps.MapActivity;
   import com.google.android.maps.MapView;
   import com.google.android.maps.Overlay;
   import com.google.android.maps.OverlayItem;

   public class Map extends MapActivity {
           ListOverlay mapOverlays;
           Drawable drawable;
           NewItemizedOverlay itemizedOverlay;
           LinearLayout linearLayout;
           MapView mapView;
           ZoomControls mZoom;

           @Override
       public void onCreate(Bundle savedInstanceState) {

                   super.onCreate(savedInstanceState);
                   setContentView(R.layout.map);
                   mapView = (MapView) findViewById(R.id.mapview);
                   mapView.setBuiltInZoomControls(true);
                   mapView.setSatellite(true);

                   mapOverlays = mapView.getOverlays();

                   drawable = this.getResources().getDrawable
   (R.drawable.androidmarker);
                   itemizedOverlay = new NewItemizedOverlay(drawable);

                   GeoPoint point = new GeoPoint(1924,-9912);
                   OverlayItem overlayitem = new OverlayItem(point, , );
                   itemizedOverlay.addOverlay(overlayitem);

       }
           protected boolean isRouteDisplayed() {
                   return false;
           }

   java ItemizedOverlay class:

   import java.util.ArrayList;
   import android.graphics.drawable.Drawable;
   import com.google.android.maps.ItemizedOverlay;
   import com.google.android.maps.OverlayItem;

   public class NewItemizedOverlay extends ItemizedOverlay {

           private ArrayListOverlayItem mOverlays = new 
   ArrayListOverlayItem
   ();

           public NewItemizedOverlay(Drawable defaultMarker) {
                   super(boundCenterBottom(defaultMarker));
                   // TODO Auto-generated constructor stub
           }
           public void addOverlay(OverlayItem overlay) {
               mOverlays.add(overlay);
               populate();
           }

           @Override
           protected OverlayItem createItem(int i) {
             return mOverlays.get(i);
           }

           @Override
           public int size() {
                   return mOverlays.size();
           }

   }

   xml mapview file :

   ?xml version=1.0 encoding=utf-8?
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
       android:orientation=vertical
       android:layout_width=fill_parent
       android:layout_height=fill_parent
       com.google.android.maps.MapView
           android:id=@+id/mapview
           android:layout_width=fill_parent
           android:layout_height=fill_parent
           android:clickable=true
           android:apiKey=0G***fwcg/
           LinearLayout
       android:id=@+id/zoomview
       android:layout_width=wrap_content
       android:layout_height=wrap_content
       android:layout_alignBottom=@id/mapview
       android:layout_centerHorizontal=true/
   /LinearLayout

   Thanks for your help
  Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Focusing the spinner object

2009-09-08 Thread prashanth

Hello
use android:focusable to true.I use few spinner objects and they get
focus similar to textview .have a look at apidemos in the sdk
installation to see if
that does what u want to do

gtg

On Sep 7, 11:05 am, Isuru iisuru@gmail.com wrote:
 Hi,
      When components like TextViews got focus we can focus them using
 highlighting the border of the component.Like that how can we
 highlight the border of a spinner object when it got focus?.U can
 highlight borders of each and every item in the spinner at the time of
 selection.
    What I need is to highlight the border of spinner object when it
 got focus initially.I went through xml attributes and couldnt find
 matching one.Let me know if u have any clue to do this.

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



[android-developers] Register ContentObserver for AppWidgetProvider

2009-09-08 Thread Manjunatha M
Hi,

I am writing an application on the widget framework provided by Android.

I want to listen to contacts DB through the contentObserver and update
accordingly on the db change.

I want to register the contentobserver on the chip is enabled and unregister
on the chip disable.

Now that, i can override onEnabled and onDisabled and implement the methods
to register and unregister the contentobservers.

However, I am able to register  the observer in the onEnabled function.

But in the onDisabled, I am seeing the observer as null.

Does any body know or anybody has docs pertaining to this, please share..

Thanks in advance,
Manjunatha

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-09-08 Thread Al Sutton

My problem is basically this; If my monitors dpi stays static why is
the emulated dpi changing between emulator skins?

To me it would make more sense if the dpi of the emulators display
doesn't change unless the developer explictly states they want to
emulate a device with a different DPI.

Al.


On Sep 8, 8:29 am, Xavier Ducrohet x...@android.com wrote:
 On Mon, Sep 7, 2009 at 11:29 PM, Romain Guyromain...@google.com wrote:
  This has nothing to do with WVGA, this is about the pixel density of
  the device. I don't remember what we've done in the 1.6 SDK but it
  looks like the WVGA skin is using a high density configuration
  (probably 240 dpi.) You can very well run the 1.6 emulator in WVGA
  with a density that matches Dream/Magic/Hero/Galaxy/etc.

 Just to confirm to everyone.

 The skins are associated to each platform in the SDK.
 The skins packaged with Android 1.5 and earlier have no density
 associated to them, meaning they'll behave like medium density devices
 (160dpi).

 The skins packaged with Android 1.6 are the following:
 q...@120dpi (low)
 h...@160dpi (med)
 WVGA(800854)@240dpi (high)

 When creating an avd from the command (with 'android create avd') you
 can override this value. Just say 'yes' to using a custom hardware
 config and change the property lcd.density (or something close).

 This way you can test all different sorts of resolution/density combos.

 Xav

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



[android-developers] Re: CompareEverywhere

2009-09-08 Thread Jeff Sharkey

I've been meaning to open-source it, but haven't had the free time to
pull together all the loose ends.  :)

Is there something in particular you're looking to do?

j

On Tue, Sep 8, 2009 at 12:38 AM, paultwapaultwa2...@gmail.com wrote:

 hi,
    Is the project ‘CompareEverywhere’  the OpenSource one?
    If it is the OpenSource one, where can download it?
 




-- 
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: XML RPC Parsing Error

2009-09-08 Thread skink



On Sep 7, 3:24 pm, SIDIBE Ali-Broma jahbr...@gmail.com wrote:
 This is one exemple whitch give me all time some error  . Also this
 code is simular on the codeprojet.

 I ast some help for to solve this problem. Problem of Firewall! or
 other! I dont know
 ...
         XMLRPCClient client = new XMLRPCClient(http://foo.bar.com;);

see http://en.wikipedia.org/wiki/Foobar

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



[android-developers] UGG Classic Short Boots free shipping now

2009-09-08 Thread csbuy laiiiy

Romantic Flower UGG Classic Short Boots
UGG 5825 Women's Classic Short Romantic Flower Boot Australia UGG
Romantic Flower A new pattern gives a fresh look to the Classic short
Romantic...

http://www.csboots.com/ugg-classic-short-boots-c-2.html

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



[android-developers] Re: Free Chart drawing package for Android

2009-09-08 Thread kostmo

Hey All,
I started a project on Google Code for charting on Android.  Right now
it supports only pie charts, but I think they look rather nice.

http://code.google.com/p/chartdroid/
It might be a good nucleation point for other charting widgets people
have made.  Suggestions welcome.

Karl


On Aug 25, 8:06 pm, Michael Leung michaelchi...@gmail.com wrote:
 Or using Google Chart APIhttp://code.google.com/apis/chart/

 But you have to load in a webview.

 On Wed, Aug 26, 2009 at 10:00 AM, Marc Lester Tan mail...@gmail.com wrote:



  Hi Nguyen,

  Try thishttp://www.achartengine.org. It's free and open-source.

  -Marc

  On Wed, Aug 26, 2009 at 7:23 AM, Nguyen A. Nguyen 
  nguyenanngu...@gmail.com wrote:

  Hi,
  Could someone recommend a free or cheap Chart drawing package for Android?

  I found this one, which is quite elegant but pricey ($300/license):
 http://www.artfulbits.com/Android/aiCharts.aspx

  Thanks a lot.
  N.N.

 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cannot get PhoneNumber on Real device but code works in Emulator

2009-09-08 Thread Mark Ellul

Hi Roman,

Thanks for your Response!

I am using a HTC Hero in Spain, using Yoigo Network.

I checked the settings and the Voice MSISDN Line1 number is indeed
unknown, so I guess thats why I am receiving a null value for the
phone number.

I will be testing with a US Sim (as soon as I received it) and will
add to this thread.

Regards

Mark

On Sep 8, 7:42 am, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 Your code looks fine to me.

 Could you check whether this.telMgr.getLine1Number() returns null ?

 Also verify the setting application (go to about phone -- status --
 phone number). You should be able to see your phone number.

 In cases where you have the radio switched off you cannot read the
 phone number from your SIM card or the SIM card is not available at
 all.

 By the way from which carrier is your SIM card?

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

 On Sep 7, 9:48 am, Mark Ellul mark.el...@gmail.com wrote:



  Hi,

  I am trying to create an app that gets the location and telephone
  number of the phone.

  This is the Code I am using to get the telephone number (I am focusing
  on sdk 1.5) and in the emulator this works

  try {
              this.telMgr = (TelephonyManager) this.getSystemService
  (Context.TELEPHONY_SERVICE);
              this.telephoneNumber = this.telMgr.getLine1Number();
              LogMessage(String.format(Your Telephone Number:%s,
  this.telephoneNumber));
              } catch(Exception ex)
              {
                  LogMessage(ex.getMessage());
              }

  However on my HTC Hero it doesn't.

  The Permissions I am using for both Location and Telephone number
  are...

      uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION/uses-
  permission
  uses-permission
  android:name=android.permission.ACCESS_MOCK_LOCATION/uses-
  permission
  uses-permission android:name=android.permission.CALL_PHONE/uses-
  permission
  uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
  permission

  uses-permission android:name=android.permission.READ_PHONE_STATE/
  uses-permission
  uses-permission
  android:name=android.permission.PROCESS_OUTGOING_CALLS/uses-
  permission

  Can anyone help me out with some pointers on where to start looking?

  Regards

  Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Questions about adding an external shared library to Android image (donut)

2009-09-08 Thread Amir K

Thanks a lot. Posted there.

On Sep 8, 8:19 am, Dianne Hackborn hack...@android.com wrote:
 Hi, questions about extending/modifying the platform should go to
 android-porting.  Thanks!



 On Mon, Sep 7, 2009 at 8:32 AM, akrk1986 akrk1...@gmail.com wrote:

  Hi,
  I have determined (or so I hope) how to add a new shared library to
  the external part of Android image:
  1. Add a directory called foobar, under root/external
  2. In that folder put my source files
  3. Create Android.mk file
  4. Update the file root/build/core/prelink-linux-arm.map and add my
  library there, in the last section (titled libraries for specific
  apps...), choosing a free memory area
  5. Use the 'mm' or 'mmm' shell functions to build the library.

  The output is (between dashed lines):
  --
  make: Entering directory `/media/disk-1/development/Donut/donut'
  target thumb C: libfoobar = external/foobar/src/foobar_01.c
  target thumb C: libfoobar = external/foobar/src/foobar_02.c
  target SharedLib: libfoobar (out/target/product/generic/obj/
  SHARED_LIBRARIES/libfoobar_intermediates/LINKED/libfoobar.so)
  target Prelink: libfoobar (out/target/product/generic/symbols/system/
  lib/libfoobar/libfoobar.so)
  target Strip: libfoobar (out/target/product/generic/obj/lib/
  libfoobar.so)
  Install: out/target/product/generic/system/lib/libfoobar.so
  make: Leaving directory `/media/disk-1/development/Donut/donut'
  --

  So far, so good.

  My questions are:
  1. Is the process above correct? If not, where did I go wrong?
  2. Is this process documented and if so, where?
  3. How do I prevent the library from being stripped?
  4. Alternatively, can I tell the make process to preserve certain
  symbols and strip all others?
  5. If I want the foobar library to be built from objects and
  libraries, located elsewhere, without any C compilations, how do I do
  it by tweaking the Android.mk file?

  Thanks,
  Amir

 --
 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] Development tools recommendation thread

2009-09-08 Thread GiladH

hey,

we're looking for high quality developer tools which have been ported
 tested for Android.

the first is a code correctness tool that will scan our code looking
for non-syntactical errors
(e.g. thread synch errors, uninitialized vars...). basically a lint-
like tool for Android

the second tool we want is a coding style enforcer that will fix, or
at least report,
code segments that do not adher to our stdrd coding styles (e.g.
bracing policy, function
header commenting etc)

the third one is, well, a placeholder for whichever tool you people
have found to be
of high value in developing your own Android apps...


Peace
GiladH



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: A sample mobile banking solution

2009-09-08 Thread Sudeep

Now my questions will revolve around android.

  1.which protocols are supported for a secure connection?

  2.which security framework is available or can be ported to
android .

  3.In case of slow performance, what is available on native level

  4.does it make sense to change the framework/platform code and run
   certain software as root only?

@Roman: Thanks a lot.I'll come back with answers ASAP.

I don't want to trust android browser :-)

On Sep 8, 5:31 am, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 The security architecture for your mobile application depends on the
 requirements for mobile banking application in general. I would start
 the following investigations

 - What are the mobile banking requirements on a mobile device
 --- required radio interface for your transaction (wifi is not as
 secure as cellular)
 --- what is needed if you are on wifi?
 --- Which security mechanisms are involved for a banking transaction?
 (investigate IP connectivity requirements up to security requirements
 on application level

 - What is supported on Android? (for example there a limitations on
 WPA2 support in Android SDK in case of Wifi)
 --- which protocols are supported for a secure connection?
 --- which security framework is available or can be ported
 --- in case of slow performance, what is available on native level
 --- does it make sense to change the framework/platform code and run
 certain software as root only?

 This are only some basic questions which I came up with. But may be it
 helps to get started.

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

 On Sep 7, 2:12 am, Sudeep Jha sudeep.neti...@gmail.com wrote:

  Hi all,
          Can anybody tell me something about the security architecture
  required to build a mobile banking solution in android?
  Warm Regards,
  Sudeep

  --
  Warm Regards,
  Sudeep
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 send DTMF in android?

2009-09-08 Thread Mark Ellul

Hi Gulfam,

Did you solve the issue? I am trying to do the same thing and only
have a HTC Hero to test with and its failing as well.

Please if you have resolved the issue let me know...

I have seen this class 
http://developer.android.com/reference/android/media/ToneGenerator.html
but I am not sure if it will help in this case.

Regards

Mark

On Aug 28, 8:55 am, Gulfam gulfa...@gmail.com wrote:
 Hi all,

 I am facing a problem on sendingDTMFin android.
 I am sendingDTMFin this format  tel:+15187127050,9563547896#
 Its working fine on G1 but when i install the app on HTC Hero /HTC
 Magic its dispalying error message like this (Invalid MMI)

 Any one can help me regarding this.

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



[android-developers] Key listener

2009-09-08 Thread Sasi Kumar

I want to know about the key listener concept.

I want the value of Back button in android.

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



[android-developers] Key listener

2009-09-08 Thread Sasi Kumar

I want to know about the key listener concept.

I want the value of Back button in android.

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



[android-developers] GPS location and geopoint

2009-09-08 Thread sweet

Hello i would like to display a geopoint in a mapview with the
location of the device with gps coordonates.
I already have a code for display geopoint and i would like to fit it
for display this location:

drawable = this.getResources().getDrawable(R.drawable.geopoint);
itemizedOverlay = new NewItemizedOverlay(drawable);

GeoPoint point = new GeoPoint(45569159,5928268);
OverlayItem overlayitem = new OverlayItem(point, , );
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add( itemizedOverlay );

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



[android-developers] WebView : can we select text in Java ?

2009-09-08 Thread Nanard

Hi,

I like WebView component.
I would like to be able to select text in the view in my Java code.

Is it possible ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: key lisener

2009-09-08 Thread sasi kumar
use key lisener..

On Tue, Sep 8, 2009 at 3:34 PM, sasi kumar sasikumar.it1...@gmail.comwrote:

 can any one give example for key lisener

 --
 Thanks  Regards
 Sasi Kumar.S




-- 
Thanks  Regards
Sasi Kumar.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] textview issue....

2009-09-08 Thread Sudeep Sharma
Hi,
   I have a list view with diffrent widgets(Text View , check box,
togglebutton etc). I know in *touch mode* that  text view need not
be focussed if user touches the text view as this is expected behaviour of
Android framework.

When i click on the textview, it should show a momentary orange highlight,
but this is not happening for me and simply the functionality is performed.
What I am missing...??

Can anybody help please in this that how do i get this textview momentary
highlighted in orange colour on touching it so that user  knows that he has
made touch selection for this textview.???

Thanks  Regards,
Sudeep

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



[android-developers] key lisener

2009-09-08 Thread sasi kumar
can any one give example for key lisener

-- 
Thanks  Regards
Sasi Kumar.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] Query Apis for Media Formats

2009-09-08 Thread bobby

Hi,

I am looking for apis to know the supported audio/video formats on a
device and was not successful. Though I found this link -
http://developer.android.com/guide/appendix/media-formats.html which
mentions the media types supported - It just gives additional formats
supported by T-mobile G1 - how can we programmatically query and know
the formats? I am basically looking at something similar to Java ME
query apis like : invoking Player Manager as follows:

String[] cts = Manager.getSupportedContentTypes(null);
for (int i = 0; i  cts.length; i++) {
System.out.println(cts[i]);
}

Example Output:
image/gif
video/mp4
audio/mpeg

or By checking System Properties of supports.audio.capture,
audio.encodings etc.

Kindly let me know the details.

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



[android-developers] I can not load my compiled images.

2009-09-08 Thread Sergio Ciruela

Hi!

I increased the heap size in Android changing and compiling the source
code and generating the corresponding out folder. Now I want to load
these images with the emulator but I can't and I don't know the
problem.

I use the next command:

emulator.exe -avd myandroid -system d:\android\system.img

but the operating system is loading all time!!

What is the problem?

Thank you for you help!!

Greetings for all!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-08 Thread Lee

I posted earlier in this thread about my app Tasker. I've since had a
chance to
put up some material about it:

http://tasker.dinglisch.net/

And yes, it's in the Productivity/Tools category.

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



[android-developers] When do we get java.lang.RuntimeException: No memory in memObj

2009-09-08 Thread Sreekanth Rao

Hi,

 I'm getting the below shown exception.

java.lang.RuntimeException: No memory in memObj
  at android.database.CursorWindow.native_init
  at android.database.CursorWindow.init
  at android.database.CursorWindow.init
  at android.database.CursorWindow$1.createFromParcel
  at android.database.CursorWindow$1.createFromParcel
  at android.content.ContentProviderNative.onTransact
  at android.os.Binder.execTransact
  at dalvik.system.NativeStart.run

Please let me know in what senario do we get this exception.

Regards

Sreekanth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Dynamic Autofill Textbox

2009-09-08 Thread Isuru danagalle
Thats useful.Thanks for the info

Isuru

On Tue, Sep 8, 2009 at 7:03 AM, Mark Murphy mmur...@commonsware.com wrote:


 Isuru danagalle wrote:
   I have to have a spinner with 2000+ entries.

 Please don't.

  So I thought of
  having  a autofill textbox.When user partially types it will display the
  matching items which are stored in sqllite database.
  Can somebody suggest a way to implement the autofill textbox.

 See AutoCompleteTextView.

 --
 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] notification of browser

2009-09-08 Thread Honest

Hello,

I would like to get notification when user open browser and open any
web page. Even i would like to get notification when user send sms
from native application. Is it feasible. If it is not feasible. How
can i get contents of  outbox or sent items from phone.


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



[android-developers] Re: WebView : can we select text in Java ?

2009-09-08 Thread Fred Grott(Android Expert)

make it a DOM node than its possible as most DOM objects are
sleectable in webview

On Sep 8, 4:59 am, Nanard bsegon...@free.fr wrote:
 Hi,

 I like WebView component.
 I would like to be able to select text in the view in my Java code.

 Is it possible ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cannot upload Promotional Graphic to Android Market

2009-09-08 Thread jsdf

Problem still exists.  And, per Streets of Boston, my 2 full
screenshots are not 'sticking' over time either.
I don't think the Android Market guys actually tested this properly
before publishing it.


On Sep 4, 10:46 pm, String sterling.ud...@googlemail.com wrote:
 I've created and uploaded JPGs with no trouble, so it certainly can
 work. Try saving your file with different options - let us know if you
 find what's causing the trouble.

 String

 On Sep 4, 11:54 pm, Don Oleary donole...@gmail.com wrote:

  Also cannot upload any image. Getting the error Graphic must be a PNG or
  JPEG image file.

  Regards
  Don

  On Fri, Sep 4, 2009 at 5:44 PM, Streets Of Boston
  flyingdutc...@gmail.comwrote:

   Same here.
   In addition; i cannot upload any image (screenshots). They are there
   for a while, then a bit later they have disappeared.

   On Sep 4, 9:59 am,jsdfjasons...@gmail.com wrote:
I've created 4 separate .png files with the appropriate specs (180w x
120h, PNG, full bleed, no border art) for 4 projects.  I cannot upload
any of them to my projects.  In each case, I receive the error: The
promotional graphic must be a PNG or JPEG image file.

Is anyone else seeing the same issue?

Thanks,
   jsdf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Development tools recommendation thread

2009-09-08 Thread Fred Grott(Android Expert)

easy

Checkstyle--code style

PMD--code correctness..use Android rules..PMD project added some
android specific rules

Fred Grott
http://mobilebytes.wordpress.com



On Sep 8, 4:18 am, GiladH gila...@gmail.com wrote:
 hey,

 we're looking for high quality developer tools which have been ported
  tested for Android.

 the first is a code correctness tool that will scan our code looking
 for non-syntactical errors
 (e.g. thread synch errors, uninitialized vars...). basically a lint-
 like tool for Android

 the second tool we want is a coding style enforcer that will fix, or
 at least report,
 code segments that do not adher to our stdrd coding styles (e.g.
 bracing policy, function
 header commenting etc)

 the third one is, well, a placeholder for whichever tool you people
 have found to be
 of high value in developing your own Android apps...

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



[android-developers] ImageButton is shrinking automatically

2009-09-08 Thread Tushar

Hi,

In my application I'm placing ImageButton next to
AutoCompleteTextView.  So whenever virtual keypad is launched , my
ImageButton  shrinks to almost for half. I have tried to set minimum
height/width ..but no use.

What else should i do to stop it from shrinking ?

--Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: notification of browser

2009-09-08 Thread Mark Murphy

 I would like to get notification when user open browser and open any
 web page.

http://en.wikipedia.org/wiki/Spyware

 Even i would like to get notification when user send sms
 from native application.

See above.

 Is it feasible.

Without modifications to the firmware, I hope it is impossible. Even if
your specific use is legitimate, any such capability could be used by
spyware.

 If it is not feasible. How
 can i get contents of  outbox or sent items from phone.

Write your own SMS client and convince users to use it, and you can access
whatever you want. Similarly, if you write your own Web browser and
convince users to use it, you can find out when users open browser and
open any web page.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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



[android-developers] Re: WebView : can we select text in Java ?

2009-09-08 Thread Nanard

OK, thanks.

I will check how DOM objects work on Android...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 does BaseAdapter communicate with its ListView?

2009-09-08 Thread WoodManEXP

Thanks Romain for the info.

On Sep 6, 4:05 pm, Romain Guy romain...@google.com wrote:
 ListView just sets a ContentObserver on the adapter.

 On Sep 6, 2009 3:51 PM, WoodManEXP woodman...@gmail.com wrote:

 How does BaseAdapter communicate with its ListView? I was wondering how the
 BaseAdapter. notifyDat...
 ListView.setAdapter(adapter). So the ListView then knows it's adapter

 to get list elements. But you never tell the BaseAdapter what ListView it is
 attached to. So when y...

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



[android-developers] Development phones ??

2009-09-08 Thread WoodManEXP

Does anyone know the status with the development phones? Apparently
they are out of stock.

- Can any other device be used for development testing?

- If you get a development phone does it come with Android 1.5 or do
you need to update it?

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



[android-developers] trying to get phone number from BroadcastReceiver

2009-09-08 Thread gganesh

Hi,
This is a simple application which sends  group  sms (a group consist
only 5 phone numbers )and i have registered  a Broadcast to announce
when an sms is send .here i need to display the number to which the
sms is send ,how to do that
here is my code
# In onCreate()

 button is pressed it triggers  an onClick event and sends the group
sms
public void onClick()
{
   for (int j = 0; jphonenos.length;j++)
{
 sendSMS(phonenos[j],mess);
   }
}
 String SENT = SMS_SENT;
 private void sendSMS(String phoneNumber, String message)
{

  Intent ss=new Intent(SENT);
 ss.putExtra(phno1, phoneNumber);
  PendingIntent sentPI = PendingIntent.getBroadcast(this, 0,ss,
0);
  SmsManager sms = SmsManager.getDefault();
  sms.sendTextMessage(phoneNumber, null, message, sentPI, null);
}

public void onStart()
{
super.onStart();
br_send=new BroadcastReceiver(){
@Override
public void onReceive(Context arg0, Intent arg1) {
switch (getResultCode())
{
case Activity.RESULT_OK:
Toast.makeText(getBaseContext(), SMS sent
,
Toast.LENGTH_SHORT).show();

Log.v(TAGS,intent  :+arg1.getExtras
().getString(phon1)); //*error *
 }
}
};

registerReceiver(br_send,new IntentFilter(SENT));
}

 public void onStop()
{
super.onStop();
unregisterReceiver(br_del);
}
an error is thrown at arg1.getExtras().getString(phon1) Log
statement  ,is this a right approach to display the number to which
the sms is send

error is
java.lang.RuntimeException: Error receiving broadcast Intent
{ action=SMS_SENT } in seaant.android.panicmessag...@437489e8
 Caused by: java.lang.NullPointerException

Help me to solve this error
Thanks
Ganesh

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



[android-developers] Dialing IVR Systems, or sending DTMF tones after a call is made

2009-09-08 Thread Mark Ellul

Hi,

I am writing an application that calls IVR Systems. For example a
Customer Service line where 3 or 4 options or the telephone number
must be sent after the call is made.

I don't remember where but I remember that if you were to put in
comma's , it would be a pause so I am trying to dial a number such as
tel:55,0,2,3 which should dial 5 then it should send 0 with
a pause then 2, pause, and then 3.

I have seen a discussion similar to what I want to do...
http://groups.google.com/group/android-developers/browse_thread/thread/7a7ae1784d4baafc/823fa84508eee26b?lnk=raot#823fa84508eee26b

I am testing with a HTC Hero, and when it starts dialing, I can hear
the first tone being sent when its dialling, in the above case I hear
a 5, and then the dialler crashes and drops back to my application.

I have connected my phone to the Eclipse DDMS view and have found
where its doing the call and pasted below.

09-08 13:40:09.411: INFO/ActivityManager(63): Starting activity:
Intent { action=android.intent.action.CALL data=tel:
55,2,41*667854,000*837101,692649593 comp={com.android.phone/
com.android.phone.OutgoingCallBroadcaster} }
09-08 13:40:09.471: WARN/WindowManager(63): No window to dispatch
pointer action 0
09-08 13:40:09.521: INFO/ActivityManager(63): Starting activity:
Intent { action=android.intent.action.CALL data=tel:
55,2,41*667854,000*837101,692649593 flags=0x1000 comp=
{com.android.phone/com.android.phone.InCallScreen} (has extras) }
09-08 13:40:09.541: WARN/WindowManager(63): No window to dispatch
pointer action 1
09-08 13:40:09.541: INFO/WindowManager(63): Screen status=true,
current orientation=5, SensorEnabled=true

I was wondering if anyone can help me dissect the issue I am having.
OR a approach to do what I need to do to get this working?

I have seen the ToneGenerator in the documentation but there it states
that these tones are not for the upload audio path, which I assume the
call is.

http://developer.android.com/reference/android/media/ToneGenerator.html

Any help would be appreciated

Regards

Mark


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Accessing the Calendar

2009-09-08 Thread Canukadroid

Hi Dianne,

Thank you for your responses. Not what I wanted to hear :o( but thank
you!

Regards,
CD.

On Sep 7, 9:29 pm, Dianne Hackborn hack...@android.com wrote:
 Definitely not for 1.6, very unlikely for 2.0, and it is probably a safe
 assumption that it is not public because it is likely to change in the
 future,

 On Sun, Sep 6, 2009 at 2:46 AM, davidjspooner
 davidjspoo...@googlemail.comwrote:







  How likely is it to be part of the public API for 1.6 or 2.0 ?
  Using non public API's makes one nervous of their changing

  On Sep 5, 8:44 pm, Dianne Hackborn hack...@android.com wrote:
   Sorry, the calendar provider is not yet part of the public API.

   --
   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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-08 Thread Jason Van Anden

I submitted BubbleBeats to the ADC2 - published to the market this
morning under entertainment.

This is my first Android app.  Thanks to everyone who offered me help,
or anyone else help that answered a question I didn't even know I had!
 This community has been amazing.

More: http://www.bubblebeats.com

Here is a (unofficial - geeked out) press release ... BubbleBeats is a
visual way to manage your music that is ideally suited for mobile
devices.  Rather than using lists of song titles to represent
playlists, BubbleBeats uses colorful ... bubbles.  This was originally
devised as a way to program complex improvisational behavior for a
pair of emotive interactive robots named Neil and Iona
(http://www.smileproject.com).  Users associate songs to colorful
bubbles which when interconnected will subsequently play in a
reasonable yet unpredictable way.

Best to check out my website first - there is a slight paradigm shift
involved.

Feedback appreciated.

Thank You,
Jason Van Anden
http://www.bubblebeats.com






On Tue, Sep 8, 2009 at 6:31 AM, Leelee.wil...@googlemail.com wrote:

 I posted earlier in this thread about my app Tasker. I've since had a
 chance to
 put up some material about it:

 http://tasker.dinglisch.net/

 And yes, it's in the Productivity/Tools category.

 Lee
 


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



[android-developers] Re: how to use gluUnProject

2009-09-08 Thread Streets Of Boston

Look for MatrixGrabber.java and MatrixTrackingGL.java in the 'API
Demoes' that comes with the Android SDK.

On Sep 7, 11:11 am, Gameboy r59...@gmail.com wrote:
 I'm trying to use gluUnProject for checking touch selection on a 3D
 object, but seems I can not do with current 1.5 emulator.

 The method needs to know current viewport, model view matrix and
 project matrix, I'm trying to use G11 gl to query but get nothing with
 below codes:

 int[] viewport = new int[4] ;
 gl.glGetIntegerv(GL11.GL_VIEWPORT, viewport, 0) ;
 float[] modelview = new float[16] ;
 gl.glGetFloatv(gl.GL_MODELVIEW_MATRIX, modelview, 0) ;
 float[] project = new float[16] ;
 gl.glGetFloatv(gl.GL_PROJECTION_MATRIX, project, 0) ;

 Questions:
 1) Is there other way to get these params?
 2) Does current 1.5 emulator support these G11 feature?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Development phones ??

2009-09-08 Thread Paul Kilgo

 Does anyone know the status with the development phones? Apparently
 they are out of stock.

Don't know -- I'm leaving this to someone else.

 - Can any other device be used for development testing?

People use their T-Mobile phones to develop all the time. I'd think
you can do it with any Android phone.

 - If you get a development phone does it come with Android 1.5 or do
 you need to update it?

I updated mine (purchased in April 2009) but the next batch may come
with the image already installed.

 Thank you



-- 
--Paul

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 many times a song has played?

2009-09-08 Thread Nathan Ekstrom
I've searched the list and the documentation but have not found anything
that tells you how to tell how many times a song has played.  Is there
something in the OS that provides that information or would it need to be
done in the individual application?
Nathan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Dialing IVR Systems, or sending DTMF tones after a call is made

2009-09-08 Thread Mark Ellul

Hi

I have added more log information from the ddms tool, to see if this
helps...

09-08 15:35:48.801: INFO/ActivityManager(63): Starting activity:
Intent { action=android.intent.action.CALL data=tel:
976574325,2,41*667854,000*837101,692649593 comp={com.android.phone/
com.android.phone.OutgoingCallBroadcaster} }
09-08 15:35:49.071: INFO/ActivityManager(63): Starting activity:
Intent { action=android.intent.action.CALL data=tel:
976574325,2,41*667854,000*837101,692649593 flags=0x1000 comp=
{com.android.phone/com.android.phone.InCallScreen} (has extras) }
09-08 15:35:49.091: INFO/WindowManager(63): Screen status=true,
current orientation=5, SensorEnabled=true
09-08 15:35:49.091: INFO/WindowManager(63): needSensorRunningLp,
mCurrentAppOrientation =5
09-08 15:35:49.091: INFO/WindowManager(63): needSensorRunningLp,
SCREEN_ORIENTATION_NOSENSOR
09-08 15:35:49.091: DEBUG/Sensors(63): close_akm, fd=162
09-08 15:35:49.091: DEBUG/Sensors(63): sensors=, real=
09-08 15:35:49.121: DEBUG/Sensors(63): using /dev/input/event4
(name=compass)
09-08 15:35:49.151: INFO/WindowManager(63): Disabling listeners
09-08 15:35:49.171: INFO/global(118): Default buffer size used in
BufferedWriter constructor. It would be better to be explicit if an 8k-
char buffer is required.
09-08 15:35:49.191: INFO/AudioHardwareMSM72XX(37): Routing audio to
Handset (2,1)
09-08 15:35:49.191: DEBUG/AudioHardwareMSM72XX(37): rpc_snd_set_device
(0, 0, 1)
09-08 15:35:49.201: DEBUG/HTC Acoustic(37): msm72xx_enable_audpp:
0x
09-08 15:35:49.211: DEBUG/AudioHardwareMSM72XX(37): setVoiceVolume
(0.80)
09-08 15:35:49.211: INFO/AudioHardwareMSM72XX(37): Setting in-call
volume to 4 (available range is 0 to 5)
09-08 15:35:49.441: DEBUG/AK8973(41): Compass CLOSE
09-08 15:35:49.461: DEBUG/HardwareService(63): cancelVibrate
09-08 15:35:49.471: DEBUG/WindowManager(63): disableKeyguard -
PhoneApp
09-08 15:35:49.831: DEBUG/BluetoothHeadset(118): Proxy object
connected
09-08 15:35:50.351: DEBUG/dalvikvm(118): GC freed 20571 objects /
1091024 bytes in 236ms
09-08 15:35:50.591: INFO/global(118): Default buffer size used in
BufferedWriter constructor. It would be better to be explicit if an 8k-
char buffer is required.
09-08 15:35:50.591: VERBOSE/AudioService(63): updateRoutes(),
newName=BT;newState=0;
09-08 15:35:50.591: ERROR/AudioService(63): Invalid routing action.
Node A2DP does not exist.
09-08 15:35:50.591: VERBOSE/AudioService(63): List Nodes: device=No
Device;normal=2; Ringtone=2; InCall=1;
09-08 15:35:50.621: INFO/AudioHardwareMSM72XX(37): Routing audio to
Speakerphone (0,2)
09-08 15:35:50.621: DEBUG/AudioHardwareMSM72XX(37): rpc_snd_set_device
(1, 1, 1)
09-08 15:35:50.621: DEBUG/HTC Acoustic(37): msm72xx_enable_audpp:
0x0007
09-08 15:35:50.661: ERROR/WindowManagerService(63):
setLockScreenShowImmediately = false
09-08 15:35:50.661: ERROR/WindowManager(63):
setLockScreenShowImmediately = false
09-08 15:35:50.671: DEBUG/WindowManager(63): reenableKeyguard -
PhoneApp
09-08 15:35:50.691: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness, 102) failed!
09-08 15:35:50.691: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness): read from property = 102
09-08 15:35:50.691: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness, 102) failed!
09-08 15:35:50.701: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness): read from property = 102
09-08 15:35:50.751: INFO/AudioHardwareMSM72XX(37): AUDIO_START: start
kernel pcm_out driver.
09-08 15:35:50.761: DEBUG/MobileDataStateTracker(63): Received
android.intent.action.ANY_DATA_STATE broadcast - state = DISCONNECTED,
unavailable = false, reason = 2GVoiceCallEndedapn=null,
capability=null
09-08 15:35:50.761: DEBUG/GpsLocationProvider(63): state: DISCONNECTED
apnType: null apnName: null reason: 2GVoiceCallEnded
09-08 15:35:52.231: INFO/ActivityManager(63): moveTaskToBack: 8
09-08 15:35:52.251: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness, 102) failed!
09-08 15:35:52.301: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness): read from property = 102
09-08 15:35:52.341: INFO/WindowManager(63): Screen status=true,
current orientation=-1, SensorEnabled=false
09-08 15:35:52.341: INFO/WindowManager(63): needSensorRunningLp,
mCurrentAppOrientation =-1
09-08 15:35:52.351: DEBUG/Sensors(63): open_akm, fd=162
09-08 15:35:52.351: DEBUG/Sensors(63): sensors=0001, real=0001
09-08 15:35:52.361: DEBUG/AK8973(41): Compass Start
09-08 15:35:52.391: DEBUG/Sensors(63): using /dev/input/event4
(name=compass)
09-08 15:35:52.661: INFO/WindowManager(63): Enabling listeners
09-08 15:35:52.671: DEBUG/dalvikvm(63): GC freed 20468 objects /
1167904 bytes in 271ms
09-08 15:35:52.681: DEBUG/Sensors(63): data__data_open: fd = 183
09-08 15:35:52.681: INFO/WindowManager(63): onOrientationChanged,
rotation changed to 0
09-08 15:35:53.131: INFO/ActivityManager(63): moveTaskToBack: 8
09-08 

[android-developers] Re: Development phones ??

2009-09-08 Thread Chris Stratton

On Sep 8, 9:20 am, WoodManEXP woodman...@gmail.com wrote:
 Does anyone know the status with the development phones? Apparently
 they are out of stock.

 - Can any other device be used for development testing?

If you are writing applications for use by people with current carrier-
branded phones, it's probably best to test on one... ability to change
the operating system or framework is nice (and may be possible anyway
if the phone is rootable) but you aren't going to convince customers
to do that, so ordinary applications have to work within the
limitations of ordinary phones.

The other reason for a dev phone would be if no carrier local to you
offers a suitable android phone; there can be some issues in moving a
carrier-branded phone to another network, beyond just sim lock (for
example automatic sms messages that are free on the original network,
but not on a foreign one)

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



[android-developers] Where is the default Calendar app on Emulator?

2009-09-08 Thread Armond Avanes

Hi Guys,

Does anybody know where I can find the default Calendar application comes
with Android platform on emulator? I just do not see any Calendar
application around which is odd!

Thank you,
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: Development phones ??

2009-09-08 Thread Maps.Huge.Info (Maps API Guru)

The problem with a non-development phone (or a locked one) is that the
carriers demand such unreasonable terms, like two year contracts and
all. In my area, T-Mobile is available but doesn't work in my home.
The 3-g here for T-Mobile is slower than dial-up and is only available
in a tiny fraction of the local area as well. ATT has better service,
the ION I have only has the Edge network but it works far better than
T-Mobile.

If I was forced to go with T-M, I would have a rotten experience, a
long contract and two phone numbers. My ION works with ATT without a
contract, I pay only $15 a month for a data plan and am quite happy
with the service.

You can still buy an ION off eBay, although they are getting way too
expensive.

-John Coryat

What Zip Code?
Radar Now!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: After ADC 2 feedback

2009-09-08 Thread Maps.Huge.Info (Maps API Guru)

All I can say to this is:

Good food takes time, be patient!

(my mother)

-John Coryat

What Zip Code?

Radar Now!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: MediaPlayer playback is interrupted by user interface interaction

2009-09-08 Thread Marco Nelissen

On Sun, Sep 6, 2009 at 2:59 AM, Ludvig
Svenoniusludvig.svenon...@gmail.com wrote:

 I have a rather mysterious problem with the simple test application
 below...

 package com.example.helloandroid;

 import android.app.Activity;
 import android.media.MediaPlayer;
 import android.os.Bundle;
 import android.widget.ArrayAdapter;
 import android.widget.LinearLayout;
 import android.widget.ListView;
 import android.widget.TextView;

 public class HelloAndroid extends Activity {
    static final String[] LIST_ITEMS = new String[] {
        Item 1,
        Item 2,
        Item 3,
        Item 4,
        Item 5,
        etc etc...
    };

    /** Called when the activity is first created. */
   �...@override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        final LinearLayout root = new LinearLayout(this);
        root.setOrientation(LinearLayout.VERTICAL);

        final TextView tv = new TextView(this);

        final ListView lv = new ListView(this);
        lv.setAdapter(new ArrayAdapterString(this,
 android.R.layout.simple_list_item_1, LIST_ITEMS));

        root.addView(tv);
        root.addView(lv);

        MediaPlayer mp = new MediaPlayer();

There's your problem.

        String msg = ;

        try {
            String path = /sdcard/MP3/an_mp3_track.MP3;

            mp.setDataSource(path);
            mp.prepare();
            mp.start();
        }
        catch (Exception e) {
                msg = e.getClass().getName();
        }

        tv.setText(msg);

        setContentView(root);
    }
 }


 As you might see from examining the code, it sets up a very simple
 layout, consisting of a TextView to display a text message above a
 ListView displaying a number of strings. The application also
 instantiates a MediaPlayer and begins playback of an mp3 track on the
 SD card. So far everything works; the interface will be displayed
 correctly and playback of the track will begin... and left on its own
 it will keep working. However, if you start fiddling with the ListView
 - scrolling it or tapping its items, for example - it may cause the
 mp3 playback to suddenly be interrupted, for no apparent reason
 whatsoever.

Your MediaPlayer is a local variable in your onCreate() method, which
is getting garbage collected, at which point playback will stop.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 many times a song has played?

2009-09-08 Thread Marco Nelissen

That information is not available in the system.


On Tue, Sep 8, 2009 at 6:59 AM, Nathan Ekstromnat...@whiteboxdev.com wrote:
 I've searched the list and the documentation but have not found anything
 that tells you how to tell how many times a song has played.  Is there
 something in the OS that provides that information or would it need to be
 done in the individual application?
 Nathan
 


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



[android-developers] NullPointerException in getFromLocation function

2009-09-08 Thread Stefan

Hello,

i'm trying to get a location from lat /lon values with the
getFromLocation function:

adresses = geocoder.getFromLocation(lat, lon, 1); // Search addresses

The function should return a empty List, if it don't find an address,
but it throws the NullPointerException. What can/must I do to fix it??

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] After ADC 2 feedback

2009-09-08 Thread omnitial

When downloading something we see a dialog box showing the number of
percentage that downloaded
Sometimes when we pressed save or print or other option in a document
software sometimes the full document software get hanged without
showing any status. That is very irritating indeed.

After the submission deadline ADC2 is going through some processes.
like:
1) Filtering the submitted entries begin
2) Listed the filtered entries for the contest.
3) ADC2 judge application in the market.
4) 1st phase judging started
5) 1st phase judgin ended
6) List Qualified entries for phase 2
7) 2nd phase started
8) 2nd phase ended.
9) Result published

I think, google can easily announce these status in the android-
developers blog stage by stage. So that we the participants can see
which process is now going on rather than just seeing a hanged stage
of the contest.
So, my earnest request to Google, to give us some sort of these feed
back of the contest process.
It will be a great pleasure.

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



[android-developers] Ongoing...

2009-09-08 Thread sdphil

how does the media player put itself in the Ongoing group when
playing?

tia.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: NullPointerException in getFromLocation function

2009-09-08 Thread Stefan

Sorry,

i have found my stupid error. I don't initialize my Geocoder object.

Regards,
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] How to implement http digest authentication?

2009-09-08 Thread Tom

Hi,

I would like to know if someone can post some snippet for implementing
http digest authentication in Android.

Best regards
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cannot upload Promotional Graphic to Android Market

2009-09-08 Thread Streets Of Boston

Try it on any other browser than IE8, if that's the one you're using.
When i used FireFox, all went fine.

On Sep 8, 8:24 am, jsdf jasons...@gmail.com wrote:
 Problem still exists.  And, per Streets of Boston, my 2 full
 screenshots are not 'sticking' over time either.
 I don't think the Android Market guys actually tested this properly
 before publishing it.

 On Sep 4, 10:46 pm, String sterling.ud...@googlemail.com wrote:



  I've created and uploaded JPGs with no trouble, so it certainly can
  work. Try saving your file with different options - let us know if you
  find what's causing the trouble.

  String

  On Sep 4, 11:54 pm, Don Oleary donole...@gmail.com wrote:

   Also cannot upload any image. Getting the error Graphic must be a PNG or
   JPEG image file.

   Regards
   Don

   On Fri, Sep 4, 2009 at 5:44 PM, Streets Of Boston
   flyingdutc...@gmail.comwrote:

Same here.
In addition; i cannot upload any image (screenshots). They are there
for a while, then a bit later they have disappeared.

On Sep 4, 9:59 am,jsdfjasons...@gmail.com wrote:
 I've created 4 separate .png files with the appropriate specs (180w x
 120h, PNG, full bleed, no border art) for 4 projects.  I cannot upload
 any of them to my projects.  In each case, I receive the error: The
 promotional graphic must be a PNG or JPEG image file.

 Is anyone else seeing the same issue?

 Thanks,
jsdf- Hide quoted text -

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



[android-developers] How to interpret device state dump from DDMS?

2009-09-08 Thread Flying Coder


Is there any documentation describing the various sections of dump
device state output from DDMS?

Thanks,
Steve

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



[android-developers] Re: Programmaticly adding playlists

2009-09-08 Thread Nathan Ekstrom

So for those who are interested the only way to do this is using
http://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists.html
and 
http://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists.Members.html
it is pretty easy if you are familiar with providers.

On Aug 29, 2:14 pm, Nathan Ekstrom nat...@whiteboxdev.com wrote:
 I've been banging my head against this for over a day now.  How do I
 get a play list file (extension .m3u) to show up in the media player
 programmaticly?  I figured out how to add .mp3 files by handing them
 to the media scanner.  When I hand the play list file to the media
 scanner it does nothing.  If I run the Dev Tools  Scan Media or
 unmount and remount the sdcard the playlist shows up.  So how can I
 add the playlist or how can I tell the system that there is a new play
 list file it needs to add?

 Any help would be appreciated as I have run out of ideas.

 Nathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Problem with MediaScannerConnection scanFile

2009-09-08 Thread karthikr


Guys any help on this?

On Sep 7, 11:19 pm, karthikr karthik.scintill...@gmail.com wrote:
 Also is there a way to resccan the files in the sdcard?

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



[android-developers] where to call ListView.clearChoices()

2009-09-08 Thread sdphil

I've got a ListView with an adapter that gets filled in on a different
thread.  when it's done getting filled in (i.e. finished calling
adapter.add(...)),

I call

((ListView) findViewById(R.id.myListView)).clearChoices();

but the first item in the list is still selected!

where should i put that call to make it so that no item is selected?

tia.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 with PNG as xml Background but not in JAVA!

2009-09-08 Thread Don

Hi all,
I'm having problems with setting the background image for views in xml
files.

I have a png called mml_background.png in the drawable folder of my
project.

Setting the background as follows in xml:
android:background=@drawable/mml_background
gives the error:
ERROR Error: No resource found that matches the given name (at
'background' with value '@drawable/mml_background').general_list.xml
/
project/res/layout  line 2  Android AAPT Problem

However, I can use the png OK in java:
Bitmap bmp = BitmapFactory.decodeResource( getResources(),
R.drawable.mml_backgound);

I have several other png icons in the same project that I can use OK
in either the xml or in code!!!

Does anyone have any idea what could be wrong?

Best Regards,
Don
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Countries for selling priced applications in Android Market

2009-09-08 Thread karthikr


I have been waiting for an update for nearly 8 months for this, i am
awaiting for atleast an update from google, isnt anyone from google
watching this post? please give us an update. I dont want to compare
the market with some other operating system, but i am expecting
atleast an update on the progress.. Has anyone one here got any update
mails so far?

On Sep 7, 8:17 am, Chi Kit Leung michaelchi...@gmail.com wrote:
 I am thinking whether there is any frameworks for PayPal in Android. For the
 developers in the areas where is outside from paid apps supported, they can
 submit a free trail version in Android Market, with PayPal backed Activation
 system to get the full version. I am woundering any frameworks for this
 purpose existing and is this way to break any terms of Android Market.

 On Mon, Sep 7, 2009 at 1:10 PM, Chi Kit Leung michaelchi...@gmail.comwrote:





  I felt that is not very hard to allow selling apps in Australia. I know
  Adsense can directly transfer the money to a australia bank account.
  I am guessing that is the problems of billing and tax issue.

    On Mon, Sep 7, 2009 at 12:36 PM, Abdul Mateen abmat...@gmail.comwrote:

  Yes, exactly , I am curious to see Pakistan in the list G1 is avaliable
  here, I came alone with a good alternative SlideME (www.slideme.org)
  with much less restrictions.

  On Sun, Sep 6, 2009 at 9:53 PM, karthikr 
  karthik.scintill...@gmail.comwrote:

  Well after nearly 3 months there has been some update, but the news is
  not exciting. Seller support is added only to italy according to the
  latest info, 3 months for adding 1 country???when are they going to
  finish this up? it was said that byt the last quater end support for
  additional countries will be added, but well after the time told there
  has been an addition to only one country. If someone from google give
  us an update on whats going on? How long is it going to take before we
  see a major ramp up? WHy isnt there any updates on the same?

  Regards,
  R.Karthik

   --
  Regards,
  Michael Leung
 http://www.itblogs.info
 http://www.michaelleung.info

 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info- Hide quoted 
 text -

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



[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-08 Thread Stefano Sanna

On Tue, Sep 8, 2009 at 2:36 AM, Chi Kit Leungmichaelchi...@gmail.com wrote:
 Thanks! that is great!

Thank you.

Best regards,
Stefano.

-- 
Stefano Sanna
gerda...@gmail.com (Skype: gerdavax)

Personal blog: http://www.gerdavax.it
Linkedin profile: http://www.linkedin.com/in/gerdavax
QuadraSpace Project: http://www.quadraspace.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] Create Cool styled buttons

2009-09-08 Thread bennyb

How do I create cool/styled buttons in android with different colors?

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



[android-developers] Changing IME Done button

2009-09-08 Thread Brady

Hi,

I was wondering if anyone has had any success changing the default IME
action button. I have an EditText field and in the layout XML I've set

android:imeActionLabel=@string/X

but don't see any change in the IME. Do I need to also set the
imeOptions to make this a custom action.

One last question, when I assign the imeActionID, can this simply be
the ID of the Button in the layout that I want to emulate clicking, or
do I need to create a constant that maps to some kind of handler in
the code?

Thanks!
Brady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Create Cool styled buttons

2009-09-08 Thread Moto

You can define different button stages using pngs and declare an xml
on your drawables folder:

i.e.
?xml version=1.0 encoding=utf-8?
selector xmlns:android=http://schemas.android.com/apk/res/android;
item android:state_focused=true
  android:state_pressed=false
  android:drawable=@android:drawable/
grey_button_background_focus_blue /
item android:state_focused=true
  android:state_pressed=true
  android:drawable=@android:drawable/
grey_button_background_pressed_blue /
item android:state_focused=false
  android:state_pressed=true
  android:drawable=@android:drawable/
grey_button_background_pressed_blue /
item android:drawable=@android:drawable/
grey_button_background_normal /
/selector

A little googling you find this:
http://www.gersic.com/blog.php?id=56

Moto!


On Sep 8, 11:58 am, bennyb taw...@gmail.com wrote:
 How do I create cool/styled buttons in android with different colors?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Forward Locking A Specific Downloaded File

2009-09-08 Thread BrianS

So would the the private directory you refer to be called data/data/
com.myapp/private/ ?

thanks much

B

On Sep 7, 6:30 pm, Dianne Hackborn hack...@android.com wrote:
 Putting it in your normal private directory is exactly the same as forward
 locking -- only your uid (and root) has permission to read it.

 On Sun, Sep 6, 2009 at 8:48 AM, BrianS bnsaw...@aol.com wrote:

  Is there a way to forward lock a specific film that my code downloads
  to the android (like a wallpaper or ringtone)? I know you can forward
  lock a package, but its resources still remain public, wondering if
  its possible to just forward-lock a file.

  Thanks much

  (Apologies if this is a duplicate post, not sure if it made it through
  the first time)

 --
 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: Create Cool styled buttons

2009-09-08 Thread Moto

Forgot!
For your button you want to declare the background to point to your
xml with the button stages definition...


On Sep 8, 12:43 pm, Moto medicalsou...@gmail.com wrote:
 You can define different button stages using pngs and declare an xml
 on your drawables folder:

 i.e.
 ?xml version=1.0 encoding=utf-8?
 selector xmlns:android=http://schemas.android.com/apk/res/android;
     item android:state_focused=true
           android:state_pressed=false
           android:drawable=@android:drawable/
 grey_button_background_focus_blue /
     item android:state_focused=true
           android:state_pressed=true
           android:drawable=@android:drawable/
 grey_button_background_pressed_blue /
     item android:state_focused=false
           android:state_pressed=true
           android:drawable=@android:drawable/
 grey_button_background_pressed_blue /
     item android:drawable=@android:drawable/
 grey_button_background_normal /
 /selector

 A little googling you find this:http://www.gersic.com/blog.php?id=56

 Moto!

 On Sep 8, 11:58 am, bennyb taw...@gmail.com wrote:

  How do I create cool/styled buttons in android with different colors?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone else notice that the Top apps in android.market.com seem inaccurate?

2009-09-08 Thread Marco Nelissen

On Tue, Sep 8, 2009 at 9:31 AM, niko20nikolatesl...@yahoo.com wrote:

 If you look at the apps that are in the Top paid category, and then
 go to Cryket.com and look them up, I find it hard to believe that
 these apps are really the top paid.

 For example, Buka is 1000-5000 downloads at about 1.25 or so.
 Color Pop! is 1.49, and is also in the 1000-5000 download range.

 I've seen lots of apps (including my own of course) that are in the
 1000-5000 range and cost more than these two, what makes them count
 as being on the  main page as top.

 This website (I call it that loosely since it really needs some
 work!, I mean why even have it if it's not up to date with what is
 going on) seems completely arbitrary to me. I other words, what you
 you have to do to get Google's magic attention to get put on the site?

cyrket.com is a third party site and has nothing to do with Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Forward Locking A Specific Downloaded File

2009-09-08 Thread Dianne Hackborn
It's everything under data (that you haven't explicitly made world
accessible).  That is, use the Context API to either directly open a file,
or get a path to a directory where you can use the standard Java APIs to
read and write files, and just put your data there.  If you don't use the
flag to make the files world readable, they won't be.

On Tue, Sep 8, 2009 at 9:47 AM, BrianS bnsaw...@aol.com wrote:


 So would the the private directory you refer to be called data/data/
 com.myapp/private/ ?

 thanks much

 B

 On Sep 7, 6:30 pm, Dianne Hackborn hack...@android.com wrote:
  Putting it in your normal private directory is exactly the same as
 forward
  locking -- only your uid (and root) has permission to read it.
 
  On Sun, Sep 6, 2009 at 8:48 AM, BrianS bnsaw...@aol.com wrote:
 
   Is there a way to forward lock a specific film that my code downloads
   to the android (like a wallpaper or ringtone)? I know you can forward
   lock a package, but its resources still remain public, wondering if
   its possible to just forward-lock a file.
 
   Thanks much
 
   (Apologies if this is a duplicate post, not sure if it made it through
   the first time)
 
  --
  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: Changing IME Done button

2009-09-08 Thread Dianne Hackborn
Use android:imeOptions to control the button inside of the keyboard:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeActionLabel

http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeActionLabelThe
full label is only displayed when the IME has a large amount of space for it
(such as when the standard keyboard is in fullscreen mode).

On Tue, Sep 8, 2009 at 9:42 AM, Brady brady.kro...@gmail.com wrote:


 Hi,

 I was wondering if anyone has had any success changing the default IME
 action button. I have an EditText field and in the layout XML I've set

 android:imeActionLabel=@string/X

 but don't see any change in the IME. Do I need to also set the
 imeOptions to make this a custom action.

 One last question, when I assign the imeActionID, can this simply be
 the ID of the Button in the layout that I want to emulate clicking, or
 do I need to create a constant that maps to some kind of handler in
 the code?

 Thanks!
 Brady
 



-- 
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: copy file to emulator sd card

2009-09-08 Thread androiduser mobile

Hi Mark and joyband,

Thanks for the help. I am using this code inside one of my service
test cases and getContext().getResources() is null to get the assets.

Thanks,
Androiduser.

On Sep 4, 6:48 pm, joyband joyb...@163.com wrote:
 I tried your code in my Eclipse,it looks fine.
 ins = getResources().getAssets().open(tmp.txt);
 byte[] buffer = new byte[1024];
 int length = 0;
 while((length = ins.read(buffer))  0){
     Log.d(LOG_TAG, new String(buffer,0,length));



 }- Hide quoted text -

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



[android-developers] Re: Anyone else notice that the Top apps in android.market.com seem inaccurate?

2009-09-08 Thread Disconnect

On Tue, Sep 8, 2009 at 12:52 PM, Marco Nelissenmarc...@android.com wrote:

 On Tue, Sep 8, 2009 at 9:31 AM, niko20nikolatesl...@yahoo.com wrote:

 If you look at the apps that are in the Top paid category, and then
 go to Cryket.com and look them up, I find it hard to believe that
 these apps are really the top paid.

 For example, Buka is 1000-5000 downloads at about 1.25 or so.
 Color Pop! is 1.49, and is also in the 1000-5000 download range.

 I've seen lots of apps (including my own of course) that are in the
 1000-5000 range and cost more than these two, what makes them count
 as being on the  main page as top.

 This website (I call it that loosely since it really needs some
 work!, I mean why even have it if it's not up to date with what is
 going on) seems completely arbitrary to me. I other words, what you
 you have to do to get Google's magic attention to get put on the site?

 cyrket.com is a third party site and has nothing to do with Google.


The sky is blue and white.

(Wait, wasn't this the part of the show where we spout random facts?
No? Oops, sorry.)

Are you trying to imply that the cyrket stats are wrong? Its simple
enough to spot check the 'top apps' he mentioned using the on-device
market client... (Or maybe its just an autoresponder that fired on the
'cyrket' keyword?)

If you look at the original email, it has nothing to do with cyrket
and everything to do with the market mess.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: What is the best way to backup app database to a file?

2009-09-08 Thread Moto

Perfect!
I really appreciate everyone's help!

-Moto!

On Sep 8, 1:05 am, mjc147 westmead...@yahoo.co.uk wrote:
 On Sep 7, 3:30 am, Mark Murphy mmur...@commonsware.com wrote:

  Now, the database path location may change in future Android releases,
  and I am not aware of a place in the API to get the path to a database
  in a more official fashion.

 You can use the Context.getDatabasePath() method:

 http://developer.android.com/reference/android/content/Context.html#g...)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-09-08 Thread Dianne Hackborn
Hi all,
I'm not sure how much it is worth getting into the details of this right
now.  There is a blog post being written on the topic of different screen
sizes, and we have gone through round after round of work on the underlying
model of the platform and how to best explain the way this works, which is
reflected in the doc.  I think ultimately it is going to be much more
confusing trying to answer questions piecemeal here rather than waiting for
the full documentation that is well organized (first covering the concepts
being used and way we look at different screen configurations, then how
these impact applications, how they can opt out of different compatibility
modes, and details of how old and new APIs work in these environments).

Also, please don't base any of your work in this area on 1.5.  There was a
lot of half-done stuff in that platform that was early work on supporting
these different screen configurations, but it was very incomplete, and in
many cases behaves radically different than 1.6.

As usual, our goal is that the bulk of existing apps will just work on the
new types of hardware, though with a new wrinkle that on some kinds of
screens (smaller) there is no way for the platform to provide compatibility
for existing apps so they will be filtered out by market until they are
updated.  But this will be covered in the upcoming blog post and
documentation.

On Tue, Sep 8, 2009 at 9:06 AM, Howard M. Harte hhar...@gmail.com wrote:





  No. Like I said, 160 dpi at other resolutions means a very different
  screen size. I mentioned WVGA/5 already, but now imagine the size of
  a q...@160dpi display... it would be very tiny. The point is that it
  wouldn't help you at all.
 

 This makes sense, but is there a way to leave minSdk=3 and turn off
 compatibility mode, so my app will fill the entire WVGA screen in
 medium DPI, since my app already can scale properly?  Like I
 mentioned, this works fine with minSDk=4 but I don't want to
 restrict my app to the v1.6 SDK.

 Also, it would be nice to be able to prevent the soft keyboard IME
 from forcing full-screen/extract mode for landscape WVGA at medium DPI
 since now there is a lot more display real estate, and extract mode
 makes less sense.

 Thanks,
 Howard
  --
  Romain Guy
  Android framework engineer
  romain...@android.com
 
  Note: please don't send private questions to me, as I don't have time
  to provide private support.  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] Anyone else notice that the Top apps in android.market.com seem inaccurate?

2009-09-08 Thread niko20

If you look at the apps that are in the Top paid category, and then
go to Cryket.com and look them up, I find it hard to believe that
these apps are really the top paid.

For example, Buka is 1000-5000 downloads at about 1.25 or so.
Color Pop! is 1.49, and is also in the 1000-5000 download range.

I've seen lots of apps (including my own of course) that are in the
1000-5000 range and cost more than these two, what makes them count
as being on the  main page as top.

This website (I call it that loosely since it really needs some
work!, I mean why even have it if it's not up to date with what is
going on) seems completely arbitrary to me. I other words, what you
you have to do to get Google's magic attention to get put on the site?

You shouldn't have to do anything anyway, it should just work
automatically. Hopefully this will be the next thing they work on as
well.

-niko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone else notice that the Top apps in android.market.com seem inaccurate?

2009-09-08 Thread Dianne Hackborn
On Tue, Sep 8, 2009 at 10:05 AM, Disconnect dc.disconn...@gmail.com wrote:

 If you look at the original email, it has nothing to do with cyrket
 and everything to do with the market mess.


What mess?  Market uses a lot of criteria for determining which apps to
place first, only some of which are directly visible to you.  And I believe
the market people don't want to publish the rules for this because (1) they
change over time to better order the apps, and (2) that would make it easier
for people to game the system.

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

2009-09-08 Thread Marco Nelissen

On Tue, Sep 8, 2009 at 8:09 AM, sdphilphil.pellouch...@gmail.com wrote:

 how does the media player put itself in the Ongoing group when
 playing?

http://developer.android.com/reference/android/app/Notification.html
Specifically: Notification.FLAG_ONGOING_EVENT

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



[android-developers] Re: Android WVGA support

2009-09-08 Thread Howard M. Harte




 No. Like I said, 160 dpi at other resolutions means a very different
 screen size. I mentioned WVGA/5 already, but now imagine the size of
 a q...@160dpi display... it would be very tiny. The point is that it
 wouldn't help you at all.


This makes sense, but is there a way to leave minSdk=3 and turn off
compatibility mode, so my app will fill the entire WVGA screen in
medium DPI, since my app already can scale properly?  Like I
mentioned, this works fine with minSDk=4 but I don't want to
restrict my app to the v1.6 SDK.

Also, it would be nice to be able to prevent the soft keyboard IME
from forcing full-screen/extract mode for landscape WVGA at medium DPI
since now there is a lot more display real estate, and extract mode
makes less sense.

Thanks,
Howard
 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  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: Cannot upload Promotional Graphic to Android Market

2009-09-08 Thread Streets Of Boston

I meant that the 'images not sticking' problem does not occur on
FireFox.
I still cannot upload a PNG as a 'promo image'.

On Sep 8, 9:40 am, Streets Of Boston flyingdutc...@gmail.com wrote:
 Try it on any other browser than IE8, if that's the one you're using.
 When i used FireFox, all went fine.

 On Sep 8, 8:24 am, jsdf jasons...@gmail.com wrote:



  Problem still exists.  And, per Streets of Boston, my 2 full
  screenshots are not 'sticking' over time either.
  I don't think the Android Market guys actually tested this properly
  before publishing it.

  On Sep 4, 10:46 pm, String sterling.ud...@googlemail.com wrote:

   I've created and uploaded JPGs with no trouble, so it certainly can
   work. Try saving your file with different options - let us know if you
   find what's causing the trouble.

   String

   On Sep 4, 11:54 pm, Don Oleary donole...@gmail.com wrote:

Also cannot upload any image. Getting the error Graphic must be a PNG 
or
JPEG image file.

Regards
Don

On Fri, Sep 4, 2009 at 5:44 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 Same here.
 In addition; i cannot upload any image (screenshots). They are there
 for a while, then a bit later they have disappeared.

 On Sep 4, 9:59 am,jsdfjasons...@gmail.com wrote:
  I've created 4 separate .png files with the appropriate specs (180w 
  x
  120h, PNG, full bleed, no border art) for 4 projects.  I cannot 
  upload
  any of them to my projects.  In each case, I receive the error: The
  promotional graphic must be a PNG or JPEG image file.

  Is anyone else seeing the same issue?

  Thanks,
 jsdf- Hide quoted text -

  - Show quoted text -- Hide quoted text -

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



  1   2   3   >