Question about JSR 75, File Connection API

Hi,
I am developing a MIDlet that requires JSR 75 - File Connection API, as it needs to save a text file (.txt) on the Phone Memory or Memory Card if available.
Does Sony Ericsson and Motorola phones allow untrusted (i.e. unsigned) MIDlet to access JSR 75 API? In other words, does it allows WRITE access to write a file? (Nokia phones allow this, with user permission)
Can someone who has JSR75 experience on Motorola or Sony Ericsson phones shed some light?
Thanks!

Hello,
Using the "code" format tags will make your post much more readable. That said, there are some other problems in the aforementioned code. For example -1 signifies the end of a stream and 0 could simply mean no bytes were read.
You should also check exists() and canWrite(). It is possible to be able to read a file and not be able write to it or create a file in the same directory.

Similar Messages

  • File Connection API

    I had tried to use the file connection api to somethhing like file browser on the NOKIA N73 but it dosnt work and give me that error
    there was an error during midlet startup:
    class java.lang.NoClassDefFoundError : javax/microedtion/io/file/FileConnection
    on the runtime as it give now syntacs error

    Hello,
    Using the "code" format tags will make your post much more readable. That said, there are some other problems in the aforementioned code. For example -1 signifies the end of a stream and 0 could simply mean no bytes were read.
    You should also check exists() and canWrite(). It is possible to be able to read a file and not be able write to it or create a file in the same directory.

  • Basic question about importing wma files

    Hi, I have a basic question about importing wma files. I ripped some cd's on a Mindows computer using Media Player, but now want to copy them to my Mac and use them in iTunes on my Mac. when I use Import in iTunes, nothing happens and I cant even seem to copy them one by one using the Music folder.
    Can someone help me?
    thanks
    eMac   Mac OS X (10.4.4)  

    iTunes for Mac doesn't support .wma files.
    If you can use a PC to convert them, you can use one of many freeware applications. Google for 'wma to mp3'.
    For the Mac there's the shareware program EasyWMA that can convert them.
    Hope this helps.
    M
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.3.9)   Several ext. HD (backup and data)

  • Some questions about importing HTML files

    Hi, folks
    Let's suppose we want to import a pack of HTML files formatted in HTML5 wit's it's CSS into a double-oriented folio. A couple or three questions about that, please:
    1. Is there a limit for a reasonable quantity of HTML files I can import into a folio? I mean.. 100 would be way too much, for instance?
    2. These HTML files could be navigated and referenced from inside TOC-pages made in InDesign,right? (navto://..., I gues?)
    2. Will it be possible, by means of HTML adaptative design techniques, to treat both orientations (vertical and horizontal) as different viewports or screen sizes so that the design adapts for instance the column width with its CSS?
    3. That said, will the InDesign final app. respect that adaptative CSS rules?
    I am asking this because we are looking for a way to inject big quantities of content with a very similar design into our application in a really fast and automatizable way and I have the suspicion* that importing HTML5 preformated CSS files could be the a very good and simple alternative to importing XML into InDesign templates as we start out content as tagged almost-html files.
    Thanks a lot
    Gustavo Sánchez (Posting from Madrid)

    I assume you are asking about using HTML articles.
    1. There is no limit beyond simply keeping things reasonable.
    2. Yes. Just use navto://articlename
    3. Yes. I've used min-width of 768 and max width of 1024 to control it.
    4. InDesign does not enter into any of this with the exception of using the folio builder panel. Everything else is done in Dreamweaver or whatever program you decide to use for the article.
    If you want to restrict the HTML articles to one orientation or the other, use the _h and _v suffixes.
    Bob

  • Questions about Audigy 2 ZS connecti

    Hello,
    New to these forums, so bear with me. I'm considering purchasing an Audigy 2 ZS gamer card, and have some questions about the card and speaker setup. I've read the FAQ's in the forum, and they have been a big help, but I still have questions related specifically to my setup. Here's the system specs:
    AMD Athlon 64 3000+
    Asus K8V SE Deluxe
    VisionTek Radeon X800 XT PE
    Seagate 250 gig SATA HDD
    gig Crucial ram
    Antec P80 case
    Antec TruePower 430 ps
    Altec Lansing ADA885 digital speakers (awesome sound)
    Altec Lansing headset (cheap but works for voice and gaming)
    ADI AD980 onboard sound
    Windows XP Home
    . I currently am able to run both the speakers and headset at the same time by using the front panel audio outlets on the case (helps with the immersion in IL2 946). I would like to continue doing this(using front panel audio) with the new card. I've found several places that have an adapter cable for sale, http://www.x-tap.com/
    http://www.performance-pcs.com/catal...oducts_id=2700
    http://ask.americas.creative.com/SRVS/CGI-BIN/WEBCGI.EXE?New,Kb=ww_english_add,U={B8F6030-DA4F-D3-94F4-00500463020E},Company={CEAE26D-879-4C00-AC9F-03BC258F7B70},d=3025443648,VARSET=ws:http://us.creative.com,case=5764
    The plug that I have has only 3 separators, not 4. Will this work with the Audigy 2? I don't have a link for this plug, unfortunately.
    4. I had been considering purchasing? a set of USB headphones, but I've been told that when you plug them in, the sound is cut off for the speakers. If there was a workaround for this, I might consider getting them. Then I wouldn't have to use the front panel audio or the connections on the card.
    5. I've heard of an issue with this particular set of speakers and the Audigy 2 card, particularly that the speakers were originally designed for a Dell system, and the wiring was phased differently than in other systems. Is this something to be concerned with, and if so, is there a workaround?
    I like to research a particular product before I buy it, in order to make an informed decision and avoid problems if possible. Sometimes it works, sometimes it don't
    Thanks in advance for the help.
    Message Edited by mrj_455 on 03-05-2008 05:28 PMMessage Edited by mrj_455 on 03-05-2008 05:32 PM

    The inputs are easy to find and select:?
    Right-click the Mixer icon on the taskbar and select "Playback Devices".<
    There should open a new Window with the options of "Speakers" and "SPDIF"<
    With Speakers highlighted click the?"Properties" button on the lower?right corner<
    Go to the 4th tab (I believe it is "volume" in english, "Pegel" in german)<
    There you have your inputs!<
    Unmute Line-In and set its volume according to your desires.<
    Also remember that software designed for XP, that should control the Line-IN settings, (ie. Hauppauge WinTV or Dscaler) will be unable to do so in Vista, do to the architecture change. You can however enable "Compatibility Mode for Windows XP SP2" for these applications (right-click on their executable) and restore control of the inputs directly from the program. (You should however unmute it first as explained above). PS:? All Creative Software that came on the CD is incompatible to Vista. Only the included Audio Console should work as expected.Message Edited by alexs3d2 on 05-07-200707:3 PM

  • Few Questions About Backing Up Files

    Okay, I'm pretty new to this, and have checked the support pages, but I do have some questions about backing up my files.
    I'm running out of room on my computer's hard drive, and am wondering if burning the library to CDs will allow me to quickly restore my library on my computer when I sync my iPod.
    I know that when an iPod syncs with a comp, it will lose any songs that aren't on the library list. (If I deleted some songs to free up room, I'd lose those songs on my iPod when I synced it up.) Is there a way to prevent that from happening? Some way to save a headache continuously restoring my iPod's library every time I want to add a new song or recharge it?
    I'm on Windows XP, if that matters.

    Best and easiest solution is to buy an external hard drive. Then simply drag and drop your iTunes folder from your internal onto the external and copy the entire library.
    Patrick

  • Question about calling batch file by using the System Exec+.vi?

    Hi
    I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?
    Bill.

    Hi,
    Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.
    Good luck.
    Oleg Chutko.

  • Questions about the new SBO2007 connection method

    Hi all
    Anyone who can clear up the following programs for me:
    1 - With the new DI connection method multible add-ons can share the same DI-API connection (1 add-on = 80 MB, 2 add-ons = 81.5 MB and so on). But is this sharing user-specific or machine specific... Imagine 10 user on a terminal server all running only one add-on. Will those 10 instances of the same add-on share DI-API connections and in total use 93.5MB (80 + 91.5) or 800MB (1080)?
    2 - Am I correct in assuming that the new connection method works when creating internal add-ons (running within the SBO client) or will external add-ons benefit in any way?
    3 - Does the SAP add-ons allready use the new connection system?
    4 - In the explaination of the new DI connect method the help file states "It is highly recommended to use XML format of the DI-API.".. What does this mean?... The connection itself does not seem to have any xml involved.

    Hi Rasmus,
    I haven't seen any official test results but here's what we have found so far:
    1) The shared DI API resource is stored within the SAP Business One client executable. This means that this grows by 80MB during the first connection but stays the same size as other addons connect. The addons themselves typically now take up 10-15MB (ie like an addon that only uses the UI API). On a Citrix or Terminal Server, as each user has their own SBO executable, the DI API connection will take 80MB+ per user session (assuming all addons are connecting using this new method).
    2) As far as I know, this new connection method is only available for applications that use the UI API to connect to the SBO client (the GetDICompany method is on the UI API company object and not part of the DI API).
    3) The SAP Fixed Assets and Outlook Integration addons do not use the new connection method (tested on patch 35). The rest I don't know about as we don't typically use them here in NZ. It would be really useful for SAP to make an official statement on this topic as it would definitely influence my decisions on using the new method.
    4) I'm not sure what they mean either :-\
    The biggest problem I found with this new connection method is debugging. When writing an addon, each time I ran a new debug session, the SBO client executable would grow by 70-80MB as it created a new DI API connection. However, when the debug session ended, the SBO executable did not release the memory used. After 4-5 debug sessions, the SBO client was taking 1/2GB of memory and couldn't be closed. This meant I had to close and reopen SBO every 2-3 debug sessions, which was a bit of a pain. In the end I reverted to writing using the old connection method and changed it over as a last step. Not sure if I was doing something wrong or this is a weakness in the new connection method while developing.
    I also read that SAP are advising that a shared DI API connection can lower performance in some cases.
    Kind Regards,
    Owen

  • Question about moving library file/playlists

    I've just switched to a new computer, and while I was able to move my music and video, my playlists were gone(the music and video were on an external HD, but the library file with the playlists was on the old computer's HD). I've found the library file on the old computer, and I plan on plugging the external HD into the old comp and copying the libary file to it as a means to getting it onto the new comp.
    Just one question: The previous comp was badly corrupted by viruses. I'm worried that if I copy the library file to the new comp, the new comp will become infected as well. Is this a risk? What can I do to prevent it?
    Also, if I get the library file onto the new comp....then what?

    Format the drive using your PC. Connect it to your Mac. Transfer the files. Connect to your PC. All is well.

  • Question about changing a file type into another file type

    Hello. This isnt a java question but you guys have been so helpful in the past I hope its ok if I ask this question for a friend.
    How can I import a scriptware file into Screenwriter 2000, or change a .scw file into a .tag file?
    Anyone who can help thanks.

    I know nothing about scriptware or Screenwriter. But, my only advice is to see if Scriptware can export some other file type (not necessarily a .scw file) that Screenwriter can read. Sometimes, when I have two text editors whose native formats are incompatible (like opening a paper typed in a new version of Microsoft Word using an old version of WordPerfect or something), I save the file as an RTF file, rather than in the native format. Maybe something like that applies to your situation, too.
    Hope that helps.
    Jason

  • OSD: different pxe, question about different wim-files

    Hi,
    Please see this question, I'm somewhat confused about the different
    wim files.
    I can see the default winpe.wim and a different wim next to it which has name winpe then environment then number (winpe.sccm0022.wim), what is this file.
    And, like in my post, why can't I use this image to import into a pxe and boot from that?
    Please advise.
    J.
    Jan Hoedt

    Hi,
    What is your goal with this? boot to SCCM and do OS deployment or what is your purpose? when dowloading the boot .wim file from a DP parameters are passed along like MP and so on. So you cannot use that .WIM file and pxe-boot from another PXE solution and
    do OSD from ConfigMgr.
    That is why Johan's unsupported solution would be the way to try it.
    http://www.deployvista.com/Blog/JohanArwidmark/tabid/78/EntryID/54/language/en-US/Default.aspx
    regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Question about long audiobook files before I buy Zen Mi

    I am in the market to buy a hard dri've MP3 player for the purpose of playing audio books. Specifically, I want to download audio books from my local library's netlibrary account and listen to them on the go (these files are 32kbps DRM WMAs). These files have caused problems for two different players I have tried, due to their long length (most files are over 00MB, and play for 8+ hours). I have an old iRi'ver flash player, which will play these files fine, until you get about 4 hours into the file. Then, when you turn off the player, the time elapsed jumps from where you were to 2 hours or so. What this means is that you can't listen to the entire book unless you play the book for its entire duration without stopping it or turning it off. I next tried a Rio Carbon, but it has a different problem. Every time you turn off the Carbon and turn it back on, it will lose it's place in the file by 0min-hour, depending on how long the track is and how much you have listened to. The only ways around this is to either never turn the player off, or write down the time elapsed before you turn off the player, and then fast forward to that time when you turn the Carbon back on. After fighting with it for a week, I returned the Carbon.
    So my question is, has anyone actually used a Zen Micro to listen to a very long audiobook, and does it have any weird issues like I have experienced with other players? All I want the thing to do is remember where I left off when I power off the device, within a few seconds.
    Thanks

    Lots of people have audio books on their micros and i havent head of anyone complaining about them. one good feature the micro has that i believe other dont is the ability to place book marks in a song/audio book at a set time so you can automatically go to where you want without searching.so you could save the book marks for each chapter or something.

  • Question about reducing PDF file size on export

    I have a large file that is generates a PDF about 75MB when exported with the "[High Quality Print]" preset. However, I can reduce the size down to to under 5MG in Acrobat if I use the Tools>Flattener Preview>[Medium Resolution] setting (image attached). Is there a way to generate this smaller file directly from InDesign? I couldn't figure out how to do this with InDesign's Flattener Preview or Export options, but it is very likely that I missed something.

    Eugene Tyson wrote:
    When you choose Smallest File size, it is still using the PDF 1.6 setting.
    Change this to Acrobat 4 (PDF 1.3) this will automagically flatten the PDF - which means you shouldn't have to do it in Acrobat.
    That should get you a nice small file size, I believe.
    Flattening transparency in InDesign will not necessarily yield a smaller PDF file size. Transparency flattening will not automatically convert placed vector artwork to raster images unless that vector artwork is actually involved with transparency. And even then, whether you end up with a smaller file depends on a number of factors.
    If the reason for the very large file size is indeed very complex vector artwork and you are willing to sacrifice quality, conversion of such vector artwork to raster might yield a significantly smaller exported PDF file. To accomplish that conversion, I would personally suggest converting the most offensive (in terms of file size and complexity) of such files in Illustrator (assuming that they were .AI files) and exporting them as .TIF files (to avoid the potential imaging artifacts of JPEG compression).
              - Dov

  • A question about updating metadata files in plug in

    Hello
    I 'm trying to monitor my stand alone java app.
    I read the chaper Target Types and Default Collections ( my app exposes jmx beans)
    all seems to work ok ( i mean the part wherre it says ..
    emctl register oms metadata -service targetType -file full
    path/TargetTypeMetadata.xml -pluginId Plugin Id -sysman_pwd sysman
    emctl register oms metadata -service storeTargetType -file full
    path/TargetTypeMetadata.xml -pluginId Plugin Id -sysman_pwd sysman
    emctl register oms metadata-service default_collection -file full
    path/TargetTypeCollection.xml -pluginId Plugin Id -sysman_pwd sysman
    but , the next line is not clear to me:
    emctl register oms metadata-service systemStencil -file full
    path/TargetTypeStencil.xml -pluginId Plugin Id -sysman_pwd sysman
    My question is: what is TargetTypeStencil.xml file? where can i found it?
    Do I realy need it?
    and after restart the agent as it says , could i see my beans ? ( i used emcli jmccli tool and created the metadata / default_collection files) ?
    Thanks.

    So, I folowed the instructions in chapter 13.7.1 ( ProgrammersReference) - EM 12C release 2.
    I created my own mbeans , used the emctl jmxcli etc ..
    I created both files : for metadata, and default_collection ( The files which the emctli genertaed for me )
    I did it on the agent machine. I copy the files under the PLUGIN dir in the agent machine too.
    I registered the files using mrs service as it's written ( chapter 16 ) . ( after I copy the files from the agent to the mrs ( oms machine ) machine .
    Every thing seems to be OK . I restarted the agent.
    Now, when I open the EM console' I can't see the metrics which i defined in the generated files !
    Am i missing something??
    Please Help!

  • Questions about "Diff Sequence File With..." function

    Hello,
    I've started working on a project where I'm maintaining a piece of older code written by a since-departed employee of my company.  It's a TestStand 3.0 sequence file calling on Labview 7.0 code. The thing is, there were two of these installations done at different times and, somewhere in the woods between stations 1 & 2, the code base diverged.  Part of it was due to not being able to get exact duplicate hardware for the PXI chassis and part was, apparently, due to the fact the client used the 2 machines to test different UUT models.
    So, I'm looking at copies of the installed code base on the two machines using the diff feature in TestStand.  (If it makes a difference, I'm doing this viewing in TestStand 3.5 since TS3.0 has mysteriously gone corrupt on me at the moment on my main development computer and, if memory serves, you have to uninstall all the later version of TS to reinstall an older version.  An altogether fun process, no doubt, but a little time consuming.)
    Anyway, the first thing I notice is that very many of the sequence steps have different Step Properties.Step ID values that look something like this: "ID#:2vMTp0db002mQDXArddRSA".  Messing with the diff screen showed an option to "Ignore Unique Step Ids" which got rid of these.  Regarding these unique step ID's: When are they generated and do they remain constant on a particular machine?  Beyond mere curiosity, I wonder because another diff is in some of the "On Pass Target" or "On Custom Condition True Target" under certain Step Properties and the value under there looks suspiciously like those unique ID's (i.e. ""ID#randomstuff"").  Are these all dynamically updated at runtime or will I break something by changing those (say if I copy a sequence from one version overwriting it in the other)?
    So, I filtered the unique ID's out.  The next large area of difference is that many, but by no means all, Labview VI calls have a difference under Step Properties > Flexible Labview Adapter Properties > ViCall > Connector Pane Checksum > Value.  Also, in a few other instances, ViCall > error out > Connector Number is different as well.  Does this indicate a different underlying VI?
    There are a few other differences, but I can interpret those.  My goal is to get one sequence file for both machines so the code will be easier to maintain.  I do think that some of the VI's with different Connector Pane Checksums may be different between the two installations since one of the different hardware components required a different driver library.  This leads to a third question, what does it take to use identical sequence files when the underlying VI's might differ?  Is it just the interface needs to be the same?  Like the connector pane has the same geometry and data types for the exposed inputs and outputs?
    Thanks for any help,
    Mike
    Solved!
    Go to Solution.

    I just got off the phone with NI support, so no worries on the answers.
    Short versions:
    The unique ID's are regenerated when a sequence is copied.
    Teststand doesn't need higher versions uninstalled to reinstall an earlier copy.
     Connector Pane Checksum implies a different underlying VI, but having the same connector geometry/inputs/outputs/types should allow you to have a different VI for different installations without different sequence files.
    Still waiting to hear back from support on whether the goto pointers get updated properly when a sequence or portion of a sequence is copied.

Maybe you are looking for