Here's my manifest.xml (with no process attributes):

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
package="com.mypackage.rm" android:versionCode="1"
android:versionName="@string/versionName">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />

<application android:icon="@drawable/launcher"
android:label="@string/app_name" android:theme="@style/CustomTheme"
android:name=".core.RandomMomentsApplication">
<activity android:name="com.mypackage.rm.activity.ChoosePHAActivity" 
android:screenOrientation="portrait" />
<activity android:name="com.mypackage.rm.activity.ChooseUserActivity" 
android:screenOrientation="portrait" />
<activity android:name=".activity.SetupActivity" 
android:screenOrientation="portrait" />

<!-- not fixing this warning (leaving default of exported=true) so the app 
will open when run from Eclipse -->
<activity 
    android:name="com.mypackage.rm.activity.ChooseMomentActivity"
android:alwaysRetainTaskState="true"
android:launchMode="singleTask"
android:screenOrientation="portrait"
>
<intent-filter>
    <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.HOME"/>
                <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity 
    android:name="com.mypackage.rm.activity.NotificationActivity"
    android:theme="@android:style/Theme.Dialog"
    android:screenOrientation="portrait" /> 
<activity android:name="com.mypackage.rm.activity.UpdateAPKActivity" 
android:screenOrientation="portrait" />
<activity 
android:name="com.mypackage.rm.activity.CreateTestMomentsActivity" 
android:screenOrientation="portrait" />
<activity android:name="com.mypackage.rm.activity.MultiResponseActivity" 
android:screenOrientation="portrait" />     
    
<activity android:name="com.rsginc.survey.SurveySectionActivity" 
android:screenOrientation="portrait" >
     <intent-filter>
<action android:name="com.rsginc.survey.SURVEY_START" />
<!-- DEFAULT: execute if being directly invoked. -->
                <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
    
<activity 
android:name="com.mypackage.rm.activity.ChooseVoucherNonVoucherActivity" 
android:screenOrientation="portrait" />
<activity android:name="com.mypackage.rm.activity.ChooseTaskActivity" 
android:screenOrientation="portrait" />
<activity android:name="com.mypackage.rm.activity.ConfirmActivity" 
android:screenOrientation="portrait">
    <intent-filter>
<action android:name="com.rsginc.survey.SURVEY_COMPLETE" />
<!-- DEFAULT: execute if being directly invoked. -->
                <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.rsginc.message.activity.ThreadActivity" 
android:screenOrientation="portrait" />
        <activity 
android:name="com.rsginc.message.activity.ThreadsActivity" 
android:screenOrientation="portrait" />
        <activity 
android:name="com.rsginc.message.activity.MessageComposeActivity" 
android:screenOrientation="portrait" />
 <receiver android:name="com.mypackage.rm.core.AlarmReceiver" />
<receiver android:name=".core.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<receiver android:name="com.rsginc.lib.ConnectionMonitor">
    <intent-filter>
        <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
    </intent-filter>    
</receiver>
<receiver android:name=".core.Syncher">
    <intent-filter>
        <action 
android:name="com.rsginc.lib.ConnectionMonitor.CONNECTION_ESTABLISHED" />
    </intent-filter>   serv
</receiver>
<service android:name=".activity.ChooseMomentActivity$VersionSyncerService" 
/>
</application>

    <uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
</manifest>

On Sunday, November 11, 2012 5:17:28 PM UTC-5, Nobu Games wrote:
>
> Post your manifest.xml. I assume that you have your broadcastreceiver or 
> some service running in a separate process. That would cause 
> Application.onCreate to be called multiple times.
>
> On Saturday, November 10, 2012 3:32:42 PM UTC-6, Craig wrote:
>>
>> I received an error because I'm doing something (init'ing ACRA) in my 
>> overridden Application class' onCreate, and I expected this method to be 
>> called only once. I think I have a clue as to what is happening - I see 
>> multiple logcat lines like: "Force stopping package ...." for my package 
>> close together, for example:
>> 11-09 11:53:40.394
>> 11-09 11:53:40.744
>> 11-09 11:53:41.364
>>
>> I am using a Service, but only through onHandleIntent, and I did not 
>> register it to run in a separate process. 
>>
>> My theory is that I'm holding onto some reference which is preventing my 
>> app from being stopped (and garbage collected).
>>
>> Does this make sense? If it does, is there a good way to track down what 
>> reference or references could be causing this? My app is rather large 
>> (about a dozen activities, a handful of async tasks, a few 
>> broadcasters/receivers, etc.), so I was really hoping for a good way to 
>> track these down. 
>>
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to