android - App cannot be launched, but seems to have installed -
i changed manifest of app, , app cannot launched. no icon. however, when check installed under setting application manager, see there! whats going on??? have used same permissions before. changed app main , launcher. cannot see app. not come via studio or show in apps device!!!!
update: created new app same permissions , launches ok, not seem 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 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 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 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 can see under setting ->application manager. not under apps on device.
all activities seem in test directory of project. please check in ide if not recognise directory default directory tests (would highlighted in green on project view), mean classes not compiled app.
Comments
Post a Comment