Android app not showing up in app?

I created an sms application, but when it is installed, it does not appear in the application box (the bit where you launch the application on the main screen)! I can confirm that it is actually installed, because I can start it from the intentions of other programs, and the icon / name even appears in the "application management" settings! After starting, the whole application functions as it should (I even get the opportunity to use it by default to send sms!), So I don’t think it has anything to do with my java files, I have a feeling that it is connected with my Android manifest:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.pearson.sms" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8" /> <uses-permission android:name="android.permission.SEND_SMS"> </uses-permission> <uses-permission android:name="android.permission.RECEIVE_SMS"> </uses-permission> <uses-permission android:name="android.permission.READ_SMS"> </uses-permission> <uses-permission android:name="android.permission.WRITE_SMS"> </uses-permission> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".DisplaySMSRecieved" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <data android:scheme="sms" /> </intent-filter> <intent-filter> <action android:name="com.pearson.sms.LAUNCH" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <receiver android:name=".PearsonSMSReciever"> <intent-filter> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="sms" /> </intent-filter> </receiver> <activity android:name=".PearsonSMS" android:label="@string/send_sms"> <intent-filter> <action android:name="android.intent.action.SENDTO" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="sms"/> </intent-filter> </activity> </application> </manifest> 

This is a bit of a mess, as I struggled to get it to work as a proper sms application, but I don’t see what I did wrong so that it does not appear in the application box, please help!

EDIT: sorted, it was an intent filter

 <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <data android:scheme="sms" /> </intent-filter> 

it should not have an android circuit: there, I changed it to

 <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> 

and now it is displayed in the application box :)

+6
source share
3 answers

You can try to remove the data record from your first intent filter for DisplaySMSRecieved. To appear on the launchpad, you need to have an intent filter, for example:

 <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> 

Make sure you provide the icon and name for your package so that it can be displayed in the list.

+6
source

This is a long shot, but is there an icon in the drop-down folder? You have android:icon="@drawable/icon , which tells Android which icon to use in the application. Maybe try putting your icon. Also try uninstalling / reinstalling (maybe restart the phone also to be sure) in the application. since I noticed that Android sometimes caches these icons.

UPDATE

What happens when you launch it from an eclipse and then hold down the HOME button (to receive the latest applications)? Does he appear there? Is there an icon?

0
source

Alternatively, you can use a double filter intent, such as the following in your desired activity that uses data

 <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.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <data android:scheme="sms" /> </intent-filter> 
0
source

Source: https://habr.com/ru/post/889009/


All Articles