Android resource linking failed Android Studio 3.3.1 - android

I am trying to generate APK from my source code and getting below errors.
F:\breeze-2019-3-14\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:88: error: unexpected element <action> found in <manifest><application><activity>.
F:\breeze-2019-3-14\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:90: error: unexpected element <category> found in <manifest><application><activity>.
My Manifest file is like below
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.zaravoipcall.breeze">
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<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" />
<permission
android:name="com.zaravoipcall.breeze.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<permission android:name="com.ipsmarx.dialer.MsgDBProvider"
android:protectionLevel="signature" />
<uses-permission android:name="com.zaravoipcall.breeze.permission.C2D_MESSAGE" />
<uses-feature
android:name="android.hardware.sip.voip"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="true" />
<uses-feature
android:name="android.hardware.microphone"
android:required="true" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:name="com.ipsmarx.dialer.MyApplication"
android:allowBackup="true"
android:configChanges="keyboardHidden|orientation"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/AppBaseTheme">
<activity
android:name="com.ipsmarx.newdesign.LoginActivity"
android:configChanges="keyboardHidden|orientation"
android:label="#string/app_display_name"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
</activity>
<receiver
android:name="com.ipsmarx.newdesign.OutgoingCall"
android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter>
</receiver>
<activity
android:name="com.ipsmarx.newdesign.Splashscreen"
android:configChanges="keyboardHidden|orientation"
android:label="#string/app_display_name"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.ipsmarx.newdesign.ModeSelectDialog"
android:allowTaskReparenting="false"
android:configChanges="orientation"
android:excludeFromRecents="true"
android:launchMode="singleTask" />
<activity
android:name="com.ipsmarx.dialer.ConnectedCall"
android:configChanges="keyboardHidden|orientation"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden">
<intent-filter android:priority="1000">
<action android:name="android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT" />
<action android:name="android.intent.action.VOICE_COMMAND" />
<action android:name="android.intent.action.CALL_BUTTON" />
</intent-filter>
</activity>
<activity
android:name="com.ipsmarx.newdesign.Tabbar"
android:label="#string/login"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.ipsmarx.contactslist.ui.ContactDetailActivity"
android:label="Contact Details"
android:screenOrientation="portrait" />
<activity
android:name="com.ipsmarx.contactslist.ui.ComposeActivity"
android:label="Compose Invite"
android:screenOrientation="portrait" />
<receiver android:name="com.ipsmarx.dialer.Receiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<receiver
android:name="com.ipsmarx.dialer.WakeLockManager"
android:enabled="true">
<intent-filter>
<action android:name="com.ipsmarx.dialer.custom.intent.action.cpuwakelock" />
</intent-filter>
</receiver>
<receiver
android:name="com.ipsmarx.dialer.NotificationController"
android:enabled="true">
<intent-filter>
<action android:name="com.ipsmarx.dialer.custom.intent.action.REG_STATUS" />
</intent-filter>
<intent-filter>
<action android:name="com.ipsmarx.dialer.custom.intent.action.MISSED_CALL" />
</intent-filter>
<intent-filter>
<action android:name="com.ipsmarx.dialer.custom.intent.action.SHOW_CALLLOG" />
</intent-filter>
<intent-filter>
<action android:name="com.ipsmarx.dialer.custom.intent.action.SHOW_CHATTHREAD" />
</intent-filter>
<intent-filter>
<action android:name="com.ipsmarx.dialer.custom.intent.action.MSG_STATUS" />
</intent-filter>
</receiver>
<service
android:name="com.ipsmarx.dialer.SipService"
android:enabled="true" />
<service android:name="com.ipsmarx.dialer.ContactSyncService" />
<!--<provider-->
<!--android:name="com.ipsmarx.dialer.MsgDBProvider"-->
<!--android:authorities="#string/app_name"-->
<!--android:exported="false"-->
<!--android:permission="android.permission.CONFIGURE_SIP" />-->
<receiver
android:name="com.ipsmarx.pushnotification.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.ipsmarx.dialer" />
</intent-filter>
</receiver>
<service android:name="com.ipsmarx.pushnotification.GCMIntentService" />
<activity
android:name="com.ipsmarx.newdesign.SignUp"
android:label="#string/title_activity_sign_up"
android:screenOrientation="portrait" />
<activity
android:name="com.ipsmarx.newdesign.SignUpByPhone"
android:label="#string/title_activity_sign_up_by_phone"
android:screenOrientation="portrait" />
<activity
android:name="com.ipsmarx.newdesign.ForgotPassword"
android:label="#string/title_activity_forgot_password"
android:screenOrientation="portrait" />
<activity
android:name="com.ipsmarx.video.RTCActivity"
android:configChanges="orientation|screenSize"
android:excludeFromRecents="true"
android:label="#string/app_name"
android:launchMode="singleTask"
android:screenOrientation="fullUser"
android:windowSoftInputMode="stateHidden" />
<meta-data
android:name="io.fabric.ApiKey"
android:value="6b5afe577fa0e4476d354af38bcdc075eee398a6" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:theme="#android:style/Theme.Translucent"
tools:replace="android:configChanges" />
<activity
android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
android:theme="#style/Theme.IAPTheme" />
</application>
</manifest>
I am using Android Studio 3.3.1 and Gradle 4.10.1
I am trying to figure it from last two hours and not getting idea whats wrong in my code. Let me know if someone can help me for solve the issue. Thanks

