随笔分类 -  Android

安卓学习路程
Android网络编程工具类:HttpUtil
摘要:import java.io.IOException;import org.apache.http.HttpResponse;import org.apache.http.client.ClientProtocolException;import org.apache.http.client.methods.HttpGet;import org.apache.http.client.methods.HttpPost;import org.apache.http.impl.client.DefaultHttpClient;import org.apache.http.util.EntityUti 阅读全文

posted @ 2013-05-02 23:59 may小张 阅读(919) 评论(0) 推荐(0)

java.net.SocketException: Permission denied解决
摘要:该文引自:http://hi.baidu.com/sunfengwei/item/6c4c8b68d015ea2569105bc2在Android项目开发时,在获取IP地址时出现java.net.SocketException:Permissiondenied异常,这是一个典型的异常。解决方法:在AndroidManifest.xml配置:<uses-permissionandroid:name="android.permission.INTERNET"/>如:<manifestxmlns:android="http://schemas.andr 阅读全文

posted @ 2013-04-24 00:58 may小张 阅读(724) 评论(0) 推荐(0)

Android学习历程-TableLayout布局
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TableLayo 阅读全文

posted @ 2013-03-27 00:57 may小张 阅读(356) 评论(0) 推荐(0)

Android学习历程-FrameLayout帧布局
摘要:<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <FrameLayout android:id="@+id/FrameLayout01&quo 阅读全文

posted @ 2013-03-27 00:28 may小张 阅读(230) 评论(0) 推荐(0)

Android学习历程-LinearLayout布局
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLay 阅读全文

posted @ 2013-03-27 00:05 may小张 阅读(188) 评论(0) 推荐(0)

Android学习历程-事件处理流程
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TableLayo 阅读全文

posted @ 2013-03-25 23:34 may小张 阅读(215) 评论(0) 推荐(0)

Android学习历程-Toast
摘要:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <TextView andr 阅读全文

posted @ 2013-03-25 22:28 may小张 阅读(128) 评论(0) 推荐(0)

Android学习历程-AlerDialog(接收数组)
摘要:package com.example.testcontextmenu;import android.app.Activity;import android.app.AlertDialog;import android.content.DialogInterface;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.TextView;public class Te 阅读全文

posted @ 2013-03-25 22:12 may小张 阅读(192) 评论(0) 推荐(0)

Android学习历程-AlerDialog
摘要:package com.example.testcontextmenu;import android.app.Activity;import android.app.AlertDialog;import android.app.AlertDialog.Builder;import android.content.DialogInterface;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import 阅读全文

posted @ 2013-03-25 21:54 may小张 阅读(171) 评论(0) 推荐(0)

Android学习历程-子菜单(Sub Menu)
摘要:package com.example.testcontextmenu;import android.app.Activity;import android.os.Bundle;import android.view.Menu;import android.view.MenuItem;import android.view.SubMenu;public class TestSubMenu extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI. 阅读全文

posted @ 2013-03-25 21:31 may小张 阅读(285) 评论(0) 推荐(0)

Android学习历程-上下文菜单(Context Menu)
摘要:不知道怎样调用上下文菜单,探索中....package com.example.testcontextmenu;import android.os.Bundle;import android.app.Activity;import android.graphics.Color;import android.view.ContextMenu;import android.view.ContextMenu.ContextMenuInfo;import android.view.Menu;import android.view.MenuItem;import android.view.View;im 阅读全文

posted @ 2013-03-25 21:00 may小张 阅读(204) 评论(0) 推荐(0)

Android学习历程-使用菜单(menu)资源
摘要:学习备份笔记用:菜单XML:<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:title="File"> <menu> <group android:id="@+id/noncheckable_group" android:checkableBehavior 阅读全文

posted @ 2013-03-24 17:44 may小张 阅读(217) 评论(0) 推荐(0)

Android学习历程-Activity生命周期
摘要:里面写了三个Activity:package com.example.activity.life.cycle;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;public class FirstActivity extends Activity { private Button button 阅读全文

posted @ 2013-03-21 01:34 may小张 阅读(195) 评论(0) 推荐(0)

Android学习历程-Android常用控件(简单计算器)
摘要:两个布局文件:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Ed 阅读全文

posted @ 2013-03-20 01:42 may小张 阅读(526) 评论(0) 推荐(0)

Android环境变量的设置(详细图解版)
摘要:文章出自:http://blog.csdn.net/meetmeya/article/details/6595636查阅了网上很多的资料但是对于环境变量设置介绍的不够详细,可能对于大虾来说是不屑看的,但是对于刚入门的小菜鸟还是比较高深的,呵呵。 因为我的电脑是Win7,就只有Win7的介绍。 首先你已经成功安装Android的SDK。第一步根据图示找到环境变量窗口第二步然后单击用户变量处新建按钮,可以用绝对路径和相对路径设置两种方式先介绍相对路径设置,不废话上图,变量名:ANDROID_SDK_HOME,变量值是android-SDK-windows的路径下面我们新建一个Path变量,变量值方 阅读全文

posted @ 2013-03-20 00:51 may小张 阅读(171) 评论(0) 推荐(0)

导航