How to create Custom option menu class

by bubu » Tue, 25 May 2010 01:59:55 GMT

Sponsored Links
 I want to know how to create custom menu class because using the built
in menu Framework provided by android i am unable to align the  option
menu in a single line containing 6 items.Option menu class by default
provides 6 menu items that too comes in 3x2 format.How to override the
class so that i can display 6X1 format.Any help will be greatly


Other Threads

1. Exception on database query - table is empty / orderBy is not null

I am getting following exception during a database query wenn the
table is empty and orderBy is not null (either modified ASC or
modified DESC).
Is something is wrong hier?
logcat output
   android.database.sqlite.SQLiteException: no such column:
modified: ,
   while compiling: SELECT _id, name FROM client ORDER BY modified ASC

this code causes exception:

        SQLiteDatabase db = mOpenHelper.getReadableDatabase();
        Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, orderBy);

this code works:
        SQLiteDatabase db = mOpenHelper.getWritableDatabase();
        Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, null);


2. Discovering Views

It is my understanding that tasks like selecting a contact or an image
on the phone is best implemented by asking the system to provide a
view to perform the action. I tried the example in the documentation:

                 new Intent(Intent.ACTION_PICK,
                 new Uri("content://contacts")),  //actually using

but I get the following exception:

08-31 17:42:59.752: ERROR/AndroidRuntime(190):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.PICK data=content://contacts }

I am calling the startActivityForResult method from the onClick()
method of a button listener.

I am assuming that the emulator has some sort of view installed for
contacts (since it is available from the main view). So, specifically,
what is the correct URI to select a contact? In general, is there a
list someplace of expected views and how can I query  the system for
available views.



3. LaTex on ANDROID

4. Where to start with this...

5. Is MapView without roads possible?

6. push functionality for Android?

7. Setting android compiler arguments on eclipse plugin