app icon is not showing in app menu in android [duplicate] - android

This question already has answers here:
My android app is not being displayed in the app drawer?
(3 answers)
Closed 7 years ago.
When I run my app from android studio the app is installing but the icon is no showing in app menu. It only shows in home screen. I have not changed anything in manifiest. Everything was fine, suddenly this problem started. I am struggling with it for 3 hours. Its annoying. If you see these pictures you will understand.
See the Beat Box icon is missing from first picture. Why this is happening?
my manifiest code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="prime.beatbox"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/download"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="#android:style/Theme.Translucent" />
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<data android:scheme="file" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Player"
android:label="#string/title_activity_player"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<service
android:name=".EgineBackground"
android:enabled="true" >
</service>
<activity
android:name=".Statistics"
android:label="#string/title_activity_statistics"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".AlbumItems"
android:label="#string/title_activity_album_items"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ArtistAlbum"
android:label="#string/title_activity_artist_album"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".AnimationTest"
android:label="#string/title_activity_animation_test"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".DataBase"
android:label="#string/title_activity_data_base"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".EqualizerLocal"
android:label="#string/title_activity_equalizer"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<receiver
android:name=".EgineBackground$PreviousButtonListener"
android:enabled="true" >
</receiver>
<receiver
android:name=".EgineBackground$NextButtonListener"
android:enabled="true" >
</receiver>
<receiver
android:name=".EgineBackground$PlayButtonListener"
android:enabled="true" >
</receiver>
<receiver
android:name=".EgineBackground$CancelButtonListener"
android:enabled="true" >
</receiver>
<receiver
android:name=".NewAppWidget$NextButtonListenerNotification"
android:enabled="true" >
</receiver>
<receiver
android:name=".NewAppWidget$PlayButtonListenerNotification"
android:enabled="true" >
</receiver>
<receiver
android:name=".NewAppWidget$GoToApp"
android:enabled="true" >
</receiver>
<receiver
android:name=".EgineBackground$CallDetector"
android:enabled="true" >
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>
<activity
android:name=".Themes"
android:label="#string/title_activity_themes" >
</activity>
<activity
android:name=".sleep"
android:label="#string/title_activity_sleep" >
</activity>
<activity
android:name=".Favourite"
android:label="#string/title_activity_favourite" >
</activity>
<activity
android:name=".PhoneMemory"
android:label="#string/title_activity_phone_memory" >
</activity>
<receiver android:name=".NewAppWidget" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/new_app_widget_info" />
</receiver>
<activity
android:name=".MyFolders"
android:label="#string/title_activity_my_folders" >
</activity>
<activity
android:name=".CardMemory"
android:label="#string/title_activity_card_memory" >
</activity>
<activity
android:name=".PlayList"
android:label="#string/title_activity_play_list" >
</activity>
<activity
android:name=".PlaylistDetails"
android:label="#string/title_activity_playlist_details" >
</activity>
<activity
android:name=".SongDetails"
android:label="#string/title_activity_song_details" >
</activity>
<activity
android:name=".SearchBox"
android:label="#string/title_activity_search_box"
android:windowSoftInputMode="adjustPan" >
</activity>
<activity
android:name=".SearchAlbum"
android:label="#string/title_activity_search_album" >
</activity>
<activity
android:name=".About"
android:label="#string/title_activity_about" >
</activity>
</application>
</manifest>

The problem is <data android:scheme="file" /> , you cannot logically use this tag in launcher activity.
Set if the activity should be an option for the default action (center press) to perform on a piece of data. Setting this will hide from the user any activities without it set when performing an action on some data. Note that this is normal -not- set in the Intent when initiating an action — it is for use in intent filters specified in packages.

Related

App crashes on Android TV version 7+

