[android-developers] Re: Missing MapPoint in 1.5r2?

2009-07-01 Thread zlu
Mark, Your solution works for me as well. Thanks. What I don't understand is that I don't have this problem when working in Eclipse with r2 but only have this problem when working in IntelliJ. Zhao On Jun 5, 10:26 am, Mark Murphy wrote: > Daniel wrote: > > I am getting this error as well.  H

[android-developers] how to do a HttpDelete properly

2009-06-30 Thread zlu
I can do HttpGet and HttpPost just fine but HttpDelete is being considered as a regular get by my rails app. Does anyone have a working example of delete (destroy) of a resource? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: SimpleCursorAdapter and blobs

2009-05-16 Thread zlu
+1 On Mar 30, 10:19 am, cannehal wrote: > I have similar issue. Cannot retrieve image from database (BLOB). As > far as I know it should work without writing your own ViewBinder, > because setImageView is doing all the work. Can someone help us with > this issue? > > On 25 Mar, 20:09, prout wro

[android-developers] Re: Calendar Apps missing in Android 1.5 SDK

2009-05-11 Thread zlu
+1 On May 11, 5:31 am, Shrikant Agrawal wrote: > Hi Guys, > > It seems that there is no calendar app in the android 1.5 sdk. > > Actually in my app i want to retreive the information stored in the > calendar app in  android. But I cant find the classes in Android > 1.5 . > > Is calendar omitted

[android-developers] bug in android.intent.action.PHONE_STATE

2009-05-10 Thread zlu
according to the document: http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED There should be a constant: Constant Value: "android.intent.action.PHONE_STATE" But I can't find it. I used the eclipse IDE to modify AndroidManifest.xml but

[android-developers] Re: SDK 1.5: unable to send SMS to another emulator

2009-04-28 Thread zlu
I'm on Mac OS X. On Apr 28, 4:50 pm, Raphael wrote: > What operating system do you have? Linux, Mac or Windows? > R/ > > On Tue, Apr 28, 2009 at 3:16 AM, ivantipov wrote: > > > Hi, > > I used to be able to send SMS messages from one emulator instance to > > another; the reason why I didn't use

[android-developers] Re: SDK 1.5: unable to send SMS to another emulator

2009-04-28 Thread zlu
Sorry, that doesn't help your problem. I think this is a bug. On Apr 28, 11:08 am, zlu wrote: > http://developer.android.com/guide/developing/tools/emulator.html#con... > > On Apr 28, 3:16 am, ivantipov wrote: > > > Hi, > > I used to be able to send SMS messages

[android-developers] Re: SDK 1.5: unable to send SMS to another emulator

2009-04-28 Thread zlu
http://developer.android.com/guide/developing/tools/emulator.html#connecting On Apr 28, 3:16 am, ivantipov wrote: > Hi, > I used to be able to send SMS messages from one emulator instance to > another; the reason why I didn't use Eclipse is because the app > automatically replies to a certain SM

[android-developers] Re: Android Functional Testing (testing multiple activities)

2009-04-28 Thread zlu
Rick, Thanks so much for posting your findings. They are helpful. Zhao On Apr 28, 9:36 am, Rick wrote: > Android functional testing across multiple activities: > > Since no one has really shown how to do this, and Android really only > shows us testing a single activity, > testing more comple

[android-developers] Re: Voice Recognition in API demos crashing

2009-04-27 Thread zlu
Can anyone give us some help on what > could be the reason of the problem? > > --- > Best regards, > Katia > > On Apr 16, 6:40 pm, zlu wrote: > > > I tried to run the voice recognition in api demo from sdk 1.5 and it > > crashed with this stacktrace: > &

[android-developers] SmsMananger.getDefault().sendTextMessage stopped working.

2009-04-22 Thread zlu
public class Foo extends Broadcast Receiver { public void onReceive(Context context, Intent intent) { if(intent.getAction().equals ("android.provider.Telephony.SMS_RECEIVED")) { SmsManager.getDefault().sendTextMessage("5556", null, "foobar", null, null); } } } Start the app from

[android-developers] SMSReceiver example throws exception

