[android-developers] Alternate Emulator Keyboards?

2010-02-10 Thread Chris McCurdy
I'm trying to diagnose an issue with the hardware keyboard for the
Motorola CLIQ (among other phones with a 3-row hardware keyboard), but
seeing as my device has a 4-row keyboard, it's impossible to reproduce
the problem users are having. Are there any alternate keyboard layouts
for the emulator out there, or will I have to roll my own? I've looked
at the layout file for the skins, and it seems like a lot of work, so
I wanted to make sure I'm not doing a lot of work I don't need to do
first. Thanks.

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


[android-developers] Re: Alternate Emulator Keyboards?

2010-02-10 Thread Chris McCurdy
A lot of users are complaining about the number entry fields, and
having to press Alt+Key to enter a number. The fields are set to
InputType.TYPE_CLASS_PHONE when no keyboard is exposed, and
InputType.TYPE_CLASS_NUMBER|InputType.TYPE_NUMBER_FLAG_DECIMAL when a
keyboard is exposed. For some reason, when the keyboard is exposed, it
still attempts to output letters when the Alt key isn't pressed
beforehand, according to the users.

On Feb 10, 3:58 pm, Mark Murphy mmur...@commonsware.com wrote:
  I'm trying to diagnose an issue with the hardware keyboard for the
  Motorola CLIQ (among other phones with a 3-row hardware keyboard), but
  seeing as my device has a 4-row keyboard, it's impossible to reproduce
  the problem users are having.

 What sort of problem are you having that is dependent on the number of
 rows in the keyboard?

 --
 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] Comma inputted when pressing period key?

2010-01-13 Thread Chris McCurdy
I've had a few users report issues on the Motorola CLIQ and Samsung
Moment of when they press the period key on their hardware keyboard,
nothing happens on screen. This is somewhat expected, since I'm
restricting the input into the field to be a valid currency value. But
for some reason, their phones are sending a comma (,) when they press
the period (.) key. I've never seen this issue on my G1, and it seems
to work fine on all software keyboards. Here is my class I use to
restrict the input: http://pastebin.org/75509

I was wondering if anybody had heard of any problems like this, and if
so, what was the solution? I suppose I could remove the class to
restrict input, but it seems like it would still send a comma and
create an invalid number.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Comma inputted when pressing period key?

2010-01-13 Thread Chris McCurdy
I thought this was an issue at first, but all of the reported problems
are coming from users with the US English locale with a period as the
monetary separator unit.

On Jan 13, 11:24 am, niko20 nikolatesl...@yahoo.com wrote:
 Hi,

 This sounds like a language input problem. Some languages use the
 comma for numeric values instead of the period. On those languages a
 period will result in a comma being input. I ran into this same issue
 in my app a long long time ago. Just parse the data they entered and
 replace any commas with periods (if you are expecting a number value
 that is).

 -niko

 On Jan 13, 8:16 am, Chris McCurdy christopher.mccu...@gmail.com
 wrote:

  I've had a few users report issues on the Motorola CLIQ and Samsung
  Moment of when they press the period key on their hardware keyboard,
  nothing happens on screen. This is somewhat expected, since I'm
  restricting the input into the field to be a valid currency value. But
  for some reason, their phones are sending a comma (,) when they press
  the period (.) key. I've never seen this issue on my G1, and it seems
  to work fine on all software keyboards. Here is my class I use to
  restrict the input:http://pastebin.org/75509

  I was wondering if anybody had heard of any problems like this, and if
  so, what was the solution? I suppose I could remove the class to
  restrict input, but it seems like it would still send a comma and
  create an invalid number.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Apps referencing each other's classes?

2009-08-18 Thread Chris McCurdy

I'm trying to develop a new app which enhances one of my previous
apps, but still have them be separate packages. The first is required,
and the second is optional. And I want the first to be able to
reference classes from the second. Is there any way to actually do
this? Would the second app have to be distributed as a library instead
of an application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AutoCompleteTextView in Eclipse layout editor?

2009-05-28 Thread Chris McCurdy

I'm porting an app of mine to work better with API 1.5, and I'm having
problems with the layout files where I'm using an AutoCompleteTextView
(and, naturally, MultiAutoCompleteTextView). Whenever I have them
present in a layout, the graphical representation of the layout
disappears, and NullPointerException: null replaces it.

Is there any way I can view a widget such as this in the Eclipse
editor? It definitely worked in the 1.1 SDK, otherwise I wouldn't have
used 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] SDK 1.5 Build Error

2009-04-15 Thread Chris McCurdy

I'm attempting to test one of my applications in the SDK1.5
environment, but when it tries to build, I get this error:

[2009-04-15 12:33:13 - Battle Bricks]
trouble processing java/awt/font/NumericShaper.class:
[2009-04-15 12:33:13 - Battle Bricks]
Attempt to include a core VM class in something other than a core
library.
It is likely that you have attempted to include the core library from
a desktop
virtual machine into an application, which will most assuredly not
work. If
you really intend to build a core library -- which is only appropriate
as
part of creating a full virtual machine binary, as opposed to
compiling an
application -- then use the --core-library option to suppress this
error
message. If you go ahead and use --core-library but are in fact
building
an application, then please be aware that your build will still fail
at some
point; you will simply be denied the pleasure of reading this helpful
error
message.

