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 :)
source share