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...
阅读全文
摘要:import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bund...
阅读全文
摘要:1,先下载vitamo https://www.vitamio.org/Download/ 2,import module vitamio 3,修改build.gradle compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VE
阅读全文
摘要:import android.Manifest; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.content.pm.PackageManager; import android.os.Bun...
阅读全文
摘要: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...
阅读全文
摘要:protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn1 = (Button) findViewById(R.id.btn1); ...
阅读全文
摘要:在 Android 4.4 之后,ACTION_MEDIA_MOUNTED 这个广播只能由系统发出,APP 只能监听,不能广播,所以通过发送广播的方式来让系统扫描文件的做法已经是走不通了。 扫描/storage/sdcard/下的所有文件
阅读全文
摘要:1.查看MySQL的当前最大连接数,登录MySQL:mysql -uroot -p,回车;输入密码,回车; 输入命令:select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CON
阅读全文
摘要:Bitmap bitmapSrc = BitmapFactory.decodeResource(getResources(), R.drawable.dog); Bitmap bitmapCopy = Bitmap.createBitmap(bitmapSrc.getWidth(), bitmapSrc.getHeight(), b...
阅读全文
摘要:Bitmap bitmapSrc = BitmapFactory.decodeResource(getResources(), R.drawable.dog); Bitmap bitmapCopy = Bitmap.createBitmap(bitmapSrc.getWidth(), bitmapSrc.getHeight(), b...
阅读全文
摘要://取得图片的分辨率 BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource...
阅读全文
摘要:图片的文件名(包括扩展名)均为小写 ([a-z0-9_.])
阅读全文
摘要:WindowManager manager = getWindowManager();Point point = new Point();manager.getDefaultDisplay().getSize(point);manager.getDefaultDisplay().getSize(po
阅读全文
摘要:WindowManager manager = getWindowManager();int height = manager.getDefaultDisplay().getHeight();int width = manager.getDefaultDisplay().getWidth();Log
阅读全文
摘要:Bitmap bitmap = BitmapFactory.decodeFile("/mnt/sdcard/dog.bmp"); int height = bitmap.getHeight(); int width = bitmap.getWidth(); <uses-permission andr
阅读全文

浙公网安备 33010602011771号