- 博客(10)
- 收藏
- 关注
原创 nettier deepload
CustomerService service = new CustomerService(); var customer = service.GetByCustomerId(customerId); if (customer != null) { // 1
2012-04-23 17:16:29 503
原创 SVN Merge
Create branchright click the project -> svn -> branch tag. Fill in the URL. you can specify a new folder on the url, svn will create that folder for you automatically.you can swich working cop
2012-04-19 16:55:32 1384
原创 make phone call, browse web, send email
// make phone calltry { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:1850363744")); startActivity(callIntent);
2012-04-10 18:24:16 433
原创 dynamic create layout
LinearLayout containerLayout = (LinearLayout)findViewById(R.id.scrollviewlayout); containerScrollView = new ScrollView(this); //set scrollview layout containerScrollView.setLayoutParams(n
2012-04-10 17:54:53 441
原创 splash screen
public class Splashscreen extends Activity{ private Thread splashThread; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layou
2012-04-10 17:25:22 342
原创 create custom OnTouchListener
public class MyImageListener implements OnTouchListener { public boolean onTouch(View v, MotionEvent event) { float width = v.getWidth(); float height = v.getHeight(); /* Log.i("he
2012-04-05 23:52:24 361
原创 spinner (drop down list)
// set spinner spinner = (Spinner) findViewById(R.id.spinner_meterPointType); ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.meterType_array, a
2012-04-05 23:24:25 1041
原创 popup confirm Dialog
AlertDialog.Builder confirmBuilder = new AlertDialog.Builder(this);confirmBuilder .setTitle("my title") .setMessage("my message") .setIcon(android.R.drawable.ic_dialog_alert) .
2012-04-05 23:01:59 516
原创 set view can be clicked
private RelativeLayout cell_myView;private static String contentDescription_myView = "aaaa"; // used to identify which view is clicked // in onCreate()myView. setContentDescription(
2012-04-05 22:57:02 358
原创 install app in android
Connect the phone to PC by cable, set the type of connection to "*disc drive*" from the phoneCopy the app from PC to your phone (disc).After Copying finished, unconnected the phone or set the type of
2012-04-05 00:16:53 416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人