Question

4. coverURL: String - A URL to the image representing the book cover

in android studio how to have a URL represent an image?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
URL url = new URL("REQUIERD IMAGE"); Bitmap bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream()); imageView.setImageBitmap(bmp);

THIS WIL LET HAVE THE URL  REPRESENT AN IMAGE

FOR ANY QUERIES PLS COMMENT BELOW

GIVE ATHUMBS UP :)

Add a comment
Know the answer?
Add Answer to:
in android studio how to have a URL represent an image? 4. coverURL: String - A...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Have 4 buttons in android studio and a picture.

    Have 4 buttons in android studio and a picture.

  • On Android studio, how to call a phone number from a button? Like when the user...

    On Android studio, how to call a phone number from a button? Like when the user click on a buttom on the aplication, it direct him to a phone call thanks

  • Please use JAVA IN ANDROID STUDIO. thanks so much its really appreciated. 6.1.1 Steps to Follow...

    Please use JAVA IN ANDROID STUDIO. thanks so much its really appreciated. 6.1.1 Steps to Follow 1. Add a Jaea library to the Android project created in Step #1. For more details about how 2 In the Java libeary you just created, you are required to implement the classas that are 3. You ean implement additional Java elaes if you judge noccssry to ereate a Java Library in Androd Studio, refer to Lab 3 that you did in class depicted...

  • how to solve this issue with line of code on android studio java bluetooth connection. Android...

    how to solve this issue with line of code on android studio java bluetooth connection. Android Manifestxml | MainAcIM Java A L LIVILY_Malli. private static final int REQUEST ENABLE BT = 0; private static final int REQUEST DISCOVER BT = 1 TextView mStatusBlueTv, PairedTv; ImageView mBlueIv; Button monBtn, moffBtn, nDiscoverBtn, mPaired 1 BluetoothAdapter mBlueAdapter; -- EA @Override protected void onoreate (Bundle savedInstanceState super.oncreate (savedInstanceState) -- main= Cannot resolve method 'onCreate(android.os.Bundle) mStatusblue'lv = mStatusBluelv.rindViewById(R. m PairedTy = Pairedtv. findViewById(R.id.p mBluelv =...

  • In Android Studio, how can I make a shape change color based on information read from...

    In Android Studio, how can I make a shape change color based on information read from a database? (Java and xml code would be most helpful)

  • How to modify a color image to remove lightness factor from an image. Using visual studio...

    How to modify a color image to remove lightness factor from an image. Using visual studio c++ code. What are possible applications of what you have done, and why we might need to remove luminosity channel from the image.

  • Can anyone please help me create this structure with buttons in java, android studio? 1 2 3 4 Hello world 6 7 1...

    Can anyone please help me create this structure with buttons in java, android studio? 1 2 3 4 Hello world 6 7 1 2 3 4 Hello world 6 7

  • I should show tables with info after clicking on the buttons in Android Studio. I still...

    I should show tables with info after clicking on the buttons in Android Studio. I still can not get what I should write inside OnClick function and how to use containers for printing tables. Please help me! import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.os.Bundle; import android.text.Layout; import android.view.LayoutInflater; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.TextView; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { LinearLayout container; ListView ListView1; ListView ListView2; ListView ListView3; @Override protected void onCreate(Bundle savedInstanceState)...

  • (Android Studio) Create a camera app that allows the user to upload a picture from their...

    (Android Studio) Create a camera app that allows the user to upload a picture from their phone camera gallery, see the picture via summary page, and edit the picture as well. Clicking on "Insert picture here from camera photo gallery" in the add page will allow the user to upload a picture from their existing camera photo gallery on their phone. The user can choose where to save the picture, starting with Picture 1-5. Once they choose where to save...

  • In Android Studio, I just can't find the errors to this problem, I have the following...

    In Android Studio, I just can't find the errors to this problem, I have the following code written down, what I need is just how to make a direct route/directions between 2 specific coordinates, specifically I need the coordinates (34.782, -86.569) to have a direct route to (34.781, -86.571) thank you Here is Code: package com.example ------ import android.support.v4.app.FragmentActivity; import android.os.Bundle; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.MarkerOptions; public class MapsActivity extends FragmentActivity implements OnMapReadyCallback...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT