| Reply | « Previous Thread | Next Thread » |
|
Dear Sir ,
I'm not able to create a file on my mobile device ... The application is working well on the emulator ... I'm using N95 ... Can u pls tell me what is d prob ? Thanks Nanditha |
|
Join Date: Oct 2006
Posts: 2,536
Location: Helsinki, Finland
Offline
Forum Nokia Champion
|
|
|
Quote:
Hi Nanditha..Welcome to the Forum!! Well actually I might be not be of help to your specific needs, but the information you have provided is too little for anybody to help. Why not check this and give more information so that somebody can provide you a specific solution :) Good Luck!! - Neil R.Bhasme - |
|
Hi Nandita ,
You can create the files in your mobile phone if and only if your mobile supports jsr75 i.e FileConnection API . With that you can create the file. For more information . Go through this post in forum http://discussion.forum.nokia.com/fo...FileConnection public boolean writeFile(String path, byte[] data) { javax.microedition.io.Connection c = null; java.io.OutputStream os = null; try { c = javax.microedition.io.Connector.open("file:///" + path, javax.microedition.io.Connector.READ_WRITE); javax.microedition.io.file.FileConnection fc = (javax.microedition.io.file.FileConnection) c; if (!fc.exists()) fc.create(); else fc.truncate(0); os = fc.openOutputStream(); os.write(data); os.flush(); return true; } catch (Exception e) { return false; } finally { try { if (os != null) os.close(); if (c != null) c.close(); } catch (Exception ex) { ex.printStackTrace(); } } } |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Unable to install the self certification sis file on Nokia E60 device | manjunaths | Installation, Certification and Security | 22 | 2009-09-24 08:09 |
| Mobile Virus Info and Solution | kunalshastry | General Discussion | 16 | 2007-08-07 12:12 |
| Create Symbian 60 Theme's .sis file from scratch (using command line) | chenloong | Symbian Tools & SDKs | 10 | 2007-07-02 07:28 |
| Bluetooth Security: What exactly is an untrusted device? | rahulmcs | Bluetooth Technology | 1 | 2005-12-02 07:26 |
| How to edit a Python file on a mobile device serie 60 ? | cyke64 | Python | 11 | 2005-05-20 11:09 |