Karen Wilson

Ranch Hand
+ Follow
since Nov 19, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Karen Wilson

what should I use instead of double?
10 years ago
I created a simple currency converter app where the user enters the value in euro and the converted price is displayed in other currencies.
But how do I round up the numbers to the nearest 50 cent? so if 1 euro is equal to 1.3395 dollars how do I get the app to display 1.50 dollars?


10 years ago
Hi everyone, I am currently creating an Android game application as part of a college and I need to get some user feedback for a report. I would really appreciate to know what you think of the game.
https://play.google.com/store/apps/details?id=com.karen.mygdxgame
If you could leave your comments on this post that would be great
11 years ago
I have an app that displays contents of an xml file that is stored on a server. The xml file contains a list of events and these events have categories. I want to be able to select which category I want then only display the events for that category. So I created a new xml with a spinner but I have no idea what I need to change in the code so for example if I select the film category only the film events are displayed. I know i will also need to change the events xml file.

here is some of the xml file:


and here is main java class that displays the xml file from the server:
11 years ago
In my android app I am trying to display the information of an xml file. I am using WAMP so I put the xml file in the www folder and set the url to
But when I try run the app on the emulator it just gets an error. What is the correct url for running xml files from WAMP?
11 years ago
I am not updating anything in the database. I just want to display the customer details from the order that was selected.
I know the problem isn't with the sql query because i tested that in the sql manager and it worked so problem is in jsf page
11 years ago
JSF
yes the query select * from customers works, i was able to display the customer information on a different page. so problem must be with jsf code

what is the difference between value and target? I have them set to the same thing. Could that be a problem?

11 years ago
JSF
I am using primeface in this project. I have a database with orders, order details and customers. The index page displays the order details and I click on one of the orders I want the customer details of that order to be displayed. But right now when I click on an order the dialog box that appears is empty. I'm not sure if the problem is with the jsf for the customer class.

here is the jsf page:


and the customer class:
11 years ago
JSF
I created a game for android using Eclipse and I am trying to run the tests using JUnit. But I get an error every time I try run the tests and it creates a log file

here is error log file:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (javaClasses.cpp:129), pid=6056, tid=5492
# fatal error: Invalid layout of preloaded class
#
# JRE version: 7.0_17-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x00000000004cd000): JavaThread "Unknown thread" [_thread_in_vm, id=5492, stack(0x0000000002470000,0x0000000002570000)]

Stack: [0x0000000002470000,0x0000000002570000]

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )

Other Threads:

=>0x00000000004cd000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=5492, stack(0x0000000002470000,0x0000000002570000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (0 events):
No events

Events (10 events):
Event: 0.008 loading class 0x0000000002260750 done
Event: 0.008 loading class 0x0000000002222b90 done
Event: 0.008 loading class 0x0000000002222b60
Event: 0.008 loading class 0x00000000022b0a80
Event: 0.008 loading class 0x00000000022b0a80 done
Event: 0.008 loading class 0x00000000022b0ac0
Event: 0.008 loading class 0x00000000022b0ac0 done
Event: 0.008 loading class 0x00000000022b2c40
Event: 0.008 loading class 0x00000000022b2c40 done
Event: 0.008 loading class 0x0000000002222b60 done


Dynamic libraries:
0x000000013f250000 - 0x000000013f283000 C:\Program Files\Java\jre7\bin\javaw.exe
0x0000000077210000 - 0x00000000773b9000 C:\windows\SYSTEM32\ntdll.dll
0x00000000770f0000 - 0x000000007720f000 C:\windows\system32\kernel32.dll
0x000007fefd0b0000 - 0x000007fefd11b000 C:\windows\system32\KERNELBASE.dll
0x000007fefd780000 - 0x000007fefd85b000 C:\windows\system32\ADVAPI32.dll
0x000007feff140000 - 0x000007feff1df000 C:\windows\system32\msvcrt.dll
0x000007fefefa0000 - 0x000007fefefbf000 C:\windows\SYSTEM32\sechost.dll
0x000007fefee70000 - 0x000007fefef9d000 C:\windows\system32\RPCRT4.dll
0x0000000076ff0000 - 0x00000000770ea000 C:\windows\system32\USER32.dll
0x000007fefd420000 - 0x000007fefd487000 C:\windows\system32\GDI32.dll
0x000007feff1e0000 - 0x000007feff1ee000 C:\windows\system32\LPK.dll
0x000007fefde40000 - 0x000007fefdf09000 C:\windows\system32\USP10.dll
0x000007fefbbd0000 - 0x000007fefbdc4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefdb50000 - 0x000007fefdbc1000 C:\windows\system32\SHLWAPI.dll
0x000007fefde00000 - 0x000007fefde2e000 C:\windows\system32\IMM32.DLL
0x000007fefda40000 - 0x000007fefdb49000 C:\windows\system32\MSCTF.dll
0x0000000071a70000 - 0x0000000071b41000 C:\Program Files\Java\jre7\bin\msvcr100.dll
0x000000005d370000 - 0x000000005da8f000 C:\Program Files\Java\jre7\bin\server\jvm.dll
0x000007fef9bf0000 - 0x000007fef9bf9000 C:\windows\system32\WSOCK32.dll
0x000007fefee20000 - 0x000007fefee6d000 C:\windows\system32\WS2_32.dll
0x000007fefde30000 - 0x000007fefde38000 C:\windows\system32\NSI.dll
0x000007fefa1e0000 - 0x000007fefa21b000 C:\windows\system32\WINMM.dll
0x00000000773d0000 - 0x00000000773d7000 C:\windows\system32\PSAPI.DLL
0x0000000071d80000 - 0x0000000071d8f000 C:\Program Files\Java\jre7\bin\verify.dll
0x0000000071d50000 - 0x0000000071d78000 C:\Program Files\Java\jre7\bin\java.dll
0x000000006b510000 - 0x000000006b525000 C:\Program Files\Java\jre7\bin\zip.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Android\adt-bundle-windows-x86_64-20130522\sdk\platforms\android-17\android.jar
java_command: org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 64101 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames com.karen.mygdxgame.BobTest
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
PATH=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Rational\common;C:\Program Files\Java\jdk1.7.0_17\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\PROGRAM FILES\OPENOFFICE.ORG 3\URE\BIN; C:\PROGRAM FILES (X86)\OPENOFFICE.ORG 3\URE\BIN
USERNAME=k00127082
OS=Windows_NT
PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 4 Stepping 3, AuthenticAMD



--------------- S Y S T E M ---------------

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

CPU:total 4 (4 cores per cpu, 1 threads per core) family 16 model 4 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext, 3dnowpref, lzcnt, sse4a, tsc, tscinvbit, tscinv

Memory: 4k page, physical 8383888k(5570364k free), swap 16765916k(13314516k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (23.7-b01) for windows-amd64 JRE (1.7.0_17-b02), built on Mar 1 2013 03:38:30 by "java_re" with unknown MS VC++:1600

time: Wed Mar 12 16:19:33 2014
elapsed time: 0 seconds



11 years ago
is something like this good unit testing?

11 years ago
thanks. could you show me the code for how to do that?
11 years ago
I'm creating an Android game using Eclipse and I want to do some unit testing using JUnit.
I know how to create the tests and JUnit automatically creates methods in the test but I am not sure what would go into those methods.

For example I have a coin class in the project:


And JUnit makes this file:


What should I put in the test case methods to test the coin?
11 years ago

Personally, I've found storing state to shared preferences preferable


ok how would I do that?
11 years ago
What should be used to save the values during orientation change?
11 years ago