I have a mobile app that needs to run on Android TV. I don't have a TV to test it, so I'm trying over an emulator.
The app works just fine on Android versions < 7 (Marshmallow, Lollipop). But when I open it in the emulator with Nougat on it, the app keeps crashing and I get an error that says: "Leanback Launcher keeps stopping".
I've read that I should put some things in Manifest, but I'm confused, why is it working on Android versions < 7?
This is my Manifest, so if you can take a quick look and advise me what to put inside to make it work?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="------">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />
<permission android:name="android.permission.REBOOT" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<application
android:name="-----"
android:allowBackup="true"
android:icon="#drawable/ic_launcher_2"
android:label="#string/app_nameMain"
android:launchMode="singleTask"
android:theme="#style/AppTheme"
tools:replace="android:label">
<service android:name=".services.AutoUpdaterService" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.codepath.gcmquickstart" />
</intent-filter>
</receiver>
<service
android:name=".services.ZipaGcmListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:name=".services.ZipaInstanceIDListenerService"
android:exported="false">
<!-- <intent-filter> -->
<!-- <action android:name="com.google.android.c2dm.intent.RECEIVE" /> -->
<!-- </intent-filter> -->
</service>
<receiver android:name=".broadcasts.ConnectionChangeReceiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
</intent-filter>
</receiver>
<activity
android:name=".activities.LauncherActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTask"
android:theme="#style/App.Theme.Translucent"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.AlarmTriggerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:label=""
android:launchMode="singleInstance"
android:theme="#style/App.Theme.Translucent"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.LogInActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.BrowserManagerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyHomeCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WizardActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.DeviceManagerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<service android:name="com.zipato.mqtt.MqttService" />
<activity
android:name=".activities.RegisterActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<!-- <activity -->
<!-- android:name=".activities.ShakeSettingActivity" -->
<!-- android:configChanges="keyboardHidden|orientation|screenSize" -->
<!-- android:windowSoftInputMode="adjustPan"/> -->
<activity
android:name=".activities.PasswordRecoveryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.CameraActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="CameraActivity"
android:launchMode="singleTop"
android:screenOrientation="landscape"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.DiscoveryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.ScreenShotActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.MjpegStreamActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="CameraActivity"
android:launchMode="singleTop"
android:screenOrientation="landscape"
android:theme="#style/AppTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.ShowVCMenu"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.BrowserManagerActivity" />
</activity>
<activity
android:name=".activities.ShowDialogActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WidgetConfigSwitch"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigLevel"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigRGBW"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigSecurity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetConfigThermostat"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".activities.WidgetEventHandlerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:label=""
android:launchMode="singleInstance"
android:theme="#style/App.Theme.Dialog"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.CreateWeatherActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:windowSoftInputMode="adjustPan" />
<receiver
android:name=".broadcasts.ThermostatWidgetProvider"
android:label="#string/zipato_thermostat_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/thermostat_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.SecurityWidgetProvider"
android:label="#string/zipato_security_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/security_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.SwitchWidgetProvider"
android:label="#string/zipato_switch_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/switch_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.RGBWidgetProvider"
android:label="#string/zipato_rgb_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/rgb_appwiget_info" />
</receiver>
<receiver
android:name=".broadcasts.LevelWidgetProvider"
android:label="#string/zipato_level_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/level_appwidget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartDevicesWidgetProvider"
android:label="#string/zipato_start_dev_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_dev_app_widget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartRoomsWidgetProvider"
android:label="#string/zipato_start_rooms_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_room_app_widget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartScenesWidgetProvider"
android:label="#string/zipato_start_scenes_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_scenes_app_widget_info" />
</receiver>
<receiver
android:name=".broadcasts.StartFavoriteWidgetProvider"
android:label="#string/zipato_start_fav_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/start_fav_app_widget_info" />
</receiver>
<service
android:name=".services.WidgetService"
android:exported="false">
<!-- <intent-filter> -->
<!-- <action android:name="com.google.android.c2dm.intent.RECEIVE" /> -->
<!-- </intent-filter> -->
</service>
<activity
android:name=".activities.WebViewActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.AccountSettingsActivity"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.AccountContactsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.AccountContactsAddEdit"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".activities.ActivityUsers"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".activities.ActivityUsersEdit"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".activities.ActivityGeneralSettings"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/MyCustomTheme"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WalletActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.WalletWebViewActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.DeviceManActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.DeviceEndpointsActivity"
android:theme="#style/MyCustomTheme" />
<activity
android:name=".activities.DeviceClusterEndpointActivity"
android:theme="#style/MyCustomTheme" />
</application>
LauncherActivity is my default launcher, should I add:
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
inside its intent filter? Also, I assume I should add this permission also:
<uses-feature android:name="android.software.leanback"
android:required="false" />
And this thing inside application tag:
android:banner="#drawable/banner"
Is there anything else or this is completely wrong?
This problem has been addressed in this google forum Why do Apps that stream live TV crash under Android 7.0 Nougat on Nexus 5x?. In summary, the app you're running haven't been updated/not-ready for Nougat - higher versions of Android. Other apps, which supported Nougat, seemed to work fine.

