Facebook gives source files that you have to import into eclipse, when you import these files, eclipse will automatically generate a R.java class that contains static integer identifiers for "drawable" objects that are later referenced in code...
Drawable crossDrawable = getContext().getResources().getDrawable(R.drawable.com_facebook_close);
The R.Drawable.com_facebook_close returns an integer value reference for png files included in the SDk.
The problem is once I export this sdk and reference in b4a, the r.drawable class becomes obsolete because the reference pointers get lost when I build my b4a project with its own res/drawable folder and objects.
I put the png files in my b4a project, but the Drawable crossDrawable = getContext().getResources().getDrawable(R.drawable.com_facebook_close); will return a reference integer that no longer maps to my b4a resoucre items. I then get a java.lang.NoClassDefFoundError: com.facebook.android.R$drawable error.
I imagined that eclipse devs do not run into this because because a new r class is rebuilt when they compile their final project.
Drawable crossDrawable = getContext().getResources().getDrawable(R.drawable.com_facebook_close);
The R.Drawable.com_facebook_close returns an integer value reference for png files included in the SDk.
The problem is once I export this sdk and reference in b4a, the r.drawable class becomes obsolete because the reference pointers get lost when I build my b4a project with its own res/drawable folder and objects.
I put the png files in my b4a project, but the Drawable crossDrawable = getContext().getResources().getDrawable(R.drawable.com_facebook_close); will return a reference integer that no longer maps to my b4a resoucre items. I then get a java.lang.NoClassDefFoundError: com.facebook.android.R$drawable error.
I imagined that eclipse devs do not run into this because because a new r class is rebuilt when they compile their final project.