[android-developers] Re: Problems to get Latitude/Longitude from a picture

2011-06-15 Thread Streets Of Boston
Have you tried to read the images' EXIF information for the 
longitude/latitude?

-- 
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: Problems to get Latitude/Longitude from a picture

2011-06-21 Thread Axel B
Thank you for your answer, I will try that.

On 15 juin, 15:16, Streets Of Boston  wrote:
> Have you tried to read the images' EXIF information for the
> longitude/latitude?

-- 
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: Problems to get Latitude/Longitude from a picture

2011-07-11 Thread Axel B
Okay, now I tried to read the EXIF infos of my pictures but I stil
have an error, apparently a problem of path.
Here is the code :

File myFile = new File("/sdcard/DCIM/100MEDIA/IMAG0001.jpg");
ExifInterface exif = new ExifInterface(myFile.getCanonicalPath());
exif.getAttribute(ExifInterface.TAG_DATETIME);

The first line causes an error : can’t open ‘/mnt/sdcard/DCIM/100MEDIA/
IMAG0001.jpg’
I tried several different paths, it's strange, all the examples I
found on the web were using this path...
A little help would be great! :)
Thanks in advance.

Axel

On 21 juin, 09:52, Axel B  wrote:
> Thank you for your answer, I will try that.
>
> On 15 juin, 15:16, Streets Of Boston  wrote:
>
>
>
>
>
>
>
> > Have you tried to read the images' EXIF information for the
> > longitude/latitude?

-- 
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: Problems to get Latitude/Longitude from a picture

2011-07-11 Thread Axel B
Hello Raghav,
Thank you for your interest in my issue.

I'm only sure about the name (there is a picture called IMAG0001.jpg),
and about this folder "DCIM/100MEDIA/", for I checked by exploring on
computer.

Then I tried different things for the root folder, but since the
examples all use "sdcard", I thought it was a standard. I would like a
generic path, that could work on every Android phone, not only mine...

On 11 juil, 12:03, Raghav Sood  wrote:
> If you got the path from the examples on the web, are you sure your image
> name or storage folder name is not different?
>
>
>
>
>
>
>
>
>
> On Mon, Jul 11, 2011 at 2:25 PM, Axel B  wrote:
> > Okay, now I tried to read the EXIF infos of my pictures but I stil
> > have an error, apparently a problem of path.
> > Here is the code :
>
> > File myFile = new File("/sdcard/DCIM/100MEDIA/IMAG0001.jpg");
> > ExifInterface exif = new ExifInterface(myFile.getCanonicalPath());
> > exif.getAttribute(ExifInterface.TAG_DATETIME);
>
> > The first line causes an error : can’t open ‘/mnt/sdcard/DCIM/100MEDIA/
> > IMAG0001.jpg’
> > I tried several different paths, it's strange, all the examples I
> > found on the web were using this path...
> > A little help would be great! :)
> > Thanks in advance.
>
> > Axel
>
> > On 21 juin, 09:52, Axel B  wrote:
> > > Thank you for your answer, I will try that.
>
> > > On 15 juin, 15:16, Streets Of Boston  wrote:
>
> > > > Have you tried to read the images' EXIF information for the
> > > > longitude/latitude?
>
> > --
> > 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
>
> --
> Raghav 
> Soodhttp://www.raghavsood.com/http://wiki.androidappcheck.com/http://www.telstop.tel/https://market.android.com/developer?pub=Raghav+Sood

-- 
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: Problems to get Latitude/Longitude from a picture

2011-07-11 Thread Raghav Sood
If you got the path from the examples on the web, are you sure your image
name or storage folder name is not different?

On Mon, Jul 11, 2011 at 2:25 PM, Axel B  wrote:

> Okay, now I tried to read the EXIF infos of my pictures but I stil
> have an error, apparently a problem of path.
> Here is the code :
>
> File myFile = new File("/sdcard/DCIM/100MEDIA/IMAG0001.jpg");
> ExifInterface exif = new ExifInterface(myFile.getCanonicalPath());
> exif.getAttribute(ExifInterface.TAG_DATETIME);
>
> The first line causes an error : can’t open ‘/mnt/sdcard/DCIM/100MEDIA/
> IMAG0001.jpg’
> I tried several different paths, it's strange, all the examples I
> found on the web were using this path...
> A little help would be great! :)
> Thanks in advance.
>
> Axel
>
> On 21 juin, 09:52, Axel B  wrote:
> > Thank you for your answer, I will try that.
> >
> > On 15 juin, 15:16, Streets Of Boston  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Have you tried to read the images' EXIF information for the
> > > longitude/latitude?
>
> --
> 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
>



-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

-- 
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: Problems to get Latitude/Longitude from a picture

2011-07-11 Thread Raghav Sood
The images can be saved to locations defined by you. Maybe you defined a
location in your app and forgot about it and are trying to use another
location. Also the image names will change as you take more images and want
to use a different one. It is also possible, but unlikely, that you are
saving the images to the phone memory instead of the sdcard.

On Mon, Jul 11, 2011 at 7:42 PM, Axel B  wrote:

> Hello Raghav,
> Thank you for your interest in my issue.
>
> I'm only sure about the name (there is a picture called IMAG0001.jpg),
> and about this folder "DCIM/100MEDIA/", for I checked by exploring on
> computer.
>
> Then I tried different things for the root folder, but since the
> examples all use "sdcard", I thought it was a standard. I would like a
> generic path, that could work on every Android phone, not only mine...
>
> On 11 juil, 12:03, Raghav Sood  wrote:
> > If you got the path from the examples on the web, are you sure your image
> > name or storage folder name is not different?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Jul 11, 2011 at 2:25 PM, Axel B  wrote:
> > > Okay, now I tried to read the EXIF infos of my pictures but I stil
> > > have an error, apparently a problem of path.
> > > Here is the code :
> >
> > > File myFile = new File("/sdcard/DCIM/100MEDIA/IMAG0001.jpg");
> > > ExifInterface exif = new ExifInterface(myFile.getCanonicalPath());
> > > exif.getAttribute(ExifInterface.TAG_DATETIME);
> >
> > > The first line causes an error : can’t open ‘/mnt/sdcard/DCIM/100MEDIA/
> > > IMAG0001.jpg’
> > > I tried several different paths, it's strange, all the examples I
> > > found on the web were using this path...
> > > A little help would be great! :)
> > > Thanks in advance.
> >
> > > Axel
> >
> > > On 21 juin, 09:52, Axel B  wrote:
> > > > Thank you for your answer, I will try that.
> >
> > > > On 15 juin, 15:16, Streets Of Boston 
> wrote:
> >
> > > > > Have you tried to read the images' EXIF information for the
> > > > > longitude/latitude?
> >
> > > --
> > > 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
> >
> > --
> > Raghav Soodhttp://
> www.raghavsood.com/http://wiki.androidappcheck.com/http://www.telstop.tel/https://market.android.com/developer?pub=Raghav+Sood
>
> --
> 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
>



-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

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