your Manifest.xml is corrupt, this:
<action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
should be (android.intent.action.MAIN is optional):
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

Change this portion to
<activity
android:name="com.ipsmarx.newdesign.LoginActivity"
android:configChanges="keyboardHidden|orientation"
android:label="#string/app_display_name"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

Related

How to enable autostart for my app in Xiaomi devices

My app successfully auto start in some devices like Sony Xperia, OnePlus 3, Lyf, Micromax. But doesn't in Xiaomi. Then I found on StackOverflow that I have to give auto-start permissions to my app in Xiaomi Built-in Startup manager. I have also done that but my app doesn't auto-start. Here is the manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.missingcell.trackerapp"
android:installLocation="internalOnly">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- for card.io card scanning -->
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<application
android:name="com.missingcell.trackerapp.AppController"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyApCFp8fEsll0RO114zLWKQQ6EexTM488c" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name="com.missingcell.trackerapp.activities.Login"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.missingcell.trackerapp.activities.ChildDetails"
android:label="#string/title_activity_second">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.missingcell.trackerapp.MainActivity" />
</activity>
<service
android:name="com.paypal.android.sdk.payments.PayPalService"
android:exported="false" />
<activity android:name="com.paypal.android.sdk.payments.PaymentActivity" />
<activity android:name="com.paypal.android.sdk.payments.LoginActivity" />
<activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" />
<activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" />
<activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" />
<activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" />
<activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" />
<activity android:name="com.paypal.android.sdk.payments.PayPalProfileSharingActivity" />
<activity android:name="com.paypal.android.sdk.payments.ProfileSharingConsentActivity" />
<activity
android:name="io.card.payment.CardIOActivity"
android:configChanges="keyboardHidden|orientation" />
<activity android:name="io.card.payment.DataEntryActivity" />
<activity android:name="com.missingcell.trackerapp.MainActivity"></activity>
<activity android:name="com.missingcell.trackerapp.activities.RegisterActivity"></activity>
<activity android:name="com.missingcell.trackerapp.activities.BuyPro"></activity>
<receiver android:name="com.missingcell.trackerapp.call.AlarmReceiver">
<intent-filter android:priority="9991000">
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
<action android:name="android.intent.action.PHONE_STATE" />
<action android:name="in.deepakpandey.AlarmReceiver"></action>
</intent-filter>
</receiver>
<receiver android:name="com.missingcell.trackerapp.sms.SMSReceiver">
<intent-filter android:priority="9991000">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
<action android:name="android.provider.Telephony.SMS_SENT" />
<action android:name="in.deepakpandey.SMSReceiver" />
</intent-filter>
</receiver>
<receiver
android:name=".gps.GpsTrackerBootReceiver"
android:enabled="true"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver android:name="com.missingcell.trackerapp.gps.GPSReciver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
<receiver
android:name="com.missingcell.trackerapp.utils.APIReciver"
android:enabled="true"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter android:priority="9991000">
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver android:name="com.missingcell.trackerapp.utils.NotificationReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
<receiver
android:name="com.missingcell.trackerapp.utils.DemoDeviceAdmin"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
<!-- This is required this receiver to become device admin component. -->
<meta-data
android:name="android.app.device_admin"
android:resource="#xml/device_admin" />
</receiver>
<service
android:name="com.tuenti.smsradar.SmsRadarService"
android:exported="false"
android:label="#string/app_name" />
</application>
</manifest>
It doesn't new on Xiaomi because Xiaomi has a feature called app permission, where a user has to allow the app to start automatically (Service). In your case the Service is not called, once its terminated from stack.
Go like this and allow your app to autostart:
Settings > permissions > Autostart
Code:
if (Build.BRAND.equalsIgnoreCase("xiaomi")) {
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity"));
startActivity(intent);
}
Use the above code to launch autostart activity.

