[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 axel.bour...@gmail.com wrote:
 Thank you for your answer, I will try that.

 On 15 juin, 15:16, Streets Of Boston flyingdutc...@gmail.com 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 raghavs...@gmail.com 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 axel.bour...@gmail.com 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 axel.bour...@gmail.com wrote:
   Thank you for your answer, I will try that.

   On 15 juin, 15:16, Streets Of Boston flyingdutc...@gmail.com 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


[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 flyingdutc...@gmail.com 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] Problems to get Latitude/Longitude from a picture

2011-06-15 Thread Axel B
Hello Android Community,
I have some problems to retrieve geolocation info from pictures I took
with the camera.

Actually, it used to work fine on my HTC Magic, but since I got a new
HTC Desire S, all I get is 0.0 for my longitude/latitude, as if the
pictures were not geolocated... However in the phone gallery, I can
clearly see in the picture details, the correct latitude/longitude.

Here is the sample of code I use to parse pictures. I'm using SDK
version 4 (google api 1.6).

myCursor = this.managedQuery(Media.EXTERNAL_CONTENT_URI, null, null,
null, null);
while ( myCursor.moveToNext()){
Float latitude =
myCursor.getFloat(myCursor.getColumnIndex(latitude));
Float longitude =
myCursor.getFloat(myCursor.getColumnIndex(longitude));
String title =
myCursor.getString(myCursor.getColumnIndex(MediaStore.Images.ImageColumns.TITLE));
}

And so, when I print longitude and latitude, they are set to null,
whereas other informations seem to be good, as title, date taken, etc.

Do you have an idea?

In advance, thank you for your help.
Axel

-- 
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: TabActivity not the main activity

2011-04-23 Thread Axel B
Thank you!
Actually, my tabActivity was not complete, my mistake.
Problem solved.

On 23 avr, 00:35, Mark Murphy mmur...@commonsware.com wrote:
 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.









 On Fri, Apr 22, 2011 at 5:19 AM, Axel B axel.bour...@gmail.com wrote:
  Hello everyone,
  I hope someone will be able to help me with this issue.
  I'm developing a program that starts with a first Activity, which is
  my welcome screen.
  I would like to call an activity from here (using a start button on
  this screen), that would be a TabActivity.

  But I keep having problems when I do so (program stops unexpectedly).
  Plus I don't see any examples where a TabActivity is not the main
  activity of the program.
  Hence, I really wonder if this is possible.

  Anyone can help me?

  Thanks by advance.

  Axel

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

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

 Android Training in NYC:http://marakana.com/training/android/

-- 
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] TabActivity not the main activity

2011-04-22 Thread Axel B
Hello everyone,
I hope someone will be able to help me with this issue.
I'm developing a program that starts with a first Activity, which is
my welcome screen.
I would like to call an activity from here (using a start button on
this screen), that would be a TabActivity.

But I keep having problems when I do so (program stops unexpectedly).
Plus I don't see any examples where a TabActivity is not the main
activity of the program.
Hence, I really wonder if this is possible.

Anyone can help me?

Thanks by advance.

Axel

-- 
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] about my last message

2011-04-22 Thread Axel B
Sorry about my last message, problem solved ! It was something really
stupid, I apologize.

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