setOnClickListener doesnt work after a call to startActivity()...

by Issamux » Wed, 12 May 2010 15:14:11 GMT


Sponsored Links
 hi,Androiderz

i use  startActivity(myintent) or even an startActivityForResult to
call an other activity (PackageInstaller ) , when it finished ... it
disable setOnClickListener ?!!! i cant any more click in button in my
UI ...???
some suggestion ? solutions

Issamux

--



Other Threads

1. unmount SD card

Hi,

I am using Froyo version on the phone. What is the safest way to
unmount and remove SD card? Is it only through "Settings->Unmount SD
card"? When I try to remove the card without using Settings option, I
see errors on console from FAT and the card is not unmounted properly.
Only a reboot helps.

Thanks.

-- 

2. cropping and changing images on a soft keyboard

Hi,
I am trying to crop an image on a key for a soft keyboard.
i want to do the following:
1.create a key with an icon (from a Bitmap)
2.take that Bitmap and crop it
3.set the new Bitmap back on the key as an icon
Optional:
4.do some or most of this from the XML using the parser (i could not get a
hook to the res/drawable/<image name> looking at the Xml Parser)

here is what i do:

   protected Key createKeyFromXml(Resources res, Row parent, int x, int y,
            XmlResourceParser parser) {
         Key key = new MyKey(res, parent, x, y, parser);//create a normal
key
        Bitmap orgBmp = BitmapFactory.decodeResource(res,
R.drawable.sym_keyboard_delete);//i took a new hard-coded image here, but
prefer this to be coming from the xml instead, in the MyKey constructor)
        Bitmap  cropedBitmap = Bitmap.createBitmap(orgBmp, 0, 0, 20, 10);
//crop the image
        Canvas canvas = new Canvas(cropedBitmap);//put it in a canvas, since
draw() only accepts canvas
        if(key.icon!=null){ //if icon exists, draw it back on the key
            key.icon.draw(canvas);
        }
        return key;
    }

Any ideas why this does not work?
any simpler solutions for this?
Thanks,

-- 




-- 
Yaron Spektor

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

3. Change the Icon on a Keyboard key.

4. Change Keyboard Key label at runtime

5. Problem with resources while drawing

6. Tabs at bottom of Activity

7. Reviews showing up in developer account but not in Android market.