I have an app that I uploaded to the Google Play Store. It stops running once downloaded or can't be downloaded at all. I'm pretty sure there's something wrong with my manifest as that's the error. I'm going to add my app release apk and manifest file.
Asking if someone could help me find the issue, it shouldn't be a terrible error, but I can't seem to figure it out.
Thanks.
Manifest file below:
<?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.Houston_Rockets_Team_App">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:debuggable="false"
tools:ignore="HardcodedDebugMode">
<activity
android:name="com.Houston_Rockets_Team_App.Houston_Rockets_Team_App.MainActivity"
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.Houston_Rockets_Team_App.Houston_Rockets_Team_App.PlayersActivity" android:label="#string/app_name">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- <data android:mimeType="image/png" /> -->
</intent-filter>
</activity>
<activity android:name="com.Houston_Rockets_Team_App.Houston_Rockets_Team_App.StaffActivity" android:label="#string/app_name">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- <data android:mimeType="image/png" /> -->
</intent-filter>
</activity>
<activity android:name="com.Houston_Rockets_Team_App.Houston_Rockets_Team_App.Settings" android:label="#string/app_name">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- <data android:mimeType="image/png" /> -->
</intent-filter>
</activity>
<activity android:name="com.Houston_Rockets_Team_App.Houston_Rockets_Team_App.AboutActivity" android:label="#string/app_name">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- <data android:mimeType="image/png" /> -->
</intent-filter>
</activity>
<activity android:name="com.Houston_Rockets_Team_App.Houston_Rockets_Team_App.EditPrefs" android:label="#string/app_name">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- <data android:mimeType="image/png" /> -->
</intent-filter>
</activity>
</application>
Here's the apk, I'm hoping it can be opened.
https://drive.google.com/file/d/18VT9Gl4adwBGuMa_omGWtjf0IM4Rc0RD/view?usp=sharing
-I found your bug and its mainActivity not found error raise.
-Please check your MainActivity path into the manifest and set right classpath into the manifest that will solve your error.
Related
I would like to open my app from the browser.
example: I open a browser, type in: https://open.my.app, or app://www.example.com and have my app as an option come up.
I read about Deep Links and I am quite sure I set up my project properly, YET nothing happens when I either try to type and run: https://open.my.app, app://www.example.com
My AndroidManifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.somemobileapp">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:allowBackup="false"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTask"
android:label="#string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Change these two in the future to a proper one -->
<data android:scheme="https" android:host="www.example.com" />
<data android:scheme="app" android:host="open.my.app" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
</manifest>
So even after this, it's not working.
I know it will sound strange but keeping the data tag on first worked for me
<intent-filter>
<!-- data on first -->
<data android:scheme="http" android:host="abc.in"/>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
When I add an intent filter (to enable Google to crawl my app content and allow users to enter my app from search results) then my app still runs from Android Studio on my phone but it no longer installs.
My manifest is below, I have commented out the added intent filter to make it install again, so now I get a warning that it is not indexable by Google search.
What can I do so it installs and is indexable?
This is my first app so apologies if this is obvious but I appreciate any help. Thanks.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.somename.myappname">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<!--action android:name="android.intent.action.VIEW" /-->
<action android:name="android.intent.action.MAIN" />
<!--category android:name="android.intent.category.DEFAULT" /-->
<!--category android:name="android.intent.category.BROWSABLE" /-->
<category android:name="android.intent.category.LAUNCHER" />
<!--data android:scheme="somename"
android:host="myappname" /-->
</intent-filter>
</activity>
<activity android:name=".ChildActivity">
</activity>
</application>
</manifest>
I seem to have found the solution. There should be 2 separate intent filters ...
<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"
android:host="www.mywebsite.com"
android:pathPrefix="/myappname" />
</intent-filter>
Android Studio doesn't install app properly. It's not visible in the apps launcher. Already tried to keep only MAIN and LAUNCHER intent filter.
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme"
android:name=".App">
<activity
android:name=".ui.main.MainActivity"
android:label="#string/title_activity_navigation_drawer" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:scheme="mainactivity" />
</intent-filter>
</activity>
<activity android:name=".ui.web.WebViewActivity"/>
</application>
The solution was to define intent filters seperately:
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme"
android:name=".App">
<activity
android:name=".ui.main.MainActivity"
android:label="#string/title_activity_navigation_drawer" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"></category>
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:scheme="mainactivity" />
</intent-filter>
</activity>
<activity android:name=".ui.web.WebViewActivity"/>
</application>
Example in android documentation
Why it can't show my app on the youtube share list?
The current effect in the below it can't show my app..
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
This is the code to make the effect or i am using a wrong way to do the effect?
<activity android:name=".AboutActivity">
<intent-filter>
<action android:name="android.intent.action.send"/>
<category android:name="android.intent.category.default"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>
This is the other code
<activity
android:name=".LoginActivity"
android:label="#string/title_activity_login" />
<activity
android:name=".RegisterActivity"
android:label="#string/title_activity_register" />
<activity
android:name=".MoviePlayActivity"
android:label="#string/title_activity_movie_play" />
<activity
android:name=".QuestionUploadActivity"
android:label="#string/title_activity_question_upload" />
<activity
android:name=".PhotoUploadActivity"
android:label="#string/title_activity_photo_upload">
</activity>
</application>
i am using a wrong way to do the effect?
Android is case-sensitive. Replace:
<activity android:name=".AboutActivity">
<intent-filter>
<action android:name="android.intent.action.send"/>
<category android:name="android.intent.category.default"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>
with:
<activity android:name=".AboutActivity">
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>
Hi I'm making an android app for the first time and I am stuck I have made a main menu with buttons and I want it to go to another secondary menu for example console games gets clicked and then goes to the console menu view then from there click on the PlayStation button to get to Google maps. The problem is when I get to the console menu the buttons do nothing even when I have the onclicklistener method set to the right button. I have narrowed it down (I think) to the manifest where the problem is but I can't find what is wrong. Here is the whole code .Please Help thanks. :)
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application
android:icon="#drawable/gf_icon"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar"
android:debuggable="true">
<uses-library android:name="com.google.android.maps" />
<!--splash screen-->
<activity
android:name=".myMain"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- main screen -->
<activity
android:name=".myMenu"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.irou.geekfast.CLEARSCREEN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- console games menu -->
<activity
android:name=".consoleGames"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.irou.geekfast.CONSOLEGAMES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- console games menu -->
<activity
android:name=".consoleGames"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.irou.geekfast.CONSOLEGAMES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- hardware menu -->
<activity
android:name=".mainMenu"
android:label="#string/app_name">
<intent-filter>
<action android:name="com.irou.geekfast.MAINMENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".helpBox"
android:label="#string/app_name"
android:theme="#android:style/Theme.Dialog">
<intent-filter>
<action android:name="com.irou.geekfast.HELPBOX" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- Map activity -->
<activity
android:name=".consoleMap"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.irou.geekfast.CONSOLEMAP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
From the information you have provided looks like you are missing Intent Filters
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>