[android-developers] How to override ContactsProvider like GoogleContactsProvider

2009-08-21 Thread Kenny Yu

To develop an APK, I want to modify or expand ContactsProvider
functionality. GoogleContactsProvider is my role model. But I can't
put my code to Android repository, like GoogleContactsProvider does.
Mine is a 3rd party APK to develop.

http://groups.google.com/group/android-developers/browse_thread/thread/e149bc0212b52f8a/83f2f6070b57c69f#83f2f6070b57c69f
was the idea.

Just curious how to make a customized provider for Android
ContactsProvider.

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



[android-developers] Understand Broadcast and Intent with Dalvik process

2009-03-17 Thread Kenny Yu

Does anyone know if sendBroadcast(intentA) will bring intents to all
Dalvik processes?

For example, process android.process.acore behaves sendBroadcast(new
intentA). Will the intentA be received in com.android.camera? We think
android.process.acore and com.android.camera are zygoted to two Dalvik
VMs (Linux processes).

Same question to sendIntent(intentB). In terms of docs, sendIntent( )
can address certain class to receive the intent. Is this behavior
across processes?

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



[android-developers] How to know SMS and Contacts update?

2009-03-14 Thread Kenny Yu

Where SMS/Contacts are added/updated/deleted, how can I write an App-
Service to know the contents change? The changes are possibly caused
by App activities or SYNC activity, or any else.

Any content observer or intents I should look into? Welcome your
design suggestion.

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



[android-developers] How to intercept SMS without loading SMS to UI?

2009-03-11 Thread Kenny Yu

Requirement:
1. The program must be on top of SDK only, no hacking!
2. When a TEXT SMS is arriving to Android mobile, the program must
intercept the TEXT SMS to analyze the SMS content (access the whole
SMS data)
3. In terms of the SMS content, the program determines if the SMS is
erased as it doesn't exist. No notification, no update to Inbox UI.
4. Power cycle the Android phone, the SMS is not seen at Notification
or message Inbox

Can any one help with the solution? Or which API shall we look into?

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



[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-04 Thread Kenny Yu

Simply put the cmd to Java function:
system(adb uninstall apt_name);
I mean your code should invoke the commands exactly as 'adb' does.

Kenny

On Jan 3, 8:52 am, Dr. Tingrong Lu lutingr...@hotmail.com wrote:
 Hi,

 How to write code to uninstall apk from device/emulator? Could anyone drop a 
 sample code? Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to download Android source code distribution in sync with Android SDK?

2008-12-30 Thread Kenny Yu



On Dec 30, 4:05 am, Wah mobic...@gmail.com wrote:
 I followed the instruction here to download Android SDK android-sdk-
 linux_x86-1.0_r2http://code.google.com/android/download.html

 I also followed the instruction here to download the latest source
 code release:http://source.android.com/download

 However, I found the two versions to be somewhat different. It seems
 the source code release has some added exceptions from throws clause
 in some cases. When I step through the debugger the line numbers don't
 match very well either.

 Two questions:

 Is there a way to retrieve the source code release to be in sync with
 the Sdk release?


 Is there a way to generate the SDK release out of the source code
 release?

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



[android-developers] Re: jdb attach error

2008-12-30 Thread Kenny Yu

It seems certain JAR file was not seen in your classpath? Eclipse+ADT
does this very well. Did you try it?

Kenny

On Dec 29, 1:40 pm, firstbread xue...@leadcoretech.com wrote:
 Hi all
 I got a problem when I try to debug Android with jdb. The following is
 my steps

 1、use am -e debug true ,to start a activity
 2、useadb forward tcp:8000 jdwp:472,to bind jdwp to tcp:8000
 3、use  jdb -attach localhost:8000 ,to attach jdb to tcp:8000 Then  I
 got error messages:
 java.io.IOException: shmemBase_attach failed: ??¨
 at com.sun.tools.jdi.SharedMemoryTransportService.attach0
 (Native Metho

 at com.sun.tools.jdi.SharedMemoryTransportService.attach
 (SharedMemoryT
 nsportService.java:90)
 at com.sun.tools.jdi.GenericAttachingConnector.attach
 (GenericAttaching
 nnector.java:98)
 at com.sun.tools.jdi.SharedMemoryAttachingConnector.attach
 (SharedMemor
 ttachingConnector.java:45)
 at com.sun.tools.example.debug.tty.VMConnection.attachTarget
 (VMConnect
 n.java:358)
 at com.sun.tools.example.debug.tty.VMConnection.open
 (VMConnection.java
 68)
 at com.sun.tools.example.debug.tty.Env.init(Env.java:64)
 at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010)

 致命错误:(fatal error:)
 无法连接到目标 VM。(can not connect to target vm)

 What could I do now? thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to download Android source code distribution in sync with Android SDK?

2008-12-30 Thread Kenny Yu



On Dec 30, 4:05 am, Wah mobic...@gmail.com wrote:
 I followed the instruction here to download Android SDK android-sdk-
 linux_x86-1.0_r2http://code.google.com/android/download.html

 I also followed the instruction here to download the latest source
 code release:http://source.android.com/download

 However, I found the two versions to be somewhat different. It seems
 the source code release has some added exceptions from throws clause
 in some cases. When I step through the debugger the line numbers don't
 match very well either.

 Two questions:

 Is there a way to retrieve the source code release to be in sync with
 the Sdk release?
under project/development (platform/development.git), you should get
the sources.

 Is there a way to generate the SDK release out of the source code
 release?
try make sdk

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



[android-developers] Re: Where could I get an ADT 0.9.0?

2008-12-27 Thread Kenny Yu

I built cupcake, which has been merged to master HEAD. The ADT is
quite OK. Can you share more info?

Kenny

On Dec 26, 11:35 am, yukinoba ckmagic...@gmail.com wrote:
 To dear all,

 Does anyone have the cupcake? The SDK in there is not applicable to
 the ADT plugin (Android Development Tools plugin) of Eclipse any more,
 and Eclipse throws a message told me I should get an updated ADT with
 version 0.9.0. However, I tried to build one in the source, and found
 that the latest version in the cupcake source code is 0.8.1 rather
 than 0.9.0.

 So, is there anyone enjoyed their cupcakes with Eclipse? I need a ADT
 0.9.0 support...

 Thx for ur help

 Best regards,
 Nicholas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] No way to see real Debug and Test Settings on the Device

2008-12-11 Thread Kenny Yu

http://code.google.com/intl/en/android/intro/develop-and-debug.html#additionaldebugging

I can't find the exact this section within emulator, DDMS+Eclipse
menus and even ADB. No entry!

Can anyone give a favor to tell me howt to set Goldfish emulator like
the above URL?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: developer needed to write a theme application

2008-12-09 Thread Kenny Yu

I've been working on Motorola MING's and V8 Skinning, studying
Android. Let me know your expectation and requirements.

Kenny

On Dec 9, 3:07 am, androidinsider [EMAIL PROTECTED] wrote:
 Greetings,

 Android Insider is looking for a developer to create a theme
 application that switches between custom themes for Android OS. We
 need you to figure out current possibilities and ways of skinning
 Android OS. Unlike others, this is a paid job, and PAY IS GOOD.

 Please reply to this thread or email to [EMAIL PROTECTED]

 Thank you!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---