[英]How to launch my Android application using adb shell?
I'm trying to start an Android application using adb shell. 我正在尝试使用adb shell启动Android应用程序。 I'm not succeeding
我没有成功
The AndoridManifest.XML is pasted below: AndoridManifest.XML粘贴在下面:
<?xml version="1.0" encoding="UTF-8"?>
<manifest android:versionCode="4" android:versionName="0.0.5.0" android:installLocation="auto" package="com.supascale.supascale" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:label="@string/app_name" android:icon="@drawable/i_c_o_n_e________1">
<activity android:theme="@android:style/Theme.Translucent" android:label="@string/app_name" android:name=".wdgen.GWDPSupaScale_Android$WDLanceur">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
...
I tried the following call: 我尝试了以下电话:
adb shell am start -a android.intent.action.MAIN -n com.supascale.supascale/com.supascale.supascale.wdgen.GWDPSupaScale_Android
This does'nt work ... I've tried all sorts of itterations after the ... / 这不起作用... ... /之后,我尝试了各种尝试
I get Error type 3, the intent class does not exist! 我收到错误类型3,意图类不存在!
Any help will be greatly appreciated. 任何帮助将不胜感激。 Regards Adrian
问候阿德里安
Some of my error messages: 我的一些错误消息:
You should escape the $ - \\$
- since otherwise it gets changed to nothing. 您应该转义$-
\\$
-否则它将变为零。 $WDLanceor
is interpreted as a shell variable by the android shell, and since the variable is not set it becomes an empty string. $WDLanceor
被android shell解释为shell变量,由于未设置该变量,因此它成为空字符串。
Quoting the arguments ( adb ... -n "... GWDPSupaScale_Android$WDLanceur"
) will only quote it on the Windows side, when it goes into the shell on the android side it'll be without quotes. 引用参数(
adb ... -n "... GWDPSupaScale_Android$WDLanceur"
)只会在Windows端引用它,当它进入android端的shell时将不带引号。 The backslash will survive the Windows command prompt and be converted to an actual $ on the android shell. 反斜杠将在Windows命令提示符下保留下来,并在android shell上转换为实际的$。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.