Answer the question
In order to leave comments, you need to log in
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);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question