[android-developers] Anybody else getting document.body is null JS error when loading Market Dashboard?

2010-12-04 Thread Paul Tongyoo
When I hit the URL http://market.android.com/publish/Home;, I get an
infinite Loading spinner as well as a document.body is null JS error
within the following file:

http://market.android.com/publish/gwt/com.google.wireless.android.vending.developer.HomeMod.nocache.js

Anyone else having this problem?
Paul

-- 
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

Re: [android-developers] Re: Debugging Droid X-specific issues

2010-09-19 Thread Paul Tongyoo
Mark--

Thank you  for the MOTODEV tip; I had no idea the site existed.  To much
dismay however I was not able to reproduce my issue using the Droid X
emulator add-on; and I'm embarassed to say that the issue appears related to
my use of the un-documented CropImage intent action (which you warned me
about in the past .. i know i know, you told me so :-)).

I'll go ahead and explain my problem anyway just in case there's another
solution other than cloning the CropImage class (I'm actually still trying
to accomplish this, but am running into issues building the Camera package
with the Android source).  To summarize the problem:  After passing image
data to the CropImage activity and cropping the image, the phone's
_WALLPAPER_ changes to the cropped image instead of my application's views!
Is it possible the Droid X OS on the phone has a alternate implementation of
CropImage that could be causing this behavior?

-PT

On Tue, Sep 14, 2010 at 7:15 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Sep 14, 2010 at 10:09 AM, Paul Tongyoo paul.tong...@gmail.com
 wrote:
  Any ideas any one?  Is there a way to emulate the Droid X's specific
 build
  locally?

 MOTODEV publishes some SDK add-ons for their various devices. Whether
 there is one for the Droid X and whether it will help you with your
 issue is unclear.

 My recommendation is for you either to explain the actual problem here
 (your email appears cut off), or go to the MOTODEV support boards for
 Motorola-specific support.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: Debugging Droid X-specific issues

2010-09-14 Thread Paul Tongyoo
Any ideas any one?  Is there a way to emulate the Droid X's specific build
locally?



Maybe I'll share my specific issue:  For some reason, when using the

On Fri, Aug 27, 2010 at 1:30 PM, Paul Tongyoo paul.tong...@gmail.comwrote:


 Hi Developers--

 So I've run into a Droid X-specific issue but am not able to reproduce with
 my emulator AVD's.  Is there a Droid X-specific AVD that I should be using?


 Thanks in advance!
 PT


-- 
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] Debugging Droid X-specific issues

2010-08-27 Thread Paul Tongyoo
Hi Developers--

So I've run into a Droid X-specific issue but am not able to reproduce with
my emulator AVD's.  Is there a Droid X-specific AVD that I should be using?


Thanks in advance!
PT

-- 
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] Possible to play MediaRecorder-recorded Audio with Flash?

2010-08-01 Thread Paul Tongyoo
Hi all--

I've been trying to play the MP4/GPP files recorded via the MediaRecorder
with the ActionScript 3.0 NetStream object with no luck.  Even though MP4's
are supposed to be supported by the NetStream class, I still receive
NetStream.Play.NoSupportedTrackFound status events from the NS object
whenever I attempt to NS.play() my recorded files.  Has anyone gotten this
to work?

Thanks for any tips!
Paul

-- 
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] HTTP Bad Request when Posting File data to HTTPS from Phone But Not Emulator

2010-05-06 Thread Paul Tongyoo
Hi all--

I'm using HttpClient 3.x code to construct a MultipartEntity consisting of a
few strings and binary data and posting this data to my webserver.  What's
odd is that when executing these posts from my local emulator, my webserver
accepts the request fine and the data is posted.  However, executing this
same code from my mobile phones results in my webserver responding with an
HTTP 400 Bad Request response.  Is there a way for me to capture the data
being sent by my phone to confirm if there is any differences in data being
sent than what my emulator is sending?  Should there be any differences?

Thanks for any tips,
Paul

-- 
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

Re: [android-developers] HTTP Bad Request when Posting File data to HTTPS from Phone But Not Emulator

