E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Intent
Intent
Service与普通Service的区别
1.onCreate在
Intent
Service的onCreate方法里:创建HandlerThread创建ServiceHandler,所以发送消息给ServiceHandler的话,事件将会在HandlerThread
lostfish123
·
2023-11-28 13:17
Android
Android
IntentService
Android-
intent
传递数
先来复习一下序列化https://www.jianshu.com/p/c2a6161f1546Parcelable是Android为我们提供的序列化的接口,Parcelable相对于Serializable的使用相对复杂一些,但Parcelable的效率相对Serializable也高很多,这一直是Google工程师引以为傲的,有时间的可以看一下Parcelable和Serializable的效率
有腹肌的豌豆Z
·
2023-11-28 12:16
intent
时提示is not an enclosing class
在android的activity中,之内出现一个public类,不能出现其他任何的class,要写只能写内部类。如下:错误格式:publicclassMainAcitivityextendsActivity{..........}classitemClickimplementsAdapterView.OnItemClickListener{......................}正确格式:
大尾巴
·
2023-11-28 12:25
日常问题解决积累
android
内部类
android省电模式 原理,Android省电模式侦听器?
publicclassPowerSaveModeReceiverextendsBroadcastReceiver{@OverridepublicvoidonReceive(finalContextcontext,final
Intent
intent
丰雅
·
2023-11-28 11:35
android省电模式
原理
Android---发送自定义广播
/***发送自定义的广播*/privatevoidsendCustomBroadcast(){
Intent
intent
=new
Intent
();
intent
.putExtra("message","恭喜你
万卷书情似故人
·
2023-11-28 01:10
Android开发
android
android
studio
2019-01-11android 5.0后service无法隐式启动
val
intent
=
Intent
()
intent
.action="com.smartpoint.marquee.ipcone.KService"
intent
.
sindorina
·
2023-11-26 20:14
Android踩坑日记(2022-05-27)
Android踩坑创建Activity遇到的问题,点击选项,通过
Intent
跳转后,应该跳转到另一个Activity界面,然而实际中,一点击,直接设备重启。打了很多log来找出问题,都没有用。
Mi_Manchi丶
·
2023-11-26 20:29
Android应用内跳转到google play或者其他应用市场详情页下载或者评价
验证环境红米note3Android6.0系统//做跳转到谷歌play做好评的业务逻辑//这里开始执行一个应用市场跳转逻辑,默认this为Context上下文对象var
intent
:
Intent
=
Intent
临江虾
·
2023-11-26 18:53
Android
安卓Service拍照
packagecom.example.phoneguard.service;importandroid.app.Service;importandroid.content.Context;importandroid.content.
Intent
guodashen007
·
2023-11-26 17:30
android
Android多线程的四种方式:Handler、AsyncTask、ThreadPoolExector、
Intent
Service
1.Handler(适用于多个异步任务的更新UI)采用生产者-消费者模型,Handler就是生产者,通过他可以生产需要执行的任务,Looper就是消费者,不断从MessageQueue中取出message进行消费。异步通信机制,将工作线程中需更新UI的操作信息传递到UI主线程,从而实现工作线程对UI的更新处理,最终实现异步消息的处理。Handler不仅仅能将子线程的数据传递给主线程,它能实现任意两
break妖
·
2023-11-26 10:05
Android
android
前端
面试
多线程
java
Android :
Intent
(意图)_页面跳转、传递数据_简单应用
示例图:MainActivity.javapackagecom.example.my
intent
;importandroidx.activity.result.ActivityResultCallback
javaGHui
·
2023-11-26 10:32
android
android wifi 断开,Android ::如何从WiFi网络断开连接?
getSystemService(Context.WIFI_SERVICE);wifi.disconnect();discon=newDisconnectWifi();registerReceiver(discon,new
Intent
Filter
君子心理
·
2023-11-26 03:12
android
wifi
断开
Intent
Servic
这个例子是在我上一篇文章的基础上修改的Service启动和停止https://www.jianshu.com/p/760a7a61bcd0Layout新建一个类集成
Intent
Servicpackagecom.example.hzx.myservice
昨天剩下的一杯冷茶
·
2023-11-26 02:45
【从零开始实现意图识别】中文对话意图识别详解
前言意图识别(
Intent
Recognition)是自然语言处理(NLP)中的一个重要任务,它旨在确定用户输入的语句中所表达的意图或目的。
牧子川
·
2023-11-25 19:16
pytorch
NLP
自然语言处理
NLP
意图识别
Bert
uniapp苹果无法上架_uniapp苹果iOS打包后无法上架:ITMS-90535
UnexpectedCFBundleExecutableKey–Thebundleat‘Payload/HBuilder.app/DCPGVideo.bundle’doesnotcontainabundleexecutable.Ifthisbundle
intent
ionallydoesnotcontaina
weixin_39672443
·
2023-11-25 13:11
uniapp苹果无法上架
AS 编辑区域左侧菜单内容解析
showLineNumbers:显示行数Show
Intent
Guides:布吉岛Breadcumbs:显示方法覆盖层级ConfigureGutterIcons:配置显示图标,会跳转到Settings
二愣子传奇
·
2023-11-25 07:33
Error while executing: am start -n
今天真机运行项目发现报了这个错误:Errorwhileexecuting:amstart-n"pagekageName/pagekageName.ac.WelcomeActivity"-aandroid.
intent
.action.MAIN-candroid.
intent
.category.LAUNCHERStarting
还有什么是不能的
·
2023-11-24 21:23
Android开发从0开始(广播)
应用广播发送标准广播的三步骤发送标准广播://发送标准广播
Intent
intent
=new
Intent
("com.dongnaoedu.chapter09.standard");sendBroadcast
小拇指~
·
2023-11-24 15:28
Android
android
Android开发从0开始(Activity篇)
Activity的生命周期对应解释:startActivity(new
Intent
(源页面.this,目标页面.class))结束当前活动页面finish();Activity的启动模式App先后打开两个活动
小拇指~
·
2023-11-24 15:57
Android
android
Android开发从0开始(服务)
服务基础框架:publicclassMyServiceextendsService{publicMyService(){}@OverridepublicIBinderonBind(
Intent
intent
小拇指~
·
2023-11-24 15:47
Android
android
Activity之间的通信方式
在
Intent
跳转时携带数据借助类的静态变量借助全局变量Application借助Service服务借助外部存储来实现通讯借助SharedPreference使用Android数据库SQLite使用File
SONGSONG3000
·
2023-11-24 13:51
安卓修改applicationId与package不一致报错
adbshellamstart-n"com.example.becon.myapplication.haha/com.example.becon.myapplication.MainActivity"-aandroid.
intent
.action.MAIN-candroid.
intent
.category
梦自己圆
·
2023-11-24 11:29
2021-07-18 安卓day2
界面之间的跳转
intent
.putExtra("title","tom")输入数据
intent
.getStringExtra(“title”)接收数据利用bundle可以把多个数据封装进一个bundle
Daylightqvq
·
2023-11-24 07:34
stable AIDL
一概念讲stableAIDL之前,先提及以下概念:序列化:进行Android开发的时候,无法将对象的引用传给Activities或者Fragments,我们需要将这些对象放到一个
Intent
或者Bundle
步基
·
2023-11-24 04:33
Android开发
android
Android Binder通信底层超详细讲解
Intent
跨进程传大图为什么会崩溃?AIDL的oneWay和非oneway有什么区别?
就不告絮你
·
2023-11-24 01:04
Android
最全的 APPLink 的使用与源码
在AS中已经有详细的使用步骤了,总共分为4步###addURL
intent
filters创建一个URL或者也可以点击“Howitworks
吃饱了想睡
·
2023-11-23 13:48
Android
Android
APPLink
跨应用启动
Android
DeepLink
短信启动
APP
Vulnhub DC-9
明确:《中华人民共和国网络安全法》DescriptionDC-9isanotherpurposelybuiltvulnerablelabwiththe
intent
ofgainingexperienceintheworldofpenetrationtesting.Theultimategoalofthischallengeistogetrootandtoreadtheoneandonlyflag.L
Part 03
·
2023-11-23 11:22
DC靶机
Android跨进程传图片或者大数据(解决TransactionTooLargeException)
跨进程传图片方案直接
intent
传bitmap使用文件读写
intent
传递自定义binder,binder中传递image使用网络传输一、直接
intent
传bitmap优势使用简单劣势相关代码可能有侵入性
一叶飘舟
·
2023-11-23 08:00
Android开发
笔记
Android组件化架构 - 3. 组件间跳转 & ARouter路由
&ARouter路由常见的跳转,对于用户来说就是页面跳转,对应Android中就是activity或fragment间的跳转,那我们肯定第一时间就想到,用startActivity()发送一个包装好的
intent
今阳说
·
2023-11-23 05:14
Iterator Patterns: 迭代器的封装一定离不开容器,但是自己写容器不仅仅给STL的容器套个壳,就需要用到双重指针来存储源数据
Intent
Provideawaytoaccesstheelementsofanaggregateobjectsequentiallywithoutexposingitsunderlyingrepresentation
NickAsuo
·
2023-11-23 02:42
设计模式GoF
迭代器模式
c++
InnoDB的锁实战
插入意向锁(Insert
Intent
ionLocks)T1自增锁(AUTO-INCLocks)
麦香小瑜儿
·
2023-11-23 00:41
斯坦福NLP笔记6 —— Defining Minimum Edit Distance
d表示delete,s表示substitute,i表示insert,于是序列
INTENT
UON和序列EXECUTION的最小编辑距离就是5Levenshteindistance如上所说,这个距离的算法是替换算两个
weixin_34037173
·
2023-11-22 14:16
人工智能
数据结构与算法
python
【android】android耗电量测试
应用如果想要接收到BatteryService发送出来的电池信息,则需要注册一个
Intent
为
Intent
.ACTION_BATTERY_CHANGED的BroadcastReceiver。1I
zsch591488385
·
2023-11-22 02:32
Android
android
耗电
测试
功耗
Android-序列化-Serializable/Parcelable
通过将对象序列化不接可以在IPC中使用,在
Intent
之间也也可以传递,或者在网络上传递,或将复杂的数据持
weixin_33824363
·
2023-11-21 22:30
java
移动开发
Intent
、Serializable/Parcelable
使用
Intent
传递数据要求:点击Button的时候,将Main中的文本传递到Second中显示MainActivity.javapublicclassMainActivityextendsAppCompatActivity
那时候
·
2023-11-21 22:29
Intent
Serializable
Parcelable
Android Serializable及Parcelable使用方法
为什么需要序列化当我们需要在多个Activity之间传递对象时,我们不能直接传递对象的引用,我们应该对对象进行序列化,将对象转换成可传输的状态,然后放到
Intent
中进行传递。
Jere_Chen
·
2023-11-21 22:52
Android
Android
序列化
Android
Serializable
Parcelable
鸿蒙用java开发,鸿蒙应用开发入门(六):页面间跳转
目录:1.认识
Intent
2.了解AbilitySlice路由配置3.同一个Page里的AbilitySlice1与AbilitySlice2间的跳转(无参,带参,回值)6.1页面间跳转1.认识
Intent
Intent
阿玫小酱当当囧
·
2023-11-21 13:52
鸿蒙用java开发
鸿蒙系统更新页面,鸿蒙系统实现页面跳转方法汇总!
button.setClickedListener(listener->present(newSecondAbilitySlice,new
Intent
));②使用
Intent
借助于ElementName
做个美梦
·
2023-11-21 13:22
鸿蒙系统更新页面
Android 学习笔记--android——Activity学习
应用布局文件3、在清单文件中进行配置android:name="com.example.ex_0310_01.MainActivity"(包名.类名)1、A---->B调用startActivity(
intent
易含
·
2023-11-21 07:31
安卓
intent
Service源码
Intent
Service是handlerThread与Service的结合,因为实质是串行的执行,所以该service不适合执行频繁的网络请求类型的操作,但是他是一个用完自动停止的service,并且减轻主线程
勤能不能补拙
·
2023-11-21 05:10
HarmonyOS应用开发基础—页面跳转三种类型九种跳转方式
HarmonyOS应用开发基础HarmonyOS应用开发基础——页面跳转三种类型九种跳转方式AbilityAbility概述Ability分类FA(FeatureAbility)PA(ParticleAbility)
Intent
Intent
明宇逸风
·
2023-11-21 00:26
HarmonyOS应用开发
harmonyos
讲解:22C4400、ARS、HTML/web、webJava|Java
2019ProjectScopeRamanAravamudhanRSA-22C4400-S19-PROJECT-SCOPEDepartmentofComputerSciencePage1of5Version1.2Note:Thisdocumentis
intent
ionallyincompleteandisinno
qiganwu
·
2023-11-20 23:12
面试题:Activity的显隐式跳转到底有什么区别,你能说出多少?
引言 我们都知道
Intent
被用于activity页面跳转,分为显式和隐式。除此之外呢?当面试官问到你的时候,你能说出来多少?
千夜零一
·
2023-11-20 19:24
fusion app自定义事件源码介绍(下)
安装apk安装APK(filePath)lua源码function安装APK(filePath)local
intent
=
Intent
(
Intent
.ACTION_VIEW);
intent
.addCategory
产品经理不是经理啊
·
2023-11-20 12:52
Composite Patterns :如果想用表达 部分-整体的继承关系,组合模式一定是不二之选了
Intent
Composeobjectsintotreestructurestorepresentpart-wholehierarchies.Compositeletsclientstreatindividualobjectsandcompositionsofobjectsuniformly.StructureConsequencesdefinesclasshierarchiesconsistin
NickAsuo
·
2023-11-20 12:20
设计模式GoF
组合模式
控件截图并通知图库更新
TextUtils.isEmpty(path)){//最后通知图库更新this.sendBroadcast(new
Intent
(
Intent
.ACTION_MEDIA_S
风轻云淡宇
·
2023-11-20 11:05
Android开发——入门
Intent
文章目录四大组件之间的桥梁-
Intent
Intent
的数据项
Intent
分类隐式
Intent
actioncategorydata显式
Intent
通过
Intent
传递数据Pending
Intent
四大组件之间的桥梁
xoliu1
·
2023-11-20 08:29
Android基础
android
Android判断是否为模拟器(实测夜神通过)
*/publicstaticbooleancheckEmulator(Contextcontext){Stringurl="tel:"+"123456";
Intent
intent
=new
Intent
()
凌云志 !
·
2023-11-20 05:24
Android
适配
android
android
studio
java
Android 唤起QQ应用的正确方式
Android唤起QQ的正确方式(不要指定QQ聊天)
Intent
intent
=new
Intent
();ComponentNamecmp=newComponentName("com.tencent.mobileqq
一片叶子_ee00
·
2023-11-19 02:45
如何检查服务是否在Android上运行?
#1楼这更适用于
Intent
Service调试,因为它们会生成线程,但也可能适用于常规服务。我发现这个线程归功于Binging就我而言,我与调试器一起玩耍并找到了线程视图。
asdfgh0077
·
2023-11-19 01:28
android
android-service
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他