Click here to Skip to main content
15,668,923 members
Home / Discussions / Android
   

Android

 
AnswerRe: Realize multipage app Pin
Afzaal Ahmad Zeeshan4-Sep-16 0:43
professionalAfzaal Ahmad Zeeshan4-Sep-16 0:43 
QuestionWant to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
utkarsh.incarnate26-Aug-16 19:48
utkarsh.incarnate26-Aug-16 19:48 
QuestionRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Richard MacCutchan26-Aug-16 21:04
mveRichard MacCutchan26-Aug-16 21:04 
AnswerRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Member 1016528829-Aug-16 12:53
Member 1016528829-Aug-16 12:53 
QuestionRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
David Crow29-Aug-16 16:36
David Crow29-Aug-16 16:36 
GeneralRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Utkarsh Joshi 13-Sep-16 21:09
Utkarsh Joshi 13-Sep-16 21:09 
AnswerRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Utkarsh Joshi 13-Sep-16 20:59
Utkarsh Joshi 13-Sep-16 20:59 
QuestionProblem with custom row in List View Pin
Andy_Bell26-Aug-16 9:38
Andy_Bell26-Aug-16 9:38 
QuestionRe: Problem with custom row in List View Pin
David Crow26-Aug-16 10:02
David Crow26-Aug-16 10:02 
AnswerRe: Problem with custom row in List View Pin
Andy_Bell26-Aug-16 10:50
Andy_Bell26-Aug-16 10:50 
SuggestionRe: Problem with custom row in List View Pin
David Crow26-Aug-16 15:29
David Crow26-Aug-16 15:29 
QuestionHow download picture Pin
Andy_Bell25-Aug-16 12:21
Andy_Bell25-Aug-16 12:21 
Good evening.

I try to download picture form url and insert in Image View. I use this code to do it:

public Bitmap getBitmapFromURL(String src) {
        Bitmap myBitmap = null;
        try {
            java.net.URL url = new java.net.URL(src);
            HttpURLConnection connection =    (HttpURLConnection) url
                    .openConnection();
            connection.setDoInput(true);
            connection.connect();
            InputStream input = connection.getInputStream();
            myBitmap = BitmapFactory.decodeStream(input);
            return myBitmap;
        } catch (IOException e) {
            e.printStackTrace();
            return null;
        }
    }


I just want to ask you, there is problem to do so, or is it inefficient?
Closing this application, remains the downloaded picture remains in memory?
If I want to free memory resource, how can I cancel this files (accumulated in time)?
AnswerRe: How download picture Pin
Richard MacCutchan25-Aug-16 20:45
mveRichard MacCutchan25-Aug-16 20:45 
GeneralRe: How download picture Pin
Andy_Bell25-Aug-16 23:25
Andy_Bell25-Aug-16 23:25 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 0:02
mveRichard MacCutchan26-Aug-16 0:02 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 3:35
Andy_Bell26-Aug-16 3:35 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 3:45
mveRichard MacCutchan26-Aug-16 3:45 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 4:35
Andy_Bell26-Aug-16 4:35 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 4:40
mveRichard MacCutchan26-Aug-16 4:40 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 5:12
Andy_Bell26-Aug-16 5:12 
SuggestionRe: How download picture Pin
David Crow26-Aug-16 7:03
David Crow26-Aug-16 7:03 
Questionandroid: Using Global Multidimensional array variable in CustomView Pin
Member 984019022-Aug-16 18:32
Member 984019022-Aug-16 18:32 
AnswerRe: android: Using Global Multidimensional array variable in CustomView Pin
Richard MacCutchan22-Aug-16 22:12
mveRichard MacCutchan22-Aug-16 22:12 
PraiseRe: android: Using Global Multidimensional array variable in CustomView Pin
Member 984019023-Aug-16 17:58
Member 984019023-Aug-16 17:58 
QuestionRe: android: Using Global Multidimensional array variable in CustomView Pin
David Crow24-Aug-16 3:38
David Crow24-Aug-16 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.