/CameraFrame/src/com/nokia/cameraframe/views/PrivacyPolicyView.java

https://bitbucket.org/atchariya/nokia · Java · 82 lines · 69 code · 13 blank · 0 comment · 5 complexity · f3cd39edcd7a965464427672af3f68fe MD5 · raw file

  1. package com.nokia.cameraframe.views;
  2. import javax.microedition.lcdui.Command;
  3. import javax.microedition.lcdui.Form;
  4. import javax.microedition.lcdui.Item;
  5. import javax.microedition.lcdui.ItemCommandListener;
  6. import javax.microedition.lcdui.StringItem;
  7. import com.nokia.cameraframe.MainMIDlet;
  8. import com.nokia.cameraframe.utils.Commands;
  9. import com.nokia.cameraframe.utils.RMSUtils;
  10. public class PrivacyPolicyView extends Form implements ItemCommandListener {
  11. private final MainMIDlet midlet;
  12. private StringItem agreeItem = new StringItem("", "I Agree", StringItem.BUTTON);
  13. private StringItem donotAgreeItem = new StringItem("", "I Do Not Agree", StringItem.BUTTON);
  14. public static final String PRIVACY_POLICY = "1.Privacy notice for user to read"
  15. + "\nCollection and use of information by megagenius.co.th:"
  16. + "\n- Content generated by member: You can take a photo, apply digital filter and frame to it, and then share it to Facebook. If there is a copyright violation or other problems, we are not responsible for the results arising from the information you have entered the web megagenius.co.th"
  17. + "\n- Location data: the site can provide more useful information if we know your location. (Eg, via a handheld device with a GPS system) We may collect and use your location data for any purpose. For example, we may use your address to show relevant ads from third parties. If you want to conceal this information, you can install or disable GPS on your mobile phone."
  18. + "\n- Log data and activity: we will collect information related to the use of web applications automatically. As you view pages on the web browser Indexlivingmall.com we will collect IP address numbers, pages you visited, date and time of your use, etc. We mainly use this information to analyze user behavior to provide better services."
  19. + "\n"
  20. + "\n2. Help menu, link to a website hosted by company"
  21. + "\n- http://www.megagenius.co.th/en/contact"
  22. + "\n"
  23. + "\n3. Period (how long us retained)"
  24. + "\n- We will retain the data for 1 years"
  25. + "\n"
  26. + "\n4. How to used and shared"
  27. + "\n- megagenius.co.th: the site may contain advertisements. We reserve the right to use your location information, date of birth, friends, behavior and gender to show ads related to you. In some cases, we may contact you via e-mail for direct marketing purposes."
  28. + "\n- Third Party: the site may contain advertisements of third parties. We reserve the right to use your location information, date of birth, friends, behavior and gender to show ads related to you. In some cases, we may contact you via e-mail on behalf of third parties for direct marketing purposes."
  29. + "\n- Subsidiaries: we may disclose your information to our parent company's subsidiary, joint venture or partners that are subject to the conditions specified in this statement in the future."
  30. + "\n- Conflicts: We reserve the right to investigate violations of law or morality on the site and violations of our terms and conditions. We may disclose information about you to third parties if we believe in good faith that disclosure is necessary to: (a) dealing with suspected illegal activities, (b) enforce the terms (c) comply with legal process. (D) protect the reputation and assets of the company and its members."
  31. + "\n"
  32. + "\n5. What purpose"
  33. + "\n- To take a photo, apply digital filter and frame to it, and then share it to Facebook."
  34. + "\n"
  35. + "\n6. How the user can restrict the disclosure of personal data to such third parties"
  36. + "\n- The user can opt out by not signing in to megagenius.co.th Alternatively, the user can e-mail us directly at support@megagenius.co.th"
  37. + "\n"
  38. + "\n7. Detail the type of technology used (cookies, analytics software or Nokia's in-app analytics software)"
  39. + "\n- Google Analytics software, cookies and log4j for logging."
  40. + "\n"
  41. + "\n8. Instructions"
  42. + "\n- We may update this statement at any time. You can view the most recent Privacy Policy at http://www.imegagenius.co.th/en/policy. We reserves the right to update or modify these terms and conditions at any time without prior notice."
  43. + "\n"
  44. + "\n9. Security"
  45. + "\n- We follow the international standard in the protection of your personal information sent to us. Both during transmission and once we receive it. However, please be aware that no method of transmission over the Internet or any electronic storage is 100% safe, so we can not guarantee the integrity of security. The company reserves the right to deny liability in the event of data loss or theft, regardless of any case."
  46. + "\n"
  47. + "\n10. Company name"
  48. + "\n- Mega Genius Co., Ltd.";
  49. public PrivacyPolicyView(MainMIDlet midlet) {
  50. super("Privacy Policy");
  51. this.midlet = midlet;
  52. agreeItem.setDefaultCommand(Commands.AGREE);
  53. agreeItem.setItemCommandListener(this);
  54. donotAgreeItem.setDefaultCommand(Commands.DONOTAGREE);
  55. donotAgreeItem.setItemCommandListener(this);
  56. append(PRIVACY_POLICY);
  57. append(agreeItem);
  58. append(donotAgreeItem);
  59. }
  60. public void commandAction(Command command, Item item) {
  61. if (command == Commands.AGREE) {
  62. RMSUtils rms = RMSUtils.getInstance();
  63. rms.acceptPrivacyAndPolicy();
  64. midlet.startCamera();
  65. } else if (command == Commands.DONOTAGREE) {
  66. midlet.destroyApp(true);
  67. }
  68. }
  69. }