- 博客(12)
- 收藏
- 关注
原创 SMS receiver
public class SMSReceiver extends BroadcastReceiver{ private ToastDeal deal = new ToastDeal(); public SMSReceiver() { } public void onReceive(Context contex...
2012-04-26 09:11:24 807
原创 Timmer
private Handler hd = new Handler() { @Override public void handleMessage(Message msg) { // TODO Auto-generated method stub // 要做的事情 ...
2012-04-24 17:44:10 89
原创 auto scroll scrollview
private void autoScroll() { this.scrollView = (ScrollView) findViewById(R.id.contentAreasss);//scroll对象 this.mlayout = (LinearLayout) findViewById(R.id.contentArea);//scrollVie...
2012-04-24 15:49:32 173
原创 GrodView
public void downloadAppURL(final APPOperation operation, LinearLayout layout){ final LayoutInflater inflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE); llayo...
2012-04-19 10:21:14 96
原创 turning phone
package com.huawei.voice.activity;import android.app.Activity;import android.content.Context;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.Sensor...
2012-04-18 17:26:10 117
原创 service
public class AskService extends Service{ public class SimpleBinder extends Binder { /** * 获取 Service 实例 */ public AskService getService() {...
2012-04-18 16:45:50 51
原创 shanke
public class ShakeActivity extends Activity implements SensorEventListener{ private SensorManager sensorManager; private ToastDeal deal = new ToastDeal(); private long mLa...
2012-04-16 16:57:48 132
原创 android手机已安装软件列表-packages List
public ArrayList getInstalledApps(boolean getSysPackages) { ArrayList res = new ArrayList(); List packs = getPackageManager().getInstalledPackages(0); f...
2012-04-16 10:08:43 935
原创 location2
location = (Location)getApplication(); mLocClient = location.mLocationClient; location.mTv = mTv; setLocationOption(); mLocClient.start(); private v...
2012-04-13 11:49:35 152
原创 location
public class Location extends Application { public LocationClient mLocationClient = null; private String mData; public MyLocationListenner myListener = new MyLocationListenner(); TextView mTv;...
2012-04-13 11:47:32 101
原创 cilent
private static final int REQUEST_TIMEOUT = 20*1000;//设置请求超时10秒钟 private static final int SO_TIMEOUT = 20*1000; //设置等待数据超时时间10秒钟 public static String encode(String URL) { Strin...
2012-04-13 11:34:53 293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人