`
04023129
  • 浏览: 159266 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表
刚入手Macbook pro。说实话日本的比国内的真的便宜好的,I5 4G 500G的  花了7.5W 约合 6Krmb。。。。 正题,现在Macos 里面的命令行工具不是很多,这就需要我们自己安装了。今天想安装Wget命令。   首先 安装make 命令 https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-  下载 https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-# command_line_tool ...
/** Called when the activity is first created. */ WebView mWebView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); mWebView = (WebView) findViewById(R.id.webView); mWebView.getSettings().setJavaScriptEnab ...
3G应用开发之Android.ppt
本文使用的是office软件自带的Save as 功能 自动存储为Html网页以便在线查看Ofiice文档   代码保留 Excel static public void excelToHtml(string inputFile, string outputFile) { try { string fileName = System.IO.Path.GetFileName(inputFile); //string outputFile = Server.MapPath(Reque ...
TimePicker tp.setIs24HourView(true); tp.setCurrentHour(8); tp.setCurrentMinute(30); tp.setOnTimeChangedListener(new OnTimeChangedListener() { public void onTimeChanged(TimePicker view, int hourOfDay, int minute) { ...
java package com.zzh.PackageReceiver; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; public class PackageReceiver extends BroadcastRecei ...
Android AM命令行启动程序的方法 usage: am [subcommand] [options]    start an Activity: am start [-D] <INTENT>        -D: enable debugging    send a broadcast Intent: am broadcast <INTENT>    start an Instrumentation: am instrument [flags] <COMPONENT>        -r: print raw results (otherwise ...
for (PackageInfo pack : getPackageManager().getInstalledPackages(0)) { ApplicationInfo info = pack.applicationInfo; String pkgName = info.packageName; Log.d("Example", "packageName: " + pkgName); Log.d("Example", "manageSpaceActi ...
/* * シェルスクリプトを運行 */ public String exec(String command) { StringBuffer output = new StringBuffer(); Log.d("exec", command); try { Process process = Runtime.getRuntime().exec(command); DataInputStream stdout = new DataInputStream( process.getInputStream()); ...
public static String post(String actionUrl, Map<String, String> params, Map<String, File> files) throws IOException { StringBuilder sb2 = new StringBuilder(); String BOUNDARY = java.util.UUID.randomUUID().toString(); String PREFIX = "--" , LINEND = " ...
public static void setMaxVolumn(Context context){ AudioManager audioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); //audioManager.setStreamVolume(AudioManager.STREAM_SYSTEM , 12, 0); audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); Log.d(&quo ...
初始化相机   private void initCamera() { setContentView(R.layout.main); btnTake = (Button) this.findViewById(R.id.take); btnTake.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { camera.autoFocus(new AutoFocusCallback()); } }); Display d ...
NotificationManager mn =( NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); notification = new Notification(iconImage,statusBarText, System.currentTimeMillis()); notification.defaults |= Notification.DEFAULT_LIGHTS; notification.sound = Uri.parse("android.re ...
设置  AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); try { js = new JSONArray(timeArray); String str = ""; for(int i=0;i<js.length();i++) { str = js.get(i).toString().replaceAll("T", " "); try { date = forma ...
Intent i = new Intent(PushService.this, XmppPushActivity.class); Bundle bundle = new Bundle(); bundle.putString("from", from); bundle.putString("message", message); i.putExtras(bundle); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i); XmppPushActivity 里面在onCreate()里面写 ...
Global site tag (gtag.js) - Google Analytics