Question about the Dialer Gui

by regui » Tue, 14 Apr 2009 13:43:54 GMT


Sponsored Links
 Hello everyone,

I am interested in knowing how to create a multi tab gui similar to
the dialer gui. By multi tab i mean the tabs for Dialer, call log,
contacts and favorites.

After searching all over I cannot figure out how to achieve this multi
tab setup. Could someone help me with this?

Thanks
--~--~---------~--~----~------------~-------~--~----~



Question about the Dialer Gui

by Jeff Hamilton » Tue, 14 Apr 2009 17:22:32 GMT


 To create an activity with tabs you want to use TabActivity
( http://d.android.com/reference/android/app/TabActivity.html ). The
dialer code that does this is available at
 http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git ;a=blob;f=src/com/android/contacts/DialtactsActivity.java;h=73d702b80c21d4e7a3af08a3fa025e15e4230b01;hb=HEAD.

-Jeff




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Making a button disappear and appear based on focus

By cursor, do you me drag your finger? Think about it, cursor is just for
the emulation.






-- 
~ Why is the man who invests all your money called a broker?

Why is the time of day with the slowest traffic called rush hour?

Why are they called apartments when they are all stuck together?

If con is the opposite of pro, is Congress the opposite of progress?

If flying is so safe, why is the airport called 'terminal'?

--~--~---------~--~----~------------~-------~--~----~

2. Notification and PendingIntent

I'm trying to make a notification so when I click it, it jumps to a
specific view inside my app. The problem I'm having is when I try to
retrieve 'extra' data, it all shows up as null.
I'm constructing the notification like this (from inside a Handler):

Notification notif = new Notification(R.drawable.icon, "ticker",
System.currentTimeMillis());

Intent hilight = new Intent(AndroidIRC.this, AndroidIRC.class);
hilight.putExtra("net.androidirc.androidirc.window", window);
hilight.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

PendingIntent contentIntent = PendingIntent.getActivity
(AndroidIRC.this, 0,
                                  hilight, 0);
notif.flags = Notification.FLAG_AUTO_CANCEL;
notif.setLatestEventInfo(AndroidIRC.this, "contentTitle",
"contentText", contentIntent);
                                mNm.notify(AndroidIRC.this.mRequestCode, notif);

The notification shows up fine and when I select it, onPause is called
followed by onResume. I used the de{*filter*} to inspect the Intent gotten
using getIntent() and every time the data is null. Strangely enough,
the logcat output shows this:
starting activity: {...... (has extras) }
but the extras don't appear to exist.
--~--~---------~--~----~------------~-------~--~----~

3. Making a button disappear and appear based on focus

4. Event to know about drag. Not dragging of object

5. Google market policy spells doom for future app publishers?

6. Trackball Event

7. Problem with focus