Hi,
I have the following situation :
An Activity (let's call it main) and a Service...
The Activiy get's started right away, after which it couples to the
Service. I'd liek the Service to be able to send broadcasts so that my
Main (but other activities as well) can capture anything the Service
has to say ;)
Now I noticed though, that my Main activity cannot both include
<activity android:name=".nowPlayingGUI"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/
Theme.NoTitleBar.Fullscreen"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".nowPlayingGUI">
<intent-filter>
<action
android:name="development.android.service.musicServiceUpdate"></
action>
</intent-filter>
</receiver>
thus it cannot start up as the MAIN activity AND be a receiver for a
broadcast...
Is this correct, and how should I approach this problem to be able to
accomplish what I have described at the beginning of the post ?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en