我不知道这是否是一个正确的地方,询问以下内容:
我在google play开发者控制台上看过:
在2018年下半年,Play将要求新的应用和应用更新定位到最近的Android API级别.这将是2018年8月的新应用程序以及2018年11月对现有应用程序的更新所必需的.这是为了确保应用程序构建在针对安全性和性能优化的最新API上构建
和
Google Play将要求新应用程序从2018年8月1日起至少定位到Android 8.0(API级别26),并且应用程序将从2018年11月1日起更新目标Android 8.0.
这是什么意思?这是否意味着我将无法开发兼容小于8.0版本的应用程序?
如果是这样,如何在8.0以外版本的现有应用程序中引入错误修复/新功能?
这将导致所有设备"死亡"的版本超过8.0 ......或者谷歌是否考虑为市场上的所有设备发布android oreo?
***************编辑***************
我在谷歌开发者控制台帐户上的这条消息产生了疑问:
翻译是:
从2018年8月开始,新应用必须最低限度定位到 Android 8.0.从2018年11月开始,应用更新必须以8.0版为目标
最小目标是:
一个整数,指定运行应用程序所需的最低API级别.如果系统的API级别低于此属性中指定的值,Android系统将阻止用户安装应用程序.
对消息的解释不好?
我必须在Android应用程序中实现一个允许我签署PDF的功能,当我说"签名"时,我指的是用户在文档末尾贴上的数字签名(第一和第二名).
我可以访问三星Note 4(带手写笔),然后就不会出现问题,在显示屏上"写".
问题是:有可能使用像itext这样的库来签署文档,或者我必须编写自定义函数吗?
pdf android electronic-signature digital-signature handwriting
我正在开发一个Android应用程序,现在我必须构建一个APK,为此我按照这一步骤:
1)建立 - >清洁
2)构建 - >生成签名APK
3)Jar签名或完整APK签名
但是,当应用程序的生成发生错误时:
Information:Gradle tasks [:app:assembleRelease]
Warning:com.itextpdf.text.pdf.PdfEncryptor: can't find referenced class org.spongycastle.cms.jcajce.JceKeyTransEnvelopedRecipient
Warning:com.itextpdf.text.pdf.PdfEncryptor: can't find referenced class org.spongycastle.cms.RecipientInformation
Warning:com.itextpdf.text.pdf.PdfEncryptor: can't find referenced class org.spongycastle.cms.CMSException
Warning:com.itextpdf.text.pdf.PdfEncryptor: can't find referenced class org.spongycastle.cms.RecipientInformation
Warning:com.itextpdf.text.pdf.PdfEncryptor: can't find referenced class org.spongycastle.cms.Recipient
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't find referenced class org.spongycastle.asn1.DEROutputStream
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't find referenced class org.spongycastle.asn1.ASN1InputStream
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't find referenced class org.spongycastle.asn1.DEROctetString
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't find referenced class org.spongycastle.asn1.DERSet
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't find referenced class org.spongycastle.asn1.cms.RecipientInfo
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't find referenced class org.spongycastle.asn1.DERSet
Warning:com.itextpdf.text.pdf.PdfPublicKeySecurityHandler: can't …Run Code Online (Sandbox Code Playgroud) 我必须执行查询并将结果存储在列表中,我使用的函数如下:
List<SpoolInDB> getSpoolInRecords(String label, boolean getLastInserted) {
List<SpoolInDB> spoolInList = new ArrayList<>();
try {
if (mdb == null)
mdb = mdbHelper.getWritableDatabase();
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
qb.setTables(TABLE_SPOOLIN);
Cursor c = qb.query(mdb, null, " label='" + label + "'", null, null, null, " dateins " + (getLastInserted ? "desc" : "asc"));
if (c != null) {
c.moveToFirst();
if (c.getCount() > 0) {
int ndxid = c.getColumnIndex("id");
int ndxserverID = c.getColumnIndex("serverID");
int ndxlabel = c.getColumnIndex("label");
int ndxvalue = c.getColumnIndex("value");
int ndxpriority = …Run Code Online (Sandbox Code Playgroud) 在编写此线程之前,我已尝试实现我在stackoverflow中找到的不同解决方案,但没有任何正常工作.
我正在开发一个使用自定义导航抽屉的Android applucation,我必须更改操作栏的标准图标(现在是工具栏,对吗?)和设置图标.
这是我的代码:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setTitleTextColor(Color.parseColor("#009754"));
setSupportActionBar(toolbar);
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
drawer.setDrawerListener(toggle);
toggle.syncState();
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
navigationView.setNavigationItemSelectedListener(this);
}
Run Code Online (Sandbox Code Playgroud)
这就是我尝试实现的:
此解决方案不起作用:
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setTitleTextColor(Color.parseColor("#009754"));
toolbar.setNavigationIcon(R.drawable.ic_draw);
setSupportActionBar(toolbar);
Run Code Online (Sandbox Code Playgroud)
此解决方案不起作用:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(false);
toggle.setDrawerIndicatorEnabled(false);
toggle.setHomeAsUpIndicator(R.drawable.ic_custom_drawer_icon);
Run Code Online (Sandbox Code Playgroud)
我不明白为什么我不能改变图标,我不知道是什么问题...
我必须在我的 Android 应用程序中实现一个自定义的 PDF 查看器,我已经实现了这个:
https://github.com/barteksc/AndroidPdfViewer
要打开我的 pdf,我使用了这个功能:
/* Load PDF in the activity */
private void openPDF(){
File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +"/Download/verbale.pdf");
PDFView pdfView = (PDFView) findViewById(R.id.pdfView);
pdfView.fromFile(file)
.defaultPage(0)
.enableAnnotationRendering(true)
.onLoad(this)
.onPageChange(this)
.scrollHandle(new DefaultScrollHandle(this))
.load();
}
Run Code Online (Sandbox Code Playgroud)
PDF 已正确呈现,但现在我需要在滚动期间获取页面的页码。
我怎么能做到这一点?
我试过用这个:
pdfView.getCurrentPage()
pdfView.getPageCount()
Run Code Online (Sandbox Code Playgroud)
但不是它不起作用......
解决方案
@Override
public void loadComplete(int nbPages) {
totalPages = nbPages;
}
@Override
public void onPageChanged(int page, int pageCount) {
//Page contains che current page
}
Run Code Online (Sandbox Code Playgroud)