07 2016 档案

摘要:import android.graphics.Bitmap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import andr... 阅读全文
posted @ 2016-07-31 10:56 一路向北中 阅读(1249) 评论(0) 推荐(0)
摘要:import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bund... 阅读全文
posted @ 2016-07-29 13:45 一路向北中 阅读(230) 评论(0) 推荐(0)
摘要:1,先下载vitamo https://www.vitamio.org/Download/ 2,import module vitamio 3,修改build.gradle compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VE 阅读全文
posted @ 2016-07-28 08:12 一路向北中 阅读(480) 评论(0) 推荐(0)
摘要:import android.Manifest; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.content.pm.PackageManager; import android.os.Bun... 阅读全文
posted @ 2016-07-26 16:44 一路向北中 阅读(194) 评论(0) 推荐(0)
摘要:import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.pm.PackageManager; import android.os.Bundle; impor... 阅读全文
posted @ 2016-07-25 13:53 一路向北中 阅读(243) 评论(0) 推荐(0)
摘要:protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn1 = (Button) findViewById(R.id.btn1); ... 阅读全文
posted @ 2016-07-21 14:42 一路向北中 阅读(311) 评论(0) 推荐(0)
摘要:在 Android 4.4 之后,ACTION_MEDIA_MOUNTED 这个广播只能由系统发出,APP 只能监听,不能广播,所以通过发送广播的方式来让系统扫描文件的做法已经是走不通了。 扫描/storage/sdcard/下的所有文件 阅读全文
posted @ 2016-07-21 14:40 一路向北中 阅读(219) 评论(0) 推荐(0)
摘要:SD卡权限 阅读全文
posted @ 2016-07-21 12:53 一路向北中 阅读(207) 评论(0) 推荐(0)
摘要:1.查看MySQL的当前最大连接数,登录MySQL:mysql -uroot -p,回车;输入密码,回车; 输入命令:select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CON 阅读全文
posted @ 2016-07-19 10:59 一路向北中 阅读(1153) 评论(0) 推荐(0)
摘要:Bitmap bitmapSrc = BitmapFactory.decodeResource(getResources(), R.drawable.dog); Bitmap bitmapCopy = Bitmap.createBitmap(bitmapSrc.getWidth(), bitmapSrc.getHeight(), b... 阅读全文
posted @ 2016-07-18 22:08 一路向北中 阅读(290) 评论(0) 推荐(0)
摘要:Bitmap bitmapSrc = BitmapFactory.decodeResource(getResources(), R.drawable.dog); Bitmap bitmapCopy = Bitmap.createBitmap(bitmapSrc.getWidth(), bitmapSrc.getHeight(), b... 阅读全文
posted @ 2016-07-18 21:15 一路向北中 阅读(175) 评论(0) 推荐(0)
摘要://取得图片的分辨率 BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource... 阅读全文
posted @ 2016-07-18 20:41 一路向北中 阅读(351) 评论(0) 推荐(0)
摘要:图片的文件名(包括扩展名)均为小写 ([a-z0-9_.]) 阅读全文
posted @ 2016-07-18 20:22 一路向北中 阅读(181) 评论(0) 推荐(0)
摘要:WindowManager manager = getWindowManager();Point point = new Point();manager.getDefaultDisplay().getSize(point);manager.getDefaultDisplay().getSize(po 阅读全文
posted @ 2016-07-18 19:50 一路向北中 阅读(152) 评论(0) 推荐(0)
摘要:WindowManager manager = getWindowManager();int height = manager.getDefaultDisplay().getHeight();int width = manager.getDefaultDisplay().getWidth();Log 阅读全文
posted @ 2016-07-18 19:48 一路向北中 阅读(166) 评论(0) 推荐(0)
摘要:Bitmap bitmap = BitmapFactory.decodeFile("/mnt/sdcard/dog.bmp"); int height = bitmap.getHeight(); int width = bitmap.getWidth(); <uses-permission andr 阅读全文
posted @ 2016-07-18 19:44 一路向北中 阅读(108) 评论(0) 推荐(0)