小编Shi*_*ade的帖子

如何从.so文件中提取C源代码?

我正在研究以前开发的软件,源代码编译为linux共享库(.so),源代码不存在.有没有可以从linux共享库中提取源代码的工具?

谢谢,拉维

c linux decompiling extract shared-libraries

16
推荐指数
3
解决办法
5万
查看次数

Android将图片旋转90度(由相机拍摄)

我在代码中使用三星Galaxy SII设备拍照.保存并在屏幕上显示后,我看到它旋转了90度.

我知道这是一些设备问题 - 它不会发生在所有设备上.

我正在拍照给定的相机意图并将其保存在onActivityResult函数中.

我环顾四周,但没有找到一个可靠的解决方案.

任何想法如何才能找到问题并仅在"有问题"的设备上将其旋转回来?

android

14
推荐指数
1
解决办法
3万
查看次数

如何在android中的触摸事件上获取图像的点(或像素)的颜色

我想获得我将在Android中触摸图像的点或像素的颜色.我在网上搜索了很多,却一无所获.请有人帮帮我.

android image pixel colors imageview

14
推荐指数
1
解决办法
2万
查看次数

如何在Android Studio中转到上次编辑位置

如何在android studio中最后编辑位置?

单击工具栏中的后退箭头可使您在导航历史记录中移动.

但我想在我的编辑历史中旅行,即浏览我在代码中所做的最后一次更改.

为此,Eclipse上有一个带有星号的后箭头.

这个箭头在Eclipse中也存在

history android edit back android-studio

13
推荐指数
4
解决办法
3601
查看次数

而不是预览,Android Studio只显示黑屏,上面写着'android ... ActionBarOverlayLayout'

从几天开始,我无法看到屏幕/布局的预览/设计.只显示一个带有android的黑色屏幕... ActionBarOverlayLayout写在上面.在此输入图像描述

logcat中没有错误或异常.在运行项目后,设备上没有问题.仅Android Studio中的预览和设计选项卡显示黑屏.

在一些Android Studio和构建工具更新(自动发生)之后,每个布局都会发生这种情况

注意:如果我在预览中更改主题(编辑器中的主题),则有时会显示预览,但这是非常奇怪的预览,不能用于开发

android preview android-layout android-studio

12
推荐指数
4
解决办法
9521
查看次数

如何更改警报对话框标题分隔符颜色android

我想在警告对话框中设置样式或更改标题标题的分隔颜色.我搜索这个问题,我想很多人都在寻找这个.但我仍然无法找到正确的解决方案.我想改变以下内容. 蓝色标题分隔符

android styles dialog colors android-alertdialog

11
推荐指数
2
解决办法
2万
查看次数

错误:任务':app:prepareDebugAndroidTestDependencies'的执行失败.>依赖性错误.请参阅控制台了解详情

在此输入图像描述错误:任务':app:prepareDebugAndroidTestDependencies'的执行失败.

依赖性错误.请参阅控制台了解详情

在app.gradle文件中添加以下依赖项后 -

androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
// add this for intent mocking support
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
// add this for webview testing support
androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.2'
Run Code Online (Sandbox Code Playgroud)

控制台日志 -

信息:Gradle任务[:app:clean,:app:generateDebugSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources,:app:assembleDebug]警告:与依赖项冲突'com.android.support:support-annotations ".app(25.0.0)和测试app(23.1.1)的已解决版本有所不同.有关详细信息,请参阅http://g.co/androidstudio/app-test-app-conflict.错误:任务':app:prepareDebugAndroidTestDependencies'的执行失败.

依赖性错误.请参阅控制台了解详情 信息:BUILD FAILED信息:总时间:28.459秒信息:1错误信息:1警告信息:在控制台中查看完整输出

android gradle build.gradle android-gradle-plugin android-espresso

11
推荐指数
2
解决办法
2万
查看次数

android中从java中获取图像时android中的java.lang.OutOfMemoryError

我正在使用代码从图库中选择一张图片

 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gallery);

        Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

        startActivityForResult(i, SELECT_PICTURE);
    }


    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        if (requestCode == SELECT_PICTURE && resultCode == RESULT_OK && null != data) {
            Uri selectedImage = data.getData();
            String[] filePathColumn = { MediaStore.Images.Media.DATA };

            Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null, null, null);
            cursor.moveToFirst();

            int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
            picturePath = cursor.getString(columnIndex);
            cursor.close();

            Log.v("picturePath", "picturePath: " + picturePath);
            Bitmap bitmap = BitmapFactory.decodeFile(picturePath);

            Intent intentUpload = new Intent(GalleryActivity.this, …
Run Code Online (Sandbox Code Playgroud)

android image-capture bitmap out-of-memory android-intent

8
推荐指数
2
解决办法
2万
查看次数

参见导航抽屉预览

我正在Android Studio中设计原生导航抽屉.我在预览中看不到抽屉,因为它位于活动的左侧,超出预览范围.现在我正在使用testlayout.xml文件来查看我的更改,但很多时候我忘记将它们复制粘贴到正确的活动中.有没有办法预览抽屉布局?

android preview android-studio navigation-drawer drawerlayout

8
推荐指数
3
解决办法
5625
查看次数

当来自PreferenceActivity的android的isValidFragment()被调用时?

对于我工作的某些应用程序,对于API级别为19的设备,我会遇到异常

Caused by: java.lang.RuntimeException: Subclasses of PreferenceActivity must override isValidFragment(String) to verify that the Fragment class is valid! com... has not checked if fragment com...$. is valid.
Run Code Online (Sandbox Code Playgroud)

然后,我发现对于那些应用程序,android框架protected boolean isValidFragment(String fragmentName)被调用,它有代码

if (getApplicationInfo().targetSdkVersion  >= android.os.Build.VERSION_CODES.KITKAT) {
        throw new RuntimeException(
                "Subclasses of PreferenceActivity must override isValidFragment(String)"
                + " to verify that the Fragment class is valid! " + this.getClass().getName()
                + " has not checked if fragment " + fragmentName + " is valid.");
    } else {
        return true;
} …
Run Code Online (Sandbox Code Playgroud)

sdk android exception android-fragments android-activity

7
推荐指数
3
解决办法
6525
查看次数