Default Activity Not Found in android studio version 1.2.2 - android

I am new to android application development and i am following the video tutorials of New Boston. My appication gave error in the emulator "application closed unexpectedly" but when i tried to run it again it gave Error : Default activity not found.
After spending hours of time on google and stack overflow i realised it is related to android manifest.
so this is my manifest file.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.shubhangkhattar.newboston" >
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".Splash"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.example.shubhangkhattar.newboston.SPLASH" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.example.shubhangkhattar.newboston.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Menu"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.example.shubhangkhattar.newboston.MENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
I have already tried invalidate catches/restart and sync project with gradle files.

Change
<action android:name="com.example.shubhangkhattar.newboston.SPLASH"/>
To
<action android:name="android.intent.action.MAIN"/>
Intents reference

Related

failed to publish release on play store: ERROR: dump failed because no AndroidManifest.xml found

I've tried to resolve this problem for a few days but I can't understand what's the problem.
I've tried to publish my signed bundle on play store but I get this error:
"failed to run aapt dump badging: AndroidManifest.xml:49: error: ERROR getting 'android:label' attribute: attribute is not a string value".
Then I've tried the command aapt dump badging on terminal and I get this error: "ERROR: dump failed because no AndroidManifest.xml found".
This is my AndroidManifest:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0">
<application
android:allowBackup="true"
android:icon="#mipmap/icon"
android:label="#string/JUMP"
android:roundIcon="#mipmap/icon"
android:supportsRtl="true"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-7527687269802654~1998468299"/>
<activity
android:name="com.dipsapplus.JUMP.GameOver"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false"
android:label="#style/Theme.JUMP"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP.Fullscreen" />
<activity
android:name="com.dipsapplus.JUMP.MainActivity"
android:exported="true"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.dipsapplus.JUMP.StartGame"
android:exported="true"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP.Fullscreen">
<intent-filter>
<action android:name="package.OtherActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.dipsapplus.JUMP.StartGameMixed"
android:exported="true"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP.Fullscreen">
<intent-filter>
<action android:name="package.OtherActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.dipsapplus.JUMP.Pause"
android:exported="true"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP.Fullscreen"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="package.OtherActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.dipsapplus.JUMP.FirstGame"
android:exported="true"
android:screenOrientation="landscape"
android:theme="#style/Theme.JUMP.Fullscreen">
<intent-filter>
<action android:name="package.OtherActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
I've tried many things like flutter clean (which seems to do nothing) and other things found on internet. I really don't know what to do.
Thanks in advance
Your activity GameOver has an attribute android:label which points to a style instead of a string, #style/Theme.JUMP.

App is being divided into 3 parts

Why is this is happening? That's an code error from .xml or from Java?
That's my app, it is divided into 3 parts (every part is a layout that is also an App) and I don't know why]
This app is part of my project for college. Ive used my partners activity and then this error appeared right after the import.
Probably this error appeared because of the import. Im not sure about what I have to do now and Im really new at Android programming.
<?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.carro.robo.mobile.ufj.approbo">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<application
android:allowBackup="false"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
<activity
android:name=".MainBluetoothActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".PairedDevices"
android:parentActivityName=".MainBluetoothActivity" >
</activity>
<activity
android:name=".DiscoveredDevices"
android:parentActivityName=".MainBluetoothActivity" >
</activity>
<activity android:name=".Tela_bemVindo">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".CriacaoQuestoes">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
That is my .xml code. Android Version: 19 (KitKat 4.4)
Your app can have more than 1 item in the launcher. Every Activity that has a launcher intent filter gets an entry in it. Yours has 3. If you don't want them to be in the launcher, remove the launcher intent filter from the ones you don't want to show up.

Build successful but crashes

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.harshil.home.myapplication">
<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">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.harshil.home.myapplication.CustomActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="com.harshil.home.myapplication.LAUNCH"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="http"/>
</intent-filter>
</activity>
</application>
What is wrong with above android manifest.xml?
Everytime my app is crashing. I m new to stackoverflow so didnt know how to post so i just copy pasted.
It was due to exception button which i created but running it second time from emulator or mobile it works fine! Thanks all!

starter icon doesnt appear with other apps -android studio

after install my app on my device, she runs without problems, but when i want to access the app from the home menu apps, the icon doesnt appear, i look into aplication manager and the app is installed, I read others responses about that but cant figure it out, heres my manifies file.
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="majad.sunshine.app"><application
android:allowBackup="true"
android:icon="#drawable/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" />
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="geo"/>
</intent-filter>
</activity>
<activity
android:name=".DetailActivity"
android:label="#string/title_activity_detail"
android:parentActivityName=".MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="majad.sunshine.app.MainActivity" />
</activity>
<activity
android:name=".SettingsActivity"
android:label="#string/title_activity_settings"
android:parentActivityName=".MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="majad.sunshine.app.MainActivity" />
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" /></manifest>
Ill appreciate your help please
you missed an intent filter tag
<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"/>
<data android:scheme="geo"/>
</intent-filter>
This will solve the problem.You are giving two actions in the same intent filter which was causing the problem.

Following android tab tutorial, can't find or launch installed app on device or emulator

Attempting to follow this project
http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/
When I run it, it says everything installs alright but nothing comes up and it's not listed under apps. I find it under application manager.. What can cause an app to install and not launch?
edit:
Here's my manifest.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.tabs"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="17" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<activity android:name="TabsFragmentActivity" >
</activity>
</application>
</manifest>
Have you got a launcher Activity?
<activity
android:name=".MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> // this
</intent-filter>
</activity>
Edit:
You did not surround it with an Activity tag, so basically you don't have a launcher Activity, fix it like this:
[...]
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity android:name="TabsFragmentActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
[...]

Categories

Resources