Find Jobs
Hire Freelancers

J2ME MIDP Modal confirmation alert

$15-20 USD

In Progress
Posted almost 16 years ago

$15-20 USD

Paid on delivery
* J2ME? - MIDP 2.0 * 1 single class + midlet to test it with * Confirm alert - modal, no timeout. I want a class that displays an alert and returns the user's choice back to the calling code. **Example usage: ** ? ConfirmAlert confAlert = new ConfirmAlert("Title","text","OKcommandText","cancelCommandText"); String result =? [login to view URL](); if(result == "OKcommandText"){ ? ? deleteData(); }? **Note: ** I do understand how to implement CommandListener interface with CommandAction(command c, displayable d). However, what I want is a custom class that handles the alert and user's response. I imagine that the custom class might wrap or inherit from Alert and also implement CommandListener. What I am asking for is to have this functionality encapsulated. Here is a link to some code that is similar to what I want. However, I don't think this code works: [login to view URL] If you read this code you might understand what I am trying to do! Thank you :) ## Deliverables In languages such as C# or VB.NET you can call a class "MessageBox". The objective of this project is to create a class that offers the same kind of functionality - Modal display with a return value. In the above "Example usage" the "confirmAlert" class is the class I want you to build in MIDP 2.0. The line of code calling the "show()" method of the confirmAlert class would show an Alert (J2ME alert). This alert will have 2 commands (OK and Cancel) each with configurable labels. (ie. OK might be set to "yes" and Cancel might be set to "No"). Execution of the calling code does not proceed past the past the line containing the "show" method until the user has responded to the alert by choosing either the OK command or the Cancel command. Please ask questions if anything is unclear or if you would like to demonstrate how well you understand the requirements.
Project ID: 3947945

About the project

3 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 2 days
5.0 (1 review)
0.5
0.5
3 freelancers are bidding on average $17 USD for this job
User Avatar
See private message.
$17 USD in 2 days
4.9 (36 reviews)
6.0
6.0
User Avatar
See private message.
$17 USD in 2 days
4.6 (10 reviews)
2.1
2.1

About the client

Flag of AUSTRALIA
Australia
5.0
16
Payment method verified
Member since Jan 21, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.