Click here to Skip to main content
15,889,849 members
Home / Discussions / Android
   

Android

 
GeneralRe: Android - Information leakage flaw OutputStream Pin
Richard MacCutchan21-Sep-16 3:37
mveRichard MacCutchan21-Sep-16 3:37 
QuestionInvestigate Which App controls Infrared???? Pin
Member 127177612-Sep-16 13:54
Member 127177612-Sep-16 13:54 
JokeRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan2-Sep-16 21:10
mveRichard MacCutchan2-Sep-16 21:10 
GeneralRe: Investigate Which App controls Infrared???? Pin
Member 127177613-Sep-16 6:16
Member 127177613-Sep-16 6:16 
GeneralRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan3-Sep-16 6:29
mveRichard MacCutchan3-Sep-16 6:29 
GeneralRe: Investigate Which App controls Infrared???? Pin
Member 127177613-Sep-16 8:51
Member 127177613-Sep-16 8:51 
GeneralRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan3-Sep-16 20:40
mveRichard MacCutchan3-Sep-16 20:40 
GeneralRe: Investigate Which App controls Infrared???? Pin
Member 1235809720-Sep-16 23:52
Member 1235809720-Sep-16 23:52 
well i tried to brief my question but people here are more interested in attacking personally then discussing issues
here i put some more code to make users understand the issue,
     Bitmap bitmap = null;
     Uri uri = null;
     if (destType == FILE_URI || destType == NATIVE_URI) {
            if (this.saveToPhotoAlbum) {
                Uri inputUri = getUriFromMediaStore();
                try {
                   
                    uri = Uri.fromFile(new File(FileHelper.getRealPath(inputUri, this.cordova)));

                } catch (NullPointerException e) {
                    uri = null;
                }
            } else {
                uri = Uri.fromFile(new File(getTempDirectoryPath(), System.currentTimeMillis() + ".jpg"));
            }

            if (uri == null) {
                this.failPicture("Error capturing image - no media storage found.");
                return;
            }

            // If all this is true we shouldn't compress the image.
            if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 &&
                    !this.correctOrientation) {
                writeUncompressedImage(uri);

                this.callbackContext.success(uri.toString());
            } else {
                bitmap = getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toString()));

                if (rotate != 0 && this.correctOrientation) {
                    bitmap = getRotatedBitmap(rotate, bitmap, exif);
                }

//i get warning for below line i.e OutputStream os....... 
                try (OutputStream os = this.cordova.getActivity().getContentResolver().openOutputStream(uri)) {

                    bitmap.compress(Bitmap.CompressFormat.JPEG, this.mQuality, os);

                }

GeneralRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan21-Sep-16 1:59
mveRichard MacCutchan21-Sep-16 1:59 
GeneralI need some intermediate/advance android books to futhur increase my knowledge? Pin
Member 118283651-Sep-16 19:43
Member 118283651-Sep-16 19:43 
GeneralRe: I need some intermediate/advance android books to futhur increase my knowledge? Pin
Richard MacCutchan1-Sep-16 21:10
mveRichard MacCutchan1-Sep-16 21:10 
SuggestionRe: I need some intermediate/advance android books to futhur increase my knowledge? Pin
David Crow2-Sep-16 16:09
David Crow2-Sep-16 16:09 
QuestionRealize multipage app Pin
Andy_Bell1-Sep-16 12:14
Andy_Bell1-Sep-16 12:14 
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 

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.