The activity is not responding


The activity is not responding



I have been working on developing an application which needed login and signup screen. My register activity is not working properly.



The application is unable to take user from the start screen to the register activity, first the error arose of absence of intent filter then I included the intent filter in the manifest file but it seems like my app is ignoring the register activity.



I am attaching both manifest file and the activity code please have a look.











Don't use images to share code, use code snippet.
– tahsinRupam
Jul 2 at 10:39




2 Answers
2



As images are suggesting there are two LAUNCHER Activities in your AndroidMenifest.xml file, so you will have to make one of them as DEFAULT category.


LAUNCHER


AndroidMenifest.xml


DEFAULT


category



Put this line to your intent-filter of one Activity


intent-filter


Activity


<category android:name="android.intent.category.DEFAULT" />



instead of


<category android:name="android.intent.category.LAUNCHER" />



Simply define registeractivity like login activity , remove the intentfilter & it will work perfectly fine.





but if I remove the intent filter then an error pops us showing that intent filter missing
– Divyansh Tripathi
Jul 5 at 4:57





you have intent filter in main activity ?
– Anjani Mittal
Jul 5 at 5:01






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to make file upload 'Required' in Contact Form 7?

Rothschild family

amazon EC2 - How to make wp-config.php to writable?