App cannot be launched, but seems to have installed - android

I changed the manifest of my app, and now the app cannot be launched. No icon. However, when I check installed under setting Application Manager, I see it there!
Whats going on??? I have used same permissions before. I just changed which app was MAIN and launcher. Now cannot see the app. Does not come up via Studio or show up in Apps device!!!!
Update: created new app with same permissions and launches ok, so it does not really seem to be permissions ...
Installing com.mycomp.myapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycomp.myapp"
pkg: /data/local/tmp/com.myapp.
Success
09-21 13:40:43.261 454-499/? W/PackageManager﹕ verifying app can be installed or not
09-21 13:40:49.171 454-499/? W/PackageManager﹕ Unknown permission android.permission.UPDATE_DEVICE_STATE in package com.mycomp.myapp
09-21 13:40:49.171 454-499/? W/PackageManager﹕ Not granting permission android.permission.PACKAGE_USAGE_STATS to package com.mycomp.myapp (protectionLevel=18 flags=0x18be46)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mycomp.myapp.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="24" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<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.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.REORDER_TASKS" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<application
android:allowBackup="true"
android:excludeFromRecents="true"
android:icon="#drawable/app_icon"
android:label="#string/app_name"
android:largeHeap="true"
android:theme="#style/AppTheme" >
<activity
android:name="com.mycomp.myapp.test.SplashScreen"
android:label="#string/app_name" >
</activity>
<receiver android:name="com.mycomp.myapp.test.BootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service
android:name="com.mycomp.myapp.test.CheckValuesSercice"
android:exported="false" />
<service`enter code here`
android:name="com.mycomp.myapp.test.TestService"
android:exported="false" />
<service
android:name="com.mycomp.myapp.test.ValuesService"
android:exported="false" />
<activity
android:name="com.mycomp.myapp.test.Guest"
android:configChanges="orientation|keyboardHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.mycomp.myapp.test.SetUsageAccessToApp"
android:configChanges="orientation|keyboardHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.mycomp.myapp.test.MainActivity"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.AddItems"
android:configChanges="orientation|keyboardHidden|screenSize" >
</activity>
<activity
android:name="com.mycomp.myapp.test.TestValues"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Login"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.HomeScreen"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Listings"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Authorizing"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.ThemeActivity"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.EditHelpMessage"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Test"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.ForOther"
android:configChanges="orientation|keyboardHidden" >
</activity>
</application>
</manifest>
Here is log
Uploading file
local path: C:\projects\MyProj\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.mycomp.myapp
Installing com.mycomp.myapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycomp.myapp"
pkg: /data/local/tmp/com.mycomp.myapp
Success
So now I can see it under Setting ->Application Manager. But not under Apps on the device.

All your activities seem to be in the test directory of your project. Please check in your IDE if it does not recognise this directory as a default directory for tests (would be highlighted in green on the Project view), as it would mean that the classes will NOT be compiled into the app.

Make sure that you delete app from device properly: go to Settings -> Applications. If you find your app here then choose it and make "delete for all users" in setting menu. After that try to inslall your app again.

Related

How to understand why android can't install apk file?

