Simple Mobile Bookshop problem

Hello,
I have to write some simple program using choicegroups, textfields, forms and other basic elements. I's kind of bookshop, I have written almost everything, but I have huge problem with displaying basket.
this is the code for whole my app [ if anybody want to run it, just delete the lines with images ]
[http://www.iie.org.pl/book.java]
u see, there are 5 categories of books [ and five ChoiceGroups for them ], user can choose couple of books from different categories, and he/she get the price, this is working just fine, the problem is to display them, I've try to move choosen to separate array, but it can hold just 5 values [ ( no, I can't make it larger ) check the code [ public int checker () ]]. To be honest I don't know how to move it on, try different things [ ignore the last two methods, just for testing reasons ], but without success. Can You just focus on this basket and not making comments about the rest of the code [ I know its messy ]. This is my first larger progam for mobiles.

OK, this will add the books in the array:
public int checker( ChoiceGroup chg, int temp[], Form fr){
        String message="";
        boolean arra [] = new boolean[chg.size()];
         chg.getSelectedFlags(arra);
      for (int i = 0; i < arra.length; i++) {
          if (arra) {
//this will add the books in the array books[]
books[co] = chg.getString(i);
//checking the array
System.out.println(books[co]+" co = "+co);
co += 1;
fsuma = temp[i]+ fsuma;
message = "" + fsuma ;
//bask_help(chg.getString(i));
}Edited by: Sypress on Mar 15, 2010 2:11 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.

    hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.

    If your iPhone is truly unlocked - purchased as unlocked through Apple
    or through wireless provider that sells unlocked iPhones or unlocked
    by a wireless provider, then the update should not mess up your iPhone.
    If your iPhone was jailbroken or hacked to change wireless providers,
    then the update will relock it to the original wireless provider if you are lucky
    or turn it into a useless brick if unlucky.
    Back up first to protect against glitches or other problems.

  • Mms enabled on iphone 6 on simple mobile carrier

    I have an iphone 6 and its on Simple Mobile. my mms isn't working when i send a non iphone user a picture it says Not Delivered.
    Now when i send it to any iphone user the pic will go through via imessage.
    I went to simple mobiles website regarding the situation and they gave me instructions on how to set it up and i tried sending a pic to a non iphone user and it came back again "Not Delivered'.
    What can be done to fix this PLEASSSSSE HELLLLLP!. Thank you.

    I debugged this on the actual iPhone 6 that was having the problem and I saw that it was failing when the token returned by the server was being stored in session storage.
    I called up Apple support and spent a fair bit of time on the phone with them. The page was working on other iPhone 6 devices but not this one. After trying a few different settings and confirming it was working on Chrome, the fantastic Apple support person asked me to see if the page was set to 'private'.
    On the bottom right of the safari browser, you click an icon and you can set individual websites to 'private'. Unchecking this made the website work and I could store the token in session storage. It appears that my client accidentally set the website to 'private' and this was causing the issue.
    Hopefully this will save someone else some time with a similar issue.  Full credit to Apple support who spent over an hour to resolve this issue.

  • When i try to activate iMessage i could see the comment "waiting for activation" for more than 24hrs.Is this because of mobile device problem or someother issue ? My mobile is just 20 days old

    When i try to activate iMessage i could see the comment "waiting for activation" for more than 24hrs.
    Is this because of mobile device problem or someother issue ?
    My mobile is just 20 days old

    The following discusses that error message and may help: iOS: Troubleshooting FaceTime and iMessage activation

  • SIMPLE Database Design Problem !

    Mapping is a big problem for many complex applications.
    So what happens if we put all the tables into one table called ENTITY?
    I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
    Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
    Definition of the table
    ENTITY
    EntityID > uniqueidentifier
    EntityType > Tells the entityTypeName
    Name >
    LastName >
    CompanyName > 300 attributeTypes
    OppurtunityPeriod >
    PS:There is also another table called RELATION that points the relations between entities.

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    check the coloumn with WHERE _entityType='PERSON'
    as there is is clustered index on entityType...there
    is NO performance decrease.
    there is also a clustered index on RELATION table on
    relationType
    when we say WHERE _entityType ='PERSON' or
    WHERE relationType='CONTACTMECHANISM'.
    it scans the clustered index first.it acts like a
    table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
    WHERE _entityType ='PERSON'
      AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Have you ever thought of using constraints in your
    modell? How would you realize those?
    ...in fact we did.We have arranged the generic object
    model in an object database.The knowledge information
    is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
    But the data schema is held in the RDBMS with code
    generation that creates a schema to hold data.If you think that this approach makes sense, why not.
    But in able to have a efficent mapping and a good
    performance we have thought about building only one
    table.The problem is we know we are losing some space
    but the thing is harddisk is much cheaper than RAM
    and CPU.So our trade off concerated on the storage
    cost.But I still wonder if there is a point that I
    have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
    PS: it is not wise effective using generic object
    models also in object databases as CPU cost is a lot
    when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
    PS2: RDBMS is a value based system where object
    databases are identity based.we are trying to be in
    the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
    What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
    C.

  • Style declaration in mobile app problems (not working)

    Hello,
    In a simple mobile Flex app, I have a simple View that has a styleName assigned to a VGroup within it. The decleration is within the same view (for sake of trying to make this work, but it's in an external css if I figure out a way to make this work).
    The padding's I'm assigning are just NOT working at all. Nothing. While if I specify in the VGroup directly it's paddingTop or another style, it works fine
    Weird behavior.
    Here's the View:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            .myGroup {
                paddingTop:200;
                paddingLeft:300;
                paddingRight:30;
        </fx:Style>
        <s:VGroup styleName="myGroup">
            <s:Label text="Hello" />
        </s:VGroup>
    </s:View>
    Anyone have an idea why ?
    I'm using Flex 4.6/AIR 3.6 at the moment, tried it with Flex 4.9.1/AIR 3.4 too, same behavior.
    Is this a bug ? Am I doing something wrong ? Is there a hack/trick to make this work other than specifying the styles directly in the MXML ?
    Thanks.

    Just realized that the paddings in the VGroup aren't styles anymore but are properties. Damn those spark components
    I guess that's why, and I find it's a bummer. I know I could hack this, but damn me!

  • TS4148 I have bought unlcock 3gs phone, after interting simple mobile sim it is giving no service message. Note - It is showing AT&T in carier

    I have bought unlcock 3gs phone, after interting simple mobile sim it is giving no service message. Note - It is showing AT&T in carier

    Why do you think it is unlocked?

  • E mail on Simple Mobile network

    Recently unlocked Storm 9530 from Verizon and elected to try Simple Mobile BB unlimited. Cannot use e mail on phone because, according to Simple, Verion has not released the service book for e mail on this phone.
    Is there a solution to this issue other than pulling out my hair trying to pry information from Verizon ?
    I appreciate any and all feedback. Thank you

    OK...here it is...as I said, not simple...
    This process assumes that you have available a fully functioning (e.g., all BB Services) BB on the network you wish to run your non-supported (by that network) BB on. There is zero guarantee that this will work at all…but it is the only process I know for getting a non-supported BB to function on that carriers network.
    1)     On the non-supported BB:
    a)     Insert the desired network providers data plan SIM card into the non-supported BB and boot up
    b)     Allow the BB to register to the network
    c)     Remove default APN
    KB05327Set the APN settings on the BlackBerry device
    d)     Shut down and take SIM out of the non-supported BB
    2)     On the supported BB:
    a)     Insert SIM into the supported BB (one that is fully supported by the carrier network) and boot up
    b)     Wait until the browser can be used
    c)     Options > Advanced Options > Host Routing Table > Register Now (wait for message receipt)
    d)     Resend Service Books (via BIS, either on device or at carrier BIS site) (wait for message receipt)
    KB15402How to send service books to the BlackBerry smartphone for BlackBerry Internet Service
    e)     Options > Advanced Options > Service Books
    f)      Hold ALT while typing "sbeb"
    g)     Should display "Legacy SB Restore Enabled" -- press OK
    h)     Tether and launch the RIM desktop manager (recommend most recent version):
    https://www.blackberry.com/Downloads/entry.do?code​=A8BAA56554F96369AB93E4F3BB068C22
    i)       Perform a custom backup and back up only the service books (make note of the location and name of this IPD...it will be needed later)
    KB23680How to back up and restore BlackBerry smartphone data using BlackBerry Desktop Software 6.0
    3)     On the non-supported BB:
    a)     Insert SIM into the non-supported BB and Power Up
    b)     Options > Device > Service Books
    c)     Hold ALT while typing "sbeb" -- press OK at prompt
    d)     Tether and launch desktop manager
    e)     Perform a custom restore, using the IPD file created in step 2.i above, restoring only the Service Book database
    KB23680How to back up and restore BlackBerry smartphone data using BlackBerry Desktop Software 6.0
    f)       Untether and Battery-pull Reboot the non-supported BB (with power ON, remove battery, wait, insert battery, reboot)
    g)     If needed, enter required APN settings (we cannot know if they are required…many carriers do not require them…you can check the supported BB for the right settings)
    h)     If needed, check BIS email configurations and re-configure if needed.
    With all of that, the non-supported BB should be good to go on your desired network with full BIS services (assuming you bought a plan that includes BIS of course!). If you are using BES, the same process should work as that is also just a matter of having the correct Service Books plus going through the activation process.
    Keep that special IPD created in 2.i forever…if you ever remove the SIM from your non-supported BB and reboot, the necessary Service Books will be lost. You’ll have to do the restore again from that IPD in order to put the Service Books back in place. If your carrier ever starts supporting your model BB directly, then all of this will be moot!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • IMessage Will Not Activate [iPhone 4s || Factory Unlock || Simple Mobile]

    Ive had this iphone for about a month now and imessage and facetime does not work. it says waiting far activation and after awhile it fails. Ive tried literally EVERY THING on the net. everywhere. Someone please help. My sister has this same setup and hers is working find.
    another question, is simple mobile the same as tmobile?

    First turn off imessage and facetime.  Then restart the phone, wait about a minute or so and turn imessage and facetime back on and see if they activate.  To restart hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).  If that doesn't do it you should be aware that activation of imessage sends a hidden SMS to a +44 number in the UK and depending upon where you are that could mean an international SMS.  Does your plan with your carrier provide for sending international SMS?

  • New with OMG Simple Mobile Carrier

    Just switch to Simple Mobile Carrier. Talk and Text work out great but I can't use the Web which is included in the plan.
    This is the message I got on my Blackberry Pearl 8100:
    Unable to open a PDP Context to the following APN:
    wap.voicestream.com
    This may be happening because the currently selected Browser configuration is not compatible with the current network.
    Called three times to the customer service and each time I got different instruction that I hardly understood. Hope someone can Help.
    BTW, on my SETTING > ADVANCED OPTIONS > BROWSER is
    Default browser configuration:           t-zones
    Default WAP Browser configuration  t-zones

    I don't see where they have Blackberry Data Plans.  They sell "packages" (voice and text) and web access but no devices.  Some "feature" phone could be used to access the web but not a Blackberry. A Blackberrry requires a Blackberry Data Plan which OMS Simple neither advertises or provides.
    You took your Pearl to a "carrier" and I use that term loosely that is ill equipped to handle it.  It does not offer what a BB requires.
    Наглый пес! Вы должны быть благодарны мы даем Вам возможность проживать в нашем мире!
    BB 9550 Verizon OS 5.0.0.1015 My Storm My Blackberry My Lifeline
    If there is a Theme on my Blackberry, Hedone it!
    If someone successfully helped you with an issue, say thank you by clicking "kudos" in their post and clicking the star.
    Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur ad necem
    If your issue has been solved, please mark the post that solved it for you!

  • Simple project,serious problem

    my flex mobile project for android is so simple that it just outputs a string "hello world",but i get serious problem on many android devices when launch it after successfully installed while some devices work well.can anybody explain why?i use FB4.6+air3.3.

    Hi
    Easy answer is - No not with standard iMovie any version (with plug-ins and
    iMovie prior to iM '08 or 09 - may be)
    Suggested one - Yes but You don't need pro version Express will do it as nicely.
    I think it also can be done with QuickTime-pro.
    I would use FinalCut Express and import the movie here and re-size.
    If only a DVD copy I would either
    • copy back to a new miniDV tape (via a DVD-Player and Camera) - or -
    • use Roxio Toast™ and back convert to streamingDV
    then use this in FCE
    Yours Bengt W

  • Mobile technology problem

    Sorry if this is a simple problem but it's got me. I have a problem with mobile technology :-
    The following is a normal page on the web
    http://uk.geocities.com/birthdayblews/BBHOME/BBHome.html
    The Java link on the page "Todays Page" <image link> opens a new window
    The following is a much cut down page I set up for mobile phone access :-
    http://uk.geocities.com/birthdayblews/BBHOME/mobile.html
    containing again the link "Todays Page" <text link>
    Both of these work fine on the WWW but the second cut down version does not work on a mobile phone - the "Todays Page" link doesn't work and the date and day at the bottom does not display.
    Does anyone know why ?
    btw - the phone I used was a Samsung E250

    Maybe nothing to do with programming - but the
    platform itself.
    I'd appreciate intelligent suggestions rather than
    dismissive crap. Any further replies from MrClap will
    be ignored.it's not dismissive cr@p. this is a forum specifically for java programmers, Dr Clap was perfectly correct in his assertion. also, your attitude has pretty much guaranteed that anyone who could have helped you, now won't
    bye bye

  • Simple mobile app works on testing, but crashes on device (android)

    Hey guys, I am sure the first thing is I am in the wrong spot, but there is too much going on in this site to find the right location, so flash pro gerneral, is a good place to start.
    I am in a class ar Weber State University, while in basic Flash animation, I am not new to it, but had not really touched it since it was Macromedia.... I decided to do a mobile app as my final project. It is a simple artist app that has buttons that go to biography, image gallery, audio samples and links to my releases. I did the tests and there are no errors or output problems, works like a champ. I could not get flash to recogonize my device so I had to put it on manually. I got it to install, then when I try to open it, my phone buzzes teice then crashes.
    Now I know without looking at the action script or how I have things linked, you can't say what is wrong. BUT I am totally stumped, if you guys could say what "usually" happens with this scenario I can at least get an idea. I keep wanting to blame the publishing, I am not sure I am selecting the right options. new to mobile publishing.
    Here are some of the basic specs for the stage.
    480 X 800 ( a lot of forums and places said this was a good general area for a mobile phone)
    not sure what else to say other than I am using some basic components like the scroll pane and the scroll bar for text boxes. I have the basic stop/start for audio using a simple play btn. I am linking to outside websites for my album releases..other than that, pretty pictures and not much going on...lol
    Thank you, sorry for the long spew of info.
    Rick Mitchell

    Hi, Peter, this could be an issue with proxy server setting. Are you behind a firewall when you test this?
    iOS simulator would use Mac's proxy setting. Android Emulator has its own proxy setup - it's a bit complicated to get to and varies based on the Android emulator you are using. For 4.1 emulator (you should always use 4.x or above emulators), you would need to go into the emulator itself, and go to settings - Wireless & Networks - click More... - Mobile Networks - Access Point Names. You should see an Access point used by the emulator to simulate network connection. Mine says "T-Mobile US". You click on it, and then you can select the proxy attribute and set it according to your office's settings.
    Hope that resolves the issue.
    Thanks,
    Joe Huang

  • Mobile Home problem with Magic Triangle

    So I have been setting up a magic triangle for the past few days with an OSX Lion server.  I believe it is working properly.  The server is running OD and is bound to my AD.  I have made an OD group which contains my AD users, and I have set that OD group to have limited application preferences (one of them is to block the App store).  All my users have MacBook Airs which they will take off-site, so I enabled mobile home folders in the AD bind and in the OD group mobility settings (with confirmation required).
    When I tested it today, with Airs running 10.7.4, here is what happened.
    When the system was on the network, it would log a user in, ask to create the mobile account, and successfully create it.  Once logged in they were limited to the application preferences that I set on the server.  I considered this a complete success.
    When I disconnected them from the network, I had expected that they would still be able to log in and the system would fuction the same way with the exception that they would not sync their changes until they were back on-site.
    Instead...
    When the same user trys to log in it says the AD server is unavailable and then logs them in anyway.  However, once they are at the desktop, none of the permissions are in place.  They can go to the app store, or do anything else they feel like.  Once they are back on the network, all the server based preferences reappear and lock the system down.
    So my questions are:
    1. Should a mobile account based system compain that it cant find the AD domain when offsite?
    2.  Why is it not checking some cached verison of the permissions and locking down the notebook when offsite?  I can tell that it is caching the user name and password (as loging in as a user the air has never seen before will simply give a login error), as it will let them in, but it is not holding any preferences. 
    3.  How can I prevent users from simply disconnecitng from the network to bypass all my server based policies?
    Hope someone can help

    Hi,
    I'm having a similar problem with exactly the same setup, our clients are 10.7.4 wired not wireless the OD server is 10.7.4 and the clients are authenticating via an AD 2008 R2 domain.
    We've had this scenario in the past running 10.5 and 10.6 without any problems but with 10.7.4 the clients' MCX settings are lost when they're not connected to our network. It seems to only lose the settings applied to user groups but not computer groups.
    At this moment in time I don't have an aswer I'm still looking, have you found a solution?
    I know configuration profiles are the way forward and in the future I'll move over to them but they don't seem to work that well with PHD's at the moment.
    If anyone has any thought on this it would be much appreciated.
    Thanks,
    Jay.

  • Mobile me: problem syncing/ computer idenity issue?/ ical

    hi,
    so about 2 months or go my computer (a macbook pro 2.8 ghz) would tell me that the password for mobile me was incorrect, when it wasn't. i could keep getting mail (my .me account) but the sync system kept telling me the password was not correct. so, the only way to sync was to plug my phone (3gs) into my computer.
    then i get an email (about a week ago) that i need to update my mobile me calendar, so i do. then my calendar has the -on my mac, and now - my mobileme account. so now i have duplicates of everything! since both (the on my mac, and my .me) are the same.
    i go ahead and delete the .me account from my ical since i don't want 2 copies of everything.
    so then i again try to sync my phone with out it plugged in. i get a message that tells me (basically, b/c i cant remember it) that this .me account is already associated to a computer named 'my computer's name'. i have one laptop, that i have had for 2 years now. my phone has not been synced to another computer ever. it told me i should rename the computer, but i know the computer it is talking about, and it is the only one i am on. so i decide to tell it to ignore it, or whatever word it actually said. it tells me some information might get lost, but i know there is only 1 computer. i almost feel like my computer is having split personality disorder right now, confusing itself with another.
    so now i still can't sync. the last window is such, "you are nw syncing some of your information with mobile me for the first time." (what, no im not. i always sync.) "to avoid losing this information on your computer, merge the information on your computer with the information on mobileme." the options are then, merge information, replace information on this computer, or replace information on mobileme.
    i don't know what to choose. i have a fear that if i merge i will again get everything. 2 sets of contacts, 2 sets of calendars, etc. i don't know which of the other 2 to choose since i don't know which one it is considering a master.
    i'm just lost. i really want to bring it in for mac support. is that possible? or can someone please help.
    thanks so much.

    Roger,
    thank you so much.  That seems to have completely corrected the problem.  At least, it's not erasing it on my laptop.  I'll have to check it tomorrow morning on the desktop, but it looks like this was a complete win.
    Thank you so much!

Maybe you are looking for

  • Using external hard drives for Time Machine backups

    I would like to let everyone know about an important issue regarding what type of media to use, or better said not to use for Time Machine backups. I tried to use a RAID 0 array disks ( FIY: RAID is a storage technology that combines multiple disk dr

  • Images (and image folders) in the same folder as Lightroom Catalog?

    I'm just switching over from Aperture 3 to Lightroom 4.  I'm wondering if its ok (or smart) to keep the images (and image subfolders) in the same folder that the Lightroom.lrcat and Previews files are kept in.  I'm trying to better organize my Pictur

  • Re-name app

    I have an app I downloaded from itunes store and I want to re-name the app. Is this possible on the iphone4?

  • No scrolling of leaves in a JTree

    I have a JTree in a JScrollpane. There is one main node and three nodes under this (with leaves when you expand them). When I resize the window, so that only the tree nodes are visible, there IS scrolling. But when I expand a node with all its leaves

  • OIM: Manage Oracle Internet Directory Groups

    Hello, In the Oracle Identity Manager Web Administrative And User Console, there is a option to manage User Groups. I was wondering if it is possible with OIM to manage groups (objectclass groupOfUniqueNames) that are at Oracle Internet Directory. Or