How to make html to android app launch hyperlink?

I'm new in Android development.
I don't know how to create android app launch hyperlink and embed it into HTML page.
My scenario is when anyone click on this link android app will automatically launch, (app will be pre installed into the device.)
Here is the manifest code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:"http://schemas.android.com/apk/res/android" android:versionCode="9" android:versionName="1.0.4" package="com.happyconz.wherelive" platformBuildVersionCode="22" platformBuildVersionName="5.1.1-1819727">
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="21" />
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" android:xlargeScreens="true" />
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.NETWORK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="com.happyconz.wherelive.permission.INTERNAL" />
<permission android:name="com.happyconz.wherelive.permission.INTERNAL" android:protectionLevel="signature|signatureOrSystem" />
<application android:theme="0x7f0b0095" android:label="0x7f09028c" android:icon="0x7f02011d" android:name="com.happyconz.wherelive.GlobalApplication" android:allowBackup="true" android:largeHeap="true">
<activity android:theme="0x7f0b0099" android:label="0x7f09028c" android:name="com.happyconz.wherelive.activity.HomeActivity" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0095" android:label="0x7f09028c" android:name="com.happyconz.wherelive.Main" android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="0x7f09011e" android:name="com.happyconz.wherelive.about.CustomActivity" />
<activity android:theme="#style/Theme_AppCompat_Light_NoActionBar" android:label="0x7f09028c" android:name="com.happyconz.wherelive.video.youtube.sign.LoginActivity" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="#style/Theme_AppCompat_Light_NoActionBar" android:label="0x7f09028c" android:name="com.happyconz.wherelive.video.youtube.sign.LogoutActivity" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0099" android:name="com.happyconz.wherelive.recode.Recorder" android:permission="com.happyconz.wherelive.permission.INTERNAL" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="com.happyconz.wherelive.action.Recorder" />
</intent-filter>
</activity>
<activity android:theme="0x7f0b008f" android:name="com.happyconz.wherelive.CertFailDialog" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:label="0x7f09025a" android:icon="0x7f020121" android:name="com.happyconz.wherelive.video.MyLiveListActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:label="0x7f090259" android:icon="0x7f020121" android:name="com.happyconz.wherelive.video.LiveListActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:label="0x7f09003f" android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.InfoActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0095" android:name="com.happyconz.wherelive.activity.WebViewActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="#*android:style/Theme.NoDisplay" android:name="com.happyconz.wherelive.video.youtube.sign.CheckAuthActivity" />
<activity android:theme="0x7f0b0095" android:name="com.happyconz.wherelive.video.CreateChannelActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0095" android:name="com.happyconz.wherelive.video.CreateLiveChannelActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="#*android:style/Theme.Translucent" android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<activity android:theme="#*android:style/Theme.Translucent.NoTitleBar" android:name="com.happyconz.wherelive.adv.AdEverFullScreen" android:taskAffinity="com.wherelive.pro" android:launchMode="singleTask" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<activity android:theme="#style/Theme_AppCompat_Light_NoActionBar" android:name="com.happyconz.wherelive.adv.AdMainFullScreen" android:launchMode="singleTask" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<activity android:theme="0x7f0b0098" android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.SettingActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0098" android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.AccountSettingActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0098" android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.ScreenSettingActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0098" android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.LiveSettingActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0b0098" android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.MoreSettingActivity" android:launchMode="standard" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:icon="0x7f020121" android:name="com.happyconz.wherelive.preference.SettingProActivity" android:taskAffinity="com.wherelive.pro" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize" android:allowTaskReparenting="true">
<intent-filter>
<action android:name="com.happyconz.wherelive.preference.SettingActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="#*android:style/Theme.NoDisplay" android:name="com.happyconz.wherelive.LicenseChecker" />
<receiver android:name="com.happyconz.wherelive.recode.service.AlarmReceiver" android:process=":remote">
<intent-filter android:priority="995">
<action android:name="com.happyconz.wherelive.recode.service.alarm" />
</intent-filter>
</receiver>
<receiver android:name="com.happyconz.wherelive.receiver.AuthReceiver" android:process=":remote">
<intent-filter android:priority="998">
<action android:name="com.happyconz.wherelive.recode.service.certification" />
</intent-filter>
</receiver>
<receiver android:label="0x7f09028c" android:icon="0x7f020120" android:name="com.happyconz.wherelive.recode.widget.AutoboyWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="0x7f070001" />
</receiver>
<service android:name="com.happyconz.wherelive.recode.service.RecorderService" android:exported="true">
<intent-filter android:priority="999">
<action android:name="com.happyconz.wherelive.recode.service.IRecorderService" />
<action android:name="com.happyconz.wherelive.RECORDER_SERVICE" />
</intent-filter>
</service>
<service android:name="com.happyconz.wherelive.recode.service.CertificationService" />
<service android:name="com.happyconz.wherelive.recode.widget.AutoboyWidgetService" />
<service android:name="com.happyconz.wherelive.video.youtube.streaming.StreamerService" />
<meta-data android:name="com.crashlytics.ApiKey" android:value="e357fa9000ab877757425745ec7b43ad971b647b" />
<meta-data android:name="com.google.android.gms.version" android:value="0x7f0e0006" />
<activity android:theme="0x7f0b0098" android:label="0x7f090211" android:name="com.happyconz.wherelive.sns.SNSSettingActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="#*android:style/Theme.Translucent.NoTitleBar" android:label="0x7f09028c" android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize" />
<activity android:label="0x7f09028c" android:name="com.happyconz.wherelive.sns.twitter.TwitterActivity">
<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="oauth" android:host="com.happyconz.wherelive.sns" />
</intent-filter>
</activity>
<activity android:label="0x7f09028c" android:name="com.happyconz.wherelive.sns.twitter.TwitterProActivity" android:taskAffinity="com.wherelive.pro" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize" android:allowTaskReparenting="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="oauth" android:host="com.happyconz.wherelive.sns.pro" />
</intent-filter>
</activity>
<activity android:name="com.happyconz.wherelive.sns.twitter.OAuthActivity" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="0x7f09032a" />
<meta-data android:name="io.fabric.ApiKey" android:value="180b89f527bdd6961fab824c28327acefbae668c" />
<activity android:name="com.mikepenz.aboutlibraries.ui.LibsActivity" />
</application>
</manifest>
Or another option is;
After you found the application packagename, If the application is in the Store you can link it to the application link to Store then if it is already installed, User can hit on the 'Open' button.
So link it to:
market://search?q=pname:<package_name>
Or:
http://market.android.com/search?q=pname:<package_name>

Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER [duplicate]

