全部 文章 问答 分享 共找到18个相关内容
[问答] 学习service时遇到的问题
com.example.servicedemo; import androidx.appcompat.app.AppCompatActivity; import android.content.ComponentName
2022-01-20 22:31 · 服务
[问答] AID连接服务端service,startService和bindService都没有连接成功
serviceConnection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName
2021-09-21 21:58 · androidAIDL
[问答] 关于领券联盟跳转淘宝的问题
ComponentNamecomponentName=newComponentName("com.taobao.taobao","com.taobao.tao.welcome.welcome");taobaoIntent.setComponent(componentName
2021-01-14 16:29 · 安卓11
[问答] 通过Intent设置ComponentName启动淘宝问题


为什么经常无法启动,然后将后台淘宝杀死后,重新运行一下点击才会启动淘宝,启动后只是一闪又消失了

2023-08-29 14:27 · ComponentName
[文章] 【代码块】跳至网络设置界面(WIFI与LAN)
com.android.tv.settings.connectivity.NetworkActivity");Intentintent=newIntent();intent.setComponent(componentName
2021-02-26 09:20 · Android / wifi / lan
[问答] 关于MediaSession框架的问题
R.layout.activity_main); Log.d(TAG, "onCreate: "); initView(); mMediaBrowser = new MediaBrowser(this, new ComponentName
2022-03-17 17:19 · Android
[文章] android 根据包名检查手机内是否有某个APP 方法
truevalintent=Intent()//一个参数是APP包名,第二个是跳转APP起始的Activity页面,PS:不能直接用startActivity了高版本android的话valcomponentName=ComponentName
2022-06-02 10:02 · android
[问答] 桌面隐藏 com.android.dialer 后 ,intent 启动概率报错
= "com.android.dialer.main.impl.MainActivity"; Intent intent=new Intent(); intent.setComponent(new ComponentName
2021-09-26 14:54 · AOSP
[文章] 被公司试用总结(咸鱼大杂烩)
*@paramclassName组件类名*/privatefundisableComponent(context:Context,className:String){valcomponentName=ComponentName
2023-08-27 11:04 · android / Tv / hidl / framework
[文章] Android开发如何监听通知内容呢?
finalString[]names=flat.split(":");for(inti=0;i<names.length;i++){finalComponentNamecn=ComponentName.unflattenFromString
2021-03-18 11:55 · 通知 / android开发 / 安卓 / 系统 / aosp
[问答] Service中的方法获取不到对象,对象未null
com.shiwei.audiorecord import android.annotation.SuppressLint import android.app.Activity import android.content.ComponentName
2024-03-21 16:06 · android / service
[问答] 成功绑定服务且调用服务方法但无法从方法启动PayActivity
AlipayConnection implements ServiceConnection { @Override public void onServiceConnected(ComponentName
[文章] 【领券联盟】笔记:视频62,63,64-跳转到淘宝
("com.taobao.taobao","com.taobao.tao.TBMainActivity");taoBaoIntent.setComponent(componentName
2020-04-04 14:55 · 课堂笔记
[问答] 错误提示是空指针异常,尝试调用接口,如何解决?
尝试调用接口,如果在成员变量处重新实现接口是可以的,测试ServiceConnection无法连接packagecom.example.bankservice;importandroid.content.ComponentName
2020-08-09 09:18 · 接口问题
[问答] Android银行服务项目点击存款报错
spellcheck="false">package com.example.banktestdemo; import android.app.Activity; import android.content.ComponentName
2021-11-22 19:24 · Android
[文章] android wear手表开发如何获取所有的表盘(动态)以及切换表盘
catch(RemoteExceptione){//Ignore}returnfalse;}这个方法是隐藏的,我们可以通过反射方法去调用,参数嘛,前面我们已经准被好了表盘的信息,只有小手一抖就可以获取到ComponentName
2019-10-21 14:09 · androidware / 智能手表 / 切换表盘 / 手表
[问答] android 通过AppWidgetProvider 启动的Service会自动销毁问题
remoteViews.setImageViewResource(R.id.container_image,drawables[this.percent]);instance.updateAppWidget(componentName
2020-08-19 15:58 · andorid / AppWidget / service
[文章] 30、Android开发基础之服务Service
BindServiceActivitypackagecom.sunofbeaches.servicedemo;importandroid.app.Activity;importandroid.content.ComponentName
2019-10-22 19:12 · 服务 / service / 四大组件 / 安卓开发 / android
  • 1