How to broadcast an intent?

by Pierre » Mon, 16 Jun 2008 17:11:42 GMT


Sponsored Links
 Hi,all

Anybody can tell me how to broadcast an intent?

Thanks in advance!

Pierre
--~--~---------~--~----~------------~-------~--~----~



How to broadcast an intent?

by Diego Torres Milano » Mon, 16 Jun 2008 17:33:57 GMT


 You may find this post ( http://dtmilano.blogspot.com/2008/03/android- 
playing-with-intents-this.html) useful.



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


Sponsored Links


How to broadcast an intent?

by Andr茅 Charles Legendre » Mon, 16 Jun 2008 18:58:45 GMT


 Pierre

broadcastIntent(intent).

Don't forget to add your intent to the filter in the receiver side.
Or your receiver will not receive it.

Andre

On Mon, Jun 16, 2008 at 12:33 PM, Diego Torres Milano




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



Other Threads

1. MediaPlayer freezing on start

Hi all,

I have implemented a mediaplayer. Some times when I call start() my
application freezes. Has some one had the same problem and can give me
some hint on what might be wrong? It does not freeze every time call
start, only now and then.
--~--~---------~--~----~------------~-------~--~----~

2. bitmap image changed. but why?

hi all,

I wrote following code.

class MyView extends View {
        Bitmap bitmap;

        public MyView(Context context) {
                super(context);
                Drawable drawable =
context.getResources().getDrawable(R.drawable.icon);
                bitmap = Bitmap.createBitmap(100, 100, true);
                Canvas canvas = new Canvas(bitmap);
                drawable.setBounds(0, 0, 100, 100);
                drawable.draw(canvas);
        }



        @Override
        protected void onDraw(Canvas canvas) {
                Paint paint = new Paint();
                paint.setARGB(255, 255, 255, 255);
                canvas.drawRect(0, 0, screenWidth, screenHeight, paint);
                canvas.drawBitmap(bitmap, 10, 10, null);
                int[] imagedata = new int[100 * 100];
                bitmap.getPixels(imagedata, 0, 100, 0, 0, 100, 100);
                bitmap.setPixels(imagedata, 0, 100, 0, 0, 100, 100);
                invalidate();

                try {
                        Thread.sleep(100);
                } catch (InterruptedException e) {
                }
        }

        int screenWidth, screenHeight;

        @Override
        protected void onSizeChanged(int i, int j, int k, int l) {
                screenWidth = i;
                screenHeight = j;
                super.onSizeChanged(i, j, k, l);
        }

}


These code just retrieve the pixel data and then put them back. But
why i got different result on the screen. It seems like the retrieve
method change some pixel? Can anybody help me with this please?
Thanks.

BR
Gibson
--~--~---------~--~----~------------~-------~--~----~

3. problem in overriding onkeydown method of gallery

4. What kind of text file can android read?

5. about package.org.apache

6. Amount of Zoom from Distance in Maps (Very Easy)

7. openFileOutput questions / clarifications