2010-05-06 Thread Paul Tongyoo
Thanks Kevin, I'll give that a shot!

On Thu, May 6, 2010 at 9:45 AM, Kevin Anthony kevin.s.anth...@gmail.comwrote:

 Do a tcp dump on the webserver when the requests come in from the emulator
 and phone. Then compair the headers.

 Just a quick thought, is the webserver behind a firewall?  If the emulator
 is on a machine on the same network, that might be the cause

 Kevin A

 On May 6, 2010 12:23 PM, Paul Tongyoo paul.tong...@gmail.com wrote:

 Hi all--

 I'm using HttpClient 3.x code to construct a MultipartEntity consisting of
 a few strings and binary data and posting this data to my webserver.  What's
 odd is that when executing these posts from my local emulator, my webserver
 accepts the request fine and the data is posted.  However, executing this
 same code from my mobile phones results in my webserver responding with an
 HTTP 400 Bad Request response.  Is there a way for me to capture the data
 being sent by my phone to confirm if there is any differences in data being
 sent than what my emulator is sending?  Should there be any differences?

 Thanks for any tips,
 Paul

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] SocketTimeoutException: Read Timed Out Occurs Only via Mobile

2010-05-03 Thread Paul Tongyoo
Hi all--

I'm receiving SocketTimeoutException: Read Timed Out errors in my client
app when attempting to post image data to a central server over HTTPS.
What's odd is that I cannot reproduce the error when posting data from my
local machine (via the emulator) to the same server.  Increasing the
SO_TIMEOUT value seems to only prolong the amount of time it takes for the
timeout exception to occur.  I am very new to using the Apache HTTP API -
what am I missing?

HttpClient httpClient = new DefaultHttpClient();
HttpConnectionParams.setSoTimeout(httpClient.getParams(), 15000);
HttpConnectionParams.setConnectionTimeout(httpClient.getParams(), 15000);
HttpPost post = new HttpPost(https://;);

...

HttpResponse response = httpClient.execute(post);  // Exception occurs here

...

httpClient.getConnectionManager().shutdown();  // Closes the connection
successfully?

TIA
Paul

-- 
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

Re: [android-developers] Re: Is there any changes in crop image activity

2010-04-08 Thread Paul Tongyoo
I third that! :) :)

So as an alternative, I tried putting a crop/true extra onto the intent
that starts the MediaStore.ACTION_IMAGE_CAPTURE activity, and I get the
following exception:

04-08 09:58:35.720: ERROR/AndroidRuntime(260):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.android.camera.action.CROP
dat=file:///data/data/com.android.camera/files/crop-temp (has extras) }
04-08 09:58:35.720: ERROR/AndroidRuntime(260): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
04-08 09:58:35.720: ERROR/AndroidRuntime(260): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
04-08 09:58:35.720: ERROR/AndroidRuntime(260): at
android.app.Activity.startActivityForResult(Activity.java:2749)
04-08 09:58:35.720: ERROR/AndroidRuntime(260): at
com.android.camera.Camera.doAttach(Camera.java:1181)
04-08 09:58:35.720: ERROR/AndroidRuntime(260): at
com.android.camera.Camera.onClick(Camera.java:1088)
...

Would you say that the usage of the crop extra is also an implementation
detail that should not be used?  Is this a bug?

TIA
PT


