• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps HTC Tattoo Problems

fouldsc

Lurker
Aug 5, 2010
6
0
Hi,
I've got a problem with my app on HTC Tattoo
Basically on a input screenI use onTextChanged() on EditText elements to kick off a calculation that updates the output on the screen.

I have had a bug report from a user of a HTC Tattoo that the output does not get updated, which makes me thing the onTextChanged() isn't working for some reason ?!?!

Here is an example of one of my EditText elements
<EditText
android:layout_toRightOf="@+id/btn_id_1"
android:layout_alignTop="@+id/btn_id_1"
android:nextFocusUp="@+id/input_calc_2"
android:nextFocusDown="@+id/input_calc_2"
android:nextFocusLeft="@+id/input_calc_2"
android:nextFocusRight="@+id/input_calc_2"
android:text=""
android:hint="hint text"
android:id="@+id/input_calc_1"
android:layout_width="160sp"
android:layout_centerHorizontal="false"
android:inputType="phone"
android:maxLength="10"
android:textSize="12sp"
android:layout_height="35sp">
</EditText>

With
(EditText) edText = (EditText)findViewById(R.id.input_calc_1);
edText .addTextChangedListener(mUpdateListener);

private TextWatcher mUpdateListener= new TextWatcher()
{

public void afterTextChanged (Editable s)
{
// Log.d("seachScreen", "afterTextChanged");
}

public void beforeTextChanged (CharSequence s, int start, int count, int after)
{
// Log.d("seachScreen", "beforeTextChanged");
}

public void onTextChanged (CharSequence s, int start, int before, int count)
{
calcNewValue();
}
};



Can anyone spot anything that would make it not work on a Tattoo ?
What is the best way of emulating it ? , I have run the emulator on 1.6 Android and 320x240px and it works.

I am stumped on this one.
 
They are running 1.6

For info
I DO test on 1.6,2.0,2.1 & 2.2 and at four screen resolutions and both in portrait and landscape modes ;) ;)
I am not new at this software game and make a decent living from it, just moving into Android.

They say it's 1.6 , it works on emulator 1.6 and on other 1.6 devices such as HTC Magic. Maybe it's 1.6 and HTC Sense combo as Magic nor emulator has it - but device does.

I guess I need to find a tester with a 1.6 Tattoo to throw some experimental builds at.
Only other difference is they are dutch, I tried in that language on emulator and it still works. :rolleyes:
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones