Hello,
I started a project where I want to display the dialer, contacts, last
calls, etc. inside my own app, but I want it to look like the original
dialtacts app. And I don't want to build those views on my own and try
to make it look like Eclair dialtacts app for exampe, because on other
Android version this dailtacts app may look different. I would like to
have the tabview of the original dialtacts app installed on the
respective devices and add some more tabs specifically for my app like
"News" or "Settings" for example. Because it's not possible (at leat I
think so) to "hook" my own tabs inside the dailtacts app I want to put
the dialtacts tabs inside my own app. Here is what I came up with. But
at least the package/class names and ids are wrong or maybe I'm
completly wrong with this:

Intent dialerIntent = new
Intent("com.android.phone.action.TOUCH_DIALER");
dialerIntent.setClassName("com.android.contacts",
"com.android.contacts.TwelveKeyDialer");
TabSpec dialerSpec = getTabHost().newTabSpec("dialer");
//int dialerIcon = getResources().getIdentifier("ic_tab_dialer",
"drawable", "com.android.contacts");
//int dialerText = getResources().getIdentifier("dialerIconLabel",
"string", "com.android.contacts");
//dialerSpec.setIndicator(getResources().getString(dialerText),
getResources().getDrawable(dialerIcon));
dialerSpec.setIndicator("Phone");
dialerSpec.setContent(dialerIntent);
getTabHost().addTab(dialerSpec);

Can someone give me a hint on this one? Is actually possible to
include other application's views inside my own app?

Thanks in advance
Peacemaker

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to