Re: [android-developers] Re: Important Undocumented styles

2010-01-29 Thread Matt Oakes
In other words, look at the source code :)

http://source.android.com/download

On Fri, Jan 29, 2010 at 8:03 AM, ko5tik kpriblo...@yahoo.com wrote:
 Ultimate Truth lies in source

 On Jan 29, 2:19 am, Erik Martino erik.mart...@gmail.com wrote:
 An important part of creating an android application is making the gui
 look right. However where do I find documentation for this. An example
 of what I am looking for is something like this

 style=@android:style/ButtonBar

 what other interesting styles does exist. The eclipse layout xml
 editor knows about some of the @android:style/'s but not this one.
 Where is all this documented?

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


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


Re: [android-developers] How to select an item in a listview by code

2010-01-27 Thread Matt Oakes
On Wed, Jan 27, 2010 at 5:11 AM, Michael J McLean m...@mmc2.com.au wrote:
 Mark,
               Thank you for taking the time to reply. There are a lot of
 restrictions placed on developers trying to provide a quality user
 interface. I can live with this particular restriction but I would
 appreciate help on one other issue. If I use the navigation buttons to
 highlight and select an item in my listview, and then press MENU, the first
 menu item is highlighted, where if I hadn't previously navigated to one of
 the items on my list view, and press MENU, the menu item would not be
 highlighted.. I would like to prevent this from happening for the sake of
 consistency.


There are two different modes of navigation. Touch mode and button
mode (can't remember the real name). Basically if you press a
navigation button like the d-pad it will switch out of touch mode.
This means you will see items highlighted so you can tell where you
are. If you're in touch mode you wont see this highlighting because
there's no need to know where you are and you can touch anywhere on
the screen. I's therefore a user aid to have this highlighting turned
on where you activate the menu button and isn't really something you
should be messing with. I'm sure it's possible to, however it would
likely confuse users as it goes away from what normally happens on all
other apps, and keeping things consistent means much happier users.
Only change this if you really have to, not just because it looks
better.

               I wonder why the programmer doesn't just simply have the
 ability to highlight or de-highlight an item with one command. But then I
 also wonder why the programmer cannot simply call or hide the virtual
 keyboard with one command each. Getting rid of the virtual keyboard proved
 to be a messy affair with unwanted side effects. Even now, when doing a text
 entry, I find that if I hold down some characters, such as e, g, and r,
 unwanted options appear on the screen.

I presume you've disabled the virtual keyboard and have the app in a
portrait orientation. If you do it wont matter too much what you press
on the emulators keyboard as only devices with a hardware keyboard (G1
and droid for example) will be able to press these keys, and even then
only with the slider open.

What was the reason for disabling the virtual keyboard? Surely if you
have a text area you want people to be able to type into it on devices
without a keybaord.

 I would really appreciate help on
 getting rid of that. I have purchsed two books including yours, enrolled in
 a University course ( to withdraw after 3 weeks when I realised their lack
 of their ability to help), and yet I find most knowledge comes from trial
 and error, constantly reinventing the wheel, and the occasional tip from the
 forums, if your lucky. I would love to know where I can find systematic
 introductions and explanations for these basic Android features. The Android
 documentation  seems to be written as a reference source for people who
 already understand it. Seeing links being given to the Android documentation
 as an 'answer' to forum questions, is frustrating and annoying. People are
 asking for help and examples. The existence of, and size of the forums, is
 testament to the Android documentation not giving us developers what we
 need. Much of my programming time and efforts seems to be in developing ad
 hoc workarounds, to situations that prevent me from achieving the standard
 of user interface that I require.


That's how development works for me as well. The books and
documentation can only take you so far. Most of the experience comes
from actually doing it. If you want to be able to read a book and then
be able to go straight out to making a really complicated application
you're going about it the wrong way. Treat the books and documentation
as a reference and use your own project as a way of actually learning
how to develop for android.

           Two features that led me to invest most of last year into learning
 Android, were 1) the fact that it was claimed that you didn't even need a
 handset. If it worked on the emulator you could rely that it would work on
 the phone, and 2) the App store.

1) Technically true but it's always good practice to test the
application on a real device. It also helps to know how other
applications on the device function so you can keep it consistent with
that (like the touch mode example i gave above).
2) Gotta love open app stores :)

 Both of these advantages are seriously
 eroded by the fragmentation of Android. And it doesn't help to read of
 Android engineers expressing their anger in forum replies to reference being
 made to the fragmentation issues.


The fragmentation is an issue and Google does need to answer it
seriously and soon I think.

           All of the above strengthens the case for me to not merely 
 rethink your user interface to avoid the question  as advised by you, but
 to rethink the ultimate question of 

Re: [android-developers] android milestone text size small

2010-01-27 Thread Matt Oakes
It might be something to do with the display density. Maybe you have
defined the size of the text in px (absolute pixels) which on a device
with a higher density makes the text smaller. You could try changing
to a density independent unit to see if that helps.

Matt

On Wed, Jan 27, 2010 at 11:02 AM, extrapedestrian
extra.pedestr...@gmail.com wrote:
 My application works fine on G1/Hero and emulators, but on Milestone
 text size is tiny. I have list box and text items are very small on
 Milestone device. What can be the cause of 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


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