This question already has answers here:
Install shows error in console: INSTALL FAILED CONFLICTING PROVIDER
(31 answers)
Closed 6 years ago.
I am getting "Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER." while run the project in Android Studio.
How to resolve this?
My manifest.xml is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mmsapp" >
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_MMS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECEIVE_MMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INSTALL_DRM" />
<uses-permission android:name="android.provider.Telephony.SMS_RECEIVED" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-feature
android:name="android.hardware.camera"
android:required="false"></uses-feature>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:name=".Volley.AppController"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name=".ui.SplashScreenActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.tutorial.Demo1"
android:screenOrientation="portrait" />
<activity
android:name=".ui.tutorial.Demo2"
android:screenOrientation="portrait" />
<activity
android:name=".ui.tutorial.Demo3"
android:screenOrientation="portrait" />
<activity
android:name=".ui.tutorial.Demo5"
android:screenOrientation="portrait" />
<activity
android:name=".ui.tutorial.Demo4"
android:screenOrientation="portrait" />
<activity
android:name=".ui.Setup1"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".ui.Setup2"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" />
<activity
android:name=".ui.Setup3"
android:screenOrientation="portrait" />
<activity
android:name=".ui.Setup4"
android:screenOrientation="portrait" />
<activity
android:name=".ui.MessageListActivity"
android:theme="#style/AppTheme" />
<activity
android:name=".ui.MessagingActivity"
android:theme="#android:style/Theme.NoTitleBar" />
<activity
android:name=".ui.SettingsActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" />
<activity
android:name=".ui.StatisticsActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" />
<activity
android:name=".ui.LoginActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" />
<activity
android:name=".v2.ui.SignInActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ui.SignInActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ui.UpdatePasswordActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" />
<receiver android:name=".control.SmsReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
<activity
android:name=".mms.MainActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
<data android:mimeType="image/*" />
<action android:name="android.intent.action.SEND" />
</intent-filter>
</activity>
<activity android:name="eu.janmuller.android.simplecropimage.CropImage" />
<service android:name="com.android.mms.transaction.TransactionService" />
<receiver
android:name=".mms.SmsReceiver"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER" />
</intent-filter>
</receiver>
<receiver
android:name=".mms.MmsReceiver"
android:permission="android.permission.BROADCAST_WAP_PUSH">
<intent-filter>
<action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
<data android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
<service
android:name=".mms.HeadlessSmsSendService"
android:exported="true"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE">
<intent-filter>
<action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
</intent-filter>
</service>
<activity android:name=".mms.PermissionActivity" />
</application>
</manifest>
The fix is to make sure that defaultConfig.applicationId is defined in android section of the build.gradle file for each project using your library
android {
defaultConfig.applicationId = "com.company.appname"(Your application package name)
}
And other thing please uninstall Settings --> Application --> --> Uninstall