On Mon, Mar 29, 2010 at 6:56 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 I second that! :)

 On Mar 29, 8:36 am, anton.slut...@gmail.com
 anton.slut...@gmail.com wrote:
  Sure, makes sense.  My two cents is, it seems like a whole lot of
  people need to grab an image from the gallery and plop a chunk of a
  certain size out of that image.  Ofcourse, doing that by hand is
  possible and wouldn't be all that hard, but it would involve a hole
  lot of typing for us app developers and lead to poor user experience
  since they will have to relearn this function from app to app.  I
  would be simply thrilled if this functionality were to become a part
  of the SDK.  It's reusable and generic enough to make the cut, I
  think.
 
  Anton
 
  On Mar 28, 2:34 pm, Dianne Hackborn hack...@android.com wrote:
 
 
 
   Just to be extra super clear on this -- if you are doing stuff that is
 not
   in the SDK, you can expect that your app will break at some point on
 future
   versions, on different devices, etc.
 
   Any case where you are using magic string constants or such, that isn't
 a
   reference to a constant in the SDK, is almost certainly a case where
 you are
   using internal implementation details.  Expect to break.
 
   In this particular case, if there is no constant in the SDK for the
 string
   com.android.camera.action.CROP then this is simply not a part of the
 SDK,
   and has a chance of breaking in the future.
 
   --
   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.- Hide quoted text -
 
  - Show quoted text -

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
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

To unsubscribe, reply using remove me as the subject.


[android-developers] Can I use an AsyncTask instead of a Service for my Widget's background processing?

2010-03-31 Thread Paul Tongyoo
Just curious if there's any reason why I can't use an AsyncTask -- my
current implementation uses AsyncTask and I'm experiencing inconsistent
widget refreshing.

TIA!
PT

-- 
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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Can I use an AsyncTask instead of a Service for my Widget's background processing?

2010-03-31 Thread Paul Tongyoo
You guessed right!  Thanks for the tips, and I'll be clearer in the future.

Best,
Paul

On Wed, Mar 31, 2010 at 8:49 AM, Mark Murphy mmur...@commonsware.comwrote:

 Paul Tongyoo wrote:
 
  Just curious if there's any reason why I can't use an AsyncTask -- my
  current implementation uses AsyncTask and I'm experiencing inconsistent
  widget refreshing.

 You don't say where you are using an AsyncTask. And I'm not sure whether
 widget means View or app widget.

 :: insert grumble about Android confusing naming convention here ::

 I am going to take a guess that you are trying to use an AsyncTask from
 the AppWidgetProvider. That's a bit dangerous -- BroadcastReceivers like
 an AppWidgetProvider are not supposed to run background threads
 directly. I recommend using an IntentService for app widget updates.

 If that's not what you are trying to do, I apologize for guessing
 incorrectly, and please respond on-thread with more details.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 2.0 Available!

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe, reply using remove me as the subject.


-- 
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

Re: [android-developers] Re: Is there any changes in crop image activity

2010-03-26 Thread Paul Tongyoo
UPDATE:  Romain Guy confirmed the CROP intent-filter still exists in Eclair,
just moved to the Gallery.git manifest.  HTH

On Tue, Mar 23, 2010 at 2:13 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 This has been working for me, at least on a Droid, G1 and Nexus1:

 final Intent intent = new Intent(com.android.camera.action.CROP);
 intent.setData(mImgUris[1]);
 intent.putExtra(noFaceDetection, false);
 //intent.putExtra(outputX, width);
 //intent.putExtra(outputY, height);
 //intent.putExtra(aspectX, width);
 //intent.putExtra(aspectY, height);
 //intent.putExtra(scale, true);
 //intent.putExtra(output, Uri.parse(file:/ +
 mFile.getAbsolutePath()));
 startActivityForResult(intent, R.id.view_image_menu_crop);


 On Feb 13, 3:05 pm, Adarsh Pandey pandey.adarsh...@gmail.com wrote:
  Hi,
 
  We are facing problem with cropimage activity, is there any changes?
  it gives error related to permission.
 
  java.lang.SecurityException: Permission
  Denial: starting Intent { act=android.intent.action.EDIT
  dat=content://
  media/external/images/media/12 cmp=com.android.camera/.CropImage (has
  extras) } from ProcessRecord{43b72040 374:com.abc/10028} (pid=374,
  uid=10028) requires null

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-25 Thread Paul Tongyoo
Ah ha!  Looks like my crop intent wasn't getting recognized because the data
I was passing it had an unknown MIME type.  Setting the data using
intent.setDataAndType(Uri, String) did the trick.  Looking forward to
testing this new code on the friend's Droid (old code actually did work on
the emulator all the time).

