How can I write a plugin to write a file to the SD card on Android devices?

I would like to be able to write a file and save it to the SD card programatically with a plugin or extension for Firefox on Android devices, is this possible or is there any documentation on this?

This would be a great place to start. There are plenty of documentation on the MDN to get you started.
https://developer.mozilla.org/en-US/docs/Extensions/Firefox_on_Android

Similar Messages

  • How can i write properties file for Hindi font

    Hi All,
    i'm using jdev 11.1.1.5.0
    in my use case i have worked on internationalization where i want to use hindi font
    like this link -
    Majid Hussain: Internationalization of ADF 11.1.1.3 Applications
    as in above post majid used german language and write properties file for german language(which is using english character).
    but my problem is that i want to use hindi language
    so how can i write propery file which support hindi font.
    Manish

    Hi Manish,
    We also had same requirement where we need to show indian local language(Hindi ,Bengali and many more ).
    We had implemented following approach and perhaps it will helpful for you.
    1-First we changed the encoding value in jdeveloper.
       go to jdeveloper --> tools --->preference-->encoding , select to UTF8
    2-We used to get the properties and it's translated value from business and then we were manually put these pair into related resource bundle.
    And using this we were able to implemented multilanguage support.
    Thanks
    Prateek

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • Any guys know how can I have a bigger thumbnail of indesign file on the bridge!

    Any guys know how can I have a bigger thumbnail of indesign file on the bridge!

    The slider works for me in Bridge CC. What version of Bridge are you using?

  • How can i write a blog in the XI forum.....

    i want to write a blog....
    i have created a scenario which i feel ...may be helpful for many...
    how can i write that in the XI forum.....
    and do my blog need to examined by some authority

    Hi,
    Check this
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/community/gettingStartedWith+Blogs&
    Regards,
    Chandra

  • How do you write a file involving the changes in application engine?

    Hi Guys,
    I have a requirement in app engine.
    I have to update a table based on the changes occured in other tables.
    I have to show the user old value and new updated value in the log file how do I write a file for below fields?
    Old Value: Name:Rock|SSN:0000000|Address:675478
    New Value    Name: Roger|SSN:0000000|Address:908765
    Thanks and regards,

    Hi ,
    My Requirement is Quite different here.
    I cannot use CI.i have to implement in app engine.
    Below explained:
    I have data coming from abc table and populating into xyz table.
    So if any field in abc gets changed which is extracted and populated in the xyz table.I have to show the old field value of xyz and the new field values of abc which I am going to insert into the xyz.
    My log file should have both the values.
    how do I write both the values and update it:
    say I have value from abc.id=12 and xyz.id=12
    when we update abc.id=13 and xyz.id=14
    I have to print
    old record details:
    id=12
    New record details:
    id=13
    somerthing of above sort
    Thanks and Regards

  • How can I write to files from applets?

    I want to write a capability into a game i'm writing that allows it to keep track of high scores. I am fairly certain that I will need to write to a file separate from the applet and then read it back in later. How can I do this? I don't think typical input/output streams work. Any helps or tips on how to set up a high scores list would be helpful!
    thanks a lot!

    Hi,
    Firts sign the applet or jar file.
    public void NxFileOpen(String ElFichero) {
    String ElError="";
    NxExportarPath=ElFichero;
    try {
    NxExportarFile = new FileWriter(ElFichero,false);
    } catch (IOException NxError) {
    ElError="No puedo abrir el fichero :"+NxExportarPath+".";
    } catch (SecurityException NxError) {
    ElError="No puedo acceder al fichero :"+NxExportarPath+ " para abrir. (Seguridades java)";
    } catch (Exception NxError) {
    ElError="Error. Fichero = "+NxExportarPath+". Accion = OPEN.";
    if (ElError!="") {
    System.out.println(ElError);
    NxExportarFile = null;
    public void NxFileClose() {
    String ElError="";
    try {
    NxExportarFile.close();
    } catch (IOException NxError) {
    ElError="No puedo cerrar el fichero :"+NxExportarPath+".";
    } catch (SecurityException NxError) {
    ElError="No puedo acceder al fichero :"+NxExportarPath+ " para cerrar.(Seguridades java)";
    } catch (Exception NxError) {
    ElError="Error. Fichero = "+NxExportarPath+". Accion = CLOSE.";
    if (ElError!="") {
    System.out.println(ElError);      
    NxExportarFile = null;
    public void NxFileSave(int Dato) {
    String ElError="";
    try {
    NxExportarFile.write(Dato);
    } catch (IOException NxError) {
    ElError="No puedo grabar en el fichero :"+NxExportarPath+".";
    } catch (SecurityException NxError) {
    ElError="No puedo acceder al fichero :"+NxExportarPath+ " para grabar. (Seguridades java)";
    } catch (Exception NxError) {
    ElError="Error. Fichero = "+NxExportarPath+". Accion = WRITE.";
    if (ElError!="") {
    System.out.println(ElError);      
    NxExportarFile = null;
    I hope help you

  • How can I write a file and fill it in periods?

    Hi Every body!
    I need help with this.
    I have my aplication(power quality analiser),This VI obtain several varibles and make a lot of calculus and operation, to obtein others parameters in real time so my problem is Save the acquire data and calculus data into a file (similar as a report) every period(custumizable for the user in time units) 
    I mean make a only one file wich is write every period continuously , e.g.  Start my principal VI and this event start the write of file, past one period,make other row or colum into the same file and continue that way until we stop the principal VI.
    How can I make that?
    Thaks very much 
    Best Regards

    Hi,
    assuming you have your trigger (notifier or just periodically) you can append the data to a single record.
    Open the file, set the file position to the end, write the data and close the file.
    Hope this helps

  • How can read & write .ncd files?

    I need to create / modify a .ncd file (used in Max 3.0.2) for can channel configuration. How can I do that in C or VB?

    Giuliano,
    if you try to open the .ncd file with Notepad it states it is an XML 1.0 file. Actually, if you open it up with MS Internet Explorer you should be able to see exactly the same structure you see in MAX.
    So, if you want to modify and/or create the .ncd file externally you can use a text editor or an XML parser to write your .ncd files and then load the messages from MAX.
    Greetings
    AlessioD
    National Instruments

  • How can I write log file???

    Hi every body.
    I have a project built by ADF BC. I want that when user performs INSERT, UPDATE, DELETE,... into DB from client tier in some form, before performing those queries I will get the user information (who login the system) and write out a log file about that user from that information in each entity influenced by the user.
    How can I do this???

    I understand what you mean from your link. But the question I meant is not that. What I meant is that, I can get the user information (user_name,password,...) who performs the queries to DB and write those information to log file.
    Thanks.

  • How can I write a bit to DIO-96 card?

    I´ve got a diagram-program which works with the card dio-6533. With this I can write and read a bit to the card. Now I´ve to change the card to DIO-96 and the programm doesn´t work. First it writes a signal to the one cable connector (with 50 pins)than to the ohter cable connector (with 50 pins). What can I do to make the programm correct?

    Hi,
    I don't know what it is (maybe I'm stupid ??) but I find NI's digital
    functions a monumental pain in the t*ts to work with for several reasons;
    1) for simple devices such as the pci-6503 you can configure individual
    channels to READ individual bits with no problem (assuming you set the
    'read' VI's port width to 1)- try and configure individual channels to WRITE
    individual bits and you have a problem (basically all of the other bits on
    that port get set to 'zero' when you write the bit - even when you write a
    value other than zero to the iteration terminal, and even with the port
    width set to 1!!) in other words 'read' seems to work fine on a bit-by-bit
    basis but 'write' only seems to work on a port basis
    2) several of NI's card do not give you the optio
    n to set the startup
    condition of the digital lines - they deafult to 'high' meaning you have to
    switch a 0V input to them and then invert the value to get a high reading
    (when a switch makes normally you expect a 'high' signal ??)
    3) you can only have bits and ports configured as read or write - even such
    'low end' board such as Arcom's PCIB-40 allows you to set a bit value and
    then read it back!!!
    Errrmm ... starting to run out or complaints here (well it is nearly 1:00 AM
    on Saturday morning :-)
    If anyone can point out something that I'm doing very wrong here then I'd
    love to hear, otherwise I think NI should give some consideration to the
    basic functionality of their low-end digital stuff.
    All the best
    Andy

  • How can I use One Plugin with all his outputs on the region

    Hi All
    In Cubase I have a PlugIn Manager and when I have a Plugin like Omnisphere with 8 outputs I can route each output on one sequencer region.
    Can I do This as same in Logic?
    Exemple
    I will open a new Midi Instrument on a region. Than I Know I have 8 outputs and than I will have 8 Lines and each line I will create Midi comandos for each output separatly.
    can I do this? Or any Idee how can I do this?
    Thanks for help
    Marco

    When you load a plug-in that's capable of multi-output, you do have a menu choice about that when you load it, yeah ?
    You can create the additional channels that you need in the mixer - press the '+' button on the channel strip and it does it for you.

  • How can I use itunes store credit with Apple TV without the credit card code?

    I would like to allow guests in my home to use the credit in my iTunes account to purchase movies and TV shows on the Apple TV in my guest room.
    Unfortunately, it seems that in order to make a purchase they will need my credit card security code.  If they have this, then they could purchase an arbitrary number of movies, but I would like to limit purchases to the credit in the account.
    Is there any solution here?  How can I give my guests an Apple TV "allowance" (not a monthly allowance, a one-time allowance) and not give them my credit card security code?

    You can't really do this with an already existing AppleID from what I know. Now, if you don't have an AppleID, here's the run-down of how to do it:
    http://support.apple.com/kb/HT2534
    Hope that helps.

  • I have  20 ipads to hand out to teachers, all of them are using the same apps (purchased), I'm using 1 computer to configure them, I purchased 20 gift cards to purchase apps, how can I set up all 20 on one library using the gift cards to purchase the apps

    My office purchased 20 ipads - and 20 gift cards, I'm setting up all the software on my computer using 1 itunes library.. I need to purchase 20 of the same apps to put on each of the ipads... how can that be done when you purchase the same app..itunes tells you that you the app is already purchased...

    Another member pointed me toward the following site...it contains some great info...it's focus is on the use of iPad's in education....
    http://ipadeducators.ning.com/
    There is some discussion in there of device "cloning"..though I don't see how they can do that and at least not technically violate the iTunes Store EULA....(1 license can be used by 1 person on multiple devices, or by many people on one device).  As I understand it, and as Michael indicated, the only way to do what you want and not violate the EULA is to have 20 different Apple ID's...what the "cloner's"  have chosen to do is use the Educational VPP  www.apple.com/itunes/education
    purchase sufficient licenses for all users, allocate a license to one Apple ID, clone that image to other iOS devices, and simply record the fact internally that the additional  license(s) have been allocated to other Apple ID's....I work in healthcare, and our legal department isn't comfortable with that approach, and I can't see it really being legally viable in education....unless their are different terms for educational institutions....

  • How can i write an apostraphy in the following code? ?if:LanguagePreference_ID335='F'? ?'Numéro d'inscription TVQ'? ?end if?

    Hello
    I keep getting an error message when I write the following
    <?if:LanguagePreference_ID335='F'?><?'Numéro d’inscription TVQ'?><?end if?>
    Is there anyway to write this code and keep the apostraphy?

    try as below:
    <?if:LanguagePreference_ID335='F'?><?'Numéro d?’inscription TVQ'?><?end if?>
    Cheers
    AJ

Maybe you are looking for

  • Error message when trying to connect

    As of yesterday, after years of using golive, I cannot connect to upload new info.  ????

  • Error when connecting to an Oracle Database

    Hi, I'm trying to connect to an oracle database by calling a javabean from a jsp page. When I try to connect however I get this error: java.lang.UnsatisfiedLinkError: C:\oracle\ora92\jdbc\lib\ocijdbc10.dll: The specified procedure could not be found

  • Captions and no captions with multiple slideshows (a bug in idvd 6?)

    Hi, I am having a problem with the captions option in multiple slideshows, and am wondering if this a bug within idvd 6. My project has two slideshows which I created within idvd because I wanted the manual option of forwarding through your slides on

  • How to turn on debug mode for NW 7.3 trial version?

    Hello SDN! I've got a trial version of NW 73 from here: http://scn.sap.com/community/netweaver/blog/2012/07/12/netweaver-compositon-environment-73-trial-version-available-on-scn and installed it from instruction. Installation was OK and Java instance

  • Sharing photos to e-mail recipients.

    I am using OS X 10.5.8.  When I select a series of photos in iPhoto and hit the share icon I get an e-mail form.  When I add a number of recipients to the address window, if there are a lot, they don't appear in the window.  Also, the text that I typ