move EXIF interface from Camera to android framework

by Formosalf » Wed, 21 Jan 2009 13:43:08 GMT


Sponsored Links
 There is no Java API for EXIF in current framework. It is inside Camera apk.
Its native library already exists in externel/jhead, will it be better that
we move Camera/ExifInterface.java to Android framework? Not inside Camera
apk?

--~--~---------~--~----~------------~-------~--~----~



move EXIF interface from Camera to android framework

by Dave Sparks » Wed, 21 Jan 2009 18:55:08 GMT


 Where do you propose to move it?



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


move EXIF interface from Camera to android framework

by hanchao3c » Thu, 22 Jan 2009 01:45:50 GMT


 It seems the Camera/ExifInterface.java is only one usage of externel/
jhead.



--~--~---------~--~----~------------~-------~--~----~



move EXIF interface from Camera to android framework

by Dave Sparks » Fri, 23 Jan 2009 00:10:05 GMT


 Yes, I agree with that. My question is if we generalize it (and we
can't really just remove it from Camera because it's part of the
public API), where should it go in the framework?

I have my own ideas, but I'd like to hear other opinions.




--~--~---------~--~----~------------~-------~--~----~



move EXIF interface from Camera to android framework

by chenyng2...@yahoo.com » Wed, 11 Mar 2009 15:58:48 GMT


 Hi Dave,

Have we decided on this?  Another quesion, which EXIF version does
Android support?  do we support EXIF with location info?

Thanks,
Yong





--~--~---------~--~----~------------~-------~--~----~



move EXIF interface from Camera to android framework

by Dave Sparks » Thu, 12 Mar 2009 02:39:27 GMT


 No decision has been made about where to put the EXIF libraries.

I'm not sure what version of EXIF spec is supported - the code is
available in the open source tree if you want to have a look. We do
support geo-tags and this is enabled in the camera application.

On Mar 11, 8:58 am, "chenyng2...@yahoo.com" <ericrule...@gmail.com>





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Start AnimationDrawable in a List / Gallery

Hello all,

I'm trying to perform an AnimationDrawable with a custom "waiting
picture", in the way described here :
- 
http://developer.android.com/guide/topics/graphics/2d-graphics.html#frame-animation
- 
http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html

My goal is to have a waiting animation for each picture of a Gallery
View, while picture is loading (through web or whatever).

I have a custom view which include an ImageView for the loading
animation + a Gallery that we be filled with this custom view.

My first issue is to properly call the start() method on the
animation. Indeed this should not be called right after calling the
ImageView constructor. On the DevGuide link (see above), it's
recommended to perform the start() call in the onWindowFocusChanged()
method of your activity. This doesn't work properly in my case, as the
elements of Gallery that are not visible are not yet built (they will
be built only in the getView of the Gallery adapter). So, I have no
choice but to use one trick or another, for instance calling start()
after a given delay, hoping the ImageView would be OK at this time.

My second issue is to keep the animation going on. I use the
"animation-list" with "android:oneshot="false"", which is OK when the
animation is on screen. But when the user scroll the gallery so as the
animation becomes no longer visible, the animation automatically
stops. When the user scrolls back to the animation, it is no longer
running.

So my questions are :

- Is there any built-in way of performing a waiting animation before
the gallery's picture load ?
- When should be called the start() method ?
- How can I ensure the animation is always running, even after getting
out of screen bounds ?

Regards,
G.


PS, some pieces of code I use :

anim/wait.xml
<animation-list xmlns:android="http://schemas.android.com/apk/res/
android"        android:oneshot="false">
  <item android:drawable="@drawable/loader_large_01"
android:duration="100" />
  <item android:drawable="@drawable/loader_large_02"
android:duration="100" />
</animation-list>

layout/main.xml
<ImageView android:id="@+id/ImageView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="@anim/wait"></
ImageView>
<Gallery android:id="@+id/Gallery01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"></Gallery>


public class Test extends Activity {
 public void onCreate(Bundle savedInstanceState) {
  Gallery g = (Gallery) this.findViewById(R.id.Gallery01);
  g.setAdapter(adapter);
 }


 private AnimationAdapter adapter = new AnimationAdapter();

 private class AnimationAdapter extends BaseAdapter {
  private AnimationDrawable[] cache = new AnimationDrawable[15];

  public View getView(int position, View convertView, ViewGroup
parent) {
        View v = new ImageView(Test.this);
        v.setBackgroundResource(R.anim.wait);
        v.setLayoutParams(new Gallery.LayoutParams(100, 100));

        this.cache[position] = (AnimationDrawable) v.getBackground();
        this.cache[position].setVisible(true, true);
        return v;
   }
 (...)
   public void start() {
        for (int i = 0; i <= this.cache.length - 1; i++) {
                                if (this.cache[i] != null) {
                                        this.cache[i].start();
                                }
                        }
                }
        };


public void onWindowFocusChanged(boolean hasFocus) {
 super.onWindowFocusChanged(hasFocus);
 this.adapter.start();
}

}

-- 

2. Prefrence Screen for softkeyboard

Hello,
Following the code example i manged to create a keyboard that works
fine and shows up in the languaue setting screen.
I tried to create a prefrence screen for my keyboard but i have a
problem:
When I run the Screen as Normal Activty (Intent....startActivty()) it
works fine but when I go to the languaue setting screen my prefrence
screen dosent show.
What am I doing wrong?

In my manifist I declare it so:

<activity android:name="EnglishIMESettings"
                          android:label="string/ime_name">
</activity>

And my on create looks like this (my class extends
PreferenceActivity):

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.prefs);
}

-- 

3. Drawable is not drawn after setDrawableByLayerId

4. How to put resrouce files into a jar package?

5. No route to host issue, but Browser application works fine

6. How to create a spin wheel kind of animation ... in android?

7. Download Latest Software's and Books about Developers topic