Question from newbie J2ME - USB - Joystick...

Hi,
Forgive my possibly naive question since I am new to J2ME.
Is it possible to connect an external device to a cell-phone's USB device and have a Java J2ME program communicate with the external device by sending/recieving USB commands/data?
For example, can I connect a joystick that works using USB to a cell phone and play a J2ME game using a joystick?
Thanks!

the code you provided does not set the command listener for Disclaimer screen.
If the listener is not set anywhere else, that might be the reason for NPE indeed.
BTW, given design of the class, I'd add a line right after addCommand looking like:
setCommandListener(this);

Similar Messages

  • BPS questions from newbie

    Hi SEM gurus,
    I am a newbie to SEM. I was put into a SEM project that my company is implementing. I have gone through internal training but still I have some questions.
    1. How does 'fields to be changed'/'fields for conditions' relate to single/multiple selections?
    2. What is meant by 'internal creation of planning packages'?
    3. Is FOX related to transformation library?
    4. Is Data Slice in same as that in BW?
    5. Where can I find more information to better understand BPS? I am more BW than BPS. My colleagues passed me some course manuals but I need more foundation materials. Any useful links?
    Hope you gurus could throw me some hints.
    rdgs,
    Bryan Lee

    Hi Bryan,
    > 1. How does 'fields to be changed'/'fields for
    > conditions' relate to single/multiple selections?
    Fields to be changed typically have only single or range values for source values and single values for target values.
    Fields for conditions usually support multiple selections.
    > 2. What is meant by 'internal creation of planning
    > packages'?
    When you execute a planning function, the data of the planning package is processed in subsets. Those subsets are created by BPS. The users does not see them. If you are in BPS0 you can use "Execute with Trace" and each line in the trace corresponds to one internal package.
    > 3. Is FOX related to transformation library?
    There's no relation. FOX have it's own set of functions.
    > 4. Is Data Slice in same as that in BW?
    There are no data slices in BW.
    > 5. Where can I find more information to better
    > understand BPS? I am more BW than BPS. My colleagues
    > passed me some course manuals but I need more
    > foundation materials. Any useful links?
    There are a few books out. Search Amazon or SAP Press for "BPS".
    Regards
    Marc
    SAP NetWeaver RIG

  • Few simple questions from newbie

    I'm new to Java, but i've worked a lot with action script... it didn't help a lot :) Here are my few beginner questions:
    What does: public, static, abstract, void... and other things mean in front of the class name?
    How can i call variables from another classes: if i have one class that does one thing and stores the result in a variable, how can i use that variable from a different class?
    How can i call the input window to enter the value for variable? I've tried with importing "io.inputstream" library, and used the "extend" thing, but i still cant call the input window?

    I came to Java from ActionScript too, and I must say having ActionScript as your first programming language does NOT make it easy to learn other languages. I was incredibly lost when starting with Java.
    What does: public, static, abstract, void... and
    other things mean in front of the class name?You'll find all that in the Java Tutorial
    How can i call variables from another classes: if i
    have one class that does one thing and stores the
    result in a variable, how can i use that variable
    from a different class?To use the variable from another class, you need to make a call to the class. Let's say you're in ClassB; you would make a call to a ClassA variable by doing something such as:
    ClassA.myVar.myMethod();
    How can i call the input window to enter the value
    for variable? I've tried with importing
    "io.inputstream" library, and used the "extend"
    thing, but i still cant call the input window?I recommend reading the tutorial before you try anything like that.

  • A really stupid question from newbie...

    hello all,
    i am very new to java and i am trying to build a j2ee application...
    rite now....i need to let my app communicate w/ an outside program thru' XML..
    i had just learnt many thing about java w/ xml and i decided to use the XMLEncoder... it seems quite simple to use...BUT i have no idea on how to send/receive these XML files...i had thought of using socket connection, but i just found out that an EJB wouldn't allow socket networking... i bet this must be quite a stupid question coz i found nowhere teaching me this...=P
    if u know about this, pls point me to some relevant docs / sites....i am anxious to learn about it...
    thx so much,
    karloogunna~

    hello maesj, rune, and others,
    thx alot for your advice...
    and here's the environment i am working in:
    OS: w2k
    JDK: 1.4.1.01
    j2ee: 1.3.1
    jboss: 3.0.2
    i am using flash as my UI, so i need communication
    between the j2ee app and flash.
    the data transfer involves a number of arrays of
    objects (each object w/ a list of attributes...) so, i
    think using XML as data-exchange is quite suitable (am
    i wrong on this??)I don't know the first thing about Flash, but using XML as a means for exchanging data seams like a good idea, for the scenario you described.
    >
    and i am reading about the message-driven beans, i see
    that they got a function onMessage() from where i can
    get the XML strings (?), but i don't know how i can
    feed these strings into this JMS from flash...do i
    need to write a small java program on the client
    side?I haven't that much experience with Message Driven Beans. What I do know is that they employ the Java Messaging Service (JMS). If you write a small client appplication with JMS support... you might be close.
    >
    also, i am not sure if i can send out XML strings
    through the message-driven beans, i am reading on the
    JMS...it got the MessageProducer, MessageConsumer,
    MessageListener, and MessageSelector....should i be
    using this? or can i use this together with the
    message-driven beans??
    In a Messaging system you will need message producers, and message consumers. To enable two-way communication, you can setup both the EJB and the client to handle both. When a message arrives at the consumer (or subscriber if you like), the JMS Service invokes the onMessage method. So you should implement your logic in the onMessage method, for example inspect the XML content, and act upon its content.
    i am very sorry for my disorganized questions...(i
    used to do low-level programming =P)
    and really thank you for your advice!!!!
    No problem, the amount of information to read can be quite overwhelming. Using JMS is just a suggestion, and might be considered overkill for your application. If you're using an IDE, like Sun ONE, creating a message driven bean is easy, and can be tried out, without too much hours passing.
    Kind Regards,
    Rune Bj�rnstad.

  • Two questions from newbie (just got my Zen Micr

    Hi, just got my Zen Micro after reading up on lots of players. Two quick questions if i may:-
    . Why the difference in keyboard icons? I notice on some that the 'back' button actually has the word 'back' written on it whereas others only have the arrow.
    2. After i've charged the player (for 5 hours minimum on first charge?) should i immediately update with the two firmware downloads before adding songs?
    Thanks in advance
    Jaff

    jaf089:
    . The face plate has changed, presumably for international markets where people don't speak English.
    2. The player will be charged in a maximum of 4 hours. The way to tell its charged is once the charging icon and glow stop, wait another 30 minutes for the final slow charge, then it will be ready.
    You don't need to update with two different firmware updates, you can go straight to an update without one beforehand.
    The .0.03 update fixes a battery charging bug, if you don't have this already, but allows the player to stay accessible with MediaSource.
    The v2 updates give the player MTP access (driverless access with Windows XP and Windows Media Player 0). Be warned though, some people have had stability problems with both the connection and software after this upgrade.

  • Driver question from newbie

    I read in Maximum PC magazine that you should periodically update the chipset drivers for your mobo?  The only Intel driver listed on the MSI website was released in September 2003 (v5.02.1002) and reads "Add support for Intel 848P and 865GV".  According to my literature, my mobo is an MSI 875P NEO-LSR 500/800MHZ (whatever that means)...how do I determine if this driver is the correct one?

    These are the latest INF drivers that MSI has released. There are newer ones available from Intel that are not specifically for your motherboard but some people have installed them successfully. Personally I don't think you should make this change unless your having a problem related to your current INF drivers. Most people say you should install the INF files IMMEDIATELY after installing Windows and before anything else to avoid conflicts with other drivers. IMO I don't think you'll see any real performance increase with this type of upgrade...It's more to add functionality and solve existing problems.
    If you decide to go ahead, you should make sure XP System Restore is functioning and create a restore point before applying the update so there's a chance you could recover easily if you have to.

  • Fast User Switching Question from newbie

    Hi
    This is probably a simple question, so I apologize in advance...
    I was looking around in system preferences and was customizing a few settings. Prior to my changing "something" I had my user name in the title bar (upper right) and I could switch to my other account via a pull down menu. My user name is no longer in the title bar and it seems that the only way I can switch accounts now is by using the Shift-Cmd-Q option now.
    How do I get the user name back in the title bar so I can switch accounts like I used to do?
    Thanks
    RIch

    Found it by searching, apparently a fairly common prob. It works now.

  • Simple questions from newbies

    Hi Gurus,
    Please kindly state the examples of month end reconcilliation done between AP,GL and AR and PO.
    Secondly, why will i want to Reverse Accrual,Reclassification and temporary adjustment journals, Please "Gurus" explain each.
    Thirdly i reversed an unposted journal,what effects does it have or do i need to post both original and reversed together.

    My 2 cents here.
    We only reverse expense accruals and not inventory accruals. The reason is when we receive the inventory purchases, we have material (inventory account) that we have not paid for yet (inventory accrual). In PO shipments we decide whether we accrue on receipt or not. For inventory destination and inventory items, it is must, but inventory items to expense destination, expense items to expense destination and no item purchases (service), we can turn it off. Which means though material or service is received, you do not have any evidence for the material or service you have received (because there is no accounting created even if you have received in system).
    To estimate your expense accruals, you run a program which generates your expense accruals between your expense accrual account (cr) and account entered in the PO distributions (Dr.).
    When you match the invoice to PO the same account entered in the PO distribution will be debited again crediting your liability account.
    This will be double accounting entry for this account, if you do not reverse.
    Thanks
    Nagamohan

  • Reading USB joystick data directly from the USB port

    I have made a program to read USB joystick data in Labview using the "initialize joystick vi" and "acquire input data vi". I noticed that these vi's use the data from windows XP. The joystick calibrating function of windows can influence the data that Labview shows. For instance: axis 1 uncalibrated data(before calibration in windows) 3901 to 32767. After calibration in windows Labview shows me data on the same axis ranging from -32767 to 32767.
    Is it possible to read the data from the joystick before windows "messess" it up?

    USB protocols are a messy black hole.  The way each USB item communicates to the operating system is dependant on the products manufacturer.  I think that is why there are no USB functions built into LabVIEW.  Perhaps there is some way to force a calibration at the beginning of your code so that the data is consistent on each execution??? 
    Also, if I remember right, there were some recent posts concerning reading a USB mouse that you could search for to get some ideas.
    Good luck and please post a follow-up if you come up with a good solution. 
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Accessing a 3-axis USB joystick from LabVIEW

    I am trying to access a 3-axis USB joystick from LabVIEW. I see that this issue has been posted before...has anyone come up with a solution?

    Microsoft's DirectX, free via MSDN, is a set of development libraries for high performance games avilable in both a VB and C++ SDK. Input from USB joysticks is supported in the DirectInput portion of the SDK.
    The ActiveX object for the VB flavor will NOT work with LV. It initially appears to work. You can make an activeX connection but the input device objects are created dynamically from device enumerations and LV requires objects to be defined at connection time.
    However, if you are up to it, (I am severely C syntax challenged), you could probably use the LV call library node along with the C++ SDK to make the DLL calls.
    If your budget allows, these guys:
    http://www.xon.de/reference/XOnMultimedia/_XmmJoy_VIs.html
    sell a DirectX based LV multimedia
    toolkit that appears to support Z-axis joysticks. Their website is a little messed up and the German description for the toolkit is coming up on the english side. This link is the english documentation for the toolkit. Maybe if you poke around you can get 100% english. If not you can contact Peter Prinzen [ [email protected] ]for further info. I think it was $45 USD about 4 months ago. Good Luck.

  • Question from a Newbie wireless user

    Please excuse the naivete of this question. I'm completely ignorant on everything pertaining to wireless internet. My old Powerbook 400mHz G4 Titanium has never had wireless of any kind until this week when I bought a PCMCIA wireless adapter. Never used wireless, don't know anything about it.
    I started following the instructions on the PCM adapter this morning to get it all set up. I plan to toggle back and forth between wired internet at home and the wireless adapter when I'm out on the road.
    I was surprised when I saw the window where I enter my settings that there were no less than ten different internet services flying around the room in my house! I guess I have a lot of wireless neighbors and I could easily access their bandwidth.
    I imagine the same would go when I'm in town sitting in the library. They welcome you to use their internet access, but it's in a busy end of town and I'm sure I'll see numerous services available there too.
    So I'm clueless on this topic. Again, I've never used wireless internet before - but I've read about these guys who've been arrested in front of coffee houses for stealing bandwidth at WiFi hotspots when they weren't paying customers.
    What's the deal with sitting in your living room and using your neighbor's internet access? I know it's not ethical and we should all get our own, but what are legalities? And say I hopped on to someone's internet access +quite accidentally+...how does one get caught if you do it quietly? And have people actually gotten into trouble beyond these two guys that made national news?
    I guess my main question is exactly how careful do I need to be to set the correct access service when there are ten immediately available in a public place? Can I just click on whatever signal is strongest and log on without fear of being caught?
    I hope somebody knowledgeable can set me straight on this.
    Thanks.
    -JOHN
    ps. Here's the news item on these guys stealing wireless internet access:
    http://arstechnica.com/tech-policy/news/2007/05/michigan-man-arrested-for-using- cafes-free-wifi-from-his-car.ars

    You may find this technical article I've written helps you:
    http://homepage.mac.com/rfwilmut/notes/wireless.html
    It is fairly long, but it was originally written in response to some questions from a non-technical friend, and so I've tried to keep it as straightforward as possible.

  • [Question] Can I call a wap browser from a j2me program?

    Hi, everybody, I am new to j2me programming. Now, I want to call a wap browser to visit a site from my j2me program.Can anybody tell me how to do it?

    Check this from MIDP2: Classes MIDlet
    platformRequest
    public final boolean platformRequest(String url)
    throws ConnectionNotFoundException

  • Miscellaneous - Questions from a Newbie

    I just got my iPhone this week and some questions popped up. I know that some of them might fit better in other categories than "basics"...
    1. Sync with Outlook - I was under the impression that the iPhone syncs up with Outlook but:
    a) How can you mark an Outlook Appointment as "privat" so not everyone in your company who has access to you calender can read it?
    b) Why are no documents synced, which are in a Calender Appointment save in Notes? (The Text in Notes will sync, but no PDFs for example...)
    c) When I reply to an E-Mail, the info that an when I replyed is not saved in Outlook
    d) in Outlook I can mark e-mails with priorities... this is not shown on the iPhone
    e) can the Auto-reply or Out-of-the-Office message set or changed from the iPhone?
    2. Mail
    a) I have differnt E-Mail accounts and would like to use different signitures for each account... the is an App, but thats too complicated. Is there a way to have an automated signature for each acount (this should be a basic feature!!!)
    b) Can I save e-mail attachments in specific folders? (eg a word doc)
    3. Media
    a) How can i created different Folders in the photoalbum, so I can sort them and don't have to scroll for ages...
    b) Can I get access to the Folders on the iPhone, so I can copy (for example Music) for differnt sources to the iPhone?
    c) Is there another Sync programm than iTunes?
    d) Can I delete Apps which I don't use (eg. Weather, Stockmarket...), but which are allready installed when i bought it
    4. Sounds and Alerts
    a) Can i create my own ringtones (eg an mp3)?
    b) Can I add other alert sounds (for E-mails for example)
    c) How can I change sounds for different Events (New Mail, Alert...)?
    5. Connectivity
    a) Can I sync the iPhone over bluetooth?
    b) Can I use the iPhone as a modem for my laptop? how?
    c) If stolen, can I remotely delete it or search it via GPS?
    6. Battery
    a) is it normal that when you use push mail and make a couple of calls a day the battery only last for max. 20 hours?
    Thats the first lot of question from week one... Thanks in advance for replys and the awaiting answers
    Axl

    I can answer some of them:
    Is there a way to have an automated signature for each acount (this should be a basic feature!!!)
    No
    b) Can I save e-mail attachments in specific folders? (eg a word doc)
    No. You can't save attachments - just view them
    b) Can I get access to the Folders on the iPhone, so I can copy (for example Music) for differnt sources to the iPhone?
    No. The iPhone cannot be directly accessed like a hard disk. There are third-party apps that allow this to a certain degree, but you can't add Media to the iPhone via this method.
    c) Is there another Sync programm than iTunes?
    Not really. There's some that may do some features, but not a complete replacement for it. What's wrong with iTunes?
    d) Can I delete Apps which I don't use (eg. Weather, Stockmarket...),
    No. But you can move them to a different Home screen.
    a) How can i created different Folders in the photoalbum, so I can sort them and don't have to scroll for ages...
    http://www.question-defense.com/2009/08/15/how-to-create-photo-albums-on-your-ip hone-on-a-windows-xp-computer/
    a) Can i create my own ringtones (eg an mp3)?
    Yes. Google "create iPhone ringtone" for a variety of options
    a) Can I sync the iPhone over bluetooth?
    No.
    b) Can I use the iPhone as a modem for my laptop? how?
    Yes, although it depends where you are. See:
    http://support.apple.com/kb/HT3574
    http://support.apple.com/kb/TS2756
    c) If stolen, can I remotely delete it or search it via GPS?
    Yes. See MobileMe's "Find My iPhone" feature:
    http://www.apple.com/mobileme/features/iphone.html
    a) is it normal that when you use push mail and make a couple of calls a day the battery only last for max. 20 hours?
    Quite possibly. Battery life seems to be reduced in the latest firmware and lots of people are awaiting a fix from Apple.

  • A question about grub and USB

    Hi All
    I have a quick question about grub and USB that I can't quite find the answer to by searching.   Most of the FAQs discuss booting a full linux dristribution from USB. My situation is this.  I am getting a new computer with two drives, the second will be arch and the first will be Vista (for my wife).  I want the computer to boot the same way that my wife's machine boots at work so I don't want to install grub on the MBR.  So, is there a way to have all of the grub config files and kernels installed on the second drive and simply install to grub boot loader to the MBR of a USB stick?  My goal would be to simply plug the USB stick into the new PC and boot arch from the second drive. 
    Thanks
    Kev

    i cant say for hp's
    havent worked on any in a while
    recent machines have been coupleof dell's , vaio & emachine
    which dells do offer it at least the ones i tried , my laptop does(dell)
    all home pc's are built by me which do offer to boot individual drives
    what hp you getting it may tell in specs
    are both discs sata? if so it might not offer this option with 2 drives of same interface
    check your power supply alot of these preconfigured machines put cheap under reated power supplies in there
    & will burn your motherboard i just replaced PS(250 watt) & mobo(845gvsr) in an emachines <cheap stuff<
    i hope you researched the pc before buying ie : mobo, power supply are the biggest concerns
    i find it much more benificial to build my own machine gives me peace at mind. the cost is sometimes more in $ but not always , your biggest expense is time researching hardware
    if you live in usa the best places to start looking are bensbargains.net & pricewatch.com
    i am not affiliated with either & niether sell the hardware they are just advertisers a place to buy
    for costomized machines that i would trust is unitedmicro.com theyll asemble & test before shipping
    i have gotten 2 machines so far from them with NO PROBLEMS with hardware (knock knock)
    you may want to consider this in your next venture for pc

  • How to restore Windows 8 from a recovery USB on a tablet w/o physical keyboard?

    I bought a Lenovo IdeaPad tablet that came with Windows 8 Pro:
    http://support.lenovo.com/en_US/product-and-parts/detail.page?DocID=PD026486
    The first thing that I usually do is create a recovery disc. This time I was able to create a recovery USB drive. But then I thought of something -- how would I recover from it?
    I asked at the Lenovo community site and people told me to connect a USB keyboard and press Fn + F12 during booting. The issue is that, first, I do not have a physical keyboard for it. Do I really need to pay $50+ just to boot from a USB drive? And
    secondly, even if I got a physical keyboard this tablet has only one mini USB port so if I use it up to connect a USB keyboard, how would I connect the USB flash drive?
    So can someone clarify this for me? Again, all I need to know is how to restore from a recovery USB drive.

    Hello Again Zubedi35!
            Ok, I think I have it covered. First, you need a key to be able to proceed with the installation process. When you get a key, go online and download the windows 8 usb installer to be able to install a properly formatted
    installation of windows 8 to your usb drive; make sure you use a windows 7 or windows 8 computer to format and install windows 8 to your usb- very important! Once you have windows 8 installed to your usb drive, all you need is the key and the installation
    process on your pc will be a cinch. But before you get ready to do the installation of windows 8 to your desired computer, first you must do one thing- reformat your hard drive again. Since you said you have another computer (preferably a desktop), you may
    place the hard drive from your laptop that you are trying to install windows 8 on and place that hard drive into the other computer- but you will need an external device to place the hard drive in to be able to reformat it if you don't have a desktop computer
    with an extra bay (slot to put an extra hard drive into) to place the hard drive in and perform the reformatting. I would try to find someone with a desktop that has an extra bay to place that hard drive in and reformat it (it must be a computer with a windows
    7 or 8 operating system on it so that you may be able to see the drive and perform the reformatting process. If you choose to do this, you must turn the desktop computer off and open the side of the computer then connect the hard drive to the sata connectors
    of the open bay. Then, turn the computer back on and go to 'My Computer' (on windows 7 computer) or click the little folder (File Explorer) on the taskbar and look in 'Devices and Drives' and the hard drive should show up next to the main drive (Local
    Disk C:). Formatting your hard drive is just like formatting your usb- just uses a different method of connecting. Try and purchase an external USB Disk Drive to install windows 8 to your pc from a CD if you choose not to go through this process of installation
    by usb. I hope this helps and please notify me if you have any other questions or if you need help through the installation process- enjoy your Windows 8 computer!
    We live to learn, We learn to develop, We develop to operate... o(._.)o

Maybe you are looking for

  • Custom search help for characteristic based variant

    Dear Experts, I have characteristic based variant report, my requirement is, in any  Article(matnr) related transaction( Ex: MM43, VA01..) I required custom search help based on these characteristics and i will populate article/variant. Attached repo

  • Problem In JSF compilation

    Hi, This is velrajan from MindTree consultiong Bangalore India.I am new to JSF.When i try to compile my ActionListerner file i got the following error. MyActionListener.java:9: package javax.faces.tree does not exist import javax.faces.tree.Tree; ^ M

  • Pb with file in jar

    I develop a small app which need to read information on text file in the Jar. The Emulation in Eclipse works well but when I use netbeans to make easily the Jar I have a problem and the program is unable to connect to the file. Where must I stock the

  • Convert military hours time to civilian time

    Fellows: How do I convert the military hours to civilian time (hours 1 through 12 followed by either "a.m." and "p.m."). . Thanks /* The following program will print hours in military time */ import java.util.Date; public class Hours public static vo

  • Can any institution be on iTunes U and can the course be restricted somehow?

    Hello all, I'm working with a client and we're pretty interested in using iPads as a learning platform in our course that we're putting together. iTunes U seems to be a great tool and we're looking at using that as well as an optional tool to add to