external

opening a file keeps failing in android file chooser

折月煮酒 提交于 2020-04-21 03:44:32
问题 I am trying to open and read file that was been saved either on the sdCard or on the google drive or on the internal memory by using the android file chooser ... after I successfully chosen the file and I get the file path as shown on the following code when I try to read it it keeps throwing me the that the file does not exist / no such file or directory .... my code: public class MainActivity extends AppCompatActivity { private static final int CHOOSE_FILE_REQUEST_CODE = 1; String[] ids;

External CSS images won't load

為{幸葍}努か 提交于 2020-04-19 05:47:49
问题 Good day. My structure is like this: / index.html style/ main.css images/ test/ test.html /style/main.css says something like this: body { background-image: url('/images/SomeImage.png'); background-color: #000; } /index.html has a link to this CSS file, but, as the title says, no image will load. But it's connected though, cause the background is actually black, so the rest of the style (but images) does work. Also, if I write the same style internally into /index.html the background will

Can I pass parameters from and external .swf using Actionscript 3.0?

不问归期 提交于 2020-01-25 20:51:21
问题 I have a main .fla file that I am using to load a sequence of three games. If the user wins a game, they go on to the next game. Is it in any way possible to pass to the main project whether the user has won the game? I have tried using loader.content, but that does not seem to be working. I am using Flash CS3. 回答1: You can pass data to and from loaded swfs no problem. What it sounds like you are trying to do is communicate from the loaded swf to the loading swf. The ideal way to do this is

Java create standalone jar with external jars

柔情痞子 提交于 2020-01-25 03:21:45
问题 I developed two .jar for my application (LOG.jar and STRING.jar). I use these jar, with import in .java : import LOG.CLog import STRING.CString It's OK. But .jar is increasing in my project, so I would like to create only one .jar which includes all .jar developed. So I tried this by creating the only one .jar (named TOOLS.jar) : jar.exe cvmf MANIFEST.MF TOOLS.jar TOOLS\LOG.jar TOOLS\STRING.jar But, if I put only TOOLS.jar file in my application compilation (Java build path in Eclipse), I get

Android external storage

浪尽此生 提交于 2020-01-24 12:34:05
问题 I'm using method Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC) to get the default directory my Android device saves its music to. The directory returned by this method exists(something like sdcard/music), but it doesn't have any music files. When I checked my sdcard I found all the music files are instead stored in another directory named by one of my applications(sdcard/qqmusic/song), which cannot be found using the getExternalStoragePublicDirectory method. In

Loading external Swf - sandbox violation

丶灬走出姿态 提交于 2020-01-23 19:55:11
问题 I need a help ... an urgent one !!! I tried so hard to figured it out .. but I couldn't .. so I appreciate your help so much .. I'm developing an Air App using flash ... the app loads an external SWF file dynamically through an xml ... the SWF file has a movieclip that has a listener (ON click ) function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest(clickURL)); } Everything is working fine until I click on this movieclip ... it displays the below message SecurityError

Loading external Swf - sandbox violation

折月煮酒 提交于 2020-01-23 19:55:08
问题 I need a help ... an urgent one !!! I tried so hard to figured it out .. but I couldn't .. so I appreciate your help so much .. I'm developing an Air App using flash ... the app loads an external SWF file dynamically through an xml ... the SWF file has a movieclip that has a listener (ON click ) function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest(clickURL)); } Everything is working fine until I click on this movieclip ... it displays the below message SecurityError

iOS Open Document with External App from UIWebVIew

隐身守侯 提交于 2020-01-23 01:38:09
问题 I have a UIWebView . When a link which contains a document is clicked, I want to open that document in a external app (office, openoffice, etc) but not inside the UIWebView . I know how to do it for emails: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if ([[[request URL] scheme] isEqual:@"mailto"]) { [[UIApplication sharedApplication] openURL:[request URL]]; return NO; } return YES; } Is there

Load external Javascript on function call

耗尽温柔 提交于 2020-01-22 19:30:08
问题 I would like to know how to load an external Javascript into my document from a function. 回答1: This is one way: function loadDaFun() { var script = document.createElement('script'); script.src = '/path/to/your/script.js'; var head = document.getElementsByTagName("head")[0]; head.appendChild(script); } 回答2: The @seth's answer is completely right, but you don't need to leave the inserted script element on the DOM, you can remove it just after it is loaded, and also you might want to know when

How to catch a moment when the external editor of TOLEContainer has been closed?

你。 提交于 2020-01-22 02:03:52
问题 Borland Developer Studio 2006, Delphi: I have a TOLEContainer object with AllowInPlace=False. When the external editor is closed and changed my OLE object I have to do something with this OLE object inside TOLeContainer. The problem is I can't catch a moment when the external editor is closed. OnDeactivate event is not working. Probably I should change the source code of TOLEContainer adding this event myself, but I don't know where is the best place for it. Can you advice some method? 回答1: A