I'm doing an exercise where I connect my application with an external database, I can retrieve text stored in a MySQL database, I have a field called a photo, it's a "varchar" and there I store a URL on it. problem is that when I load the image...
I've been browsing the API of android for a while trying to understand the function of BitmapFactory .
At what times am I supposed to use BitmapFactory , and why?
I am working on android and I want to create a white bitmap from an array of bytes but I do not know how it is done, for the moment I have tried this
byte[] bytes = new byte[10000];
for (int i=0;i<bytes.length;i++){
b[i]= 0 &...
I have an application in development where I upload an image to an external server.
My problem is: if the user has a cell phone with a good resolution camera, the images have a large size ... and they are not shown in the ImageView, nor are t...
I found on this page a code from a listview with images:
link
I need to work with bitmap type, I changed everything from the int [] type to Bitmap [] . The result is the following:
public class MainActivity extends AppCompatActivity {
Li...
I have the code to add an image in an imageview:
try {
Glide.with(imagen.getContext())
.load(item.getIdImagen())
//.transform(new GestorImagenes(context, 90f))
.into(imagen);...
I'm trying to load an image from the internal memory using the Glide library but it seems impossible.
imagePath="/storage/emulated/0/Pictures/IMG-20161029-WA0025.jpg"
This is the simplest code but it does not work.
public class MainActivi...
I wanted to know why I get this error when trying to put a background image in a form of windows form. I have seen like 3 tutorials where they put the same code and it does not give them error, I would really appreciate if someone could help me....
I try to convert a bitmap file in android, to an array of bytes and then pass it to a web service asmx, and since it is saved in a sql database, but I get compatibility error, would anyone know how I can do it?
I try to put a Background in the app, something very simple to learn the use of canvas and bitmaps
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Win...