
android
canofy
这个作者很懒,什么都没留下…
展开
-
android 中的url操作
android 中的url操作步骤1、获取HttpClient对象2、获取HttpGet对象,通过HttpGet对象可以对请求设置参数3、通过HttpClient对象的excute方法得到HttpResponse对象4、把HttpResponse对象获取返回的值摘自android的document[code="java"]/** * Pull the...原创 2011-03-28 21:46:01 · 359 阅读 · 0 评论 -
BroadcastReceive介绍
转载:http://blog.youkuaiyun.com/Zengyangtech/archive/2010/11/21/6025676.aspxBroadcastReceiver 在Android中,Broadcast是一种广泛运用的在应用程序之间传输信息的机制。而BroadcastReceiver是对发送出来的 Broadcast进行过滤接受并响应的一类组件。下面将详细的阐述如何发送...原创 2011-04-09 10:03:49 · 188 阅读 · 0 评论 -
android 播放音频和视频
摘自ApiDemo1、播放音频 a.第一种方式 [code="java"] MediaPlayer mMediaPlayer; mMediaPlayer = new MediaPlayer(); mMediaPlayer.setDataSource(path); mMediaPlayer.prepare(); m...原创 2011-03-31 15:47:06 · 151 阅读 · 0 评论 -
设置属性页面
设置属性页面有两种方式1、用xml完全的配置方式2、完全使用代码的方式xml配置方式:[code="xml"] ...原创 2011-03-30 18:37:32 · 198 阅读 · 0 评论 -
android设置壁纸
下面是Android的设置壁纸的一些代码(ApiDemo)[code="java"]package com.example.android.apis.app;// Need the following import to get access to the app resources, since this// class is in a sub-package.i...原创 2011-03-30 17:15:32 · 132 阅读 · 0 评论 -
文本中的值的保存与恢复
这是android提供的ApiDemo里面的关于保存文本中值的例子PersistentState 持久化状态?在onPause时应用了SharedPreferences.Editor来保存值在onResume时应用了SharedPreferences对象来恢复值和onSaveInstanceState()方法不太一样[code="java"]pack...原创 2011-03-30 16:29:25 · 110 阅读 · 0 评论 -
Intent-filter
Intent-filter 个人理解就是为处理隐式Intent用的,在AndroidManifest.xml声明Explicit Intents:[code="java"]Intent serviceIntent = new Intent(context, Test.class);serviceIntent.putExtra(“param”, param);context....原创 2011-03-30 15:25:09 · 100 阅读 · 0 评论 -
Some Standard Activity Actions
摘自google android documentStandard Activity ActionsThese are the current standard actions that Intent defines for launching activities (usually through startActivity(Intent). The most important, ...原创 2011-03-30 14:25:52 · 129 阅读 · 0 评论 -
Intent学习
参考:http://www.cnblogs.com/feisky/archive/2010/01/16/1649081.html http://www.iteye.com/topic/563042Intent Android中提供了Intent机制来协助应用间的交互与通讯,Intent负责对应用中一次操作的动作、动作涉及数据、附加数据进行描述,Android则根据此Int...原创 2011-03-30 14:03:45 · 118 阅读 · 0 评论 -
android弹出框2(相当于通知)
可以让其显示一会儿然后消失也可以隔一段时间不断显示第一种方式[code="java"]/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not u...原创 2011-03-29 18:57:12 · 171 阅读 · 0 评论 -
android中的弹出框提示
基本步骤如下:1、继承Activity2、在需要提示地方showDialog(id);3、重载Activity的onCreateDialog(id)的方法如:[code="java"]@Override protected Dialog onCreateDialog(int id) { return new AlertDialog.Build...原创 2011-03-29 17:06:37 · 133 阅读 · 0 评论 -
android基本理解
很久之前看过android的很多东西,由于工作忙以及其它一些事情,就把android扔在一边了,怪可惜的,到现在又得重新开始看。中文资料看的比较少,看的基本上是英文的,因此个人理解方面差异比较大吧。现在记录下来看之后的感受吧。从整体上来看还是比较简单的,android从建立项目开始已经把结构整理好了,只需按照要求做就行了。1、配置文件主要是由一些xml文件组成 a.最主要的是And...原创 2011-03-28 22:10:12 · 109 阅读 · 0 评论 -
AsyncTask
here is a quick overview of how it works:You can specify the type of the parameters, the progress values, and the final value of the task, using genericsThe method doInBackground() executes auto...原创 2011-04-10 12:15:15 · 106 阅读 · 0 评论