I agree that it should work on any (local) Uri, file: and content: But i think they somehow need to tie it to the MediaStore content- provider. And this makes sense, because content-providers are the main mechanism with which data is shared amongst the applications.
This means, that if you have a file, you need to insert it into the MediaStore's image content-provider. The insert returns you an ID (Long value), which you then can use for Photoshop.com. But i think that the Photoshop.com intent is designed with the idea that another app queries the *content-provider* for images (not the file-system) On Mar 7, 7:49 pm, ryan_f <bluebaracu...@gmail.com> wrote: > > Try an actual image type (e.g., image/png) instead of image/*... > > I started with this approach and it didn't work. However, see below. > > > Also, if aFile is not on the SD card, the Photoshop app may not have the > > rights to access it. > > aFile is most definitely on the SD card and the world has public > access to it. > > Worth mentioning again since it has a lot of merit... > (BTW, if the Adobe folk are watching this thread, you might want to > update your developer page with a pointer to where people should ask > this sort of question for you to be able to find it -- here? > StackOverflow on a specific tag? Some forum in adobe.com?) > I picked this thread since it was officially started by Adobe and not > by me. > > > Try a 'content:' Uri instead of a 'file:' Uri. > > Once step closer to functional. =) > Using a "content" scheme brought up Photoshop.com Mobile, but I could > not figure out how to provide it with the appropriate path to the > file. > Variations on the Uri I constructed and failed to bring up anything in > the editor besides "An error occurred while loading the photo." > Uri theUri = Uri.parse("content://"+"pictures/download/sample.jpg"); > Uri theUri = Uri.parse("content://"+"/pictures/download/sample.jpg"); > Uri theUri = Uri.parse("content://"+"/sdcard/pictures/download/ > sample.jpg"); > Uri theUri = Uri.parse("content://"+"\"/sdcard/pictures/download/ > sample.jpg\""); > Uri theUri = Uri.parse("content://"+"file:///sdcard/pictures/download/ > sample.jpg"); > Uri theUri = Uri.parse("content://"+"file:/sdcard/pictures/download/ > sample.jpg"); > Uri theUri = Uri.parse("content://"+aFile.getPath()); > Uri theUri = Uri.parse("content://"+aFile.getName()); > Uri theUri = Uri.parse("content://"+Uri.fromFile(aFile).toString()); > > Update: the Uri Photoshop.com Mobile expects is a content Uri coupled > with a provider of some kind. Creating and running their example > program meant that for any given file on the SD card, I would have to > translate it into "content://media/external/images/media/97" or > whatever internal number the > android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI requires > for that file. I don't know if there is an easy way to translate a > given file to this internal int being used, but I do think that if I > wrote my own provider and supplied it instead of the default android > media store provider, it may work. I think if I create such a > provider, it would take a path to the file as it's data path so that > the Uri for this intent could be easily constructed: > Uri theUri = > Uri.withAppendedPath(com.mybiz.myapp.myproviderUri,aFile.getPath()); > Until I create such a thing, this editor feature is not very useful to > me. =/ > > It seems like such a lot of work on the developer side when it would > be fairly easy for Adobe to have included a "file" scheme intent > listener too. Adobe, if you are listening, please update > Photoshop.com Mobile so that I can use a "file" scheme intent that > mimics the current "content" scheme, please. =) > > On Mar 7, 1:45 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > > > > > Try a 'content:' Uri instead of a 'file:' Uri. > > > On Mar 7, 9:38 am, ryan_f <bluebaracu...@gmail.com> wrote: > > > > I have Photoshop.com 1.1.0 (build 3) installed on my T-Mobile G1, > > > Android 1.6 phone. When trying to use the described intent, no > > > application was found to handle it. > > > ActivityNotFoundException > > > No Activity found to handle Intent { act=android.intent.action.EDIT > > > dat = file:///sdcard/pictures/20061021_NewYorkCity_121.jpg typ=image/ > > > * } > > > > The code being used to launch: > > > String theIntentType = "image/*"; > > > Intent theIntent = new Intent(Intent.ACTION_EDIT); > > > theIntent.setDataAndType(Uri.fromFile(aFile), > > > theIntentType); > > > try { > > > startActivity(theIntent); > > > } catch (Exception e) { > > > //display dialog > > > } > > > > Please advise. > > > -- > > > Ryan F. > > > > On Mar 5, 2:10 pm, Adobe DI Mobile <mobilead...@gmail.com> wrote: > > > > > The Photoshop.com Mobile editor is now available to the Android > > > > developer community as an activity that handles actions of type > > > > Intent.ACTION_EDIT, for image content that has data of mime-type image/ > > > > *. > > > > > For more information on incorporating the editor into your Android > > > > application, please > > > > visit:http://mobile.photoshop.com/android/developers.html-Hidequoted > > > > text - > > > > - Show quoted text -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en