SoftReference
SoftReference

Reputation: 7149

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 thing, thanks

Upvotes: 2

Views: 140

Answers (2)

omermuhammed
omermuhammed

Reputation: 7385

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.

Upvotes: 1

Noel
Noel

Reputation: 7410

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.

Upvotes: 0

Related Questions