B4A currently just does not support creating activities with libraries and as Erel said I think it would be very difficult.
The best thing would be a new module type "preferences activity" in B4A IDE. Perhaps Erel will have a look into it in the future. I think it won't be too hard to implement preferences activities directly into B4A.