bm
pBackground is a Bitmap object.
bm
dBackground is a BitmapDrawable object.
In the program from the Beginner's Guide we need a Bitmap (bm
pBackground) to be able to draw onto it with a Canvas. And then set this bitmap to the BitmapDrawable (bm
dBackground) and then set this BitmapDrawable to the Activitys Background, thats how Android does work.
If you dont need to draw onto the Background Bitmap you could initialize the BitmapDrawable directly with
bmdbackground.Initialize(LoadBitmap(File.DirAssets, "background.jpg"))
The Background property can be of different types: ColorDrawable, GradientDrawable and BitmapDrawable, that's why we need to define the BitmapDrawable.
The different documentation I know of is the: Beginner's Guide, the Dokumentation Wiki, the Tutorials, the
HelpViewer, the
B4A Help Viewer and the forum. And more generaly
Android Developpers.
Best regards.