随笔分类 - android
摘要:原文:https://blog.csdn.net/qq_40511184/article/details/122698077 因为android studio升级,下面代码中的startactivityresult函数有变化 ,不能使用,需要更换为 public ActivityResultLaun
阅读全文
摘要:AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sc
阅读全文
摘要:package com.lingrui.btprint; import android.app.AlertDialog; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; impo
阅读全文
摘要:https://www.jianshu.com/p/0fe3a7e06f57?tdsourcetag=s_pcqq_aiomsg https://www.jianshu.com/p/c0b6d1a4823b Android 蓝牙连接 ESC/POS 热敏打印机打印(蓝牙连接篇)VitaminChen
阅读全文
摘要:原文:https://blog.csdn.net/johnWcheung/article/details/72123858 打印机按照连接方式分为USB打印机、蓝牙打印机、网络打印机、云打印机、内联打印机;按照打印纸张大小分为带切刀的80厨房打印机和58热敏票据打印机;按照打印结果分为小票打印机和标
阅读全文
摘要:<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" x
阅读全文
摘要:前言 工作中或多或少都会遇到困扰自己很久的问题,我也毫无例外,曾经在项目中对蓝牙打印这一块也困惑和迷茫过,最近在做项目重构的时候,翻看了之前写的代码,还是决定通过两篇文章详细阐述蓝牙连接打印机完成整个打印流程的操作,目的是对工作的一种总结,其次是输出。好比玩个压缩,又是绿叉又是无尽,一身暴击 装,却
阅读全文
摘要:1、注册Activity页面,并指定首页。 所有的页面文件要在此文件中注册。 指定是APP的首页:(android:exported="true")和下面的 intent-filter中的两行,; 2、需要的权限要在此文件中指定; <uses-permission android:name="and
阅读全文
摘要:原文:https://blog.csdn.net/zhou_ge1/article/details/127130430 1.左上角菜单栏:File->Project Structure... 2.Dependencies->app->点击+号->1 Library Dependency 3.输入想要
阅读全文
摘要:1、file Setting Editor--General--Auto Import 2 、选择
阅读全文
摘要:文字分别放在左上,右上,中间,左下,右下五个地方; <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app=
阅读全文
摘要:代码运行报错的时候,Build Output报的错误日志中中文部分出现乱码,导致看不到到底报的什么错。 2.解决办法如下:点击Android studio开发工具栏的Help-Edit Custom VM Options....,Android studio会打开studio64.exe.vmopt
阅读全文

浙公网安备 33010602011771号