Embed Contacts activity

by Bin Chen » Mon, 13 Apr 2009 12:57:31 GMT


Sponsored Links
 I seached this forum and someone said for the security reason, we can
only embed the activity we own, but I am wondering how the phone app
embeds the activity from contacts? Is there any tricks for that?

Thanks.
Bin
--~--~---------~--~----~------------~-------~--~----~



Embed Contacts activity

by Dianne Hackborn » Tue, 14 Apr 2009 03:20:38 GMT


 That is not the phone app, that is the contacts app, which implements the
entire UI.  The main thing the phone app implements in the in-call screen.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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


Sponsored Links


Other Threads

1. How to catch a "Done" key press from the soft keyboard

Look here for an example.  I'm guessing by the "Done" key you mean
KEYCODE_DPAD_CENTER.

http://developer.android.com/reference/android/app/Activity.html

Ken




-- 

2. Android 2.2, SDK, Emulator and 鈥淏ad address family鈥?on Socket Connect

I'm also seeing the same problem on the 2.2 emulator, whereas it
worked fine on the 2.1 emulator and device. I'm using the DNSJava
library, which apparently does something similar, since the exception
also occurs during Selector.open. Swapping out the library for
something different is unfortunately not an option for me. Should this
be reported as a bug?


W/System.err(  436): java.net.SocketException: Bad address family
W/System.err(  436):    at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
Method)
W/System.err(  436):    at
org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:
115)
W/System.err(  436):    at
org.apache.harmony.nio.internal.SocketChannelImpl.connect(SocketChannelImpl.java:
272)
W/System.err(  436):    at org.apache.harmony.nio.internal.PipeImpl
$SinkChannelImpl.finishConnect(PipeImpl.java:164)
W/System.err(  436):    at
org.apache.harmony.nio.internal.PipeImpl.<init>(PipeImpl.java:48)
W/System.err(  436):    at
org.apache.harmony.nio.internal.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:
51)
W/System.err(  436):    at
org.apache.harmony.nio.internal.SelectorImpl.<init>(SelectorImpl.java:
141)
W/System.err(  436):    at
org.apache.harmony.nio.internal.SelectorProviderImpl.openSelector(SelectorProviderImpl.java:
58)
W/System.err(  436):    at
java.nio.channels.Selector.open(Selector.java:48)
W/System.err(  436):    at org.xbill.DNS.Client.<init>(Client.java:21)
W/System.err(  436):    at
org.xbill.DNS.UDPClient.<init>(UDPClient.java:23)
W/System.err(  436):    at
org.xbill.DNS.UDPClient.sendrecv(UDPClient.java:111)
W/System.err(  436):    at
org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:252)
W/System.err(  436):    at org.xbill.DNS.ExtendedResolver
$Resolution.start(ExtendedResolver.java:95)
W/System.err(  436):    at
org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:358)
W/System.err(  436):    at org.xbill.DNS.Lookup.lookup(Lookup.java:
449)
W/System.err(  436):    at org.xbill.DNS.Lookup.resolve(Lookup.java:
501)
W/System.err(  436):    at org.xbill.DNS.Lookup.run(Lookup.java:515)

-- 

3. PendingIntent always creates new Activity instance?

4. XML Parser Android

5. Exchange activesync on HTC desire

6. Changing entry activity causes app only to open from downloads page

7. daylight savings issue