I can't see my app icon in my phone

I use Android Studio
I build the app and play in device.
but, in device's normal display(like when phone open state),
I can't see the icon
In device Setting, I find the app in application manager,
but I can't see in normal display
this is my androidmanifest.xml
<application
android:allowBackup="true"
android:icon="#drawable/imagebutton_on"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".Activity.SplashActivity"
android:theme="#style/AppTheme"
android:icon="#drawable/imagebutton_on"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="roid.intent.category.LAUNCHER" />
</intent-filter>
</activity>
I embrassed of that
please help me
this is my full android-manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.thewell_dev.fourscompany">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="#mipmap/imagebutton_on"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".Activity.SplashActivity"
android:theme="#style/AppTheme"
android:icon="#mipmap/imagebutton_on"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="roid.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:host="example.com"></data>
<data android:scheme="http"></data>
<data android:pathPattern="/.*"></data>
</intent-filter>
</activity>
<activity android:name=".Activity.LoginActivity">
</activity>
<activity android:name=".Activity.JoinActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.MainActivity"
android:theme="#style/ListTheme"
android:icon="#mipmap/imagebutton_on"
>
</activity>
<activity android:name=".Activity.CompanyActivity"
android:theme="#style/CompanyTheme"
android:configChanges="orientation|keyboardHidden|screenLayout|screenSize"
>
</activity>
<activity android:name=".Activity.CardActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.CardListActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.CardPreviewActivity">
</activity>
<activity android:name=".Activity.ManagementActivity">
</activity>
<activity android:name=".Activity.BeaconActivity">
</activity>
<activity android:name=".Activity.CompanyCardActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.PreferencActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.FileListActivity">
</activity>
<activity android:name=".Activity.PasswordChangeActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.RemoveUserActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.ProvisionActivity">
</activity>
<activity android:name=".Activity.QuestionActivity">
</activity>
<activity android:name=".Activity.ExpandActivity">
</activity>
<activity android:name=".Activity.CardPrecaptureActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.BookMarkActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.FindPasswordActivity"
android:theme="#style/SplashTheme"
>
</activity>
<activity android:name=".Activity.CardListDetailActivity">
</activity>
<activity android:name=".Activity.UploadCertificationActivity">
</activity>
<activity android:name=".Activity.UploadRewardActivity">
</activity>
<activity android:name=".Activity.OnOffProductActivity"
>
</activity>
<activity android:name=".Activity.OnOffCompanyActivity"
>
</activity>
</application>
</manifest>
App Icon should be placed in mipmap folder. Move your imagebutton_on in res\mipmap\ and Replace below code from application tag:
android:icon="#drawable/imagebutton_on">
With:
android:icon="#mipmap/imagebutton_on"
And resolve the following issue, as Markus Kauppinen mentioned:
<category android:name="roid.intent.category.LAUNCHER" />
To:
<category android:name="aroid.intent.category.LAUNCHER" />
Hope this helps.
Try by removing following lines from all activity tags
android:icon="#mipmap/imagebutton_on"
Keep it in only application tag.

Google Play Warning: WebViewClient.onReceivedSslError handler

