Mediastore thumbnail refresh

by Christine » Thu, 10 Sep 2009 04:39:18 GMT


Sponsored Links
 I use the image_capture intent to take a picture. But when I
subsequently access the gallery from within my app, the picture
doesn't show up. Apparently the thumbnails aren't refreshed in the
mean time? How can I force a refresh of the gallery thumbnails? I
couldn't find a method to do so - though I may have overlooked it.

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



Other Threads

1. Why more than one buttons are highlighted on one screen

Hi,

There are 15 buttons on the screen of my application. Normally only one
button is highlight, for example buttonA. But if I press buttonB for a long
time and/or multi-times it will be highlight too. And the buttonA is still
highlight. So two buttons are highlighted. Use the same way three or four
buttons will be highlighted at same time on the screen. If I use direction
key to move the cursor over all the highlight button then only one button is
highlight.

I use button to change frequency in my program. If pressing button in less
than FIRST_DELAY it only changes frequency one step. It will change one more
step for every CONST_DELAY after FIRST_DELAY. It works fine. The issue is
the highlight when pressing a long time.

I put the program bellow:

private Handler switchHandler = new Handler()
{
   @Override
   public void handleMessage(Message message)
   {
      if( MESSAGE_INCREASE_CHANNEL == message.what )
      {
          //
          sendEmptyMessageDelayed( MESSAGE_INCREASE_CHANNEL, CONT_DELAY);
      }
   }
}
public void onCreate(Bundle savedInstanceState)
{
   super.onCreate(savedInstanceState);
   Button button = (Button)findViewById( R.id.radio_channel_up);
   button.setOnTouchListener( new View.OnTouchListener() {
      public boolean onTouch(View view, MotionEvent event)
      {
         if( view instanceof Button )
         {
            if( MotionEvent.ACTION_DOWN == event.getAction() )
            {
               //
               switchHandler.sendEmptyMessageDelayed(
MESSAGE_INCREASE_CHANNEL, FIRST_DELAY);
               return true;
            }
         }
         return false;
      }
   });
}

Thanks,

Shude

-- 

2. custom ArrayAdapter compile error

I'm trying to create my own ArrayAdapter.  I'm missing something.  I
cannot get the code to compile.  The documentation says I need to
override getView.  But the compiler isn't seeing getView as a method
defined in the super class.   What am I missing?

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.TextView;


public class Stock
{
   // etc....
}


public class StockAdapter extends ArrayAdapter<Stock>
{

        // ------------------------------------------------------------
        //
        public StockAdapter(Context context, int textViewResourceId, Stock[]
objects)
        {
                super(context, textViewResourceId, objects);
        }

        @Override
        public View getView(int position, View convertView, ViewGroup
parent)
        {
        }
}

-- 

3. ListView "Header"

4. Setting RFCOMM/SPP Bluetooth Baud rate

5. Activity.openOptionsMenu error

6. Not sure where to find out how to do this - the "Busy" spinning icon

7. Accessing Email provider