I have an Adobe Air application that intends to take a screenshot using the Native Extension on an Android device, but the java code returns a black image.
public FREObject call(FREContext context, FREObject[] params) { View view = context.getActivity().getWindow().getDecorView(); view.setDrawingCacheEnabled(true); view.buildDrawingCache(); Bitmap image = view.getDrawingCache(); }
I'm not very good at Adobe Air. My Java code works specifically on the Android Java Application, but returns a black image in the Adobe Air Android application with its own extension.
Is there any solution or any way to take a screenshot using Java in NativeExtension?
Thank you so much!
java android actionscript-3 air
user2644464
source share