Bug? DocumentInteraction problem opening images

n3t

Member
Licensed User
Longtime User
I tried the example from the tutorial but I can not in any way to open DocumentInteraction.
I have to set some other parameter?

PS: with a png or jpg file I get NO error but DocumentInteraction dosen't start.
With a pdf file _I get this error:

Application_Start
Application_Active
LaunchServices: invalidationHandler called
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x156d68e0 V:[UIView:0x156ccc80(>=44)]>",
"<NSLayoutConstraint:0x156d6800 V:|-(0)-[UIView:0x156ccc80] (Names: '|':UIView:0x15690640 )>",
"<NSLayoutConstraint:0x156d6860 V:[UICollectionView:0x158c9c00]-(0)-| (Names: '|':UIView:0x156ccc80 )>",
"<NSLayoutConstraint:0x156d6650 UIView:0x15690640.height == UIView:0x156905d0.height>",
"<NSLayoutConstraint:0x156d7090 _UIAlertControllerView:0x156d2180.height == UIView:0x156905d0.height>",
"<NSLayoutConstraint:0x156ed690 _UIAlertControllerView:0x156d2180.height == UIView:0x156c12e0.height>",
"<NSLayoutConstraint:0x156f0410 UIView:0x15690640.bottom == UICollectionView:0x158c9c00.bottom>",
"<NSLayoutConstraint:0x156e1f30 'UIView-Encapsulated-Layout-Height' V:[UIView:0x156c12e0(21)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x156d68e0 V:[UIView:0x156ccc80(>=44)]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x156d67d0 V:[UIView:0x15690640(>=44)]>",
"<NSLayoutConstraint:0x156d6650 UIView:0x15690640.height == UIView:0x156905d0.height>",
"<NSLayoutConstraint:0x156d7090 _UIAlertControllerView:0x156d2180.height == UIView:0x156905d0.height>",
"<NSLayoutConstraint:0x156ed690 _UIAlertControllerView:0x156d2180.height == UIView:0x156c12e0.height>",
"<NSLayoutConstraint:0x156e1f30 'UIView-Encapsulated-Layout-Height' V:[UIView:0x156c12e0(21)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x156d67d0 V:[UIView:0x15690640(>=44)]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
 

Attachments

  • di_sample.zip
    2.6 KB · Views: 342
Last edited:

n3t

Member
Licensed User
Longtime User
With this second sample I get error

LaunchServices: invalidationHandler called

but DocumentIteraction open and I can select Ibook.
No way to open an image (tried png and jpg)
 

Attachments

  • di_sample2.zip
    3.5 KB · Views: 336

n3t

Member
Licensed User
Longtime User
Which device are you using?

In the first sample the file was not added to the Files tab.

I Erel.
I use B4i v. 1.8 (registered version), iPhone 1.40 and a Ipad3 with iOS 8.1 as test device.

Can you try di_sample3 (added hello.jpg, hello.png and hello.pdf to files).
Pdf load DI ("LaunchServices: invalidationHandler called" message is OK?).
Images dosen't start DI.

thanks

PS: DI show a mask different from your tutorial (https://www.b4x.com/android/forum/threads/open-local-files-with-external-apps.51941/#content)
 

Attachments

  • di_sample3.zip
    79 KB · Views: 336
  • di.png
    di.png
    45.4 KB · Views: 359
Last edited:

n3t

Member
Licensed User
Longtime User
Update test.
On Ipad Mini 1° version with iOS 7.1.2 DI load any type of file.

Seems a problem / bug with iOS 8.xx or may be that there are not a default app for standard files (.txt, .jpg, .png, .log, .doc, etc.) on a clean Ipad ?

I want to try with a iPhone ...
 
Last edited:
Top