And to confirm Romain Guy's response, YES the
com.android.camera.action.CROP intent-filter IS defined in the Gallery
class so NO google didn't remove the ability to call the CropImage activity.
;-)

Thanks for the ears all,
PT

On Wed, Mar 24, 2010 at 8:29 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 The system's cropping activity comes with the camera app (camera.git).
 Since the emulator's camera activity is very different, i can imagine
 that the cropping activity is not quite the same either or may not
 even exist on the emulator. If this is the case, then they(google) at
 least should've made the cropping activity the same... it's not
 dependent on any hardware, me thinks.


 On Mar 24, 10:57 am, Paul Tongyoo paul.tong...@gmail.com wrote:
  Thanks Streets, I'll give it a shot.  If the issue was due to missing
  hardware though, wouldn't I get a different (lower-level) type of
 error?
 
  Best,
  Paul
 
  On Wed, Mar 24, 2010 at 7:26 AM, Streets Of Boston
  flyingdutc...@gmail.comwrote:
 
 
 
   Note that the emulator's camera application is NOT the ones running on
   most actual devices.
   Test it on an actual device, a few of them if possible.
 
   On Mar 24, 2:35 am, Paul Tongyoo paul.tong...@gmail.com wrote:
At the moment I'm just running the code against the 2.0
 emulatorhm.
 
On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:
 
 ... very strange, how come it works fine on my Droid
 (2.0.1),
 on my G1 (1.6) and my Nexus One (2.1-u1)...? I just tried it on all
 three phones.
 
 What phone are you trying it on?
 
 On Mar 23, 6:46 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
  I received this error:
 
  03-23 15:40:13.871: ERROR/AndroidRuntime(308):
 java.lang.RuntimeException:
  Failure delivering result ResultInfo{who=null, request=1,
 result=-1,
  data=null} to activity {...}:
   android.content.ActivityNotFoundException:
 No
  Activity found to handle Intent {
 act=com.android.camera.action.CROP
  /temp-image.jpg (has extras) }
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
 
 android.app.ActivityThread.deliverResults(ActivityThread.java:3224)
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
 
 android.app.ActivityThread.handleSendResult(ActivityThread.java:3266)
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
  android.app.ActivityThread.access$2600(ActivityThread.java:116)
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
 
  I then tried adding this line:
 
  intent.putExtra(return-data, true);
 
  ... which then gave me this error:
 
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): Caused by:
  android.content.ActivityNotFoundException: No Activity found to
   handle
  Intent { act=com.android.camera.action.CROP
  dat=file:///sdcard//temp-image.jpg (has extras) }
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
 
  
 android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1­­­484)
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
 
  
 android.app.Instrumentation.execStartActivity(Instrumentation.java:1454)
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
  android.app.Activity.startActivityForResult(Activity.java:2661)
 
  What do you think?
 
  On Tue, Mar 23, 2010 at 2:57 PM, Streets Of Boston
  flyingdutc...@gmail.comwrote:
 
   Did you try my example? It works fine on my Motorola Droid and
 many
   other droids i know of.
 
   On Mar 23, 5:29 pm, Paul Tongyoo paul.tong...@gmail.com
 wrote:
Thanks guys -- I jumped the gun after poking around at the
 source
   and
   seeing
my code not working on a Droid, however further debugging
 shows
   the
 code
works on my 2.0 emulator ... Are there any known issues with
 crop
 code
   and
the Droid?
 
@SOB:  For some reason, my code requires that I explicitly
 call:
 
intent.setClassName(com.android.camera,
   com.android.camera.CropImage);
 
... or else I get the following error:
 
03-23 14:17:09.119: ERROR/AndroidRuntime(222): Caused by:
android.content.ActivityNotFoundException: No Activity found
 to
 handle
