@charset "utf-8";
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body{
color:#000000;
font-family:Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
font-size:13px;
padding:1em;
margin:auto;
max-width:42em;
background:#fefefe;
line-height:25px;
}
上一回说到啊,这千秋月没是佳人离别,时逢枯枝落旧城,却待新兰满长街,战场上还未至瑞雪,各位看官不好意思,今日帝都又雾霾,来听小老二说书的别忘了加个口罩。在利用FFmpeg玩转Android视频录制与压缩(二)中我们基本编写完了所有模块儿代码,但是没有整合在一起,也没有对接Java层,接下来就是干这事。
1) 软件内置多个皮肤,不可由用户增加或修改;
在AndroidManifest.xml文件中有<application android:theme="@style/AppTheme">,其中的@style/AppTheme是引用的res/values/styles.xml 中的主题样式,也有可能是引用的 res/values-v11/styles.xml 或者 res/values-v14/styles.xml,这是根据运行此程序的手机系统来决定的,如果手机系统的API版本是11以上就是v11/styles.xml,以此类推。在values/styles.xml中你会发现AppTheme的主题样式又是继承自AppBaseTheme,而AppBaseTheme的父主题就各有不同了,你也可以从这个位置来自己修改主题,此文章主要就是来讨论这个主题如何修改。
Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to
"15d1beac634bce32a315b0ad7c3040f2104f6d3"
<a href="fixGradleElements">Fix plugin version and sync project</a><br><a href="openFile:I:\Android2016\10NewStudy\LcToolBar\app
com.lc.lcmetting.basic.utilsjava.io.BufferedReaderjava.io.IOExceptionjava.io.InputStreamjava.io.InputStreamReaderjava.math.BigIntegerjava.security.KeyFactoryjava.security.KeyPairjava.security.KeyPairGeneratorjava.security.NoSuchAlgorithmExceptionjava.security.PrivateKeyjava.security.PublicKeyjava.security.interfaces.RSAPrivateKeyjava.security.interfaces.RSAPublicKeyjava.security.spec.InvalidKeySpecExceptionjava.security.spec.PKCS8EncodedKeySpecjava.security.spec.RSAPublicKeySpecjava.security.spec.X509EncodedKeySpecjavax.crypto.Cipherandroid.R.attr.LcRSAUtils { String = String = + + + + + + + [] ([] data) { { PublicKey publicKey = ()Cipher cipher = Cipher.()cipher.init(Cipher.publicKey)cipher.doFinal(data)} (Exception e) { e.printStackTrace()} } KeyPair () { ()} KeyPair (keyLength) { { KeyPairGenerator kpg = KeyPairGenerator.()kpg.initialize(keyLength)kpg.genKeyPair()} (NoSuchAlgorithmException e) { e.printStackTrace()} } [] ([] dataPublicKey publicKey) { { Cipher cipher = Cipher.()cipher.init(Cipher.publicKey)cipher.doFinal(data)} (Exception e) { e.printStackTrace()} } [] ([] encryptedDataPrivateKey privateKey) { { Cipher cipher = Cipher.()cipher.init(Cipher.privateKey)cipher.doFinal(encryptedData)} (Exception e) { } } PublicKey ([] keyBytes) NoSuchAlgorithmExceptionInvalidKeySpecException { X509EncodedKeySpec keySpec = X509EncodedKeySpec(keyBytes)KeyFactory keyFactory = KeyFactory.()PublicKey publicKey = keyFactory.generatePublic(keySpec)publicKey} PrivateKey ([] keyBytes) NoSuchAlgorithmExceptionInvalidKeySpecException { PKCS8EncodedKeySpec keySpec = PKCS8EncodedKeySpec(keyBytes)KeyFactory keyFactory = KeyFactory.()PrivateKey privateKey = keyFactory.generatePrivate(keySpec)privateKey} PublicKey (String modulusString publicExponent) NoSuchAlgorithmExceptionInvalidKeySpecException { BigInteger bigIntModulus = BigInteger(modulus)BigInteger bigIntPrivateExponent = BigInteger(publicExponent)RSAPublicKeySpec keySpec = RSAPublicKeySpec(bigIntModulusbigIntPrivateExponent)KeyFactory keyFactory = KeyFactory.()PublicKey publicKey = keyFactory.generatePublic(keySpec)publicKey} PrivateKey (String modulusString privateExponent) NoSuchAlgorithmExceptionInvalidKeySpecException { BigInteger bigIntModulus = BigInteger(modulus)BigInteger bigIntPrivateExponent = BigInteger(privateExponent)RSAPublicKeySpec keySpec = RSAPublicKeySpec(bigIntModulusbigIntPrivateExponent)KeyFactory keyFactory = KeyFactory.()PrivateKey privateKey = keyFactory.generatePrivate(keySpec)privateKey} PublicKey (String publicKeyStr) Exception { { [] buffer = Base64Utils.(publicKeyStr)KeyFactory keyFactory = KeyFactory.()X509EncodedKeySpec keySpec = X509EncodedKeySpec(buffer)(RSAPublicKey) keyFactory.generatePublic(keySpec)} (NoSuchAlgorithmException e) { Exception()} (InvalidKeySpecException e) { Exception()} (NullPointerException e) { Exception()} } PrivateKey (String privateKeyStr) Exception { { [] buffer = Base64Utils.(privateKeyStr)PKCS8EncodedKeySpec keySpec = PKCS8EncodedKeySpec(buffer)KeyFactory keyFactory = KeyFactory.()(RSAPrivateKey) keyFactory.generatePrivate(keySpec)} (NoSuchAlgorithmException e) { Exception()} (InvalidKeySpecException e) { Exception()} (NullPointerException e) { Exception()} } PublicKey (InputStream in) Exception { { ((in))} (IOException e) { Exception()} (NullPointerException e) { Exception()} } PrivateKey (InputStream in) Exception { { ((in))} (IOException e) { Exception()} (NullPointerException e) { Exception()} } String (InputStream in) IOException { BufferedReader br = BufferedReader(InputStreamReader(in))String readLine = StringBuilder sb = StringBuilder()((readLine = br.readLine()) != ) { (readLine.charAt() == ) { } { sb.append(readLine)sb.append()} } sb.toString()} (PublicKey publicKey) { RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKeySystem..println()System..println(+ rsaPublicKey.getModulus().bitLength())System..println(+ rsaPublicKey.getModulus().toString())System..println(+ rsaPublicKey.getPublicExponent().bitLength())System..println(+ rsaPublicKey.getPublicExponent().toString())} (PrivateKey privateKey) { RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKeySystem..println()System..println(+ rsaPrivateKey.getModulus().bitLength())System..println(+ rsaPrivateKey.getModulus().toString())System..println(+ rsaPrivateKey.getPrivateExponent().bitLength())System..println(+ rsaPrivateKey.getPrivateExponent().toString())} }
1.调用附件检索的时候,限制1秒只能并发5次;因为这个接口一次最大只能返回20条,你想要100条,只能并发搜索,这样可能会超过限制,因此我循环调用4次,获取80条即可;
2.默认的标记可能会有提示,我们需要把提示关闭;方法如下:
.setOnMarkerClickListener(TencentMap.OnMarkerClickListener() { (Marker marker) { } })
3.在视图显示状态变化过程中,我们可以调用移动标记功能,让居中显示的标记跟着地图移动;当然,有的时候,如果移动速度过快,这个onCameraChange无法知道目标位置,你需要在onCameraChangeFinish回调后移动标记到目标位置。
package com.example.android_upload;
import java.io.File;
import org.apache.http.Header;
import org.apache.http.client.params.ClientPNames;
import android.app.Activity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.Toast;