cancel
Showing results for 
Search instead for 
Did you mean: 

alpha channel: cannot launch app - 'Failed to sendLaunchIntent'

mirabundus
Protege
-- This was posted in the wrong place - a new post is in the mobile developer channel --

Hi all,

I'm having issues launching the app from the alpha channel. I've uploaded the app with all the recommened settings for AndroidManifest but keep getting the following in the logs:

08-31 12:44:50.964: D/[OAR] PanelAppConfigurationUtil(1553): Retrieving panel configuration for com.astonishing - 
08-31 12:44:50.967: W/System.err(1553): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
08-31 12:44:50.967: W/System.err(1553): at com.oculus.vrshell.util.PanelAppConfigurationUtil.buildPanelAppConfiguration(PanelAppConfigurationUtil.java:70)
08-31 12:44:50.968: W/System.err(1553): at com.oculus.vrshell.MainActivity.getPanelAppConfiguration(MainActivity.java:871)
08-31 12:44:50.968: W/PanelUtil_JNI(1553): JVM exception occurred: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference - com.astonishing
08-31 12:44:50.969: I/[OAR] SystemUXController(1553): Registering pending External App launch for com.astonishing - overwriting existing launch? false.
08-31 12:44:50.975: I/RCTVR(1973): [info]: 'Library', [ 'library update received com.astonishing' ]
08-31 12:44:50.977: I/[OAR] Shell(1553): OvrApp::SendLaunchIntent('com.astonishing' '')
08-31 12:44:50.978: D/[OAR] MainActivity(1553): sendLaunchIntent: 'com.astonishing' command: ''
08-31 12:44:50.980: D/[OAR] MainActivity(1553): sendLaunchIntent: null destination activity
08-31 12:44:50.980: I/[OAR] Shell(1553): Failed to sendLaunchIntent.
The command `adb shell dumpsys package  com.astonishing` shows the following:

Activity Resolver Table:
Non-Data Actions:
android.intent.category.INFO:
291ba0b com.astonishing/.vr.VRActivity filter f9ab196
Action: "android.intent.action.MAIN"
Action: "android.intent.category.INFO"
AutoVerify=false
android.intent.action.MAIN:
291ba0b com.astonishing/.vr.VRActivity filter f9ab196
Action: "android.intent.action.MAIN"
Action: "android.intent.category.INFO"
AutoVerify=false

Service Resolver Table:
Non-Data Actions:
com.google.firebase.INSTANCE_ID_EVENT:
e3dc0e8 com.astonishing/com.sinch.android.rtc.internal.client.fcm.InstanceIDTokenService filter eea68b1
Action: "com.google.firebase.INSTANCE_ID_EVENT"
AutoVerify=false

Key Set Manager:
[com.astonishing]
Signing KeySets: 21

Packages:
Package [com.astonishing] (c820301):
userId=10061
pkg=Package{40bc5a6 com.astonishing}
codePath=/data/app/com.astonishing-1
resourcePath=/data/app/com.astonishing-1
legacyNativeLibraryDir=/data/app/com.astonishing-1/lib
primaryCpuAbi=armeabi-v7a
secondaryCpuAbi=null
versionCode=7 minSdk=23 targetSdk=26
versionName=1.0.6
splits=[base]
apkSigningVersion=1
applicationInfo=ApplicationInfo{39febe7 com.astonishing}
flags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
privateFlags=[ RESIZEABLE_ACTIVITIES ]
dataDir=/data/user/0/com.astonishing
supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
timeStamp=2018-08-31 12:43:56
firstInstallTime=2018-08-31 12:43:59
lastUpdateTime=2018-08-31 12:43:59
signatures=PackageSignatures{a20394 [ba8f532d]}
installPermissionsFixed=true installStatus=1
pkgFlags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
requested permissions:
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
android.permission.RECORD_AUDIO
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.READ_PHONE_STATE
android.permission.READ_EXTERNAL_STORAGE
com.samsung.android.hmt.permission.READ_SETTINGS
install permissions:
android.permission.MODIFY_AUDIO_SETTINGS: granted=true
android.permission.INTERNET: granted=true
android.permission.ACCESS_NETWORK_STATE: granted=true
User 0: ceDataInode=90114 installed=true hidden=false suspended=false stopped=true notLaunched=true enabled=0
gids=[3003]
runtime permissions:


Dexopt state:
[com.astonishing]
Instruction Set: arm
path: /data/app/com.astonishing-1/base.apk
status: /data/app/com.astonishing-1/oat/arm/base.odex [compilation_filter=interpret-only, status=kOatUpToDate]


Compiler stats:
[com.astonishing]
base.apk - 1778
The error is coming from the following in the ovr sdk (VrActivity):

Intent launchIntent = activity.getPackageManager().getLaunchIntentForPackage(packageName);
if (launchIntent == null) {
Log.d(TAG, "sendLaunchIntent: null destination activity");
return;
}
Raw manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
android:sharedUserLabel="@string/shared_app_label"
android:installLocation="auto"
android:versionCode="7"
android:versionName="1.0.6"
package="com.astonishing"
tools:ignore="GradleOverrides">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon,android:theme">

<meta-data
android:name="com.samsung.android.vr.application.mode"
android:value="vr_only" />

<activity
android:name="com.astonishing.vr.VRActivity"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.category.INFO" />
</intent-filter>
</activity>
</application>

</manifest>

Anyone had this before?

(tagging @imperativity for any internal help).

Many thanks.


1 REPLY 1

mirabundus
Protege
Thanks @imperativity - been trying all sorts but still no luck ... I wasn't able to delete this post and move it to the correct place so apologies for the dual posts.