Intent { act=com.android.camera.action.CROP ...
 
Maybe I'm missing a required configuration somewhere else?
 
--Paul
 
On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:
 
 I tried

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Paul Tongyoo
At the moment I'm just running the code against the 2.0 emulatorhm.

On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 ... very strange, how come it works fine on my Droid (2.0.1),
 on my G1 (1.6) and my Nexus One (2.1-u1)...? I just tried it on all
 three phones.

 What phone are you trying it on?

 On Mar 23, 6:46 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
  I received this error:
 
  03-23 15:40:13.871: ERROR/AndroidRuntime(308):
 java.lang.RuntimeException:
  Failure delivering result ResultInfo{who=null, request=1, result=-1,
  data=null} to activity {...}: android.content.ActivityNotFoundException:
 No
  Activity found to handle Intent { act=com.android.camera.action.CROP
  /temp-image.jpg (has extras) }
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
  android.app.ActivityThread.deliverResults(ActivityThread.java:3224)
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
  android.app.ActivityThread.handleSendResult(ActivityThread.java:3266)
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
  android.app.ActivityThread.access$2600(ActivityThread.java:116)
  03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
 
  I then tried adding this line:
 
  intent.putExtra(return-data, true);
 
  ... which then gave me this error:
 
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): Caused by:
  android.content.ActivityNotFoundException: No Activity found to handle
  Intent { act=com.android.camera.action.CROP
  dat=file:///sdcard//temp-image.jpg (has extras) }
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
 
 android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1­484)
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
  android.app.Instrumentation.execStartActivity(Instrumentation.java:1454)
  03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
  android.app.Activity.startActivityForResult(Activity.java:2661)
 
  What do you think?
 
  On Tue, Mar 23, 2010 at 2:57 PM, Streets Of Boston
  flyingdutc...@gmail.comwrote:
 
 
 
   Did you try my example? It works fine on my Motorola Droid and many
   other droids i know of.
 
   On Mar 23, 5:29 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
Thanks guys -- I jumped the gun after poking around at the source and
   seeing
my code not working on a Droid, however further debugging shows the
 code
works on my 2.0 emulator ... Are there any known issues with crop
 code
   and
the Droid?
 
@SOB:  For some reason, my code requires that I explicitly call:
 
intent.setClassName(com.android.camera,
   com.android.camera.CropImage);
 
... or else I get the following error:
 
03-23 14:17:09.119: ERROR/AndroidRuntime(222): Caused by:
android.content.ActivityNotFoundException: No Activity found to
 handle
Intent { act=com.android.camera.action.CROP ...
 
Maybe I'm missing a required configuration somewhere else?
 
--Paul
 
On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:
 
 I tried this on G1, N1 and Nexus one, and it works for me:
 
 final Intent intent = new Intent(com.android.camera.action.CROP);
 intent.setData(mImgUris[1]);
 intent.putExtra(noFaceDetection, false);
 //intent.putExtra(outputX, width);
 //intent.putExtra(outputY, height);
 //intent.putExtra(aspectX, width);
 //intent.putExtra(aspectY, height);
 //intent.putExtra(scale, true);
 //intent.putExtra(output, fileUri);
 startActivityForResult(intent, R.id.view_image_menu_crop);
 
 On Mar 23, 5:12 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
  I'm no longer seeing an Intent Filter declared for the CropImage
   activity
 in
  the Eclair ... is there another way to re-use this activity?
 
  http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=.
 ..
 
  TIA!!
  Paul
 
 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   android-developers%2bunsubs­cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words
   REMOVE
 ME as the subject.- Hide quoted text -
 
- Show quoted text -
 
   --
   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

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Paul Tongyoo
Thanks Streets, I'll give it a shot.  If the issue was due to missing
hardware though, wouldn't I get a different (lower-level) type of error?

Best,
Paul

On Wed, Mar 24, 2010 at 7:26 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 Note that the emulator's camera application is NOT the ones running on
 most actual devices.
 Test it on an actual device, a few of them if possible.

 On Mar 24, 2:35 am, Paul Tongyoo paul.tong...@gmail.com wrote:
  At the moment I'm just running the code against the 2.0 emulatorhm.
 
  On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston
  flyingdutc...@gmail.comwrote:
 
 
 
   ... very strange, how come it works fine on my Droid (2.0.1),
   on my G1 (1.6) and my Nexus One (2.1-u1)...? I just tried it on all
   three phones.
 
   What phone are you trying it on?
 
   On Mar 23, 6:46 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
I received this error:
 
03-23 15:40:13.871: ERROR/AndroidRuntime(308):
   java.lang.RuntimeException:
Failure delivering result ResultInfo{who=null, request=1, result=-1,
data=null} to activity {...}:
 android.content.ActivityNotFoundException:
   No
Activity found to handle Intent { act=com.android.camera.action.CROP
/temp-image.jpg (has extras) }
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3224)
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread.handleSendResult(ActivityThread.java:3266)
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread.access$2600(ActivityThread.java:116)
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
 
