Click here to Skip to main content
15,845,785 members
Home / Discussions / Android
   

Android

 
GeneralRe: Android - Information leakage flaw OutputStream Pin
Richard MacCutchan21-Sep-16 4:37
mveRichard MacCutchan21-Sep-16 4:37 
QuestionInvestigate Which App controls Infrared???? Pin
Member 127177612-Sep-16 14:54
Member 127177612-Sep-16 14:54 
JokeRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan2-Sep-16 22:10
mveRichard MacCutchan2-Sep-16 22:10 
GeneralRe: Investigate Which App controls Infrared???? Pin
Member 127177613-Sep-16 7:16
Member 127177613-Sep-16 7:16 
GeneralRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan3-Sep-16 7:29
mveRichard MacCutchan3-Sep-16 7:29 
GeneralRe: Investigate Which App controls Infrared???? Pin
Member 127177613-Sep-16 9:51
Member 127177613-Sep-16 9:51 
GeneralRe: Investigate Which App controls Infrared???? Pin
Richard MacCutchan3-Sep-16 21:40
mveRichard MacCutchan3-Sep-16 21:40 
GeneralRe: Investigate Which App controls Infrared???? Pin
Member 1235809721-Sep-16 0:52
Member 1235809721-Sep-16 0: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 2:59
mveRichard MacCutchan21-Sep-16 2:59 
GeneralI need some intermediate/advance android books to futhur increase my knowledge? Pin
Member 118283651-Sep-16 20:43
Member 118283651-Sep-16 20:43 
GeneralRe: I need some intermediate/advance android books to futhur increase my knowledge? Pin
Richard MacCutchan1-Sep-16 22:10
mveRichard MacCutchan1-Sep-16 22:10 
SuggestionRe: I need some intermediate/advance android books to futhur increase my knowledge? Pin
David Crow2-Sep-16 17:09
David Crow2-Sep-16 17:09 
QuestionRealize multipage app Pin
Andy_Bell1-Sep-16 13:14
Andy_Bell1-Sep-16 13:14 
AnswerRe: Realize multipage app Pin
Afzaal Ahmad Zeeshan4-Sep-16 1:43
professionalAfzaal Ahmad Zeeshan4-Sep-16 1:43 
QuestionWant to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
utkarsh.incarnate26-Aug-16 20:48
utkarsh.incarnate26-Aug-16 20: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 22:04
mveRichard MacCutchan26-Aug-16 22: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 13:53
Member 1016528829-Aug-16 13: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 17:36
David Crow29-Aug-16 17: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 22:09
Utkarsh Joshi 13-Sep-16 22: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 21:59
Utkarsh Joshi 13-Sep-16 21:59 
QuestionProblem with custom row in List View Pin
Andy_Bell26-Aug-16 10:38
Andy_Bell26-Aug-16 10:38 
QuestionRe: Problem with custom row in List View Pin
David Crow26-Aug-16 11:02
David Crow26-Aug-16 11:02 
AnswerRe: Problem with custom row in List View Pin
Andy_Bell26-Aug-16 11:50
Andy_Bell26-Aug-16 11:50 
SuggestionRe: Problem with custom row in List View Pin
David Crow26-Aug-16 16:29
David Crow26-Aug-16 16:29 
QuestionHow download picture Pin
Andy_Bell25-Aug-16 13:21
Andy_Bell25-Aug-16 13: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.