But I've tested my other application in the environment, and it worked
fine. I've looked through my imports, and none of my files import
NumericShaper, so I'm confused as to why it seems to think that it is
being referenced.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Transparent textures in OpenGL

2008-12-29 Thread Chris McCurdy

I'm currently attempting to make a game using OpenGL and all is well
in the emulator. I'm using PNGs with transparencies to create the
textures, and in the emulator, they show up as expected. But when I
run it on the G1, all transparent areas show up as black.

I've seen some reports that I need to change the texture from ARGB to
RGBA, but that made my image really small and gave me 4 of the same
image (like it separated each color of the texture into its own
image). I've also seen a suggestion to disable GL_LIGHTING, but that
didn't help either. Is there anything I can do to actually get
transparencies to show up as transparent on the G1?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Clickable ListView item with CheckBox

2008-11-04 Thread Chris McCurdy

I have a ListView with a complex widget for displaying list items. It
has a CheckBox and several TextViews. I want to be able to handle
clicks to the CheckBox and be able to do the normal things on the list
item when anywhere that's not the CheckBox is clicked (e.g. context
menus, onListItemClick(), etc.). The problem is that when the CheckBox
is visible, it removes the ability for any other part of the item to
receive clicks, even if the CheckBox itself isn't receiving the click
events. Is there any way to prevent it from stealing the click
events from the rest of the items in the widget?


Here is the XML layout of the widget for every list item I'm using:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal android:layout_gravity=top
android:gravity=top android:id=@+id/TransactionRowPortrait

TextView android:layout_width=wrap_content
android:layout_height=wrap_content android:visibility=gone
android:id=@+id/IdText/TextViewCheckBox
android:layout_width=wrap_content
android:layout_height=wrap_content android:id=@+id/
PostedCheckBox/CheckBoxLinearLayout android:id=@+id/
LinearLayout01 android:layout_width=wrap_content
android:layout_height=fill_parent android:layout_gravity=left|
center_vertical android:layout_weight=10
android:orientation=verticalTextView android:id=@+id/PartyText
android:ellipsize=end android:gravity=top|left
android:text=Wilmington Trust Company android:layout_gravity=left|
center_vertical android:layout_height=wrap_content
android:layout_width=fill_parent android:textSize=18px
android:lines=1 android:maxLines=1/TextViewLinearLayout
android:id=@+id/LinearLayout02 android:layout_height=wrap_content
android:layout_width=fill_parentTextView
android:layout_height=wrap_content android:text=2008-10-01
android:id=@+id/DateText android:layout_gravity=left|
center_vertical android:layout_width=wrap_content
android:layout_weight=2/TextViewTextView
android:layout_width=wrap_content android:text=215.00
android:gravity=right android:id=@+id/AmountText
android:layout_height=fill_parent android:paddingRight=7px
android:singleLine=false android:maxLines=1 android:lines=1
android:layout_weight=1/TextView/LinearLayout


TextView android:layout_width=wrap_content
android:layout_height=wrap_content android:layout_weight=2
android:id=@+id/BalanceText android:text=1000.00
android:gravity=right android:visibility=gone/TextView



/LinearLayout
/LinearLayout

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



[android-developers] Re: Clickable ListView item with CheckBox

2008-11-04 Thread Chris McCurdy

I was looking at that code, and it doesn't look like it would allow me
to select specific items in the ListView aside from setting the
ratings per row. I'll give it a try later anyway.

I actually tried to set a custom OnClickListener for the view that is
returned from my custom ListAdapter, and it showed me that the
CheckBox isn't actually stealing the clicks. The rest of the
LinearLayout still recognizes that there is a click event, but the
ListView doesn't run the onListItemClicked method. And if I call
setSelected on the list item in the onClick method of the listener,
immediately afterward, the ListActivity returns what looks like an
uninitialized value for getSelectedItemId (-9223372036854775808 is the
precise value it returns for every item I click on).

On Nov 4, 5:55 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 Chris McCurdy wrote:
  I have a ListView with a complex widget for displaying list items. It
  has a CheckBox and several TextViews. I want to be able to handle
  clicks to the CheckBox and be able to do the normal things on the list
  item when anywhere that's not the CheckBox is clicked (e.g. context
  menus, onListItemClick(), etc.). The problem is that when the CheckBox
  is visible, it removes the ability for any other part of the item to
  receive clicks, even if the CheckBox itself isn't receiving the click
  events. Is there any way to prevent it from stealing the click
  events from the rest of the items in the widget?

 You can take a peek at the last tutorial in my Fancy ListViews series
 over on AndroidGuys:

 http://androidguys.com/?p=659

 It uses a RatingBar instead of a CheckBox, since Android 1.0 supports
 ListViews with checkable items now. It's also written for the 0.9 SDK
 and may require minor changes to work under 1.0r1. And forgive the
 formatting -- the AndroidGuys site changed stylesheets when it moved to
 a new hosting provider and my older posts are somewhat fouled up.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.4 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---