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>
Related
Error: Cannot find declaration of element manifest
I have the <manifest></manifest> element in my AndroidManifest.xml still I am getting the error.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.anupsaha.streammusic">
<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="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="#mipmap/app_icon_round"
android:label="#string/app_name"
android:roundIcon="#mipmap/app_icon_round"
android:supportsRtl="true"
android:largeHeap="true"
android:theme="#style/AppTheme"
android:usesCleartextTraffic="true">
<activity
android:name=".SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LoginActivity"
android:windowSoftInputMode="adjustPan"/>
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity
android:name=".BaseActivity"/>
<activity
android:name=".RegisterActivity"
android:windowSoftInputMode="adjustPan"/>
<activity
android:name=".ForgotPasswordActivity"
android:windowSoftInputMode="adjustPan"/>
<activity
android:name=".ProfileActivity"
android:windowSoftInputMode="adjustPan|adjustNothing"/>
<activity
android:name=".ProfileEditActivity"
android:windowSoftInputMode="adjustPan"/>
<activity
android:name=".ReportActivity"
android:windowSoftInputMode="adjustPan|adjustNothing"/>
<activity
android:name=".SuggestionActivity"
android:windowSoftInputMode="adjustPan|adjustNothing"/>
<activity android:name=".SongByCatActivity"
android:windowSoftInputMode="adjustPan|adjustNothing"/>
<activity android:name=".SongByServerPlaylistActivity"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity android:name=".SongByMyPlaylistActivity"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity android:name=".SongByOfflineActivity"
android:windowSoftInputMode="adjustPan|adjustNothing"/>
<activity android:name=".SongByOFFPlaylistActivity"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity android:name=".Add2OfflinePlaylistActivity"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity android:name=".SettingActivity"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity android:name=".AboutActivity"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity
android:name=".OfflineMusicActivity"
android:label="#string/title_activity_main2"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan|adjustNothing" />
<activity android:name=".SelectSongActivity"
android:windowSoftInputMode="adjustPan|adjustNothing"/>
<activity android:name=".MiniPlayer"
android:theme="#style/Theme.MiniPlayer"
android:launchMode="singleTask"
android:excludeFromRecents="true"
android:label="#string/app_name"
android:taskAffinity=""
android:windowSoftInputMode="adjustPan|adjustNothing">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.APP_MUSIC" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" />
<data android:mimeType="audio/*" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="#string/admob_app_id"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<service
android:name=".PlayerService"
android:exported="false" />
<service
android:name="com.anupsaha.utils.NotificationExtenderExample"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE">
<intent-filter>
<action android:name="com.onesignal.NotificationExtender" />
</intent-filter>
</service>
<service
android:name=".DownloadService"
android:exported="false" />
<receiver android:name="com.anupsaha.utils.MediaButtonIntentReceiver">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
</application>
</manifest>
AndroidManifest file link - here is link
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>
I want some assistance on Icons showing for my application, there are two icons one for my Library Project FBReader and one for my own launcher app. I make all changes as suggested on different web portals and StackOverflow but didn't get success. Please suggest me any solution regarding the same.
AndroidManifest.xml
<?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="com.handygo.rockasap"
android:installLocation="auto"
android:versionCode="70"
android:versionName="4.3.3" >
<!-- android:maxSdkVersion="17" max version create problem in Reader -->
<uses-sdk android:minSdkVersion="9" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.READ_SYNC_STATS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!--
<permission
android:name="com.handygo.rockasap.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
-->
<uses-permission android:name="com.handygo.rockasap.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- <uses-feature
android:name="android.permission.ACCESS_FINE_LOCATION"
android:required="false" />
<uses-feature
android:name="android.permission.ACCESS_COARSE_LOCATION"
android:required="false" />
<uses-feature
android:name="android.permission.SEND_SMS"
android:required="false" />
<uses-feature
android:name="android.hardware.location"
android:required="false" />
<uses-feature
android:name="android.hardware.location.network"
android:required="false" />
<uses-feature
android:name="android.hardware.location.gps"
android:required="false" />-->
<uses-feature
android:name="android.hardware.telephony"
android:required="false" >
</uses-feature>
<!-- Version check the WIFI and Location permission -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
**<application
tools:replace="android:icon, android:label, android:name, android:theme"
android:allowBackup="true"
android:icon="#mipmap/app_icon"
android:label="#string/app_name"
android:largeHeap="true"
android:name=".RockstandApplication"
android:theme="#style/AppTheme" >**
<!-- MOBIKWIK Activity Files -->
<activity
android:name="com.mobikwik.sdk.MobikwikSDK"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="MobiKwik"
android:theme="#style/MKSDKTransparent"
android:windowSoftInputMode="stateHidden" >
</activity>
<!-- PayTM Activity -->
<activity
android:name="com.paytm.pgsdk.PaytmPGActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait"
android:theme="#style/AppTheme" >
</activity>
<activity
android:name="com.mobikwik.sdk.PGWebView"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="BankPage"
android:theme="#style/MKSDKTheme"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="com.mobikwik.sdk.PaymentOptions"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:theme="#style/MKSDKTheme"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="com.mobikwik.sdk.PaymentActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:theme="#style/MKSDKTheme"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="com.mobikwik.sdk.GetUserDetailsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:theme="#style/MKSDKTheme"
android:windowSoftInputMode="stateHidden" >
</activity>
<!-- multiwindow code -->
<meta-data
android:name="com.samsung.android.sdk.multiwindow.enable"
android:value="true" />
<meta-data
android:name="com.samsung.android.sdk.multiwindow.multiinstance.enable"
android:value="true" />
<meta-data
android:name="com.sec.android.multiwindow.STYLE"
android:value="fixedRatio" />
<meta-data
android:name="com.sec.android.support.multiwindow"
android:value="true" />
<service android:name="com.handygo.rockasap.apputils.GCMIntentService" />
<receiver
android:name="com.handygo.rockasap.apputils.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.handygo.rockasap" />
</intent-filter>
</receiver>
<provider
android:name="com.handygo.rockasap.DataProvider"
android:authorities="com.handygo.rockasap.DataProvider"
android:exported="true"
android:multiprocess="true" >
</provider>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name="org.geometerplus.android.fbreader.crash.FixBooksDirectoryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":crash"
android:theme="#style/FBReader.Dialog" >
<intent-filter>
<action android:name="android.fbreader.action.CRASH" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="CachedCharStorageException" />
</intent-filter>
</activity>
<activity
android:name="org.geometerplus.android.fbreader.crash.MissingNativeLibraryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":crash"
android:theme="#style/FBReader.Dialog" >
<intent-filter>
<action android:name="android.fbreader.action.CRASH" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="ExceptionInInitializerError" />
</intent-filter>
</activity>
<service
android:name="org.geometerplus.android.fbreader.api.ApiService"
android:exported="false"
android:launchMode="singleTask" >
<intent-filter>
<action android:name="android.fbreader.action.API" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<activity
android:name="com.artifex.mupdfdemo.ScreenShotsActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar" >
</activity>
<activity
android:name="org.geometerplus.android.fbreader.SpeakActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Light.Panel" />
**<activity
tools:replace="android:icon, android:label, android:name, android:theme"
android:name="org.geometerplus.android.fbreader.FBReader"
android:configChanges="orientation|keyboardHidden|screenSize"
android:icon="#mipmap/app_icon"
android:label="Rockstand"
android:launchMode="singleTask"
android:theme="#style/FBReader.Activity" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable" />
</activity>**
<activity android:name="org.geometerplus.android.fbreader.DictionaryBrowser" />
<activity
android:name="org.geometerplus.android.fbreader.CancelActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.style.StyleListActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.style.EditStyleActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.image.ImageViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Activity" />
<!-- android:process=":imageView" -->
<service
android:name="org.geometerplus.android.fbreader.libraryService.LibraryService"
android:exported="false"
android:launchMode="singleTask"
android:process=":libraryService" >
<intent-filter>
<action android:name="android.fbreader.action.LIBRARY_SERVICE" />
</intent-filter>
</service>
<activity
android:name="org.geometerplus.android.fbreader.library.BookInfoActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":library"
android:theme="#style/FBReader.Activity" />
<activity
android:name="org.geometerplus.android.fbreader.library.LibrarySearchActivity"
android:process=":library"
android:theme="#android:style/Theme.NoDisplay" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable" />
</activity>
<activity
android:name="org.geometerplus.android.fbreader.library.LibraryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTask"
android:process=":library"
android:theme="#style/FBReader.Activity" >
<meta-data
android:name="android.app.default_searchable"
android:value="org.geometerplus.android.fbreader.library.LibrarySearchActivity" />
</activity>
<activity
android:name="org.geometerplus.android.fbreader.TOCActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Activity" />
<activity
android:name="org.geometerplus.android.fbreader.BookmarksActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Activity" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable" />
</activity>
<activity
android:name="org.geometerplus.android.fbreader.BookmarkEditActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.preferences.PreferenceActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="#style/FBReader.Activity" />
<activity
android:name="org.geometerplus.android.fbreader.preferences.EditBookInfoActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":library"
android:theme="#style/FBReader.Activity" />
<activity
android:name="org.geometerplus.android.fbreader.network.BookDownloader"
android:process=":networkLibrary"
android:theme="#android:style/Theme.NoDisplay" >
</activity>
<service
android:name="org.geometerplus.android.fbreader.network.BookDownloaderService"
android:launchMode="singleTask"
android:process=":networkLibrary" />
<activity
android:name="org.geometerplus.android.fbreader.network.NetworkSearchActivity"
android:process=":networkLibrary"
android:theme="#android:style/Theme.NoDisplay" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable" />
</activity>
<activity
android:name="org.geometerplus.android.fbreader.network.NetworkLibraryPrimaryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTask"
android:process=":networkLibrary"
android:theme="#style/FBReader.Activity" >
</activity>
<activity
android:name="org.geometerplus.android.fbreader.network.NetworkLibrarySecondaryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Activity" />
<activity
android:name="org.geometerplus.android.fbreader.network.AuthenticationActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.network.BuyBooksActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.network.AddCatalogMenuActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.network.AddCustomCatalogActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Dialog" >
</activity>
<activity
android:name="org.geometerplus.android.fbreader.network.AuthorizationMenuActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.network.TopupMenuActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Dialog" />
<activity
android:name="org.geometerplus.android.fbreader.network.NetworkBookInfoActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":networkLibrary"
android:theme="#style/FBReader.Activity" >
</activity>
<activity
android:name="com.artifex.mupdfdemo.MuPDFActivity"
android:configChanges="orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.Light.NoTitleBar.Fullscreen" >
</activity>
<receiver
android:name="org.geometerplus.android.fbreader.network.ListenerCallback"
android:process=":networkLibrary" >
<intent-filter>
<action android:name="android.fbreader.action.network.SIGNIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<!--
<activity
android:name="com.handygo.rockasap.screens.MainActivity"
android:screenOrientation="sensorPortrait"
android:theme="#style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
-->
<activity
android:name=".SplashActivity"
android:launchMode="singleTask"
android:screenOrientation="sensorPortrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".RockstandFragmentScreenActivity"
android:configChanges="screenSize|keyboardHidden|orientation"
android:label="#string/title_activity_filters"
android:screenOrientation="portrait"
android:theme="#style/AppTheme.NoActionBar"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize|adjustPan"></activity>
<!-- The authenticator service -->
<receiver
android:name="com.handygo.rockasap.services.ReferralReceiver"
android:enabled="true"
android:exported="true"
android:permission="android.permission.INSTALL_PACKAGES" >
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service
android:name="com.handygo.rockasap.services.AuthenticationService"
android:exported="false" >
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="#xml/authenticator" />
</service>
<!--<receiver
android:name="com.handygo.rockasap.UpdatePaymentSuccess">
<intent-filter>
<action android:name="update_paytm" />
</intent-filter>
</receiver>-->
</application>
</manifest>
Because you put two intent filters,remove one
<activity
android:name="org.geometerplus.android.fbreader.crash.FixBooksDirectoryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":crash"
android:theme="#style/FBReader.Dialog" >
<intent-filter>
<action android:name="android.fbreader.action.CRASH" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="CachedCharStorageException" />
</intent-filter>
</activity>
<activity
android:name="org.geometerplus.android.fbreader.crash.MissingNativeLibraryActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:process=":crash"
android:theme="#style/FBReader.Dialog" >
<intent-filter>
<action android:name="android.fbreader.action.CRASH" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="ExceptionInInitializerError" />
</intent-filter>
</activity>
Thats because you have 2 LAUNCHER activities in your manifest
<activity
android:name=".SplashActivity"
android:launchMode="singleTask"
android:screenOrientation="sensorPortrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
</activity>
The 2 line
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
are both launchers. Remove 1
The other answers are correct, either remove the intentfilters or set the category of either to android.intent.category.DEFAULT
Note that if you dont declare it to DEFAULT, the compiler does it for you automatically.
When i execute the application it runs perfect, but the problem is I can not see the icon anywhere on the emulator, i am guessing it has to be something to do with the manifest.
Manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.cade"
android:installLocation="auto"
android:versionCode="1"
android:versionName="CADE Codigos" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-feature
android:name="android.hardware.touchscreen"
android:required="true" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true" />
<application
android:icon="#drawable/iconcopia"
android:label="CADE Códigos" >
<!-- android:debuggable="false" -->
<activity
android:name=".codigos.ui.activities.MainActivity"
android:configChanges="keyboardHidden|orientation"
android:label="CADE Códigos"
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="http" />
<data android:scheme="https" />
</intent-filter>
</activity>
<activity
android:name=".codigos.ui.activities.AboutActivity"
android:label="#string/AboutActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<activity
android:name=".codigos.ui.activities.EditBookmarkActivity"
android:label="#string/EditBookmarkActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<activity android:name=".codigos.ui.activities.BookmarksListActivity" />
<activity android:name=".codigos.ui.activities.HistoryListActivity" />
<activity android:name=".codigos.ui.activities.DownloadsListActivity" />
<activity android:name=".codigos.ui.activities.AdBlockerWhiteListActivity" />
<activity
android:name=".codigos.ui.activities.BookmarksHistoryActivity"
android:configChanges="keyboardHidden|orientation" />
<activity
android:name=".codigos.ui.activities.ChangelogActivity"
android:label="#string/ChangelogActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<activity android:name=".codigos.ui.activities.preferences.PreferencesActivity" />
<activity
android:name=".codigos.ui.activities.preferences.HomepagePreferenceActivity"
android:label="#string/HomepagePreferenceActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<activity
android:name=".codigos.ui.activities.preferences.SearchUrlPreferenceActivity"
android:label="#string/SearchUrlPreferenceActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<activity
android:name=".codigos.ui.activities.preferences.UserAgentPreferenceActivity"
android:label="#string/UserAgentPreferenceActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<activity android:name=".codigos.ui.activities.MobileViewListActivity" />
<activity android:name=".codigos.ui.activities.WeaveBookmarksListActivity" />
<activity android:name=".codigos.ui.activities.preferences.WeavePreferencesActivity" />
<activity
android:name=".codigos.ui.activities.preferences.WeaveServerPreferenceActivity"
android:label="#string/WeaveServerPreferenceActivity.Title"
android:theme="#android:style/Theme.Dialog" />
<provider
android:name=".codigos.providers.ZircoBookmarksContentProvider"
android:authorities="org.cade.codigos.providers.zircobookmarkscontentprovider" />
<provider
android:name=".codigos.providers.WeaveContentProvider"
android:authorities="org.cade.codigos.providers.weavecontentprovider" />
<receiver android:name=".codigos.utils.ProxyChangeReceiver" >
<intent-filter>
<action android:name="android.intent.action.PROXY_CHANGE" />
</intent-filter>
</receiver>
<activity
android:name=".codigos.ui.activities.RequestDataForm"
android:label="#string/title_activity_request_data_form" >
</activity>
</application>
</manifest>
Note
If you need any other piece of information from my application i will post it here as well, thank you very much in advance.
Your main activity needs to have a launcher intent added, something like this.
<activity
android:name=".MainActivity"
android:label="Title">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</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:scheme="http" />
<data android:scheme="https" />
</intent-filter>
</activity>
As far as I know, the Facebook app for android only supports a basic intent.
Does anyone know of an authoritative list of intents for facebook? It would be nice if you could just have a like intent.
Obtain the apk either:
With the Backup function of Astro File Manager. Copy the backed up apk (see /sdcard/backups/apps/) to your PC.
OR
With adb: Find out the apk path using adb shell pm path com.facebook.katana. Pull the apk from that path with e.g. adb pull /data/app/com.facebook.katana-1.apk
Use android-apktool to extract the manifest file from the Facebook.apk:
apktool.bat d Facebook.apk fbExtracted
Search for <intent-filter> tags inside the extracted AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="11090" android:versionName="1.8.4" package="com.facebook.katana"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7" />
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="com.facebook.katana.provider.ACCESS" />
<permission android:name="com.facebook.katana.provider.ACCESS" android:protectionLevel="signature" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission android:name="com.facebook.katana.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.facebook.katana.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application android:theme="#android:style/Theme.Light" android:label="#string/app_name" android:icon="#drawable/icon_katana" android:name="com.facebook.katana.FacebookApplication">
<provider android:name="com.facebook.katana.provider.UserStatusesProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.UserStatusesProvider" />
<provider android:name="com.facebook.katana.provider.UserValuesProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.UserValuesProvider" />
<provider android:name="com.facebook.katana.provider.KeyValueProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.KeyValueProvider" />
<provider android:name="com.facebook.katana.provider.EventsProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.EventsProvider" />
<provider android:name="com.facebook.katana.provider.ConnectionsProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.ConnectionsProvider" />
<provider android:name="com.facebook.katana.provider.PagesProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.PagesProvider" />
<provider android:name="com.facebook.katana.provider.LoggingProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.LoggingProvider" />
<provider android:name="com.facebook.katana.provider.PhotosProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.PhotosProvider" />
<provider android:name="com.facebook.katana.provider.MailboxProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.MailboxProvider" />
<provider android:name="com.facebook.katana.provider.NotificationsProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.NotificationsProvider" />
<provider android:name="com.facebook.katana.provider.ChatHistoryProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.ChatHistoryProvider" />
<provider android:name="com.facebook.katana.provider.CacheProvider" android:permission="com.facebook.katana.provider.ACCESS" android:authorities="com.facebook.katana.provider.CacheProvider" />
<service android:name="com.facebook.katana.service.FacebookService" />
<service android:name="com.facebook.katana.service.BackgroundDetectionService" />
<service android:name="com.facebook.katana.service.BackgroundRequestService" />
<service android:name="com.facebook.katana.service.UploadManager" />
<service android:name="com.facebook.katana.RemoveRawContactsService" />
<service android:name="com.facebook.katana.c2dm.PushReceiver" />
<activity android:theme="#style/Theme.FacebookDark" android:label="#string/app_name" android:name="com.facebook.katana.LoginActivity" android:configChanges="keyboard|keyboardHidden|orientation" android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.NotificationsActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.AlbumsActivity" android:configChanges="orientation" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.BugReporter" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.CreateEditAlbumActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.PhotosActivity" android:configChanges="orientation" />
<activity android:theme="#style/Theme.FacebookDark" android:name="com.facebook.katana.activity.media.ViewPhotoActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:name="com.facebook.katana.activity.media.ViewVideoActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.PhotoFeedbackActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.stream.StreamActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustPan" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.faceweb.FacewebChromeActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.feedback.FeedbackActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.events.EventsActivity" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.events.EventBirthdaysActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.events.EventDetailsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.events.EventGuestsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.CropImageActivity" android:configChanges="orientation" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.events.EventEditActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:label="#string/home_nearby" android:name="com.facebook.katana.activity.places.FriendCheckinsActivity" android:launchMode="singleTask" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.places.AddPlaceActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.places.PlacesNearbyActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.places.PlacesOptInActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.places.StubPlacesActivity" android:noHistory="true" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.chat.BuddyListActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.chat.ChatConversationActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.ProfileTabHostActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/vnd.facebook.profile" android:host="com.android.contacts" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.UserInfoActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.PageInfoActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.places.PlacesInfoActivity" />
<activity android:label="#string/home_settings" android:name="com.facebook.katana.SettingsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.UploadPhotoActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.media.UploadVideoActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="video/*" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Transparent" android:label="#string/facebook_status" android:name="com.facebook.katana.WidgetActivity" android:process="com.facebook.widget.affinity" android:taskAffinity="com.facebook.widget.affinity" android:excludeFromRecents="true" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#android:style/Theme.Dialog" android:label="#string/login_about" android:name="com.facebook.katana.HtmlAboutActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.view.FacebookWebViewActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.ShareLinkActivity">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.messages.MailboxTabHostActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.messages.MailboxThreadsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.messages.MailboxMessagesActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.messages.MessageComposeActivity" />
<activity android:theme="#style/Theme.WhiteText" android:name="com.facebook.katana.UsersTabHostActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.WhiteText" android:name="com.facebook.katana.FriendsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.RequestsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.PageSearchResultsActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.WhiteText" android:name="com.facebook.katana.PickFriendsActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.SyncContactsSetupActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.SyncContactsChangeActivity" />
<activity android:name="com.facebook.katana.IntentUriHandler">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="facebook" />
</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:scheme="fb" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.ProxyAuth" android:configChanges="locale|keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.PROXYAUTH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.profilelist.TaggedUsersActivity" />
<activity android:theme="#style/Theme.WhiteText" android:name="com.facebook.katana.activity.profilelist.FriendMultiSelectorActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.profilelist.GroupListActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.profilelist.GroupMemberListActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.ComposerActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.FeedComposerActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout" android:windowSoftInputMode="adjustResize" />
<receiver android:label="#string/app_name" android:name="com.facebook.katana.FacebookWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="#xml/appwidget_provider" />
</receiver>
<receiver android:label="#string/app_name" android:name="com.facebook.katana.FacebookAccountReceiver">
<intent-filter>
<action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
</intent-filter>
</receiver>
<receiver android:label="#string/app_name" android:name="com.facebook.katana.service.method.ApiLogging" />
<receiver android:name="com.facebook.katana.c2dm.PushBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.facebook.katana" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.facebook.katana" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RETRY" />
<category android:name="com.facebook.katana" />
</intent-filter>
<intent-filter>
<action android:name="com.facebook.c2dm.send.intent.RETRY" />
<category android:name="com.facebook.katana" />
</intent-filter>
</receiver>
<receiver android:label="#string/app_name" android:name="com.facebook.katana.binding.ChatHibernateKeepalive" />
<receiver android:name="com.facebook.katana.binding.UploadManagerConnectivity">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<service android:name="com.facebook.katana.platform.FacebookAuthenticationService" android:exported="true">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator" android:resource="#xml/authenticator" />
</service>
<service android:name="com.facebook.katana.platform.TokenRefreshService" android:enabled="true" android:exported="true" />
<service android:name="com.facebook.katana.platform.FacebookSyncAdapterService" android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data android:name="android.content.SyncAdapter" android:resource="#xml/syncadapter" />
<meta-data android:name="android.provider.CONTACTS_STRUCTURE" android:resource="#xml/contacts" />
</service>
<activity android:theme="#style/Theme.DialogNoTitle" android:name="com.facebook.katana.PasswordDialogActivity" />
<activity android:name="com.facebook.katana.LoginNotificationActivity" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.findfriends.LegalDisclaimerActivity" android:windowSoftInputMode="adjustResize" />
<activity android:theme="#style/Theme.Facebook" android:name="com.facebook.katana.activity.findfriends.FindFriendsActivity" android:configChanges="keyboard|keyboardHidden|navigation|orientation" android:windowSoftInputMode="adjustResize" />
<activity-alias android:name="com.android.internal.app.ResolverActivity" android:exported="true" android:targetActivity="com.facebook.katana.LoginActivity" />
</application>
</manifest>