I then tried adding this line:
 
intent.putExtra(return-data, true);
 
... which then gave me this error:
 
03-23 15:45:49.880: ERROR/AndroidRuntime(377): Caused by:
android.content.ActivityNotFoundException: No Activity found to
 handle
Intent { act=com.android.camera.action.CROP
dat=file:///sdcard//temp-image.jpg (has extras) }
03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
 
  
 android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1­­484)
03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
   
 android.app.Instrumentation.execStartActivity(Instrumentation.java:1454)
03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
android.app.Activity.startActivityForResult(Activity.java:2661)
 
What do you think?
 
On Tue, Mar 23, 2010 at 2:57 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:
 
 Did you try my example? It works fine on my Motorola Droid and many
 other droids i know of.
 
 On Mar 23, 5:29 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
  Thanks guys -- I jumped the gun after poking around at the source
 and
 seeing
  my code not working on a Droid, however further debugging shows
 the
   code
  works on my 2.0 emulator ... Are there any known issues with crop
   code
 and
  the Droid?
 
  @SOB:  For some reason, my code requires that I explicitly call:
 
  intent.setClassName(com.android.camera,
 com.android.camera.CropImage);
 
  ... or else I get the following error:
 
  03-23 14:17:09.119: ERROR/AndroidRuntime(222): Caused by:
  android.content.ActivityNotFoundException: No Activity found to
   handle
  Intent { act=com.android.camera.action.CROP ...
 
  Maybe I'm missing a required configuration somewhere else?
 
  --Paul
 
  On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston
  flyingdutc...@gmail.comwrote:
 
   I tried this on G1, N1 and Nexus one, and it works for me:
 
   final Intent intent = new
 Intent(com.android.camera.action.CROP);
   intent.setData(mImgUris[1]);
   intent.putExtra(noFaceDetection, false);
   //intent.putExtra(outputX, width);
   //intent.putExtra(outputY, height);
   //intent.putExtra(aspectX, width);
   //intent.putExtra(aspectY, height);
   //intent.putExtra(scale, true);
   //intent.putExtra(output, fileUri);
   startActivityForResult(intent, R.id.view_image_menu_crop);
 
   On Mar 23, 5:12 pm, Paul Tongyoo paul.tong...@gmail.com
 wrote:
I'm no longer seeing an Intent Filter declared for the
 CropImage
 activity
   in
the Eclair ... is there another way to re-use this activity?
 

 http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=.
   ..
 
TIA!!
Paul
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com

[android-developers] Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Paul Tongyoo
I'm no longer seeing an Intent Filter declared for the CropImage activity in
the Eclair ... is there another way to re-use this activity?

http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob_plain;f=AndroidManifest.xml;hb=eclair-release

TIA!!
Paul

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Paul Tongyoo
Thanks guys -- I jumped the gun after poking around at the source and seeing
my code not working on a Droid, however further debugging shows the code
works on my 2.0 emulator ... Are there any known issues with crop code and
the Droid?

@SOB:  For some reason, my code requires that I explicitly call:

intent.setClassName(com.android.camera, com.android.camera.CropImage);

... or else I get the following error:

03-23 14:17:09.119: ERROR/AndroidRuntime(222): Caused by:
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.android.camera.action.CROP ...

Maybe I'm missing a required configuration somewhere else?

--Paul

On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 I tried this on G1, N1 and Nexus one, and it works for me:

 final Intent intent = new Intent(com.android.camera.action.CROP);
 intent.setData(mImgUris[1]);
 intent.putExtra(noFaceDetection, false);
 //intent.putExtra(outputX, width);
 //intent.putExtra(outputY, height);
 //intent.putExtra(aspectX, width);
 //intent.putExtra(aspectY, height);
 //intent.putExtra(scale, true);
 //intent.putExtra(output, fileUri);
 startActivityForResult(intent, R.id.view_image_menu_crop);


 On Mar 23, 5:12 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
  I'm no longer seeing an Intent Filter declared for the CropImage activity
 in
  the Eclair ... is there another way to re-use this activity?
 
  http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=...
 
  TIA!!
  Paul

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Paul Tongyoo
I received this error:

03-23 15:40:13.871: ERROR/AndroidRuntime(308): java.lang.RuntimeException:
Failure delivering result ResultInfo{who=null, request=1, result=-1,
data=null} to activity {...}: android.content.ActivityNotFoundException: No
Activity found to handle Intent { act=com.android.camera.action.CROP
/temp-image.jpg (has extras) }
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3224)
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread.handleSendResult(ActivityThread.java:3266)
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread.access$2600(ActivityThread.java:116)
03-23 15:40:13.871: ERROR/AndroidRuntime(308): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)

