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
入门:第一个App
这一节将学习LinearLayout、EditText、string资源、Button、weight属性的基本使用,以及使用
intent
启动Activity并传递值、在xml文件中定义oncliick事件并实现
人间入画
·
2023-08-30 02:49
Android实现发送短信功能
.xml效果图代码实现先添加权限.java由用户输入手机号自定义短信内容/***由用户输入手机号*@parammessage:短信内容*/privatevoidsend(Stringmessage){
Intent
send
Intent
是阿超
·
2023-08-29 22:27
Android
android
java
android
studio
发送短信
canal 嵌入式部署 监听binlog
canal嵌入式部署背景技术选型canal原理用途嵌入式代码实现引入pom引入工具pommain方法引入常量定义install方法buildCanal方法pull方法printSummarypr
intEnt
ry2
Em_dark
·
2023-08-29 17:51
mysql
java
mysql
binlog
canal
嵌入式
Android监听系统时间变化(笔记)
1.注册广播
Intent
Filterfilter=new
Intent
Filter();filter.addAction(
Intent
.ACTION_TIME_TICK);filter.addAction
绝命三郎
·
2023-08-29 17:18
Android代码块总结
android
Android Kotlin的Class、反射、泛型
正题在Java中使用Class很常见的就是,xxx类.class,比如我们在startActivity的时候startActivity(new
Intent
(this,OtherActivity.class
Jafir
·
2023-08-29 14:16
同一个app不同activity显示多任务(仿微信小程序切换效果)
这里有两种方法实现:第一种:代码动态实现
Intent
intent
=new
Intent
(this,SecondActivity.class)
ling9400
·
2023-08-29 13:43
Android 华为手机荣耀8X调用系统裁剪工具不能裁剪方形图片,裁剪后程序就奔溃,裁剪后获取不到bitmap的问题
安装自己写的App后,调用系统裁剪工具发现裁剪是圆形的,解决办法://专门针对华为手机解决华为手机裁剪图片是圆形图片的问题if(Build.MANUFACTURER.equals("HUAWEI")){
intent
.putExtra
yijiaodingqiankun
·
2023-08-29 07:58
android
华为
智能手机
【安卓】视频播放器实现过程,超详细注释,自定义视频进度条,打开本地文件播放视频等功能。
布局代码三、Activity代码packagecom.example.tabtest.activity;importandroid.app.Activity;;importandroid.content.
Intent
小李不背锅
·
2023-08-29 05:24
Android
android
音视频
Delphi 安卓App自动升级
Androidapi.JNI.Support引用这个单元procedure_InstallApk(Apk:string);varLFile:JFile;L
Intent
:J
Intent
;beginLFile
tjsoft
·
2023-08-29 00:21
android
delphi
自动升级
安卓
【Android 架构之 MVI 完全体】 就MVVM 来说关于PartialChange & Reducer
在MVI中被称为意图
Intent
,它们不再是一个方法调用,而是一个数据。通常可被这样定义:sea
Darren老师
·
2023-08-28 21:37
android 被关闭后重启
每次调用startService(
Intent
)的时候,都会调用该Service对象的onStartCommand(
Intent
,int,int)方法,这个方法return一个int值,return的值有四种
up2159
·
2023-08-28 21:13
App Links的使用以及坑
配置在想调用的Activity上加上但是如果是在启动页,不要将启动页的
intent
-filter和这个一起写,要分开。
猿小蔡-Cool
·
2023-08-28 19:03
Android
App
Links
Android
短信链接打开APP
Android
URL打开APP
Android 微信,qq分享文件
10M以下,建议进制算法为*1000以避免1024发生分享错误将文件变成二进制数组,然后塞进去就OK了,我这边是直接传入的base64码省略了部分步骤qq分享类似,不过是用
intent
来的只能分享本地文件
Condor_c33a
·
2023-08-28 16:18
2022-09-27 Growth Requires Perseverance
“Remember,peoplewilljudgeyoubyyouractions,notyour
intent
ions.Youmayhaveaheartofgold—butsodoesahard-boiledegg
春生阁
·
2023-08-28 15:04
Appium安装与配置——2023年8月18日
Android系统和APP的基本原理和架构,包括活动(Activity)、服务(Service)、广播接收器(BroadcastReceiver)、内容提供器(ContentProvider)、意图(
Intent
土豆~
·
2023-08-28 13:08
自动化测试
appium
【Android 架构之 MVI 雏形】响应式编程 + 单向数据流 + 唯一可信数据源
初级体【Android架构之MVI完全体】就MVVM来说关于PartialChange&Reducer[Android架构之MVI究极体]数据区分状态和事件,解决粘性数据引子MVI是Model-View-
Intent
Darren老师
·
2023-08-28 00:21
Android学习之路(9)
Intent
Intent
是一个消息传递对象,您可以用来从其他应用组件请求操作。
星如雨グッ!(๑•̀ㅂ•́)و✧
·
2023-08-27 15:39
安卓
android
学习
Hook startActivity
/console.log(Object.getOwnPropertyNames(Activity));Activity.startActivity.overload('android.content.
Intent
盖码范
·
2023-08-27 11:48
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified
TargetingS+(version31andabove)requiresthatoneofFLAG_IMMUTABLEorFLAG_MUTABLEbespecifiedwhencreatingaPending
Intent
.Stronglyconsiderusi
沅霖
·
2023-08-27 08:47
Android
android
Android 11 (R) 在查询 ACTION_IMAGE_CAPTURE 的
Intent
时返回空列表(无法查询到相机)
设备:模拟器像素3a-Android11代码:finalListcamera
Intent
s=newArrayList();final
Intent
capture
Intent
=new
Intent
(MediaStore.ACTION_IMAGE_CAPTURE
沅霖
·
2023-08-27 08:46
Android
android
Android通过系统广播监听Home键
4点几之后onKeyDown方法已经不能监听home键了,系统统一用
Intent
.ACTION_CLOSE_SYSTEM_DIALOGS广播,点击Home键系统会发出这个广播。
沅霖
·
2023-08-27 08:46
Android
android
通过Camera、SurfaceView、自己实现拍照及预览效果
照相机拍照需要的权限:1.调用系统的拍照功能,获得并保存图片publicvoidpaizhao(Viewv){
Intent
i=new
Intent
(MediaStore.ACTION_IMAGE_CAPTURE
百世修行
·
2023-08-27 06:38
移动互联网
code
源码
TabHosts导航按钮实现自定义图片和文字
主要代码packagecom.cc.selftabhost;importandroid.app.TabActivity;importandroid.content.
Intent
;importandroid.os.Bundle
百世修行
·
2023-08-27 06:08
移动互联网
code
源码
demo
java
android
2018/3/11昨日回顾
注意:
intent
-filter3、TextView和Button控件。都要在R文件中设置一个ID方便调用。
打不死的小强01
·
2023-08-27 02:41
Android中重启应用的几种方法
方法一:
Intent
intent
=new
Intent
(LoginActivity.this,LoginActivity.class);startActivity(
intent
);System.exit(
xuyin1204
·
2023-08-26 21:28
Android
android
Android开发基础知识总结(五)Activity专题
APP中每一个对应的页面,底层都有唯一地Activity与之对应~Activity之间通过
Intent
进行通信,应用中每一个Activity都必须要在AndroidManifest.xml配置文件中声明
郝YH是人间理想
·
2023-08-26 12:19
安卓原生开发基础
android
java
STM32踩坑:UCOSIII下串口中断服务中使用OS
IntEnt
er函数使程序卡死解决方案
UCOSIII下串口中断服务中使用OS
IntEnt
er函数使程序卡死解决方案本文侧重于STM32标准库,HAL库可以借鉴,因为该项目是基于标准库做的(因为涉及到保密问题,这里我就不张贴源码进行描述了)。
我是混子我怕谁
·
2023-08-26 11:14
STM32学习
stm32
单片机
嵌入式
Activity之间的数据传递方法汇总
1、通过
Intent
传递我们在进行Activity跳转时,是要有
Intent
,此时
Intent
是可以携带数据的,我们可以利用它将数据传递给其它Activity。
Android Blog
·
2023-08-26 10:58
开发语言
android
android-studio
activity启动
activity所在栈的名称,不指定的话则默认是当前包名,比如A应用启动了B应用的activityC,指定了C的allowTaskReparenting为true的话,在启动B应用后C会自动进入到B的任务栈中
intent
Filter
暖冬不暖
·
2023-08-26 04:34
调试时应用在模拟器上停止运行
刚打开就提示应用已停止运行解决方法:没有配置好AndroidMainifest.xml文件,比如一个自己定义的新的activity或者新的
Intent
等
不愿透露姓名的多多
·
2023-08-26 01:22
依然爱丽丝
ThepoetElizabethBishoponcewrote:“Theartoflosingisn’thardtomaster.很多事情看上去都终将会失去,Somanythingsseemsfilledwiththe
intent
tobe
孙琴普闻
·
2023-08-25 22:11
广播接收器的注册,发送和接收广播的过程
publicabstract
Intent
registerReceiver(BroadcastReceiverreceiver,
Intent
Filterfilter,@NullableStrin
leilifengxingmw
·
2023-08-25 08:50
Android 四大组件(二)Service详解
:提供需在后台长期运行的服务,特点:无用户界面、在后台运行、生命周期长1.Service有两种启动方式:Context.startService()在Activity中startService(new
Intent
zhouzhihao_07
·
2023-08-25 04:25
Android
基础知识整理
android
java
开发语言
Android 开机启动延迟问题
我们开机自启无非就是通过监听开机广播(android.
intent
.action.BOOT_COMPLETED)来实现开机自启动,这里关于开机自启就不做概述,想了解的可以去参
拉莫帅
·
2023-08-25 03:13
intent
Android
机型
android
java
Android BatteryManager的使用及BatteryService源码分析
参考官网监控电池电量和充电状态获取电池信息通过监听
Intent
.ACTION_BATTERY_CHANGED广播实现,在广播接收器中获取电池信息。
南国樗里疾
·
2023-08-25 01:04
Android
aosp
android
Battery
带你认识LocalBroadcastManager
前言我们在Android应尽量避免使用隐式
Intent
广播传递信息,为什么这么说?
SirWwh
·
2023-08-24 21:18
Context摘要(二)
```java@OverridepublicvoidstartActivity(
Intent
intent
,Bundleoptions){warnIfC
IT枫
·
2023-08-24 21:31
Navigation Architecture Component 4
Traditionallyyouwouldusean
intent
-filterandassociateaURLwiththeactivityyouwanttoopen.navigation让这变得灰常简单
为什么要简称
·
2023-08-24 20:24
状态机模式
什么是状态机:状态机的官方定义如下:The
intent
oftheSTATEpatternistodistributestate-specificlogicacrossclassesthatrepresentanobject
靠嘴吃饭
·
2023-08-24 20:14
ARouter或startActivity多次调用时页面
Intent
更新
ARouter或startActivity多次调用时页面
Intent
更新大致调用过程是这样A.apk中有MainActivity,subActivity两个页面,MainActivity会通过ARouter
帅得不敢出门
·
2023-08-24 14:04
Android平台
android
kotlin
android
studio
iOS 12 新特性 Sirishortcut(捷径)调研(二)
通过
Intent
s创建捷径
intent
s的方式实现捷径,可以做更深一步的定制,甚至无需打开APP使用应用的一些功能首先创建
Intent
s.
intent
definition文件通过File->NewFile
Boothlee
·
2023-08-24 12:46
MASA MAUI Plugin (八)Android相册多选照片(
Intent
方式)
背景MAUI的出现,赋予了广大.Net开发者开发多平台应用的能力,MAUI是Xamarin.Forms演变而来,但是相比Xamarin性能更好,可扩展性更强,结构更简单。但是MAUI对于平台相关的实现并不完整。所以MASA团队开展了一个实验性项目,意在对微软MAUI的补充和扩展项目地址https://github.com/BlazorComponent/MASA.Blazor/tree/featu
MASA team
·
2023-08-24 00:51
MASA
MASA
Blazor
xamarin
maui
2019-03-29表单
checked默认值解决父子元素的外边距重叠:box1:before{content:"";display:table;将一个元素设置为表格显示}解决父元素高度塌陷:.clearfix:after{c
intent
相见何如
·
2023-08-23 22:26
Android
Intent
Service源码分析
Intent
Service是一个Android基础类,用于处理
Intent
类型的异步任务请求。
Young_Allen
·
2023-08-23 22:22
用意图传递对象序列化-- 实现Parcelable接口
我们都知道
Intent
是传递信息的介质,我们用他用的最多的就是从一个Activity转换到另一个Activity,并且顺带传递一些数据到下一个Activity中。
小江yue
·
2023-08-23 20:36
Activity 的四种启动模式
singleTop模式如果在任务的栈顶正好存在该Activity的实例,就重用该实例(会调用实例的onNew
Intent
()),否则就会创建新的实例并放入栈顶,即使栈中已经存在该Activity的实例,
jameswan
·
2023-08-23 17:08
android app跳转浏览器
Intent
intent
=new
Intent
();
intent
.setAction("android.
intent
.action.VIEW");Uricontent_url=Uri.parse(mUpdateUrl
西决_7e15
·
2023-08-23 06:29
Notification 学习
第一行代码中的代码是基于android7.0进行编写,API的调用已经落后较多Notification常用写法:privatevoidshowNotification(){
Intent
intent
=FragmentTestActivity.format
Intent
Crane_FeiE
·
2023-08-23 05:44
Android AlarmManager设置闹钟
官网镇楼:设置重复闹铃时间闹钟具有以下特征:它们可让您按设定的时间和/或间隔触发
intent
。您可以将它们与广播接收器结合使用,以启动服务以及执行其他操作。
南国樗里疾
·
2023-08-23 04:56
Android
android
AlarmManager
Android开发实现的
Intent
Util跳转多功能工具类
发送短信,创建联系人
Intent
Utilimportandroid.content.
Intent
;importandroid.net.Uri;importandroid.provider.ContactsContract
面向未来_
·
2023-08-23 03:50
android
上一页
16
17
18
19
20
21
22
23
下一页
按字母分类:
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
其他