Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

FelgoAndroidActivity

FelgoAndroidActivity integrates Felgo in a native Android application. More...

Import Statement: import Felgo 3.0
Since: Felgo 3.7.0

Methods

Detailed Description

This Native App Integration item is available in native Android code.

It allows easy integration of QML content in your Android application. Extend any Activity where you would like to show QML content from FelgoAndroidActivity:

 public class MyQmlActivity extends FelgoAndroidActivity {

   @Override
   public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.activity_main);
     // more Activity setup
   }
 }

Inside this Activity, you can show QML content anywhere using FelgoAndroidFragment. Use a regular Activity or any other base type for Activities that do not show QML content.

Note: It is also possible to show QML content from an Activity with a different base type. In this case, forward the Activity lifecycle methods to FelgoAndroid.

For more information, see Integrate Felgo with Existing Applications.

See also FelgoAndroid.

Method Documentation

void onQmlInitialized()

FelgoAndroidFragment calls this method when the QML scene has been loaded.

You can override it to perform any additional initialization logic.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded