Notepad tutorial improvements

by Macarse » Wed, 15 Jul 2009 00:26:49 GMT


Sponsored Links
 Hi,
I've been doing the notepad tutorial @
 http://developer.android.com/guide/tutorials/notepad/index.html 

1)
I've added a char counter on top of the body doing this:
note_edit.xml =>  http://pastebin.com/f5fda29fe 
NoteEdit.java =>  http://pastebin.com/f4495e573 

Questions with this:
- Are there any adapters like swing in android. I just use one method
from TextWatcher and need to override all of them.
- When testing my code mChars.setTextColor(Color.WHITE) on line 92
turns my text bold. Other colors don't do this. Bug?

2)
If I add notes without title, then I can't select them from the list
to delete them.
Which would be the best way to fix this?

Thanks for reading!

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Deleting Incoming SMS???

I have an SMSReceiver that I built to intercept a particular type of
SMS that would run a service.  That is all working great, however, I
would like for this SMS to not show up in the user's inbox.  So
ideally i would like to delete the SMS on the time of Interception.  I
have gone through a ton of threads and having seen anyone accomplish
this yet.

Am I missing something or is this even possible?  I would think there
would be some _id on the incoming SMS that i could use to run the
delete against the SMS store.

I am looking for any solution, and I hope someone out there has
accomplished this.

HELP!!!!!

--~--~---------~--~----~------------~-------~--~----~

2. Can we charge some externals stuffs for a paid Android Market game

Hi all,

I have a question about paid applications from AndroidMarket.
I developp a multiplayer game witch interact with a Web site

Can I sell on Android Market an application, and then sell from the
web site (not by the android market) some downloadable content or some
extendable rights ?

Example :
A RTS game on android market that allow you to obtain 500unit/days
(normal functionning)
And then on the webSite or from the Phone you charge to obtain
+250unit/days

The game is fully functionnal but you can pay to obtain more turn, or
more data food, or more etc ... as all web online game.

Thanks by advance,

Jok

--~--~---------~--~----~------------~-------~--~----~

3. How to get the currently foreground activity class name?

4. How to play Video files from MediaStore

5. who can tell me how to achieve this function?! thx!

6. Where is the source code for "Pictures" app

7. Please help! Having problem with wave locked service. it still going sleeping.