I use android 2.2 for developing my application. But when I run it on 2.1 emulator, it caught ome exception.
Every exception is caught on 'Context'. Actaully I am using ActivityGroup in my application. And my activity is extending another class. So i use 'this.getParent()' in the field of 'Context'. This is working fine in android 2.2 and also on later version. I use getBaseConext() and getApplicationContext(). But the error is still remains there. The dialog is coming. But then suddently it caught exception.
For example :
Dialog dateDialog = new Dialog(this.getParent());
But in android 2.1 , it caught Exception: WindowManager$BadTockenException .
How can I specify 'context' in android 2.1 ?
Thank you....