`
文章列表
BtDevice.java package com.example.aidl_service; import android.os.Parcel; import android.os.Parcelable; public class BtDevice implements Parcelable{ private int id; private String device; public BtDevice() { // TODO Auto-generated constructor stub } public BtDevice(int ...
MainActivity.java package com.simpleDialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.ProgressDialog; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.View; import ...
MainActivity.java package com.blueTooth; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.content.BroadcastReceiver ...
MainActivity.java package com.wifi; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Context; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Bundle; ...
MainActivity.java package com.ct7_AutocompletionTextView; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; public class MainActivity extends Activity { private AutoCompleteT ...
MainActivity.java package com.ct7_Sprinner; import java.util.ArrayList; import java.util.List; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickLi ...
MainActivity.java package com.httpclient.test_01; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtocolExcep ...
/*附加获取联系人的游标数据*/ Cursor cursor=getContentResolver().query(People.CONTENT_URI, null, null, null, null); startManagingCursor(cursor); ListAdapter listAdapter=new SimpleCursorAdapter(this,android.R.layout.simple_expandable_list_item_1,cursor,new String[]{People.NAME},new int[]{android.R.id.tex ...
MainActivity.java package com.customDialog; import android.os.Bundle; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.view.Menu; import android.view.MotionEvent; import android.view.View; impor ...
本文出自:http://blog.sina.com.cn/s/blog_6e51958501015bsx.html Activity的四种加载模式: 1、standard :系统的默认模式,一次跳转即会生成一个新的实例。假设有一个activity命名为Act1,执行语句: startActivity(new Intent(Act1.this, Act1.class)); 后Act1将跳转到另外一个Act1,也就是现在的栈里面有 Act1 的两个实例。按返回键后你会发现仍然是在Act1(第一个)里面。 2、singleTop:singleTop 跟standard 模式比较类似。唯一的区 ...
本文出自:http://blog.csdn.net/berber78/article/details/7278408 一. intent.setFlags()方法中的参数值含义: 1.FLAG_ACTIVITY_CLEAR_TOP:例如现在的栈情况为:A B C D 。D此时通过intent跳转到B,如果这个intent添加FLAG_ACTIVITY_CLEAR_TOP标记,则栈情况变为:A ...
MainActivity.java package com.sensor; import com.sensor.ShakeListener.OnShakeListener; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { private ShakeListener shakeListener; @Override public void ...
Web端 定义接口MyAdil.aidl package com.service_aidl_web; interface MyAidl{ int count(int num1,int num2); String say(); } MyService.java package com.service_aidl_web.service; import com.service_aidl_web.MyAidl; import android.app.Service; import android.content.Intent; import a ...
MainActivity.java package com.ct9_navigationdrawer; import java.util.Locale; import android.os.Bundle; import android.app.Activity; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.res.Configuration; import a ...
DBHelper.java package com.sqlite_02; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class DBHelper extends SQLiteOpenHelper{ public DBHel ...
Global site tag (gtag.js) - Google Analytics