Re: [android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-26 Thread Matt Oakes
@String: I love the idea of optional permissions. The description idea
is good as well. The might might be show when the user presses a why
link next to the relevant permission. Maybe it should also explain
what the permission allows by default as well.

On Tue, Jan 26, 2010 at 8:08 AM, String sterling.ud...@googlemail.com wrote:
 On Jan 26, 7:23 am, String sterling.ud...@googlemail.com wrote:

 Another idea which has been discussed before (but which I don't see on
 b.android.com) is the notion of optional permission.

 Update: catellie has opened an issue for optional permissions; see
 http://code.google.com/p/android/issues/detail?id=6266

 String

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


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


Re: [android-developers] Black screen with translucent transparent background on HTC Hero

2010-01-26 Thread Matt Oakes
Could you give some examples. I think part of your email is missing maybe.

Matt

On Tue, Jan 26, 2010 at 2:40 PM, Eden clement.mart...@gmail.com wrote:
 Why i get a Black screen with a translucent transparent background on
 my HTC Hero ? I used the code sample...

 It is OK with the emulators 1.5 and 2.1 


 Is there a way to have it on my Hero ?

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


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


Re: [android-developers] Re: AVD - Emulator limitations

2010-01-25 Thread Matt Oakes
In Eclipse go to the DDMS perspective and you'll see a panel with all
the emulator options in it. You can make calls, send/receive SMS's and
set the GPS location.

On Mon, Jan 25, 2010 at 6:26 AM, Kumar Bibek coomar@gmail.com wrote:
 Hey,

 Of course it can make calls, to other emulators, and it can emulate
 GPS too
 Checkout the emulator options in the DDMS perspective to see these
 options.

 Kumar Bibek

 On Jan 22, 10:10 am, Sudhir Nallagangu nallagan...@gmail.com wrote:
 I am curious on limitations on AVD /Emulators. It is clear that it
 cannot support making phone calls etc ..Can it emulate GPS to leverage
 google maps and navigations?

 Sudhir

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


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


Re: [android-developers] Browser Name?.

2010-01-25 Thread Matt Oakes
I don't think it has a name except for Browser. The engine it uses
is WebKit, the same as the iPhone, Safari and Chrome.

If you mean what does the browser report itself as you could look at
the user agent string which it reports itself as:

HTC-P4600/1.2 Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile
7.11) UP.Link/6.3.1.17.0

That one was for the HTC Dream. You can find the user agent for other
devices on this page (not sure how complete it is):

http://www.zytrax.com/tech/web/mobile_ids.html

Matt

On Mon, Jan 25, 2010 at 11:18 AM, Sasikumar.S
sasikumar.it1...@gmail.com wrote:
 Hi,

 what's the name of default browser in android?..
 for iphone safari... for android ?..

 --
 Thanks  Regards
 Sasikumar.S

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

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


Re: [android-developers] Re: Nexus GPS antenna is always active when Use GPS Satellites is checked...

2010-01-22 Thread Matt Oakes
Does this mean there's a bug in the browser which keeps GPS active
when it isn't needed?

Matt

On Fri, Jan 22, 2010 at 2:00 PM, Alain aarn...@gmail.com wrote:
 I have resolved this issue problem.

 When the browser starts and the google splash page opens up, it has a
 small checkbox to Enable location  (allow sites to request access to
 your location) if this is checked, then the gps is enabled. Go in
 browser menu, choose more and settings and unclick Enable location.
 This prevents the browser from starting gps.

 GPS will still work when accessing Maps.



 On Jan 21, 12:42 pm, Vinay Avasthi vi...@avasthi.com wrote:
 I have seen this problem on milestone. Once I run a browser session, the
 browser remains active and keeps the GPS active. If I manually kill
 browser using Task Manager application the GPS goes off.

 On 01/21/2010 08:00 PM, Alain wrote:

  I have intermittently the same problem on my Milestone/Droid. The GPS
  comes on on its own.
  I end up turning off the Use GPS setting to preven the battery from
  draining.

  On Jan 21, 2:42 am, Stringsterling.ud...@googlemail.com  wrote:
  On Jan 20, 9:21 pm, Richard Schillingrichard.rootwirel...@gmail.com
  wrote:

  I may be answering my own question here.  The power control widget had
  the GPS antenna selected to on.  When I turn off the GPS antenna in
  the power control widget, the antenna goes off.

  FYI, the power control widget is simply a shortcut to the Settings
  option for Enable GPS satellites. So this isn't doing anything
  different than in your original post.

  Unless this is an N1 bug (possible, I can't test), the likelihood is
  that you have a poorly-designed app running in the background which is
  consuming the GPS location all the time. It's impossible for us to say
  what app it might be without seeing your phone, though. You'll need to
  look through your installed apps yourself to try to find the culprit.

  String

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


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


Re: [android-developers] Max APK SIZE

2010-01-22 Thread Matt Oakes
No chance. I'm not sure what the limit is but apps are stored on the
phone itself so the biggest amount of storage it has for ALL apps is
around 512mb (on the N1). There's no way anyone will want something
over 200mb on their phone taking up their application storage.

Why not just have the videos load over the network?

Matt

On Fri, Jan 22, 2010 at 5:33 PM, mailbox.jku...@gmail.com
mailbox.jku...@gmail.com wrote:
 Hi,

         I would like to know the max apk size that i can use in the
 device as i have a 232 mb of videos and i want to use them in the
 application itself.What are the chances and any other option if
 possible.


 Please help me out as i need to release my app asap.

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


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


Re: [android-developers] Configure app to work horizontal and vertical?

2010-01-16 Thread Matt Oakes
Nope, you can support both.

When you define your layout in the xml files it will allow it to be
displayed in both portrait and landscape. You can also define special
layouts for landscape if you like.

Take a good look at the notepad tutorial in the developer docs and you
can see how it changes to landscape in the emulator by pressing
ctrl+F11.

Have fun :)

