<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt Notification example, How to use it without making it the main activity in manifest?]]></title><description><![CDATA[<p dir="auto">I want to be able to use the notification example provided by Qt without having to declare it as the main activity in the manifest. Link to Qt notification example is <a href="http://doc.qt.io/qt-5/qtandroidextras-notification-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">Here</a></p>
<p dir="auto">I already have another activity that i am using as the main activity called "MyCustomAppActivity", its code is here:</p>
<pre><code>package org.qtproject.example.notification;
import org.qtproject.example.notification.R;
import org.qtproject.qt5.android.bindings.QtActivity;
import org.qtproject.qt5.android.bindings.QtService;
import org.qtproject.example.notification.MyCustomAppService;
import org.qtproject.example.notification.NotificationClient;
import android.content.Intent;
import android.util.Log;
import android.os.Bundle;

public class MyCustomAppActivity extends QtActivity {
    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Log.i("Activity", "Starting service!");
        Intent serviceIntent = new Intent(this, org.qtproject.example.notification.MyCustomAppService.class);
        startService(serviceIntent);
    }  
}
</code></pre>
<p dir="auto">Or if that is not possible, then I want to be able to launch the service from the notification class and I will no longer need "MyCustomAppActivity" class, and I will put the Qt notification class as the main activity in the manifest. How can I do that?</p>
]]></description><link>https://forum.qt.io/topic/79948/qt-notification-example-how-to-use-it-without-making-it-the-main-activity-in-manifest</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 18:34:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/79948.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Jun 2017 09:42:19 GMT</pubDate><ttl>60</ttl></channel></rss>