I got an email from Google with the following subject : Google Play Warning: SSL Error Handler Vulnerability". In this email, Google explains that my app has an ["unsafe implementation of the WebViewClient.onReceivedSslError handler"
Here's my implementation of the method (WebView Client) :
public class MyBrowser extends WebViewClient {
boolean timeout;
public MyBrowser() {
timeout = true;
}
#Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
try {
progressBar.setVisibility(View.VISIBLE);
}catch(Exception e){
e.printStackTrace();
}
}
#Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
public void onPageFinished(WebView view, String url) {
try{
progressBar.setVisibility(View.GONE);
webView.setVisibility(View.VISIBLE);
}catch(Exception e){
Log.e("Exception", e.toString());
Crashlytics.logException(e);
}
}
#Override
public void onReceivedError(WebView view, int errorCode,
String description, String failingUrl) {
isBack=true;
if (!CommonUtility.isNetworkAvailable()) {
view.loadUrl("file:///android_asset/error.html");
}
}
}
After first warning, i removed the onReceivedSslError Method from the WebClient and uploaded the new build, but again i got the same warning from Google Play.
and they recommended me to :-
" It looks like Version 18 still has the vulnerability. Please re-check your app's manifest file, this time more carefully, to ensure that the vulnerability has been address."
Here's my Manifest File :- (Kindly Help me to get rid off this issue)
<?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="in.test"
android:installLocation="auto"
android:versionCode="18"
android:versionName="2.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="21" />
<!-- GCM Permisssions -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!--
Creates a custom permission so only this app can receive its messages.
NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE,
where PACKAGE is the application's package name.
-->
<permission
android:name="in.Sptest.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name=".application.TestApplication"
android:hardwareAccelerated="true"
android:icon="#drawable/logo"
android:label="#string/app_name"
tools:replace="android:icon,android:name" >
<activity
android:name=".LauncherScreen"
android:hardwareAccelerated="true"
android:label="#string/title_activity_main"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".MainActivity"
android:hardwareAccelerated="true"
android:label="#string/title_activity_main"
android:noHistory="false"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".URLActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".SplashActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".activities.ActivityIntro"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login_test"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".fragment.FragmentActivityNumberVerification"
android:icon="#drawable/app_icon"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".BrowserScreen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".activities.TermsActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".DataCardRecharge"
android:label="#string/title_activity_launcher_screen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".UserFeedBack"
android:label="#string/title_activity_launcher_screen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".PostpaidMobileRecharge"
android:label="#string/title_activity_launcher_screen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".PrepaidMobileRecharge"
android:label="#string/title_activity_launcher_screen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".Recharge"
android:label="#string/title_activity_launcher_screen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".RailBooking"
android:label="#string/title_activity_launcher_screen"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ProfileDetails"
android:label="#string/title_activity_profile_details"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".RailTransactionhistory"
android:label="#string/title_activity_transactionhistory"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".GetPhoneContact"
android:label="#string/title_activity_get_phone_contact"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".TariffPlans"
android:label="#string/title_activity_tariff_plans"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".TrnsactionHistory_Details"
android:label="#string/title_activity_trnsaction_history__details"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".RailTrnsactionHistory_Details"
android:label="#string/title_activity_trnsaction_history__details"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".MyProfile"
android:label="#string/title_activity_trnsaction_history__details"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ZaakPAyResponse"
android:label="#string/title_activity_trnsaction_history__details"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ZaakPAyResponseRailBooking"
android:label="#string/title_activity_trnsaction_history__details"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".RailTicket_PNR"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".PNRStatusDetails"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".RailTicket_History"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".activities.ActivityFavouriteDialog"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name=".PassenderHistory"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" />
<!-- Copy below Activity Declarations inside <application></application> tag in AndroidManifest.xml of your application -->
<!-- Wallet SDK Activity Classes Start Here -->
<!-- Wallet SDK Activity Classes End Here -->
<activity
android:name=".TariffPlansActivity"
android:label="#string/title_activity_tariff_plans"
android:screenOrientation="portrait"
android:theme="#style/Theme.Tariff_plans" >
</activity>
<activity
android:name=".TransactionMessageActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".AboutActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ShareActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name=".ActivityLastRechargeList"
android:label="#string/title_activity_activity_last_recharge_list"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ActivityNewInfo"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ActivitySendMoney"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name=".ActivitySetTransactionPassword"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ActivityReceivedMoneyDetails"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ActivityTransactionHistory"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ActivityRailBookingHistory"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ActivityNotificationDialog"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Holo.Light.Dialog.NoActionBar" >
</activity>
<activity
android:name=".FirstActivity"
android:exported="true"
android:hardwareAccelerated="true"
android:label="#string/title_activity_main"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".activities.OffersFragmentActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Transparent" >
</activity>
<activity
android:name=".RechargeActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name=".RailActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustPan" >
</activity>
<activity
android:name=".InviteActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" />
<activity
android:name="in.Sptestdeals.DealsActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.test" >
</activity>
<activity
android:name=".ActivityNotification"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name="in.Sptestdeals.DealDetailsActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.test"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name="com.Spdealmodule.activities.ActivityTransactionMessageTest"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
</activity>
<activity
android:name=".ActivityPaymentOptionsSelection"
android:screenOrientation="portrait"
android:theme="#style/Theme.test"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name=".activities.OpenURLInWebViewActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.test"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name=".activities.OpenInterestURLInWebViewActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Transparent" >
</activity>
<activity
android:name=".activities.ActivityOfferDetail"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name=".activities.ActivityAskFriend"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name=".activities.ActivityNoOffer"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name=".ActivitySavedCard"
android:screenOrientation="portrait"
android:theme="#style/Theme.test"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<service android:name=".service.AppInstallIntentService" >
</service>
<service android:name=".service.FetchtestListService" >
</service>
<receiver android:name="com.broadcastreceiver.WakefullReceiverAppInstall" >
<intent-filter android:priority="2147483647" >
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_INSTALL" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<receiver
android:name="com.broadcastreceiver.ServiceStarter"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="android.intent.action.REBOOT" />
</intent-filter>
</receiver>
<receiver android:name="com.broadcastreceiver.NetworkChangeReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<service android:name=".service.NetworkChangeIntentService" />
<!--
WakefulBroadcastReceiver that will receive intents from GCM
services and hand them to the custom IntentService.
The com.google.android.c2dm.permission.SEND permission is necessary
so only GCM services can send data messages for the app.
-->
<receiver
android:name="com.Sptest.gcm.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="in.Sptest" />
</intent-filter>
</receiver>
<receiver
android:name="com.broadcastreceiver.ReferrerCatcher"
android:exported="true" >
<intent-filter android:priority="2147483647" >
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service android:name="com.Sptest.gcm.GcmIntentService" />
<service android:name=".service.ReferralIntentService" />
<service android:name="com.google.analytics.tracking.android.CampaignTrackingService" />
<service android:name=".service.SmsReadService" />
<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider1450001738595564"
android:exported="true" />
<service android:name=".service.InAppNotificationService" />
<service android:name="com.Sptest.gcm.GCMRegistrationService" />
<!-- <meta-data -->
<!-- android:name="com.google.android.gms.version" -->
<!-- android:value="#integer/google_play_services_version" /> -->
<meta-data
android:name="io.fabric.ApiKey"
android:value="5423ec39674b4ed2b5891b52a2a7738b1fe69317" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<meta-data
android:name="com.facebook.sdk.ApplicationName"
android:value="#string/app_name" />
<activity
android:name=".SMSVerifyActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar" >
<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:host="www.Sptest.com"
android:pathPrefix="/scomm/vf"
android:scheme="https" />
</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:host="smsverify"
android:scheme="Sptest" />
</intent-filter>
</activity>
<activity
android:name="in.Testsdk.TestOffersListActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent" >
</activity>
<service android:name="in.Testsdk.services.TestAppInstallIntentService" >
</service>
<service android:name="in.Testsdk.services.TestAppOpenService" >
</service>
<activity
android:name="in.Testsdk.TestOpenInterestActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:screenOrientation="portrait"
android:theme="#style/Theme.Transparent" />
<activity
android:name="in.Testsdk.TestOpenURLInWebViewActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:screenOrientation="portrait" >
</activity>
<receiver android:name="in.Testsdk.broadcastreceiver.WakefullReceiverAppInstall" >
<intent-filter android:priority="2147483647" >
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_INSTALL" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<activity
android:name=".RailPaymentWebViewActivity"
android:label="#string/title_activity_rail_payment_web_view"
android:screenOrientation="portrait">
</activity>
</application>
Though you have removed onReceivedSslError method, some other libraries like payment gateways might still be using a built-in WebView and hence you are still getting that warning. Check all your libraries or update them. I hope this solves your problem!
You must provide correct implementation for onReceivedSslError method. Answered here Webview avoid security alert from google play upon implementation of onReceivedSslError

