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. How to identify the current InputMethod language?

How to identify the current InputMethod language?
--~--~---------~--~----~------------~-------~--~----~

2. Slow to load remote image

I use this code to load an image from web :

     public Bitmap getRemoteImage(final URL aURL) {
          try {
               final URLConnection conn = aURL.openConnection();
               conn.connect();
               final BufferedInputStream bis = new BufferedInputStream
(conn.getInputStream());
               final Bitmap bm = BitmapFactory.decodeStream(bis);
               bis.close();
               return bm;
          } catch (IOException e) {
               Log.d("DEBUGTAG", "Oh noooz an error...");
          }
          return null;
     }

A small jpg file was taking on average 6s to load when I could see it
would come up in 1s from my Android browser even after all caches
deleted.

Is there some proxy setting etc. I am missing which is causing this
request to be slow?
--~--~---------~--~----~------------~-------~--~----~

3. EditText size and virtual keyboard

4. raw pcm

5. Cant create tabbed activity.

6. when I click the listview item,and the hint light can focus

7. Contacts GroupU v1.18 is available - easily manage your contacts