2009-04-22 Thread zlu
I have a SMSReceiver (extends BroadcastReceiver) and listens to android.provider.Telephony.SMS_RECEIVED. When I send emulator a sms from DDMB, I get this exception: 04-22 01:17:05.661: ERROR/MediaPlayerService(542): Couldn't open fd for content://settings/system/notification_sound 04-22 01:17:05.

[android-developers] API Demos Voice Recognition App crashes

2009-04-19 Thread zlu
I get this error when clicking on the speak button. 04-19 19:59:29.181: ERROR/ActivityThread(567): Failed to find provider info for android.server.checkin 04-19 19:59:29.181: DEBUG/ActivityManager(567): Received spurious death notification for thread android.os.binderpr...@436dcac0 04-19 19:59:29

[android-developers] Voice Recognition in API demos crashing

2009-04-16 Thread zlu
I tried to run the voice recognition in api demo from sdk 1.5 and it crashed with this stacktrace: 04-16 10:32:00.725: INFO/ActivityManager(568): Starting activity: Intent { comp={com.example.android.apis/ com.example.android.apis.app.VoiceRecognition} } 04-16 10:32:00.945: INFO/ActivityManager(5

[android-developers] getting addresses from location

2009-04-16 Thread zlu
This code used to work in SDK1.1 but stopped working in 1.5 I have a class that implements LocationListener in the onLocationChanged(Location location) method I have: Geocoder geocoder = new Geocoder(this, Locale.US); try { List addresses = geocoder.getFromLocation (location.getLatitude(), loca

[android-developers] How to Test service (started/stoped) in ActivityUnitTestCase

2009-04-14 Thread zlu
Take LocalServiceController (which extends Activity) from the SDK api demo for example. How do you test when the start button clicks, the service is started? I don't see any methods in ActivityUnitTestCase can be used for this. --~--~-~--~~~---~--~~ You received t

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-04-14 Thread zlu
+1 On Apr 14, 6:43 am, Al wrote: > I'm trying to make a new XML file and have selected New->Android XML > File, but each time I get this message: > > The selected wizard could not be started. > Plug-in com.android.ide.eclipse.adt was unable to load class > com.android.ide.eclipse.editors.wizards

[android-developers] Re: TDD with Android 1.5

2009-04-14 Thread zlu
Gav, Thanks for your reply. I created a separate project for the tests and the duplicated manifest file error is gone. I now have another problem. zlu-macbook:tests zlu$ adb shell am instrument -w zlu.followme/ android.test.InstrumentationTestRunner INSTRUMENTATION_STATUS: Error=Unable to find

[android-developers] Re: TDD with Android 1.5

2009-04-14 Thread zlu
wrote: > Looks at the manifest in > SDK/platforms/android-1.5/samples/ApiDemos/tests/AndroidManifest.xml > > Xav > > > > On Mon, Apr 13, 2009 at 11:13 PM, zlu wrote: > > > I found this link: > >http://developer.android.com/guide/samples/ApiDemos/tests/src/

[android-developers] Re: TDD with Android 1.5

2009-04-14 Thread zlu
wrote: > Looks at the manifest in > SDK/platforms/android-1.5/samples/ApiDemos/tests/AndroidManifest.xml > > Xav > > > > On Mon, Apr 13, 2009 at 11:13 PM, zlu wrote: > > > I found this link: > >http://developer.android.com/guide/samples/ApiDemos/tests/src/

[android-developers] Re: TDD with Android 1.5

2009-04-13 Thread zlu
android.test.runner. How do I specify that? On Apr 13, 9:51 pm, zlu wrote: > There's better support for JUnit in 1.5.  I'm trying to test-driven a > service class.  I see ServiceTestCase.java in 1.5.  My question is has > anyone written their own test case extending this (if it is suppos

[android-developers] TDD with Android 1.5

2009-04-13 Thread zlu
There's better support for JUnit in 1.5. I'm trying to test-driven a service class. I see ServiceTestCase.java in 1.5. My question is has anyone written their own test case extending this (if it is supposed to be extended)? I could find any example online and positron doesn't see to have any s