android supporting app on 2.2 till 1.5
i want to support our app for 2.2 and while being able to run on 1.5 that means minsdkversion = 3
the problem is that to support all platform i have cut and paste all resorces from mdpi to drawable as 1.5 has different mechanism for choosing resources, now the problemn is that for some resources it says resource not found which i can pin point in drawable folder, any one experienced such 开发者_如何学JAVAthing, thanks
Have your mdpi resources in "drawable" folder and in drawable-mdpi set up aliases pointing to drawable folder resources. If you need more to understand aliasing look it up here.
I've had this problem before but for me, the issue was that I was importing the wrong resources. Ensure that you are importing YOUR drawable resources and not android's:
BAD:
import android.R.drawable;
GOOD:
import com.myapp.R;
Let me know if it works.
精彩评论