Some questions about intents and Notepad example

by david » Fri, 09 May 2008 14:19:57 GMT


Sponsored Links
 Since Notepad example is the first classic sample provided by Google,
I think it is worth to study it in close detail.

1. Is it possible for an intent receiver receiving multiple eligible
intents at the same time? If so, what are the priorities associated
with those intents?
Is it possible for an activity receiving multiple eligible intents at
the same time? If so, what are the priorities associated with those
intents?

2. Refer to NotePad/NoteEditor.java/onCreateOptionsMenu() comments. Do
we really need to query system for all activities that implement
ALTERNATIVE_ACTION on the data, and add a menu item for each one that
is found?

3. Where in the code showing the title-editor activity pop-ups a
floated window?

4. In com.google.provider/NotePad.java:

    public static final class Notes implements BaseColumns {
        /**
         * The content:// style URL for this table
         */
        public static final Uri CONTENT_URI
                = Uri.parse("content://com.google.provider.NotePad/
notes");

   where is the "notes" used? What is the purpose of this NotePad.java
file?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Bluetooth on 1.6

Hi,

I'm building an app that uses bluetooth. However my phone has the 1.6
sdk and the bluetooth libraries are available only from 2.0 sdk. Can
someone please tell me how to update the phone to 2.0 or use the
library on my phone

Avanish

--

2. Eclipse can't seem to locate R.java

Hello,

I'm not sure if it's me or eclipse that has a problem. Probably me
with eclipse!
With three different projects where I have copy and pasted the code
from the sample apps as an example I almost always get a problem to
locate setContentView(R.layout.main); for instance and it says that it
can not be resolved.

Any suggestions on what I can do to solve this?

Andr

--

3. Native Apps for Tasks, Reader, And Books?

4. how to get android 1.6 source

5. Is there any event broadcasted when CPU is about to go to sleep mode on Android target

6. Refresh ImageView after setting Image

7. update and delete contact / contact details