
Android
zexu82
这个作者很懒,什么都没留下…
展开
-
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 · 538 阅读 · 0 评论 -
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 · 1059 阅读 · 0 评论 -
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 · 371 阅读 · 0 评论 -
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 · 465 阅读 · 0 评论 -
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 · 379 阅读 · 0 评论 -
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 · 457 阅读 · 0 评论 -
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 · 434 阅读 · 0 评论 -
android error
When you debug or run (android 4.0.0 or upper) by AVD(emulator), the error (device not found) may show, this is not error, the appjust not start auto, you can start in the running AVD. ----------原创 2012-07-16 18:56:06 · 470 阅读 · 0 评论 -
android permission
when install the android app, a list of permission will display: DEVELOPMENT TOOLSENABLE APP DEBUGGINGAllows the app to turn on debugging for another app. Malicious apps may use this to ki原创 2012-07-16 19:04:55 · 335 阅读 · 0 评论