w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I can't open local files from Filesystem API on my Android phone
I have just tested this on Stable, Beta. And it kind of works. Stable (27) has a problem where it can't download client generated files. For example if you use the a[download] attribute you will see that it opens up the downloader but just sits there doing nothing. In the Beta (28) everything works as expected, so I would expect your pdf to also save. I simplified your code here: http://jsbin.com/opavet/latest which works for both links on Beta. But only the later on stable.

Categories : Android

How to open android phone internal memory mmcblk0 in read mode using open()
This is a filesystem special block device. You can read it from inside the system (on the device, in a shell). You can use the Linux command: cat /dev/block/mmcblk0 | gzip > /emmc/copy to copy entire filesystem, compress it with gzip and put in mounted /emmc folder to a file with name "copy". You can choose the folder and filename for the compressed image. And be aware that on 700MHz devices it can take very long (few hours) to read and compress entire filesystem.

Categories : Android

How to open files in compressed format. ZFC
This file format seems to be a proprietary format. It contains no header related to well known archive format so you won't be able to uncompress ti unless you find an RFC-alike documentation. You won't get through it easilysince you'll need binary mapping from Alistair to do so.

Categories : File

Vba open files without extension from folder and save as different format
Your current code is only looking for files that already have the .xlsx extension. Try Dir('*'). If you are just renaming the files then I wouldn't attempt to open them. I would use FileCopy FileCopy source, destination where source and destination are both strings. For example, the following worked for me (on Windows XP): FileCopy "testthis", "testthis.xlsx" You could then use Kill to delete the old file Kill pathname

Categories : Excel

Choose a program that windows will go open files with special format by batch-file
in batch to open files *.xxx with notepad, use assoc .xxx=txtfile (you know, that *.txt opens with notepad and you can peek with assoc .txt) To "un-assoc" use assoc .xxx=

Categories : Java

Multiple sound files not playing on android phone
Most mobile devices require (for HTML5 Audio) direct user interaction and that the call to .play() be called in the same callstack as that interaction. You should be able to call .play() on another audio when one audio triggers its ended event as well.

Categories : Android

Rename files on android rooted phone using script
The folder that abc.mp4 intended to be placed in, is probably Read-only for all users. Use the command ls -l in parent folder to check. If you want the abc.mp4 in the folder, use chmod to change the folder permission first. For example, if the folder is named folder: chmod +wx folder w for write permission, x for execute permission. You can run your script smoothly after the permission change.

Categories : Android

Android: Too many open files error
I think you get this error because you have too many files open at the same times, meaning that you have too many async tasks running in the same time (each async task opens a file), which makes sense if you say that you run a new one every 3 seconds. You should try to limit the number of async task running in the same time using a thread pool executor.

Categories : Android

How to stream MP4 and AAC format files on android over RTSP
VitamioBundle helped me achieve the above. http://www.vitamio.org/en/ Although I have not tested it on many devices, but it works on my Samsung GT-S5830

Categories : Android

Cannot Open Layout Files in Android-Studio
In my situation, I had placed a new folder in my res folder with original non-resized images of my icons and resources in case I want to edit them later. This broke Android Studio in several places. As soon as I moved that folder elsewhere, everything returned to normal.

Categories : Android

Android Looper quits but keeps open files/pipes
@NitroG42 as it turns out someone beat me to it and posted this bug almost a year ago. It is currently assigned to JBQ. You can find the bug report here: http://code.google.com/p/android/issues/detail?id=41645&q=messagequeue&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&

Categories : Android