Why are there many icons of my App?

When I develop my application onto my mobile phone, a lot of same icons of my application appears. So I have got icons for each Activity (sometimes twice). Not every symbol will work (the most of them shut down directly after clicking)
What's wrong?
Here is my AndroidManifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<permission
android:name="com.unitnode.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:largeHeap="true"
android:backupAgent="com.unitnode.FileBackup"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.unitnode.OpenProject"
android:label="#string/app_name"
android:parentActivityName="com.unitnode.Collection" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.unitnode.Property"
android:label="#string/Settings" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.unitnode.SoundRecord"
android:label="#string/Settings" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.unitnode.FullscreenMode"
android:label="#string/fullscreenMode" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.unitnode.DatenbankHelper"
android:label="#string/Settings" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.backup.api_key"
android:value="AEdPqrEAAAAIgcHi_mYg2z3r6ovsAyWLlVO7Zk7oKPCBxIJb-Q" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBT21LxMEdlR6cecCXb913IPo7cIP-oMiU" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
</application>
Each activity that has this intent filter gets a launcher icon:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Remove the intent filter from the activities that should not have one.
<category android:name="android.intent.category.MAIN" />
this line appears on your 2 activities and this cause the problem you have.
you need to write this line on the main activity that need to load when the user open the application

No Launcher activity found cant find the solution

when i run my app on my phone it gives me this error No Launcher activity found!
The launch will only sync the application package on the device! I looked at some of the similiar questions but i still cant seem to figure out what the problem
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.soloinc.meip"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity android:name="com.soloinc.meip.view.VideoRecorder"
android:screenOrientation="landscape"
android:configChanges="keyboardHidden|orientation|screenLayout"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name="com.soloinc.meip.webpage.Webview"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateAlwaysHidden" />
<intent-filter>
<!--Viewer filter-->
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<!-- DEFAULT LAUNCHER filter-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!--custom filter-->
<intent-filter>
<category android:name="com.soloinc.meip" />
</intent-filter>
</application>
</manifest>
Please write the following specific to some Activity
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
For example in your case
<activity android:name="com.soloinc.meip.view.VideoRecorder" android:screenOrientation="landscape" android:configChanges="keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="stateAlwaysHidden" />
<!--Viewer filter-->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<!-- DEFAULT LAUNCHER filter-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!--custom filter-->
<intent-filter>
<category android:name="com.soloinc.meip" />
</intent-filter>
</activity>

Categories

Resources