When people install my app, they get two apps (same app, two icons). Here's my AndroidManifest.xml file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.test">
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.INTERNET" />
<permission android:name="android.permission.MEDIA_CONTENT_CONTROL" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".SplashActivity"
android:theme="#style/AppTheme.SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SettingsActivity" />
<activity android:name=".HistoryActivity" />
<activity
android:name=".PaymentActivity"
android:screenOrientation="portrait" />
<activity
android:name=".PlayerActivity"
android:screenOrientation="portrait" />
<activity
android:name=".SearchActivity"
android:screenOrientation="portrait" />
<activity android:name=".VideoActivity" />
<activity
android:name=".FacebookActivity"
android:screenOrientation="portrait" />
<activity
android:name=".HomeActivity"
android:screenOrientation="portrait" />
<activity
android:name=".LibraryActivity"
android:screenOrientation="portrait" />
<activity
android:name=".LoginActivity"
android:screenOrientation="portrait" />
<activity
android:name=".BookDetailActivity"
android:screenOrientation="portrait" />
<activity
android:name=".BookActivity"
android:screenOrientation="portrait" />
<activity
android:name=".CategoryActivity"
android:screenOrientation="portrait" />
<activity
android:name=".TextActivity"
android:screenOrientation="portrait" />
<activity
android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="preloaded_fonts"
android:resource="#array/preloaded_fonts" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<service android:name="com.beraldo.playerlib.PlayerService" />
<receiver
android:name=".LaunchPlayerBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.beraldo.playerlib.LAUNCH_PLAYER_ACTIVITY" />
</intent-filter>
</receiver>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name" />
</application>
</manifest>
Any help would be greatly appreciated.
You have:
<activity
android:name=".SplashActivity"
android:theme="#style/AppTheme.SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
and you have:
<activity
android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Both have the <intent-filter> that says you want those activities to have icons in the launcher. If that is not what you want, remove the <intent-filter> from one of them.
Related
I have purchased this app from Codecanyon but the documentation is not so much clear. My question is how could I find the Default Activity Class Name?
This is my androidmanifest.xml file. I am unable to figure out the Launcher activity. I need this for FB login API integration.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
xmlns:tools="http://schemas.android.com/tools"
package="com.mehar.Consol">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.TYPE_SYSTEM_ALERT" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<dist:module dist:instant="true" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:usesCleartextTraffic="true">
<activity android:name=".Presentation.ui.activities.impl.WalletActivity"></activity>
<activity android:name=".Presentation.ui.activities.impl.ProductDescriptionActivity" />
<activity android:name=".Presentation.ui.activities.impl.ResetPasswordActivity" />
<activity android:name=".Presentation.ui.activities.impl.MyBidsActivity" />
<activity android:name=".Presentation.ui.activities.impl.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Presentation.ui.activities.impl.ProductReviewActivity" />
<activity android:name=".Presentation.ui.activities.impl.AccountInfoActivity" />
<activity android:name=".Presentation.ui.activities.impl.StripePaymentActivity" />
<activity android:name=".Presentation.ui.activities.impl.SellerShopActivity" />
<activity android:name=".Presentation.ui.activities.impl.PaymentActivity" />
<activity android:name=".Presentation.ui.activities.impl.RegisterActivity" />
<activity android:name=".Presentation.ui.activities.impl.ShippingActivity" />
<activity android:name=".Presentation.ui.activities.impl.PurchaseHistoryDetailsActivity" />
<activity android:name=".Presentation.ui.activities.impl.PurchaseHistoryActivity" />
<activity android:name=".Presentation.ui.activities.impl.WishlistActivity" />
<activity android:name=".Presentation.ui.activities.impl.BuyingOptionsActivity" />
<activity android:name=".Presentation.ui.activities.impl.PolicyViewActivity" />
<activity android:name=".Presentation.ui.activities.impl.ProductDetailsActivity" />
<activity android:name=".Presentation.ui.activities.impl.SubCategoryActivity" />
<activity android:name=".Presentation.ui.activities.impl.ProductListingActivity" />
<activity
android:name=".Presentation.ui.activities.impl.MainActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity" />
<activity android:name=".Presentation.ui.activities.impl.LoginActivity" />
<activity
android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="${applicationId}.braintree" />
</intent-filter>
</activity>
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="#string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
</application>
</manifest>
Please help me by telling the Default Activity Class Name?
<activity android:name=".Presentation.ui.activities.impl.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
The <activity></activity> tag that has this line:
<category android:name="android.intent.category.LAUNCHER" />
is your launcher activity, so it is SplashActivity. If you want to find what activity opens from this activity you need to check the code. Search for something like this:
Intent intent = new Intent(SplashActivity.this, OtherActivity.class;
startActivity(intent);
or
startActivity(new Intent(SplashActivity.this, OtherActivity.class));
There are many options to start a new activity but it should look like this. If you have any other questions just ask in the comments below.
I am submitting a new version of my app. But the developer console doesn't allow me to do so. It says that my app is not compliant with the new policies for the permission (ask for permission at runtime).
But as I can see, I don't use any dangerous permission...
My app is using the following permissions (according to the developer console) :
android.permission.ACCESS_NETWORK_STATE, android.permission.ACCESS_WIFI_STATE, android.permission.INTERNET, android.permission.WAKE_LOCK
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="fr.mehfile">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" tools:node="remove"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" tools:node="remove"/>
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:name=".ApplicationMz">
<activity
android:name=".view.SplashScreen"
android:configChanges="keyboardHidden"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".view.Accueil"
android:configChanges="keyboardHidden"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.Programs"
android:configChanges="keyboardHidden"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
</activity>
<activity
android:name=".view.Infos"
android:configChanges="keyboardHidden"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.NousContacter"
android:configChanges="keyboardHidden"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.ProgramDetail"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.NewsList"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.News"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.TimeTable"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".view.TimeTableTab"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service android:name="fr.mehfile.MyFirebaseMessagingService"
android:permission="">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
</manifest>
Thanks in advance for your help.
To find where permissions might be originating, you can look at the merged manifest file using Android Studio. Open your manifest file in Android Studio and the click the "Merged" tab at the bottom of the editor. Here is a picture for context:
I have declared storage permission in the manifest and try to seek user permission for SDK 23 and above. But, I found an issue, I cannot see the added permission in the app settings. I have never come across such situation. Let me know where am I doing wrong. Here are the screen shots.
Manifest File:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kinephonics">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera2.full" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<application
android:name=".ui.MyApplication"
android:allowBackup="true"
android:icon="#mipmap/app_icon"
android:label="#string/app_name"
android:roundIcon="#mipmap/app_icon"
android:supportsRtl="true">
<activity
android:name=".ui.LoginActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="www.kinephonics.com"
android:scheme="http" />
</intent-filter>
</activity>
<activity
android:name=".ui.LandingPage"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".ui.SplashScreen"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.InformationActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".ui.PlayerActivity"
android:screenOrientation="landscape"
android:theme="#style/Theme.AppCompat.Light.NoActionBar" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="#string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
<activity
android:name=".QuizActivity"
android:theme="#style/Theme.AppCompat.Light.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name=".ui.AppBaseActivity"
android:theme="#style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".ui.VideoPlayList"
android:theme="#style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".ui.ActivityLog"
android:theme="#style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".ui.LockedContentActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateHidden" />
<activity
android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="com.kinephonics.braintree" />
</intent-filter>
</activity>
<activity
android:name=".ui.DictionaryActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateHidden" />
</application>
</manifest>
I have a mobile app that needs to run on Android TV. I don't have a TV to test it, so I'm trying over an emulator.
The app works just fine on Android versions < 7 (Marshmallow, Lollipop). But when I open it in the emulator with Nougat on it, the app keeps crashing and I get an error that says: "Leanback Launcher keeps stopping".
I've read that I should put some things in Manifest, but I'm confused, why is it working on Android versions < 7?
This is my Manifest, so if you can take a quick look and advise me what to put inside to make it work?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="------">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />
<permission android:name="android.permission.REBOOT" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<application
android:name="-----"
android:allowBackup="true"
android:icon="#drawable/ic_launcher_2"
android:label="#string/app_nameMain"
android:launchMode="singleTask"
android:theme="#style/AppTheme"
tools:replace="android:label">
<service android:name=".services.AutoUpdaterService" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.codepath.gcmquickstart" />
</intent-filter>
</receiver>
<service
android:name=".services.ZipaGcmListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:name=".services.ZipaInstanceIDListenerService"
android:exported="false">
<!-- <intent-filter> -->
<!-- <action android:name="com.google.android.c2dm.intent.RECEIVE" /> -->
<!-- </intent-filter> -->
</service>
<receiver android:name=".broadcasts.ConnectionChangeReceiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
</intent-filter>
</receiver>
<activity
android:name=".activities.LauncherActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTask"
android:theme="#style/App.Theme.Translucent"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.AlarmTriggerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:label=""
android:launchMode="singleInstance"
android:theme="#style/App.Theme.Translucent"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.LogInActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.BrowserManagerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyHomeCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WizardActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.DeviceManagerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<service android:name="com.zipato.mqtt.MqttService" />
<activity
android:name=".activities.RegisterActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<!-- <activity -->
<!-- android:name=".activities.ShakeSettingActivity" -->
<!-- android:configChanges="keyboardHidden|orientation|screenSize" -->
<!-- android:windowSoftInputMode="adjustPan"/> -->
<activity
android:name=".activities.PasswordRecoveryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.CameraActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="CameraActivity"
android:launchMode="singleTop"
android:screenOrientation="landscape"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.DiscoveryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.ScreenShotActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.MjpegStreamActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="CameraActivity"
android:launchMode="singleTop"
android:screenOrientation="landscape"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.ShowVCMenu"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.BrowserManagerActivity" />
</activity>
<activity
android:name=".activities.ShowDialogActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WidgetConfigSwitch"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigLevel"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigRGBW"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigSecurity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigThermostat"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetEventHandlerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:label=""
android:launchMode="singleInstance"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.CreateWeatherActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:windowSoftInputMode="adjustPan" />
<receiver
android:name=".broadcasts.ThermostatWidgetProvider"
android:label="#string/zipato_thermostat_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/thermostat_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.SecurityWidgetProvider"
android:label="#string/zipato_security_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/security_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.SwitchWidgetProvider"
android:label="#string/zipato_switch_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/switch_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.RGBWidgetProvider"
android:label="#string/zipato_rgb_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/rgb_appwiget_info" />
</receiver>
<receiver
android:name=".broadcasts.LevelWidgetProvider"
android:label="#string/zipato_level_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/level_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartDevicesWidgetProvider"
android:label="#string/zipato_start_dev_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_dev_app_widget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartRoomsWidgetProvider"
android:label="#string/zipato_start_rooms_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_room_app_widget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartScenesWidgetProvider"
android:label="#string/zipato_start_scenes_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_scenes_app_widget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartFavoriteWidgetProvider"
android:label="#string/zipato_start_fav_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_fav_app_widget_info" />
</receiver>
<service
android:name=".services.WidgetService"
android:exported="false">
<!-- <intent-filter> -->
<!-- <action android:name="com.google.android.c2dm.intent.RECEIVE" /> -->
<!-- </intent-filter> -->
</service>
<activity
android:name=".activities.WebViewActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.AccountSettingsActivity"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.AccountContactsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.AccountContactsAddEdit"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".activities.ActivityUsers"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".activities.ActivityUsersEdit"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".activities.ActivityGeneralSettings"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WalletActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.WalletWebViewActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.DeviceManActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.DeviceEndpointsActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.DeviceClusterEndpointActivity"
android:theme="#style/MyCustomTheme" />
</application>
LauncherActivity is my default launcher, should I add:
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
inside its intent filter? Also, I assume I should add this permission also:
<uses-feature android:name="android.software.leanback"
android:required="false" />
And this thing inside application tag:
android:banner="#drawable/banner"
Is there anything else or this is completely wrong?
This problem has been addressed in this google forum Why do Apps that stream live TV crash under Android 7.0 Nougat on Nexus 5x?. In summary, the app you're running haven't been updated/not-ready for Nougat - higher versions of Android. Other apps, which supported Nougat, seemed to work fine.
adding library in gradle is
compile 'com.twilio:chat-android:0.12.1'
and sync then getting error as
Error:Execution failed for task ':app:processDebugManifest'.
<Manifest merger failed with multiple errors, see logs
versions i am targetting
` defaultConfig {
multiDexEnabled true
applicationId "com.app.ommo"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
in manifest file i am not changing any code and only when i put above library into gradle i am getting that error. my manifest file is.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.ommo">
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-feature android:name="android.hardware.location.gps" />
<application
android:allowBackup="false"
android:icon="#drawable/ommo"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme.Red">
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".jockey.audio.RecorderActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan">
<!--<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>-->
</activity>
<activity android:name=".activity.SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data
android:host="www.rajasekher.com"
android:scheme="http" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="t4jsample"
android:scheme="oauth" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="litestcalback"
android:scheme="x-oauthflow-linkedin" />
</intent-filter>
</activity>
<service android:name=".service.MyService" />
<service android:name=".service.UpdateUserLatLang_Service" />
<service android:name=".service.Attended_Service" />
<service android:name=".service.DownloadService" />
<activity android:name="com.facebook.FacebookActivity" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/APP_ID" />
<!--
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="#string/google_map_api_key" />
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_place_api" />
<activity
android:name=".thirdpartylib.TwitWebViewActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activity.LoginActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activity.ForgetPasswordActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activity.RegistrationActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
<activity
android:name=".activity.SettingPage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.TermsandConditions"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.PrivacyPolicy"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.UserAddressListPage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.AddressPostActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.UserReviewsandRating"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.AppLanguageSetting"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.BaseActivity"
android:label="#string/title_activity_base"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.CreditCardDetails"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.PaymentActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.WalletActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.WalletAmountAddActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.UserServicesListActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.AddandEditUserServicesActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.Service_Individual_Details"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.BookAppointmet_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Service_UserProfileActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.ProfileActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Availability_Post_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.FollowList_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.BookingsListingActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.BookingIndividualDetails"
android:screenOrientation="portrait" />
<activity
android:name=".activity.SaloonExpertsListActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Reschedule_Booking_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.User_Customer_Listing"
android:screenOrientation="portrait" />
<activity
android:name=".activity.User_Services_Availability_Listing"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Customers_Add_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.UsersListActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Review_ListingActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Availability_Subscription_ListingActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.User_Subscription_ListingActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Portfolio_Service_Provider_ListingActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Portfolio_Add_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Refer_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Report_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Post_Discounts_Activity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.Discount_Listing_Activity"
android:screenOrientation="portrait" />
<!-- ===================== Jockey Activities ===================== -->
<activity
android:name=".jockey.activity.UserActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.CarDetailsPost"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.JockyDriverHomePage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.CarListviewProfilePage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.UserTripHistoryActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.DriverSidePickUpList"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.JockySettingPage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.DriverConfirmRide"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.DriverSideTrackingPage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.JockyProfileActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.DriverTripHistoryActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.InternetConnectionCheck"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.StartRide"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".jockey.activity.UserSideTrackingPage"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity android:name=".jockey.activity.UserHome_Jockey" />
<activity android:name=".jockey.activity.DriverList_SwipingCards" />
<activity
android:name=".activity.ChatActivity45"
android:screenOrientation="portrait"/>
<activity
android:name=".jockey.activity.BrainTreeMainActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="${applicationId}.braintree" />
</intent-filter>
</activity>
</application>
please tell me what i have to do?
here problem is my minSdkVersion is 15. And twilio chat minSdkVersion is 19.
So i got error. so I changed my minSdkVersion to 19 and now working fine.