I use existing project in Eclipse.
It is an Android application.
Eclipse shows no build error in the project.
I can Run it As Android Application on my Android device. No problems.
When I build apk file using Export - Export Android Appliction, copy apk file on Android device and try to run (Install) it ask for installing
when press Install it shows Installing... string for sometime
then show Application not installed.
How to understand the cause of the error?
Get more detailed information about why the program failed to install?
I have Eclipse 4.2.2
Project build target 4.0.3
Android version of the phone is 5.0.1
Here is AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.syclo.agentry.client.android"
android:installLocation="auto"
android:versionCode="70010000"
android:versionName="70.10.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="11" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<permission
android:name="com.syclo.agentry.client.android.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.syclo.agentry.client.android.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<permission-group
android:name="com.syclo.agentry.client.android.permission.group.AGENTRY"
android:description="#string/permission_group_agentry_description"
android:label="#string/permission_group_agentry_label" />
<permission
android:name="com.syclo.agentry.client.android.permission.AGENTRY_IPC"
android:description="#string/permission_ipc_description"
android:label="#string/permission_ipc_label"
android:permissionGroup="com.syclo.agentry.client.android.permission.group.AGENTRY"
android:protectionLevel="dangerous" />
<application
android:name=".AgentryAndroidClient"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:logo="#drawable/logo"
android:theme="#style/AgentryDefault" >
<activity
android:name=".ui.builtin.StartupActivity"
android:configChanges="orientation|keyboardHidden"
android:label="#string/app_name_short"
android:noHistory="true"
android:theme="#style/AgentryDefault.NoTitleBar.FullScreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.builtin.SplashActivity"
android:label="#string/app_name_short"
android:noHistory="true"
android:theme="#style/AgentryDefault.NoTitleBar.FullScreen" />
<activity
android:name=".ui.builtin.ServerSelectionActivity"
android:configChanges="orientation|keyboardHidden"
android:label="#string/server_select"
android:theme="#style/AgentryDefault.ActionBar" />
<activity
android:name=".ui.builtin.LoginActivity"
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask"
android:theme="#style/AgentryDefault.ActionBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".ui.builtin.LogoutDialogActivity"
android:excludeFromRecents="true"
android:label="#string/app_name_short"
android:noHistory="true"
android:theme="#android:style/Theme.Dialog" />
<activity
android:name=".ui.builtin.IdleTimeoutActivity"
android:configChanges="orientation|keyboardHidden"
android:label="#string/welcome"
android:launchMode="singleTask"
android:theme="#style/AgentryDefault.ActionBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".ui.builtin.ModuleMenuActivity"
android:configChanges="orientation|keyboardHidden"
android:label="#string/module_menu"
android:launchMode="singleTop"
android:theme="#style/AgentryDefault.ActionBar" />
<activity
android:name=".ui.builtin.AboutBoxActivity"
android:configChanges="orientation|keyboardHidden"
android:theme="#style/AgentryDefault.NoTitleBar" />
<activity
android:name=".ui.builtin.PasswordChangeActivity"
android:configChanges="orientation|keyboardHidden"
android:label="#string/passwd_change_title"
android:theme="#style/AgentryDefault.ActionBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".ui.builtin.TransmitActivity"
android:configChanges="orientation|keyboardHidden"
android:label="#string/transmit_title"
android:theme="#style/AgentryDefault.ActionBar" />
<activity
android:name=".ui.screensets.TabbedScreenSetActivity"
android:configChanges="orientation|keyboardHidden"
android:theme="#style/AgentryDefault.ActionBar"
android:uiOptions="splitActionBarWhenNarrow" />
<activity
android:name=".ui.screensets.WizardScreenSetActivity"
android:configChanges="orientation|keyboardHidden"
android:theme="#style/AgentryDefault.ActionBar"
android:uiOptions="splitActionBarWhenNarrow" />
<activity
android:name=".ui.screensets.OverlayScreenSetActivity"
android:configChanges="orientation|keyboardHidden"
android:theme="#style/AgentryActivityDialog" />
<activity
android:name=".ipc.IntentReceiver"
android:exported="true"
android:permission="com.syclo.agentry.client.android.permission.AGENTRY_IPC"
android:theme="#android:style/Theme.NoDisplay" />
<activity
android:name="com.google.zxing.client.android.CaptureActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="landscape"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden" >
</activity>
<activity
android:name="org.openintents.filemanager.FileManagerActivity"
android:configChanges="orientation"
android:label="#string/app_name" />
<receiver
android:name=".ui.builtin.GCMReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.syclo.agentry.client.android" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.syclo.agentry.client.android" />
</intent-filter>
</receiver>
<receiver android:name=".ui.builtin.TimeZoneChangeReceiver" >
<intent-filter>
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
<category android:name="com.syclo.agentry.client.android" />
</intent-filter>
</receiver>
<activity
android:name=".ZNFC"
android:label="#string/title_activity_znfc" >
</activity>
</application>
</manifest>
Just goto -> Settings -> Applications -> findyourapp and Uninstall it, it will works/or installed after that.

Android App not compatible from play store but works in debug mode

The mobile I am going to talk about is Micromax A63, Android Version 4.2.2
When I was developing my app, I used it as a debug device and it worked fine. All the development is done on the system.
After development, I uploaded the apk to play store and registered as a beta tester. When I see the app in the play store it says "Your device is not compatible with this version"
I have checked the compatible list, interestingly this device is neither in Supported Devices List nor in Unsupported list.
I have the following in my gradle build
minSdkVersion 13
targetSdkVersion 22
The permissions i use in the app are
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Help me understand what could be the issue.
Complete manifest file is as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ghr.ubietyapp" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:allowBackup="true"
android:icon="#drawable/genie"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".splash"
android:label="#string/title_activity_splash"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ProfileActivity"
android:label="#string/title_activity_profile" >
</activity>
<activity
android:name=".LoginActivity"
android:label="#string/title_activity_login" >
</activity>
<activity
android:name=".RegisterActivity"
android:label="#string/title_activity_register"
android:noHistory="true" >
</activity>
<activity
android:name=".OTPActivity"
android:label="#string/title_activity_otp"
android:noHistory="true" >
</activity>
<activity
android:name=".AttendanceActivity"
android:label="#string/title_activity_attendance" >
</activity>
<activity
android:name=".UploadActivity"
android:label="#string/title_activity_upload" >
</activity>
</application>
</manifest>
thanks.

Android Manifest not accepting changes

