N
N
NapoleonJan2020-02-25 06:38:25
Android
NapoleonJan, 2020-02-25 06:38:25

Android Studio problem inserting image with 10000 x 1700 resolution, how to insert?

Why doesn't it start when I launch the application? I actually found a finished project on the Internet, I'm trying to make it myself. So, the essence of the application is that you can download huge pictures with a resolution of 10,000 x 1,700, not from the Internet, but from the local area. I inserted a photo with this resolution and the application does not start, says the application has crashed. After that, I inserted a photo with a lower resolution and it works. And how do I then insert a huge photo so that it works?

package com.example.laksjf;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.diegocarloslima.byakugallery.lib.TileBitmapDrawable;
import com.diegocarloslima.byakugallery.lib.TouchImageView;

import java.io.InputStream;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TouchImageView myImage = (TouchImageView) findViewById(R.id.image);
        InputStream is = getResources().openRawResource(R.raw.lok);
        TileBitmapDrawable.attachTileBitmapDrawable(myImage, is, null, null);
    }
}

5e54969759697967075835.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2020-03-09
@DragonSpirit

You can try Glide, but I'm not sure that even he stole such a huge picture

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question