`
doll
  • 浏览: 82847 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
转载至 http://kuikui.iteye.com/blog/318627 Android have lots of intent,it’s powerful and useful,here is some tips for you: 1,start web browser Uri myBlogUri = Uri.parse("http://kuikui.iteye.com"); returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri); 2,Google map Uri mapUri = Uri.parse(&quo ...

Android Monkey

ADB 命令里面 有一个很好的东东 Monkey 工具 它主要是用来进行程序压力测试的 最常用的用法为 adb shell monkey -p com.doll.test(此项为你的程序包名) -v 222(点击次数) 随机产生222个事件给包名名为com.doll.test这个程序 试试 这个还是挺好玩的 好程序要经得起烧烤
本文转载 原文是在一个外国网站上看到的 地址 http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html blogspot 是被天朝和谐了的网站 1. 去http://developer.htc.com/adp.html这个网站上下载 System Image 镜像文件,我下载的是Android 1.6 的signed-dream_devphone_userdebug-img-14721.zip。 2. 在你的Android开发环境 Eclipse中创建一个新的 AVD,SD Card Size 我写的是51 ...
做软件的时候 也许要存数据要用到SD卡 所以在用之前 最好检测下 SD卡是否可用 下面是java代码 import java.io.File; import java.util.Date; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class SDCardListener extends BroadcastReceiver { private static boolean sdcardAva ...
联网软件联网之前一般都要检测网络是否可用 下面是代码 ConnectivityManager manager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE); NetworkInfo networkinfo = manager.getActiveNetworkInfo(); if (networkinfo == null || !networkinfo.isAvailable()) { // 当前网络不可用 你该干嘛干嘛 }
其实调用发短信界面有好几种方法 可以使用 bb 自己的API 也可以使用 javax.wireless.messaging.* 这个包 下面我是用 sun 的包写的 MessageConnection mc; String address = "sms://10086"; try { mc = (MessageConnection) Connector.open("sms://"); Message sms = mc.newMessage(MessageConnection.TEXT_MESSAGE); ...
先看图片吧 然后看主类代码 import net.rim.device.api.ui.Color; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.Manager; import net.rim.device.api.ui.container.FlowFieldManager; import net.rim.device.api.ui.container.PopupScreen; public class PopupView extends PopupScreen { publ ...
Blackberry 是可以跑 J2ME 程序的! 下面我说下Blackberry编译J2ME程序的流程: 1.打开Blackberry IDE (我的电脑目录是:C:\Love\bin\IDE.jar) 2.新建一个Project(如果是No workspace 先新建一个 workspace ) ,新建 Project的流程我就不说了。 3.找到你所建的项目的目录,然后把你写的J2ME 程序代码和资源文件copy 进去(不会?回家带孩子去)。 4.选择你所建的项目 点击鼠标右键 选择Add File to Project... 把你刚才copy过去的java 文件和资源文件选上 点击Op ...
在J2ME程序中我们可以通过MIDlet.platformRequest(String URL) 来调用系统内置的程序,比如说Browser,拨打电话程序 等等。 如果 URL 是 指向一个 jad,jar的话 则会调用 系统安装程序 安装该Jar 例如 MIDlet.platformRequest("http://www.doll.com/ota/doll.jad"); 如果 URL 是 tel: 开头则会调用打电话程序 MIDlet.platformRequest("tel:+358-555-1234567"); 如果URL 是 http: 开头则 ...
在JSR规范里面 J2ME 是可以通过 System.getProperty(String key) 得到一些你想要的东东。 J2ME Defined System Properties JSR Property Name           Default Value¹30 microedition.platform null  microedition.encoding ISO8859_1  microedition.configuration CLDC-1.0  microedition.profiles null37 microedition.locale null  micro ...
我亲自没有测试过 但是看到发布的人测试过 原文地址:[url] http://groups.google.com/group/android-developers/browse_thread/thread/8ea1145c3c8b9c0b[/url] 直接上代码 <Preference android:title="Internal activity" android:summary="This will launch internal activity"> <intent android:action="an ...
如果文字太长 又不想换行的话 可以用文字滚动效果。 下面是代码: LabelField testLabel = new LabelField( "I swear to god up in the sky I will be your shelter when you cry Cause you are my everything.", Field.FOCUSABLE) { int currentChar = 0; String currentText = null; Font ourFont; private Timer _scro ...
Android 在开发中会自动生成一个 R.java 文件 ,这个文件是自动生成的,最好不要去改。不过有时候这个 java 文件会跟我们捉迷藏,在程序中 R.xx.xxx 会出现经常报错现象。其实只要对着工程点击鼠标右键 选择 Build Project,R.java 文件又回来。这样R.xx.xxx 就能 X 的出来了。
在使用Eclipse开发的时候 我们经常会按 F3 来查看源文件。 而有时候查看Android 自带的 API 的时候 会出现讨厌的 Class Not Found 或者 Source not Found 等文字。 其实我们只需要 稍微地动下鼠标 就可以解决这个问题。看到Android API 源码。 1. 去Android 网站上下载源码Android 1.5的下载下来大概 是 1.4G 左右,解压后里面包括 android ,com ,dalvik, java ,javax,org,res 7个文件夹。(不会下载? 回家带孩子去) 2.找到 Android sdk 安装目录 进入 pla ...
在一般拨号界面上输入 *#060* 会弹出来一串数字 那个就是传说中的 IMEI 而在程序中用代码页可以取得 下面是代码 /** * Get the IMEI * @return imei */ public static String getIMEI() { StringBuffer imei = new StringBuffer(); boolean success = true; ...
Global site tag (gtag.js) - Google Analytics