IntelliJ IDEA doesn't open Android *.xml layout files
This was happening to me as well. I couldn't open any layout XML file, but style files and AndroidManifest.xml opened correctly. I fixed this by disabling the Android Designer plugin in Settings/Plugins/Android Designer. Layout files are opening correctly now! I'm hoping JetBrains will fix the root problem in a future update, but for now this workaround will suffice. (I'm running IntelliJ IDEA 12.1.6 Build #IC-129.1359 on OS X 10.9 Mavericks)

Categories : Android

Android webview: Open embedded files in media player
Found out you can use this code: //enable downloads of files within webView webView.setDownloadListener(new DownloadListener() { public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) { Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); } }); Where "webView" is just the name you gave your browser. And after all those getSettings() Hope this helps.

Categories : Android

Grid : While open FF for perticular node getting an error GridConfigurationException: -browser format browserName-firefox doesn't follow that format
The error message clearly tells you what the problem is: -browser format is key1=value1,key2=value2 browserName-firefox doesn't follow that format. Change the browserName parameter to browserName=firefox. java -jar selenium-server-standalone-2.33.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 5556 -browser browserName=firefox

Categories : Misc

Does files that are created in an android application remain in the phone or do they get deleted when the application closes?
Is my code wrong You are creating a new file each time. Try the version of openFileOutput() that takes the mode parameter, using MODE_APPEND. does the file gets emptied after application is closed? No, it does not.

Categories : Java

how to download files in zip format which are stored in database in binary format
Here's a method I am presently using to add a file to a WinZip archive. You could loop over your list of files and pass each one to this method. I'm sure there's a way to add a list of files at once, or otherwise optimize my approach. /// <summary> /// Add files to a WinZip archive. /// </summary> /// <remarks> /// This uses System.IO.Compression /// </remarks> /// <param name="file_to_archive">Fully-qualified name of file being added to the archive.</param> /// <param name="archive_file">Fully-qualified name of the archive.</param> /// <returns>TRUE on success</returns> public bool AddFileToArchive( string file_to_archive, string archive_file ) { bool retcode = true; //First make sure the archive and the file exist

Categories : C#

Reading a json url file in Android returns blank screen on my phone - nothing's displayed on phone
Try something like this: JSONObject jObj; JSONArray data = null; JSONObject jsonOffer; jObj = new JSONObject(data); data = jObj.getJSONArray("offers"); jsonOffer=data.getJSONObject(0); Hope it Helps!!

Categories : Android

Which files from phpexcel library are necessary to export data into excel2007 format ? I want minimum number of files
If you absolutely have to do this: Remove all locale files except those in the /en subdirectory. Remove all named Readers and Writers and associated subdirectories except those you need (you still need the Abstracts and the Interfaces though). Remove all CachedObjectStorage options except Memory/Icache/CacheBase. Remove Charts if you don't use them. Remove Shared PCLZip, OLE files and Escher.... and hope that I've not miscalculated

Categories : PHP

Open Browser within an iphone app [using Phone-gap]
PhoneGap has the InAppBrowser plugin. You'll just have to attach a handler on your external links that calls preventDefault(), to prevent navigating away from your app, and calls window.open on the target URL.

Categories : Iphone

How to open pdf file in Windows Phone 8?
You have to use the LaunchFileAsync method of Launcher class. Example: // Access the file. StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf"); // Launch the pdf file. Windows.System.Launcher.LaunchFileAsync(pdfFile); You will find more info here: Auto-launching apps using file and URI associations for Windows Phone 8

Categories : Pdf

How do I open a file in Windows Phone 7.1?
I think you r looking for the Microsoft.Phone.Tasks namespace. there is nothing like openFileDialog or any generic file picker in wp7. But it'd be better to choose CameraCaptureTask or PhotoChooserTask for specific tasks. just go with http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks(VS.92).aspx

Categories : C#

Open facebook app from another app Windows phone 8
You can use Facebook SDK They have sdk for c# that support windows 8 and windows phone tutorials

Categories : C#

Windows Phone 8: Open Link in new Tab
While trying to find an answer to this I stumbled across a question that was already answered here on StackExchange. I own a Windows Phone and am a little saddened at the answer. How to open a new window or tab via javascript in windows phone 7 browser NOTE: I realize the question was on Windows Phone 8 and the answer is referring to Windows Phone 7, but I believe the answer is the same.

Categories : Javascript

SMS link to open app that is phone agnostic?
This is a difficult situation with no easy answer unfortunately. Option A) You send a link that points to your server. This link identifies the device based on user agent and then forwards them to the proper sms: link for each platform. Option B) If you know what type of device you are sending the link to beforehand, then you can determine the proper link on the server side before it is sent.

Categories : Android

REGEX to format phone number in java
You can simplify it as: num.replaceAll("[^\d+\s]", "") // [^\d|+|\s] => [^\d+\s] .replaceAll("\s{2,}", " ") // \s\s+ => \s{2,} .replaceAll("\+\s", "+") // \+ => + .trim()

Categories : Java

ABAddressBook Phone Number common format
While not a perfect match for what you're looking for, there is an open source library that might help: RMPhoneFormat (https://github.com/rmaddy/RMPhoneFormat). It makes use of a binary file PhoneFormats.dat from Apple to format numbers based on a given locale. Formatting a number is simple as: RMPhoneFormat *fmt = [[RMPhoneFormat alloc] init]; NSLog(@"num: %@", [fmt format:@"7075551854"]); // outputs (707) 555-1854 for US locale It works with country codes as well, so if you add a +1 to numbers you know are in the US, these numbers will be formatted like this: +1 (707) 555-1854. For European numbers beginning with zero, you could trim the leading 0 and add the appropriate country code.

Categories : IOS

Validate a string's format like a phone number?
You'd want to use a regular expression for that, as zmbq stated, but that code might look something like this: var regex = @"(d{3})-d{8}-(d{3})"; var matches = Regex.Match("(123)-12345678-(123)", regex); // this means it did in fact match the input if (matches.Success) and here is a Rubular to prove the regex I provided you.

Categories : C#

Best way to import many xml files using php without knowing any of the xml files format first?
No method is "magic". You just simply cannot write an algorithm that would fit with any XML format. It's like asking : "I would like to write a video player that will be able to read any video codec, even the one that have not been implemented yet." So first, you need to reduce the field of application : When you say : "Any XML format". First : Why would you need to import "any" XML file in a tabular way ? most of XML files do simply not have a tabular structure and there is no way to make in fit into a table-like structure. Who is providing you those XML files ? For which purpose ? Can they provide a list of expected schema so you can find a pattern ? For instance, if you know that all your files will be a "tabular" XML format in the form of <first-level-element-we-dont-care>

