RSS订阅优然探索
你的位置:首页 » 未分类
未分类

利用FFmpeg玩转Android视频录制与压缩(三)

利用FFmpeg玩转Android视频录制与压缩(三)

 

请尊重原创,转载请注明出处http://blog.csdn.net/mabeijianxi/article/details/73011313

前言

上一回说到啊,这千秋月没是佳人离别,时逢枯枝落旧城,却待新兰满长街,战场上还未至瑞雪,各位看官不好意思,今日帝都又雾霾,来听小老二说书的别忘了加个口罩。在利用FFmpeg玩转Android视频录制与压缩(二)中我们基本编写完了所有模块儿代码,但是没有整合在一起,也没有对接Java层,接下来就是干这事。

发布时间:2017年6月16日 标签:

未分类

gradle.properties中文路径的解决方法

gradle.properties中文路径的解决方法

 

=

发布时间:2017年6月16日 标签:

未分类

软件换肤从功能上可以划分三种:

软件换肤从功能上可以划分三种:

 

软件换肤从功能上可以划分三种:

1) 软件内置多个皮肤,不可由用户增加或修改;

发布时间:2016年9月28日 标签:

未分类

总结一下Android中主题(Theme)的正确玩法

总结一下Android中主题(Theme)的正确玩法

 

总结一下Android中主题(Theme)的正确玩法

在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的父主题就各有不同了,你也可以从这个位置来自己修改主题,此文章主要就是来讨论这个主题如何修改。

发布时间:2016年9月28日 标签:

未分类

修改Android的plus版本可以解决以下问题

修改Android的plus版本可以解决以下问题

 

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

发布时间:2016年9月18日 标签:

未分类

Android进行RSA加密

Android进行RSA加密

 

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())}
}

发布时间:2016年9月14日 标签:

未分类

Android调用腾讯地图的关键问题记录

Android调用腾讯地图的关键问题记录

 1.调用附件检索的时候,限制1秒只能并发5次;因为这个接口一次最大只能返回20条,你想要100条,只能并发搜索,这样可能会超过限制,因此我循环调用4次,获取80条即可;

2.默认的标记可能会有提示,我们需要把提示关闭;方法如下:

.setOnMarkerClickListener(TencentMap.OnMarkerClickListener() {    (Marker marker) {        }
})

3.在视图显示状态变化过程中,我们可以调用移动标记功能,让居中显示的标记跟着地图移动;当然,有的时候,如果移动速度过快,这个onCameraChange无法知道目标位置,你需要在onCameraChangeFinish回调后移动标记到目标位置。

发布时间:2016年9月14日 标签:

未分类

Android 文件上传

Android 文件上传

 

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;

发布时间:2016年9月2日 标签:

未分类

Android开源库集锦

Android开源库集锦

 

一、兼容类库

  1. ActionBarSherlock : Action Bar是Android 3.0后才开始支持的,ActionBarSherlock是让Action Bar功能支持2.X后的所有平台,而且他会自动的判断是调用原生Action Bar还是使用扩展ActionBar。在我的小熊词典里有用到这个库,而且很多非常知名的App也在使用这个库。GitHub Official ActionBar科普

发布时间:2016年8月27日 标签:

未分类

CSDN

CSDN

发布时间:2016年8月27日 标签:

«12345678910»