How do I properly specify my starting activity in the android manifest?

This is my android manifest and for some reason my MainActivity does not start first. The activity that starts first whenever I run the application is RegisterActivity. Can anyone help me figure out why?
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.indigohate"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<permission
android:name="com.indigohate.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.indigohate.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<service android:name="com.indigohate.GCMIntentService" />
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.indigohate" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.indigohate" />
</intent-filter>
</receiver>
<activity
android:name="com.indigohate.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.indigohate.RegisterActivity"
android:launchMode="singleTop" />
<activity
android:name="com.indigohate.UserRegister"
android:launchMode="singleTop" />
<activity
android:name="com.indigohate.LoginActivity"
android:launchMode="singleTop" >
</activity>
<activity
android:name="com.indigohate.RideRequest"
android:label="#string/title_activity_ride_request" >
</activity>
<activity
android:name="com.indigohate.TimePickerFragment"
android:label="#string/title_activity_time_picker_fragment" >
</activity>
<activity
android:name="com.indigohate.SearchResultsListActivity"
android:launchMode="singleTop" />
<activity
android:name="com.indigohate.LoadingScreenActivity"
android:label="#string/title_activity_loading_screen" >
</activity>
<activity
android:name="com.indigohate.HomeActivity"
android:label="#string/title_activity_home" >
</activity>
<activity
android:name="com.indigohate.LostPasswordActivity"
android:label="#string/title_activity_lost_password" >
</activity>
<activity
android:name="com.indigohate.RideOfferActivity"
android:label="#string/title_activity_ride_offer" >
</activity>
<activity
android:name="com.indigohate.StartRideActivity"
android:label="#string/title_activity_start_ride" >
</activity>
<activity
android:name="com.indigohate.StopRideActivity"
android:label="#string/title_activity_stop_ride" >
</activity>
<activity
android:name="com.indigohate.CalendarActivity"
android:label="#string/title_activity_calendar" >
</activity>
<activity
android:name="com.indigohate.ProfileActivity"
android:label="#string/title_activity_profile" >
</activity>
<activity
android:name="com.indigohate.MakeCommentActivity"
android:label="#string/title_activity_make_comment" >
</activity>
<activity
android:name="com.indigohate.PaymentInformationActivity"
android:label="#string/title_activity_payment_information" >
</activity>
<activity
android:name="com.indigohate.RideHistoryActivity"
android:label="#string/title_activity_ride_history" >
</activity>
</application>
</manifest>
It's because you kept this attribute in your RegisterActivity
android:launchMode="singleTop"
Remove all these launchmodes in all activities. Keep it only in your MainActivity:
<activity
android:name="com.indigohate.MainActivity"
android:label="#string/app_name"
android:launchMode="singleTop"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
The starting activity contains <category android:name="android.intent.category.LAUNCHER" /> to ensure that it's a launcher activity when an app starts.

