[android-developers] Re: Duplicated text when using .append in widgets

2009-05-02 Thread Alberto M. Scattolo

Hi guys!
It seems to be a problem with an unregistered broadcast receiver
The idea is that I send and sms and I register a broadcast receiver to
know if the sms has been sent.
When can I unregister the broadcast receiver?

Thanks a lot to everybody!
--

A
--~--~-~--~~~---~--~~
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: Duplicated text when using .append in widgets

2009-05-02 Thread Mark Murphy

Alberto M. Scattolo wrote:
 Hi guys!
 It seems to be a problem with an unregistered broadcast receiver
 The idea is that I send and sms and I register a broadcast receiver to
 know if the sms has been sent.
 When can I unregister the broadcast receiver?

If you registered it via registerReceiver(), call unregisterReceiver()
whenever you are done with it.

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

_The Busy Coder's Guide to Android Development_ Version 2.0 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: Duplicated text when using .append in widgets

2009-05-02 Thread Jeff Sharkey

Ooh, this sounds like such a perfect problem to solve with a ListView,
android:stackFromBottom, and a ResourceCursorAdapter.  :)

j

On Sat, May 2, 2009 at 2:40 AM, Alberto M. Scattolo
thedarkfrees...@gmail.com wrote:

 Good morning everybody!

 I'm pretty new to Android so I'm facing some problems :)
 I'm using a TextView widget to show a log, just some text.
 The log content is stored on an SQLite database that my app creates
 and when a new line is added to the databse I use textview.append(my
 last line) to add it. The problems is that when I add a line, it also
 adds a copy of the text that was already displayed. Quite strange!
 An example:
 first line is One, if i add a new line with Two, it prints: One
 \nOne\nTwo. If i add Three it prints One\nOne\nTwo\nOne\nOne\nTwo
 \nThree.
 Can anybody help me to solve this?

 Huge thanks in advance!
 Bests,
 --

 A
 




-- 
Jeff Sharkey
jshar...@google.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
-~--~~~~--~~--~--~---