草庐IT

start-device

全部标签

android - 无法运行应用程序 - "The target device does not support the ' run-as'命令”

第一次在Macbook上运行AndroidStudio时出现此错误。该程序无法在我的设备上启动,我只是收到一条崩溃消息。在AndroidStudio上,我得到“目标设备不支持‘run-as’命令”,当我将它插入谷歌时,我没有得到任何结果。我得到一个“了解更多”部分,该部分指向“关于InstantRun”标题下的此链接:https://developer.android.com/studio/run/index.html?utm_medium=android-studio#instant-run.如有任何建议,我们将不胜感激。 最佳答案

android - 权限拒绝 : starting Intent sharing with gmail

我尝试在我的应用程序中与gmail共享一些文本:StringshareBody="blablabla";IntentsharingIntent=newIntent(Intent.ACTION_VIEW);sharingIntent.setType("plain/text");sharingIntent.setClassName("com.google.android.gm","com.google.android.gm.ComposeActivityGmail");sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"

flutter Bloc : No ancestor could be found starting from the context?

我是Flutter的新手,也是Bloc的新手。编译代码时出现错误:ThefollowingassertionwasthrownbuildingLogin(dirty,state:_LoginFormState#44e7f):BlocProvider.of()calledwithacontextthatdoesnotcontainaBlocoftypeBtnBloc.NoancestorcouldbefoundstartingfromthecontextthatwaspassedtoBlocProvider.of().Thiscanhappenifthecontextyouusecome

flutter Bloc : No ancestor could be found starting from the context?

我是Flutter的新手,也是Bloc的新手。编译代码时出现错误:ThefollowingassertionwasthrownbuildingLogin(dirty,state:_LoginFormState#44e7f):BlocProvider.of()calledwithacontextthatdoesnotcontainaBlocoftypeBtnBloc.NoancestorcouldbefoundstartingfromthecontextthatwaspassedtoBlocProvider.of().Thiscanhappenifthecontextyouusecome

java - 解决SecurityException : Permission Denial: starting Intent. 我需要什么权限?

我想从应用程序打开Play商店。在三星还好,在一加手机就失败了。我不知道alibaba是从哪里来的。很奇怪。异常java.lang.SecurityException:权限被拒绝:启动Intent{act=android.intent.action.VIEWdat=http://play.google.com/...cmp=com.alibaba.intl.android.apps.poseidon/com.alibaba.android.intl.weex.activity.WeexPageActivity}来自ProcessRecord{a1dd30c15827:a2bliving

Android系统应用DEVICE_POWER权限错误

我尝试使用goToSleep()方法让手机进入深度sleep。程序已安装到/system/app目录中,因此Android系统信息显示它是一个系统应用程序,但如果我尝试调用goToSleep(),我会收到此错误用户10085和当前进程都没有android.permission.DEVICE_POWER。代码采样:IPowerManagermPowerManager=IPowerManager.Stub.asInterface(ServiceManager.getService("power"));longtime=SystemClock.uptimeMillis()+1000;try{

安卓工作室 : deploy last built apk to device

在AndroidStudio中,有没有一种方法可以将上次构建的.apk部署到设备而无需再次运行gradle构建? 最佳答案 在“Gradle”工具窗口的“所有任务”Pane下,应该有一个installDebug任务,它将安装APK的调试版本。如果您有其他构建类型(例如发布)和风格,也会有类似的任务。 关于安卓工作室:deploylastbuiltapktodevice,我们在StackOverflow上找到一个类似的问题: https://stackoverf

java - Android KitKat chrome ://inspect/devices network monitoring, 如何查看所有请求数据

我正在使用“chrome://inspect/devices”并监控Android应用程序的http流量。这仅适用于Android4.4/KitKat。在此工具中,不显示set-cookie和cookie数据。是否有其他工具或如何配置此工具以显示每个请求的cookie数据。cookie的“cookie”存储集确实会出现,但不会出现在服务器和客户端/Android设备之间的每个单独请求中。我相信这种基于混合Cordova的WebView正在掩盖cookie。我不知道怎么办。更多信息:http://code.google.com/p/chromium/issues/detail?id=40

java - 运行 exec() 时出错。命令 : Working Directory: null Environment: null - how to execute a binary in Android correctly on a non-rooted device?

我想在非root的android设备上运行可执行文件。在java中使用以下命令Runtime.getRuntime().exec("/bin/chmod744/data/data/com.example.myapp/myBin");Runtime.getRuntime().exec("/data/data/com.example.myapp/myBin");结果Errorrunningexec().Command:[/data/data/com.example.myapp/myBin]WorkingDirectory:nullEnvironment:null我发现了很多关于此的问题,但

android - 将透明主题应用于 Activity : Doesn't fit full screen in Device

我在android应用程序中工作,我在list文件中通过应用样式使Activity透明。但是在应用此之后我的布局屏幕似乎在左侧和对并且似乎只显示在中心。在模拟器中它看起来很好但在maandroid设备(ICS)中它只显示在中间。请帮我。提前致谢。我的主题风格是:true@android:color/transparent@nulltruetruefalselist文件: 最佳答案 试试这个主题: 关于android-将透明主题应用于Activity:Doesn'tfitfullscree