I then tried adding this line:

intent.putExtra(return-data, true);

... which then gave me this error:

03-23 15:45:49.880: ERROR/AndroidRuntime(377): Caused by:
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.android.camera.action.CROP
dat=file:///sdcard//temp-image.jpg (has extras) }
03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1484)
03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1454)
03-23 15:45:49.880: ERROR/AndroidRuntime(377): at
android.app.Activity.startActivityForResult(Activity.java:2661)

What do you think?



On Tue, Mar 23, 2010 at 2:57 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 Did you try my example? It works fine on my Motorola Droid and many
 other droids i know of.

 On Mar 23, 5:29 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
  Thanks guys -- I jumped the gun after poking around at the source and
 seeing
  my code not working on a Droid, however further debugging shows the code
  works on my 2.0 emulator ... Are there any known issues with crop code
 and
  the Droid?
 
  @SOB:  For some reason, my code requires that I explicitly call:
 
  intent.setClassName(com.android.camera,
 com.android.camera.CropImage);
 
  ... or else I get the following error:
 
  03-23 14:17:09.119: ERROR/AndroidRuntime(222): Caused by:
  android.content.ActivityNotFoundException: No Activity found to handle
  Intent { act=com.android.camera.action.CROP ...
 
  Maybe I'm missing a required configuration somewhere else?
 
  --Paul
 
  On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston
  flyingdutc...@gmail.comwrote:
 
 
 
   I tried this on G1, N1 and Nexus one, and it works for me:
 
   final Intent intent = new Intent(com.android.camera.action.CROP);
   intent.setData(mImgUris[1]);
   intent.putExtra(noFaceDetection, false);
   //intent.putExtra(outputX, width);
   //intent.putExtra(outputY, height);
   //intent.putExtra(aspectX, width);
   //intent.putExtra(aspectY, height);
   //intent.putExtra(scale, true);
   //intent.putExtra(output, fileUri);
   startActivityForResult(intent, R.id.view_image_menu_crop);
 
   On Mar 23, 5:12 pm, Paul Tongyoo paul.tong...@gmail.com wrote:
I'm no longer seeing an Intent Filter declared for the CropImage
 activity
   in
the Eclair ... is there another way to re-use this activity?
 
   
 http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=...
 
TIA!!
Paul
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   To unsubscribe from this group, send email to android-developers+
   unsubscribegooglegroups.com or reply to this email with the words
 REMOVE
   ME as the subject.- Hide quoted text -
 
  - Show quoted text -

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
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