[android-developers] How to retrieve data from two tables via the ContentProvider way?

2009-04-05 Thread Shawn_Chiu
Hi, all How to retrieve data from two tables via the ContentProvider way? I.E. the database of Calendar application, include many tables including Events and Deleted, and some others. I want to retrive records in Events table, whose _sync_id field is also in Deleted table. Usually, we write a SQL

[android-developers] On android.media.MediaRecorder, can it record the voice of speaker?

2009-02-15 Thread Shawn_Chiu
Hello, buddies It's about android.media.MediaRecorder. I want to implement a feature to record the conversation, both voice from speaker and microphone. But I tried on G1 phone, the MediaRecorder only could record the voice from microphone. I looked into the Android doc, there are only two audio

[android-developers] Re: On android.media.MediaRecorder, can it record the voice of speaker?

2009-02-16 Thread Shawn_Chiu
, they do the same thing. Would other devices such like speaker or both speakermic could be supported in further release? BR Shawn On Feb 16, 7:12 am, Dave Sparks davidspa...@android.com wrote: The G1 does not support recording uplink or downlink audio. On Feb 14, 6:20 am, Shawn_Chiu qiuping

[android-developers] Re: On android.media.MediaRecorder, can it record the voice of speaker?

2009-02-17 Thread Shawn_Chiu
Hi, Dave Thank you very much, Dave. I see, now :-) BR Shawn On Feb 17, 12:55 am, Dave Sparks davidspa...@android.com wrote: You might be able to get away with recording the mic - I haven't checked. I'm pretty sure if you change the sample rate to something other than 8KHz, it will kill uplink

[android-developers] Re: google calendar in g1

2009-05-25 Thread Shawn_Chiu
Hi, Petreman 1. Enter 'tools' in the the SDK directory. In 'tools' folder, there exists commands like 'adb', 'fastboot' etc. You can search, because there are different directory tree of different release. 2. type ' adb install -r THE_CALENDAR_APK_ABSOLUTE_PATH' Then it would be fine. BR Shawn

[android-developers] Re: Repeat Events in Calendar

2009-05-25 Thread Shawn_Chiu
Hi, Farida I forgot what P meas in P300S, but I surely know that S means seconds. Then, if the 'duration' field is P300S, it means that event would last for 5 minutes, that's 300 seconds. If it is an hour, it would be P3600S BR Shawn On May 21, 8:58 pm, farida mailfaridak...@gmail.com

[android-developers] How to make a copy of contacts from one account into another account?

2011-01-05 Thread Shawn_Chiu
Hi, all I'm working on a Contacts sync app. Android has multiple accounts, and my app would create a new one, but it is empty. If I make users copy contacts into my app account in Contacts app, it would be an extra work and quite difficult for users to use. So, I want to let users select what

[android-developers] [TabActivity]Encountered NullPointerException. Could anyone give me a hand ?Thanks

2010-11-22 Thread Shawn_Chiu
Hi, all I encountered an excepiton when I used TabActivity. Each tab content is a seperate activity. Could anyone give me a hand ?Thanks :-) The exception stack trace is as follow: -

[android-developers] [Contacts]How to copy contacts in phone to another account ?

2011-01-16 Thread Shawn_Chiu
Hi, all I'm developing an android contacts sync application. It would create a new account after successfully login. But there are multiple accounts in an android phone, no contacts in this new account. If a user wants to sync with server, he/she should copy contacts into the funambol account

[android-developers] when I start to compile the Launcher module, lots of erros occurred.

2009-06-17 Thread Shawn_Chiu
Hi, everybody I swithed to SDK-1.5-R2, and also the source code released in May, 2009. But when I start to compile the Launcher module, lots of erros occurred. Some classes cannot be resolved cause there are no such classes in Android.jar file. I.E. android.os.ServiceManager;