-
安卓Android 学习实验资料【简单】
看上去这是一些比较简单的安卓Android 实验相关源码,涉及一些简单的基础操作,像是编写的游戏,里面包括了登录验证,简单界面设计等:实验的内容包括:
从布局文件activityx_main.xml加载一个布局文件
通过Id来获取布局文件中的按钮
判断用户名和密码是否为空或长度为0
Android新手学习参考吧。
- 2022-05-30 19:34:11下载
- 积分:1
-
android
说明: 使用Eclipse和java语言实现Android物联网开发(Implementation of Android Internet of Things Development with Eclipse and Java Languag)
- 2019-06-18 09:17:19下载
- 积分:1
-
Android 获取经度 纬度 位置信息
Android 获取经度 纬度 位置信息,在Android系统的手机上运行后,会显示出纬度和经度信息,具体的方法请参见以下代码:
//方法:返回查询条件
public Criteria getCriteria(){
Criteria c = new Criteria();
c.setAccuracy(Criteria.ACCURACY_COARSE); //设置查询精度
c.setSpeedRequired(false);//设置是否要求速度
c.setCostAllowed(false);//设置是否允许产生费用
c.setBearingRequired(false);//设置是否需要得到方向
c.setAltitudeRequired(false);//设置是否需要得到海拔高度
c.setPowerRequirement(Criteria.POWER_LOW);//设置允许的电池消耗级别
return c;//返回查询条件
}
//方法:更新EditText中显示的内容
public void updateView(Location newLocation){
if(newLocation !=null){//判断是否为空
et.setText("您现在的位置是
纬度:");
et.append(String.valueOf(newLocation.getLatitude())); //获得纬度
et.append("
经度:");
et.append(String.valueOf(newLocation.getLongitude()));//获得精度
}
else{ //如果传入的Location对象为空则清空EditText
et.getEditableText().clear();//清空EditText对象
}
- 2022-01-22 02:31:21下载
- 积分:1
-
java 数字证书 示例源码下载(广大信息安全研究所)
java 数字证书 示例源码下载(广大信息安全研究所)
- 2014-07-03下载
- 积分:1
-
Android实现按回车确认键显示其它输入框的EditText
Android实现按回车确认键显示其它输入框的EditText,在正常状态下,其它部分的EditText是灰色的,当按下回车键后,高亮显示进入输入状态,相关代码可参考如下代码:
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
editTexts[0] = (EditText) findViewById(R.id.edittext1);
editTexts[1] = (EditText) findViewById(R.id.edittext2);
editTexts[2] = (EditText) findViewById(R.id.edittext3);
for (int i = 0; i < editTexts.length; i++)
editTexts[i].setOnKeyListener(this);
buttons[0] = (Button) findViewById(R.id.button1);
buttons[1] = (Button) findViewById(R.id.button2);
buttons[2] = (Button) findViewById(R.id.button3);
}
- 2022-03-26 11:46:37下载
- 积分:1
-
android dialog
android 多種dialog
/**確定取消資訊框 **/
/**多個按鈕資訊框 **/
/**列表框 **/
/**進度條框 **/
/**單項選擇列表框 **/
/**多項選擇列表框 **/
/**自定義佈局 **/
/**讀取進度框 **/
- 2022-03-17 08:25:23下载
- 积分:1
-
android_intent
包含了Android开发中大部分的Intent使用(This Project contains most Intent using in Android Developing)
- 2014-01-06 11:32:15下载
- 积分:1
-
Android_Settings最新源码
最新Android4.4 .4的Setting.apk源码,导入到Eclipse时需要调用系统下的包,而系统下的包都是以一种@hide隐藏着,只允许系统下的类调用,所以,这个外项目是无法调用到的。
- 2023-08-25 15:35:07下载
- 积分:1
-
消息 Iphone 主题,Android 平台
消息 Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android 平台
消息 Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android 平台
消息 Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android platformMessage Iphone 主题,Android 平台
- 2022-03-19 03:11:41下载
- 积分:1
-
eclipse 程序入门
本程序是eclipse设计的入门程序,可以帮助大家尽快熟悉eclipse。
- 2022-03-14 13:22:26下载
- 积分:1