Embed component to native Android view


#1

In iOS, I can use Component::getNativeHandle() to get the UIView by (UIView*) casting. How do I achieve this on Android? What type should I cast to? Thanks.


#2

Very much harder on Android - it's all JNI stuff. You'd need to dig into the actual native code to see what's going on there, I can't remember offhand.


#3

Does JUCE implment Java activity or NativeActivity for component? Do I need to modify the JUCE souce code to achieve this feature?


#4

 

Juce Activity is java. the raw handle will be an Android "View" object.