R.java missing but no xml errors

I have been trying to convert my activities into fragments, and during the process somewhere I messed something up in one of my files. I am getting the error where it can't find my R.java file, and I checked all of my libraries but there are no errors in their xml files. Nor are there errors in my apps xml files. Well, there might be, but they aren't showing up.
I have cleaned my projects multiple times, and I have restarted Eclipse, but nothing seems to work. No errors are coming up in my xml files, so do you all have any ideas for fixing this?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fotolife.app"
android:versionCode="1"
android:versionName="1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-feature android:name="android.hardware.camera" />
<application
android:icon="#drawable/icon_retina"
android:label="The Foto Life"
android:screenOrientation="portrait" >
<uses-library
android:name="com.google.android.maps"
android:required="true" />
<activity
android:name=".Splash"
android:exported="true"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login"
android:excludeFromRecents="true"
android:exported="false"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.LOGIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".MainView"
android:exported="false"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.MAINVIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Menu"
android:exported="false"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.MENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Upload"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="false"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.UPLOAD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Map"
android:exported="false"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.MAPS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".AndroidCustomGalleryActivity"
android:configChanges="keyboardHidden|orientation"
android:exported="false"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.GALLERY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".EditGallery"
android:configChanges="keyboardHidden|orientation"
android:exported="false"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.GALLERY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".UploadQueue"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar"
android:windowSoftInputMode="adjustPan" >
</activity>
<activity
android:name="com.aviary.android.feather.FeatherActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:screenOrientation="portrait"
android:theme="#style/FeatherDefaultTheme.Custom" />
<receiver
android:name="com.aviary.android.feather.receivers.FeatherSystemReceiver"
android:exported="true"
android:process=":feather_system_receiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<provider
android:name="com.aviary.android.feather.library.providers.FeatherContentProvider"
android:authorities="com.fotolife.app.upload"
android:exported="false" >
</provider>
<meta-data
android:name="ADMOB_PUBLISHER_ID"
android:value="a150e7b057ac915" />
</application>
</manifest>
I have a tag in my manifest that I move around and don't get errors. Can you tell me the correct location for it?
Update the Build Tools in Android SDK Manager
Delete your 'gen' and 'bin' folder, then check the 'Problem' Tab (in eclipse). I bet you are missing an XML reference, or have another error in an XML file (sometimes not escaping slashes or quotes can do it).
Finally, check your project properties to make sure you are still targeting the appropriate SDK Version, and that your libraries are all still linked.
I found out the problem. There was an 8 hiding in my edit.xml file..... I got rid of it and the problem was fixed.

Categories

Resources