自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (2)
  • 收藏
  • 关注

原创 远程Service及Sqlite示例

远程Service及Sqlite示例先创建RemoteServiceServer 远程Service服务端 新建一个aidl,并命名为IMyAidlInterface.aidl,文件里的代码如下:// IMyAidlInterface.aidl// 在新建的IMyAidlInterface.aidl里声明需要与Activity进行通信的方法package com.dlrj.remoteserviceserver;import com.dlrj.remoteserviceserver.StudentI

2021-10-11 10:33:51 241

原创 Android app组件化示例

Android app组件化示例创建一个空项目在gradle.properties里添加下面变量#是否把模块设置成library IsBuildMudle = true 为是false 为否IsBuildMudle=true在app模块的build.gradle,修改如下plugins {id 'com.android.application'//作为启动的主程序模块}android {compileSdkVersion 30buildToolsVe...

2021-10-09 15:52:31 181

原创 android 将一些信息保存到本地,以后更新版本或者替换之后,数据在新安装的项目中还能使用...

HongxinLocalSaveUtil public class HongxinLocalSaveUtil{ private static final String SAVE_URL = "/youban/radio/cache/hongxindata/"; private static final String FILENAME ...

2012-04-17 19:22:28 194

原创 android 一些小功能实现

调用发送短信界面 /** * 调用发送短信界面 */public void sendSms() { Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("smsto:")); intent.putExtra("sms_body",...

2012-04-17 19:21:07 102

原创 android 在通知栏中显示应用的小图标

TestActivity private NotificationManagermyNotiManager; 在onDestroy方法中加入if (myNotiManager != null) { myNotiManager.cancel(0); myNotiManager = null; ...

2012-04-17 19:19:35 937

原创 android 腾讯微博分享功能

创建应用,会得到一个唯一的key和secret,如下图 需要导入除了core.jar外的其他包,如下图 我自己写了一个调用腾讯微博的类 TencentWeiboUtilpublic class TencentWeiboUtil{ public static final String fileName...

2012-04-17 19:18:29 151

android 新浪微博分享功能实现

新浪微博分享功能 注册帐号后,创建应用后,会得到一个唯一的key和secret,如下图 我在工程中使用的是Oauth2.0隐式授权方式,所以需要在新浪微博开发者平台重定义地址,如下图 需要在工程中加入新浪微博demo中com.weibo.net里面的内容,如下图 需要修改...

2012-04-17 19:16:32 115

aidl远程Service+sql数据库操作.zip

远程Service及Sqlite示例

2021-10-11

ModuleModeApp.zip

android app组件化示例

2021-10-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除