On Sat, Jan 16, 2010 at 9:59 PM, qmwestview qmwestv...@googlemail.com wrote:
 Hi,
 Is it possible to configure all layouts of an Android app to support
 BOTH landscape and portrait mode so that the app will work both when
 phone is held vertically and horizontally. From my brief reading, it
 seems not. Am I right?

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

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

Re: [android-developers] Re: Dotted line in 2D graphics API

2010-01-14 Thread Matt Oakes
Works perfectly. Thank you very much Lance :)

Matt

On Thu, Jan 14, 2010 at 1:10 AM, Lance Nanek lna...@gmail.com wrote:
 Never tried them before, but these might do it:
 http://developer.android.com/intl/fr/reference/android/graphics/DashPathEffect.html
 http://developer.android.com/intl/fr/reference/android/graphics/Paint.html#setPathEffect%28android.graphics.PathEffect%29

 On Jan 13, 4:21 pm, Matt Oakes m...@matto1990.com wrote:
 Hi,

 I'm looking for away to draw a dotted or dashed line using the android
 2d drawing API. So far I have te following code:

 Paint gridLines = new Paint();
 gridLines.setColor(getResources().getColor(R.color.grid_lines));
 canvas.drawLine(boardOffsetLeft, boardOffsetTop, boardOffsetLeft,
 boardOffsetTop);

 Is there something I can add to it to change the line to a dotted line
 or can I do it a completely different way?

 Thank in advance

 Matt

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

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

[android-developers] Dotted line in 2D graphics API

2010-01-13 Thread Matt Oakes
Hi,

I'm looking for away to draw a dotted or dashed line using the android
2d drawing API. So far I have te following code:

Paint gridLines = new Paint();
gridLines.setColor(getResources().getColor(R.color.grid_lines));
canvas.drawLine(boardOffsetLeft, boardOffsetTop, boardOffsetLeft,
boardOffsetTop);

Is there something I can add to it to change the line to a dotted line
or can I do it a completely different way?

Thank in advance

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

Re: [android-developers] Re: Enhancement to Emulator

2010-01-08 Thread Matt Oakes
I'll hold him still, you go for the head ;-)

On Thu, Jan 7, 2010 at 7:29 PM, Disconnect dc.disconn...@gmail.com wrote:
 I do have a can opener.. :P

 On Thu, Jan 7, 2010 at 2:25 PM, David Turner di...@android.com wrote:


 On Thu, Jan 7, 2010 at 11:12 AM, Disconnect dc.disconn...@gmail.com
 wrote:

 Dev phone 2 - dev phone 1 firmware is still hidden/removed.

 Also, for the planned for 2010 features, where can we see a list of
 such items?


 You can't, it's in my head :-)


 On Thu, Jan 7, 2010 at 1:58 PM, theSmith chris.smith...@gmail.com
 wrote:

 Noting what David said, you are better off using a development device
 like the google dev phone 1.

 -theSmith

 On Jan 7, 1:49 pm, David Turner di...@android.com wrote:
  On Thu, Jan 7, 2010 at 10:36 AM, Thisara Rupasinghe
  thisara...@gmail.comwrote:
 
   Hi all,
 
   Im trying to write an application using bluetooth. But using the
   android
   emulator, can i try that out. I mean is it emulated that
   feature(bluetooth).
   Or even the camera feature. And also if i would like to enhance the
   capabilities of this emulator can i contribute? Where can i find the
   source
   of that emulator?
 
  These features are not emulated and are planned for 2010, if not
  preempted
  by more important stuff.
  You can have a look at the emulator sources under external/qemu in the
  Android repository.
 
   I would like to use computers web cam and the bluetooth devices as
   emulators, if there are those features in the running machine. Is
   that
   pissble or can u gv any comments on this to my self.
 
  Note that being able to do that will require at the very least changes
  to
  the kernel configuration used for the emulator, plus some changes to
  the
  system itself.
 
   Thanks
 
   --
   Thanks  Regards,
   Thisara.
 
   --
   You received this message because you are subscribed to the Google
   Groups
   android-platform group.
   To post to this group, send email to
   android-platf...@googlegroups.com.
   To unsubscribe from this group, send email to
  
   android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/android-platform?hl=en.

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


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


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


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

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