NotepadV3 Issues

by Olly » Fri, 10 Sep 2010 00:22:32 GMT

Sponsored Links

I am only a beginner to Android, but I have noticed a number of things
that seem a little strange in the third notepad tutorial:

- The tutorial explicitly states that you need to call saveState from
BOTH onSaveInstanceState and onPause. Is this really necessary? It
seems to me from reading the process life-cycle documentation that
onPause will always be called before the Activity is killed,
regardless of whether it is done so by the system or the user. If this
is the case, surely just calling saveState from onPause is sufficient?
- Calling populateFields() in both onResume and onCreate is pointless,
since onResume is always called after onCreate anyway. Hence if I
understand correctly, the call in onCreate serves no useful purpose
and can be safely removed.

Could someone please either confirm these points, or let me know what
I have misunderstood.



Other Threads

1. .getSelectedItemId() always selecting 0 when using the touch screen

This is perfectly normal. Just use the position parameter given to you
in onListItemClick().

Romain Guy


2. Re-use Layouts


I have finally finished my app but I am running into a last minute
"detail". I built the app using the layout-port-480X320 for the screen
size. The app does not require input from the keyboard so "landscape"
is not a valid layout. But, if the user opens the keyoboard Android
searches for a landscape layout, finding none it then throws a
"Resource Not Found Error"

How do I force the view to always be layout-port-480X320?

Thanks for the help,



3. Setting Proxy on a Real Device

4. positron 1.0 (an acceptance testing tool) and android-ant

5. MediaPlayer looping bug?

6. Playing sounds multiple times using MediaPlayer

7. Comunication Server->Phone: SMS directed to an application (0.9 SDK)