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. Deciding which method to call when intent is received


I am calling a method (say 'action method') of a service from
activity. In that method I am creating a thread which starts some
background process. When that process is complete, an intent (say
'resultIntent') should be sent to activity. Now I want to make sure
that when that intent is received by activity, a specific method (say
'onResultIntentReceived')should handle that, as I can have more than
one methods ('onResultIntentReceived1' and 'onResultIntentReceived2')
to handle that intent depending upon the situation at the time of
calling the service's method. One solution can be somehow registering
the intent handling method with service at the time of calling
service's 'action method'.

Is it possible to send an intent so that a specific action is taken at
receiver side without broadcasting the intent?
Is this correct method?
How can I do that?
Is there any other solution?

Thanks a lot,


2. Serious android app problem in Canada

Hey Candroid developers:

Now I hope I'm wrong but it appears as an Android developer in Canada
I cannot sell my apps through the |Market, nor can a Canadian customer
purchase my paid apps.

Are these dire concerns valid?

Maybe somebody from the Google mothership could clarify this important
matter as soon as possible.

The Android Market accepted my developer fee of $25 no problem.  And I
don't recall any restrictions mentioned for Canadian developers or for
paid apps in Canada.

I worry that  hundreds of hours of my work may have been wasted.

Like most Canadian Android developers who share these concerns, I am
considering putting my Android development on hold immediately and
perhaps permanently, and porting my apps to iPhone and/or Pre.

Any other Canucks feel the same way?

3. All For Porters --Help me port Dark Nova to Andriod

4. How can scroll GridView's item by other events(not touch event)

5. android --the process acore include launcher and contacts,why?

6. Error inflating class

7. launch the keyguard screen