android - Google Play services Adds up additional process and causes additional memory consumption -
i using google gcm in app , working fine , problem adds additional process (see screenpic shows 2 process) , named google play services (com.google.android.gms) consumes 20mb adds app usage 28mb
issue screenshot of app settings view
note: not using android:process anywhere in androidmanifest.xml
even after closing app still shows 1 service , 2 process
where come additional process ? tested in multiple devices (kitkat,lollipop)
<receiver android:name=".gcm.services.simple.gcmbroadcastreceiver" android:permission="com.google.android.c2dm.permission.send" android:exported="true"> <intent-filter> <action android:name="com.google.android.c2dm.intent.receive" /> <action android:name="android.net.conn.connectivity_change" /> <action android:name="android.intent.action.boot_completed" /> <action android:name="android.intent.action.my_package_replaced" /> <action android:name="android.intent.action.quickboot_poweron" /> <category android:name="com.tempapp" /> </intent-filter> </receiver> <service android:name=".gcm.services.simple.gcmintentservice" /> <service android:name=".gcm.services.listeners.instanceidlistener" android:exported="false"> <intent-filter> <action android:name="com.google.android.gms.iid.instanceid" /> </intent-filter> </service>
gradle:
module level
compile 'com.google.android.gms:play-services-appindexing:8.4.0' compile 'com.google.android.gms:play-services-gcm:8.4.0'
project level
classpath 'com.android.tools.build:gradle:2.1.0-alpha4' classpath 'com.google.gms:google-services:2.0.0-alpha6'
your app not 1 using google play services on phone. more half of apps out there use gps , 1 of them. don't think worry about.
Comments
Post a Comment