Categories : PHP

Open files from Safari with "Open in" in my app
You can try to set "Document Role" to "Editor" I think your Document types is right because Dropbox app does the same way This is a part of info.plist of Dropbox app

Categories : IOS

Open Yes / No Notification Box from UI thread in a Windows Phone app
You can achieve this using Async/await programming concept in Windows Phone. This allows you to invoke a UI thread when the dialog box receives the response from the user. Check the Async/Await programming concepts in below link. http://developer.nokia.com/Community/Wiki/Asynchronous_Programming_For_Windows_Phone_8 Please mark as answer if my post helps you to resolve your problem. Thanks, Kamal.

Categories : C#

How to open a Web Page in Windows Phone 8 and get the HTML?
For just general C#, you can pull the HTML code into a string like this, which you can then parse through: WebClient client = new WebClient(); String htmlCode = client.DownloadString("http://XYZ.com");

Categories : C#

Force user to fill phone textfield in certain format
assuming that the entered numbers must be at the mentioned length each. Else just strip the {amount} pairs function fomratPhone(phone){ return phone.length == 15 && /^((d){4})-[d]-(d){6}$/g.test(phone); }

Categories : Javascript

Windows Phone 8 xaml textblock binding format
use Run <TextBlock> <Run Text="R" /> <Run Text="{Binding cost}" /> </TextBlock> or use StringFormat <TextBlock Text="{Binding cost, StringFormat=R{0}}" />

Categories : Xaml

How to change Phone number format in input as you type?
You've probably already solved this problem, but it's worth noting for future reference that anyone else with the need to apply multiple masks to a control may want to explore this inputmask plugin. It has more callbacks, settings and many out of the box mask types(be sure to take a look at the extension files). You can also define multiple masks for a control, and the plugin will try and apply the appropriate mask based on the value. Here is a fiddle to demo the previous statement: $(window).load(function() { var phones = [{ "mask": "(###) ###-####"}, { "mask": "(###) ###-##############"}]; $('#textbox').inputmask({ mask: phones, greedy: false, definitions: { '#': { validator: "[0-9]", cardinality: 1}} }); }); <script src="https://ajax.googleapis

Categories : Jquery

Formatting UILabel contents in US phone number format
If you are eager to go down the road of rolling your own phone number formatter, I would consider doing the follow: Store the user input without formatting in a string. After each key press, reformat the display string. Something like: @property (nonatomic, copy) NSMutableString *backingString; @property (weak, nonatomic) IBOutlet UILabel *phoneNumber; - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; backingString = [NSMutableString string]; } - (IBAction)keyOne:(id)sender { UIButton *btn = (UIButton *)sender; [self.backingString appendString:btn.titleLabel.text]; [self formatBackingString]; } - (IBAction)keyBack:(id)sender { [self.backingString deleteCharactersInRange:(NSRange){self.backingString.length - 1,1}]; [self formatBackin

Categories : IOS

How to change Phone Number string format in javascript:
You can use jquery phone number masking plugins for this. For reference check the following links http://digitalbush.com/projects/masked-input-plugin/ http://igorescobar.github.io/jQuery-Mask-Plugin/ http://randyburden.kodingen.com/wordpress/archives/154

Categories : Javascript

TimeSpan string format in Windows Phone XAML
Here is something that worked for me for Timespan property I created called ElapsedTime. Text="{Binding ElapsedTime,StringFormat={}{0:mm\:ss}}" Full format Text="{Binding ElapsedTime,StringFormat={}{0:dd\.hh\:mm\:ss}}"

Categories : C#

Format Phone # into 10 Digits / Remove extra characters
You can use a regex to remove all non-digits from the textbox's value. Here's an example: <input type="text" id="text1" /> With this JS: function addEvent(element, eventName, callback) { if (element.addEventListener) { element.addEventListener(eventName, callback, false); } else if (element.attachEvent) { element.attachEvent("on" + eventName, callback); } } addEvent(window, "load", function () { addEvent(document.getElementById("text1"), "change", function () { var tel = this.value; tel = tel.replace(/D+/g, ""); this.value = tel; }); }); DEMO: http://jsfiddle.net/6vC3x/ The replacing happens when the value of the textbox is changed (by user input) and the textbox is blurred (unselected). The whole addEvent function

Categories : Javascript

Phone number display in wrong format on HTC devices
It's impossible to know for sure what's going on without looking at the code, but try using the HTML entity for an en dash (&ndash;) instead of the en dash character. So instead of "Call us at 800-488-2265", try "Call us at 800&ndash;488&ndash;2265"

Categories : Javascript

Onclick functionality in Phone gap-Android NOT functioning in android devices with lower versions of android
This is was because I had called onload function of iscroll in my body tag. Later when I called my body tag after all my onclick functionalities it worked!

Categories : HTML



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.