ubuntu android开发记录

-----------------20120512-----------------
1)
[2012-05-12 17:12:51 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.
Create new Android Virtual Device时,Target选择Android 4.0.3 - API Level 15,出现如上错误。
解决办法: 将 ARM EABI v7a System Image下载下来。

2) android:phoneNumber="true"

android:phoneNumber is deprecated: Use inputType instead

解决办法:

android官方网站:
http://developer.android.com/index.html

必须强制自己适应阅读英文原版资料,官方的资料详尽、原汗原叶,且很多问题官方网站都可以找到解决办法。
面对BUG要心丝如发,发现规律。

----------------20120513----------------
snapshot
scale display to real size

3G手机Android应用开发第一天课程4.短信发送器与布局.avi
const sring:ACTION_CALL

匿名内部类

eclipse package explorer消失不见了
菜单--window--选择reset perspective,可以将当前透视图的窗口布局全部恢复成默认。

<RelativeLayout>
LinearLayout 线性布局
AbsoluteLayout绝对布局
RelativeLayout相对布局

间距、对齐  


EditText至少显示三行,通过设置属性来实现
android:minLines="3"
短信发送拆分方法
短信发送方法

文本框Textview
警告warning:This text field does not specify an inputType or a hint
解决方法,指定输入属性,如
android:inputType = "text"
android:inputType="number"


android:phoneNumber is deprecated: Use inputType instead

申请短信发送权限?

两个模拟器是可以互想发送短信的。

短信发送类:SmsManager

ANDROID通知方式:
1,状态栏;
2,POP框;
3,Toast;

实现:短信群发器

//定义一个ID,注意+
android:id = "@+id/mobilelabel"

//引用一个ID
android:id = "@id/mobilelabel"
明天开始采用在源代码基础上修改方式+视频的方式进行

1)如何使用eclipse怎样打开已有工程
File -> Import -> General -> Existing Projects into Workspace

------------------------20120516------------------------|

 Eclipse shortcut:import packages to your project is to press Ctrl-Shift-O (Cmd-Shift-O, on Mac)

 Eclipse插入包的快捷键是:Ctrl-Shift-O (Cmd-Shift-O, on Mac)

TextView类:负责UI描画,诸如button, image,label。
                    使用Content实例可以构造一个TextView实例。

有如下类的继承关系:Activity继承自Content,而Content是一个抽象类(abstract class),是无法实例化的,Content的基类是Object。
XML文件如何本地化?或者说是国际化?

----------------20120517----------------

Installing SMS.apk...无法进入下去?
解决方法:升级ADT,步骤-help-Check for updates... -> adt

升级完ADT,可能要你必须升级TOOLS,此时可能又会遇到:folders failed to rename or remove
GOOGLE就可以解决问题。


Resources don't contain package for resource number XXX
解决方法:http://www.189works.com/article-19522-1.html

http://android.yaohuiji.com/about


//决定应用程序最先启动的Activity

<action android:name="android.intent.action.MAIN" />

//决定应用程序是否显示在程序列表里
<category android:name="android.intent.category.LAUNCHER" />

//获取SDK版本号
Log.i("Info",Build.VERSION.SDK);

//获取系统版本名
Log.i("Info",Build.VERSION.RELEASE);

必须搞清楚对象的作用域生命周期


GridView
属性 android:stretchMode="columnWidth"  //缩放与列宽大小同步



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值