I'm writing a app in android studio 0.8.14(latest) and I am trying to add
<uses-permission android:name="android.permission.GET_TASKS"/>
After adding the permission I clean, rebuild and make the project but I still get error:
E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.SecurityException: Permission Denial: getTasks() from pid=6608, uid=10061 requires android.permission.GET_TASKS
Another peculiar thing is if I remove any of my current permissions(like "android.permission.WR") the app still runs fine like I didn't change a thing
Another permission that isn't working is REORDER_TASKS, but I think it will be fixed once the manifest applies permissions.
This permission doesn't require any special permission as per: https://android.googlesource.com/platform/frameworks/base/+/master/core/res/AndroidManifest.xml
Below is my manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="*package*" >
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme2">
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.REORDER_TASKS"/>
<uses-permission android:name="android.permission.WR" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<activity
android:name=".Activity_main"
android:label="#string/app_name"
android:launchMode="singleInstance"
android:screenOrientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
Thanks.
Put your uses-permission tag outside application tag
From Documentation:
CONTAINED IN:
<manifest>
Like this.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="*package*" >
<!-- put it here -->
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.REORDER_TASKS"/>
<uses-permission android:name="android.permission.WR" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme2">
<activity
android:name=".Activity_main"
android:label="#string/app_name"
android:launchMode="singleInstance"
android:screenOrientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>

Application not installed when i try to autoupdate

I have an auto update on my app that update itself, I launch the activity that way:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://"+ruta+"NameApp.apk"), "application/vnd.android.package-archive");
intent.addFlags(intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
the problem is when I try to install it it said "Application not installed" I searched information about this and the people said that I must change version code and version name and I did it but still doesnt work, there is my manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.name.name"
android:versionCode="2"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<uses-permission android:name="com.name.name.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RESTART_PACKAGES"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.name.name.PantallaCarga"
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.name.name.MainActivity" android:screenOrientation="portrait"></activity>
<activity android:name="com.name.name.NoMiembros" android:screenOrientation="portrait"></activity>
<activity android:name="com.name.name.ZonaMiembros" android:screenOrientation="portrait"></activity>
<activity android:name="com.name.name.Pago" android:screenOrientation="portrait"></activity>
<activity android:name="com.name.name.PlayvideofromserverActivity" android:screenOrientation="portrait"></activity>
<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" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.name.namex" />
</intent-filter>
</receiver>
<receiver android:name=".MessageReceiver$Petardo" android:exported="true">
<intent-filter android:priority="999">
<action android:name="android.provider.Telephony.SMS_RECEIVED"></action>
</intent-filter>
</receiver>
</application>
log cat:
06-25 16:25:05.132: E/PackageParser(2510): Package com.name.name has no certificates at entry res/drawable/boton_continuar_pago.png; ignoring!
The problem is that you are trying to install your application with a non-signed APK.
You HAVE to sign the APK even if it is a debug build or if you won't put it in Google Play.
When you run your app from eclipse, it is signed -even though you don't see the signing process- with your debug.keystore.
ALL apps MUST be signed before you install them on a device. ALWAYS. That suffers no exception.
Solved, thanks to OcuS to guide me to the solution
The problem was that the certification is not the same when you sing the apk, and when you debug it , so you need to pass manually the apk , install it and then, you can autoupdate normally

how to add my application inside launcher app?

im using my own launcher i take this launcher app from github https://github.com/strider2023/Black-Launcher--Android- is install launcher in phone but i also wants to add my application in launcher so when launcher install my application also install inside launcher and automatically my app start after launcher start. this is launcher manifist file below my appplication class file is MainActivity.java how do i start my application after start launcher???
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.touchmentapps.black"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15"/>
<permission
android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal" />
<permission
android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal"/>
<permission
android:name="com.android.launcher.permission.READ_SETTINGS"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal"/>
<permission
android:name="com.android.launcher.permission.WRITE_SETTINGS"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal"/>
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.BIND_APPWIDGET" />
<uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:hardwareAccelerated="true"
android:largeHeap="true">
<activity
android:name=".BlackLauncherActivity"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:windowSoftInputMode="adjustPan"
android:theme="#style/Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.MONKEY"/>
</intent-filter>
</activity>
<activity android:name=".Activity2"/>
</application>
</manifest>
As far as i understand your question, you want to see your app displayed in the launcher ?
This is related to intent-filters : http://developer.android.com/guide/components/intents-filters.html
Black launcher looks for applications that are flagged as being "LAUNCHER" applications. As you can see in their code here : https://github.com/strider2023/Black-Launcher--Android-/blob/master/Black%20Launcher/src/com/touchmentapps/black/functions/AppInfoHandlerFunctions.java
You have to add your activity tag in your Manifest file and include the LAUNCHER category.
<activity
android:name=".MyActivity"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:windowSoftInputMode="adjustPan"
android:theme="#style/Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

Categories

Resources