I am currently developing a website for mobile devices. The website needs to analyze pictures taken from the camera of the phone. I currently grab the image data via:
<input type="file" id="input_photo" accept="image/*;capture=camera" capture="camera"/>
However on all Android devices I tested (Android is the main plattform for now) and for all browsers (Stock Browser, Chrome, Firefox) the image is either saved to /sdcard/DCIM/browser_photos/ or simply /sdcard/.
I don't need those pictures so my question is, if there is a way to either let the browser know to not save those pictures permanently or to delete those pictures after analyzing them.
PhoneGap or similar APIs are not an option. I want to stick to pure HTML5 and JavaScript.
Thanks for your help
You just cannot access device's storage to remove something from the browser - it will be a security issue. The same thing is with regular OS browsers - the only thing you can do is use a file input to browse for file to upload - nothing more.
Related
I want to develop a web application where the user can access the webpage and record a video message , and that video message gets saved on the server. The trick is that it must be accessible via any mobile device.
I know there are answers out there like this:
Video Recording with webcam on a webpage
but it does not encompass all devices. I was thinking of using angular JS but it should work on Microsoft windows phone 8/10, android and ios. That is the tricky part.
The solutions I have researched all requires FF or Chrome and neither IOS or Windows mobile comes standard with those. I want to avoid flash as well.
Many thanks.
I am building an application for android device using the Ionic framework. I want to store my data using localStorage. Now, I understand what it is but I can't find it anywhere on the device. I want to browse it to check if everything is saved as I want to.
I found many different tools to browse localStorage when I create app and run it under my device (real phone not emulator) is there a way to browse data store in localStorage ?
Using remote debugging (for Chrome to Android or Safari to iOS) you can easily browser LocalStorage on the device (or emulator). This article documents how to do it with Chrome (https://developer.chrome.com/devtools/docs/remote-debugging) and this one covers Safari (http://moduscreate.com/enable-remote-web-inspector-in-ios-6/).
I have a requirement to display kannada text in GCM alerts sent to an android app.
I followed these tutorials Install Read / Write Indian Language Fonts on Android and
How to Write & Read in Indian Regional Language Fonts on Android.
Just to brief, I did following:
Rooted Android Device
Installed ES File Explorer (Free download from Android Market)
Downloaded DroidSansFallback.ttf Indic TrueType Font and Save it in SD Card
Open ES File Explorer – In settings, Enable Root Explorer and Mount
System as RW
Copy the file from SD Card root and Paste it to /System/Fonts
(Overwrite if necessary)
Reboot
But I ended up displaying Kannada text like this:
Whereas, I have sent ವಿಕಿಪೀಡಿಯ Thank you! from my back end server. How to display kannada exactly same as it was sent from the back end.
Which Android version is it?
Versions before 4 don't have proper Kannada rendering support even if you supply a font, so it shows the matras separately from the consonants.
Where are you showing this text? It may work if you try to show it in the web browser, because web browsers have their own rendering engines. Try both the stock WebKit browser and Mozilla's Firefox for Android. Depending on your device and Android version, it may or may not work.
If it works in WebKit and you need it in an app, try integrating WebKit in your app instead of using regular text display.
Another thing you can try is to render your text as an image on the server and show the user that image. It won't be perfect, but it will be readable. (That's the technique that the Opera Mini Android browser uses, last time I checked.)
And hey, kudos for trying to make it work in Kannada!
The simpler method to read Kannada on web is by using Opera Mini application which is of course available in the Playstore.
Download Opera Mini
Type "about:config" in the URL
Enable bitmap fonts for complex scripts I mean make it YES
Now you can easily read Kannada script!
You can't type or Read Kannada regular message or Whatsapp messages though. But having a primitive Android phone which is not Rooted this is the best you can get I guess!
Is there any way to load the swf files directly without use of webview..
Now i am trying to run swf files using webview but the swf file is very slow on device.
In short according to my procedure the flash file running on android device and tablet is very slow as compared to if i view this on my desktop pc.
I don't think there is a standalone flash player for Android. But even if there was it would mean that people need to install that first before starting your app.
I believe the slowness you experience as nothing to do with webviews but simply with the resources available on a mobile device (1/3rd minimum of the cpu device and 1/10th of the memory).
You can check if that is the case by simply trying to launch your swf from the native web browser of your device and see if its better. If not, the problem is really your device.
You will probably need to create a strip down version of your flash for mobile devices.
Beside you should know that adobe plans to stop flash for mobile devices : http://www.fiercemobilecontent.com/story/adobe-confirms-flash-support-android-ice-cream-sandwich/2011-11-21
Good luck
As part of my software development job (for Android), I need to inspect the content of numerous HTML pages when viewed via Android's WebView.
So far, I have been able to accomplish that by dumping the HTML content to a file in /data/data/<package-name>/files/, then using adb pull to copy it to the PC for easier and more comfortable inspection (larger screen and a keyboard).
I would like, however, to accelerate the process by dumping that content to a file directly from my Firefox browser on my PC. I have heard of so called "User Agent Switchers" add-ons that can fool the remote site to be thinking it communicates with a different type of browser, but can this really work when not only an agent string need to be emulated but also the screen size?
Your learned advice and tips would very much appreciated.
1) Use the user agent switcher.
2) Get the mobile profile addon.
3) Resize the window to emulate screen size changes. A quick Google search finds an addon that can handle preset window resizing: https://addons.mozilla.org/en-US/firefox/addon/window-resizer/ (If this won't do, look around the addon site- there are multiple that can do this).