BlackBerry Forums Support Community
              

Showing results 1 to 48 of 48
Search took 0.03 seconds.
Search: Posts Made By: romah
Forum: Developer Forum 12-15-2010, 05:49 PM
Replies: 1
Views: 1,317
Posted By romah
Re: How to switch the cellsite mode if Autonomous is not availabe?

I tried this code. In this, once it gets the cellsite mode, it doesnot return to other modes.
I need few code to switch back to assist/autonomous mode and continously gets gps fix if available;...
Forum: Developer Forum 12-15-2010, 03:47 PM
Replies: 1
Views: 1,317
Posted By romah
How to switch the cellsite mode if Autonomous is not availabe?

I need to switch to the Cellsite mode if there is no Autonomous mode available. And if GPS mode is available, it needs to switch back to autonomous mode. So, switching back and forth efficiently. ...
Forum: Developer Forum 12-07-2010, 10:40 AM
Replies: 5
Views: 1,692
Posted By romah
Re: How to use Queue, Stack Data Structures?

You have to implement the code like this:


public class Queue {
private Object[] mElements = new Object[] {};

public void enqueue(Object element) {
if (element != null) {...
Forum: Developer Forum 12-01-2010, 04:22 PM
Replies: 6
Views: 2,713
Posted By romah
Re: Capturing location information is not working inside building

If there is no satellite coverage (i.e. inside a building), how to switch the mode into Cellsite (i.e., cell triangulation).
And if there is satellite coverage comes back (i.e., outside the...
Forum: Developer Forum 11-29-2010, 02:55 PM
Replies: 6
Views: 2,713
Posted By romah
Re: Capturing location information is not working inside building

I am running this setLocation() method in separate thread once it is called. My timer thread only checks the errorQueue and locationQueue. If there are items in queues, the timer thread sends them to...
Forum: Developer Forum 11-29-2010, 11:55 AM
Replies: 6
Views: 2,713
Posted By romah
Re: Capturing location information is not working inside building

Please someone help me to capture the location information inside the building and also handle the exception when timeout.

Here is the message:
"Uncaught exception: Application My_GPS_Test (223)...
Forum: Developer Forum 11-23-2010, 12:18 PM
Replies: 6
Views: 2,713
Posted By romah
Re: Capturing location information is not working inside building

I tried with this code and it works perfect for the first time inside the building also. That means it captures the location for the first time.
But it doesnot work for another time interval. It...
Forum: Developer Forum 11-23-2010, 11:38 AM
Replies: 6
Views: 2,713
Posted By romah
Capturing location information is not working inside building

This application works perfect in the simulator. It also works if the device is put outside the building.
But not working inside the building.

I found that BlackBerryCriteria() constructor sets...
Forum: Developer Forum 11-01-2010, 05:11 PM
Replies: 1
Views: 1,834
Posted By romah
I tried using cancelInvokeLater() . It displays...

I tried using cancelInvokeLater() . It displays the list in old timeInterval.


public static int timeInterval=10000;

private void callTimer()
{
int runnableID =...
Forum: Developer Forum 11-01-2010, 04:01 PM
Replies: 1
Views: 1,834
Posted By romah
Changing the timeinterval in invokeLater() method

Setting true for repeat parameter, the invokeLater() method continually re-adds the runnable object to the event queue, pausing the time (in my case, 10 sec) between each insertion.


public...
Forum: Developer Forum 09-30-2010, 03:10 PM
Replies: 6
Views: 1,733
Posted By romah
There is one class...

There is one class net.rim.device.api.util.MathUtilities which provides some mathematical functions like MathUtilities.round(), MathUtilities.pow() etc. You can use those methods for your...
Forum: Developer Forum 09-30-2010, 02:39 PM
Replies: 6
Views: 1,733
Posted By romah
import net.rim.device.api.ui.Field; import...

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.FocusChangeListener;
import net.rim.device.api.ui.component.EditField;
import...
Forum: Developer Forum 09-20-2010, 12:08 PM
Replies: 2
Views: 1,798
Posted By romah
Alex, try this code package calcApp; ...

Alex, try this code


package calcApp;

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.component.ButtonField;
import...
Forum: Developer Forum 09-16-2010, 11:23 AM
Replies: 2
Views: 4,692
Posted By romah
I found that it works fine if the dateString is...

I found that it works fine if the dateString is changed to the format "yyyy-MM-dd hh:mm:ss".


String dateString="2009-07-31 07:59:17";
Date formatter = new...
Forum: Developer Forum 09-14-2010, 04:26 PM
Replies: 2
Views: 4,692
Posted By romah
Convert String to Date/Time

I am trying to get time(long type) from the given datetime string.
While searching, I found these two ways but both are not working for me.


//import net.rim.device.api.i18n.DateFormat;...
Forum: Developer Forum 09-10-2010, 09:57 AM
Replies: 3
Views: 1,537
Posted By romah
Yes, RockoAndy is right. It will be better to use...

Yes, RockoAndy is right. It will be better to use filters...
Forum: Developer Forum 09-09-2010, 02:55 PM
Replies: 9
Views: 2,610
Posted By romah
Yes, I have tried your code in same way. The...

Yes, I have tried your code in same way. The simple mistake was "hh:mm:ss" instead of "HH:mm:ss". I even didn't think to change in 24 hrs format and immediately I went to RockoAndy's solution. He was...
Forum: Developer Forum 09-09-2010, 01:02 PM
Replies: 9
Views: 2,610
Posted By romah
Actually I want to use built-in method. It...

Actually I want to use built-in method.
It works fine if I use the custom function below.

RockoAndy, I already tried with your method (including a, aa etc). It gives 19:01:00
hrbuckley, I am...
Forum: Developer Forum 09-09-2010, 10:21 AM
Replies: 3
Views: 1,537
Posted By romah
you need similar code as below: you can use...

you need similar code as below: you can use double/float instead of int.


BasicEditField first= new BasicEditField("First: ", "", 5, 0) ;
add(first);
BasicEditField second= new...
Forum: Developer Forum 09-08-2010, 03:56 PM
Replies: 9
Views: 2,610
Posted By romah
I am not able to use your code to calculate the...

I am not able to use your code to calculate the time difference using Calendar.

Pls guide me.


private long targetTime;
private long curr;
private long result;
private SimpleDateFormat...
Forum: Developer Forum 09-02-2010, 04:33 PM
Replies: 9
Views: 2,610
Posted By romah
Time Difference Calculation ?

Time Difference Calculation is not showing correct result. What am I doing wrong here?


private long targetTime;
private long curr;
private long result;
private SimpleDateFormat...
Forum: Developer Forum 08-31-2010, 10:56 AM
Replies: 2
Views: 1,522
Posted By romah
You will get the answer in the link below... ...

You will get the answer in the link below...

Displaying the top banner in BlackBerry - BlackBerry Support Community Forums...
Forum: Developer Forum 08-31-2010, 10:36 AM
Replies: 1
Views: 1,231
Posted By romah
Please see the Development Guide. Here is the...

Please see the Development Guide. Here is the link...
...
Forum: Developer Forum 08-31-2010, 10:29 AM
Replies: 2
Views: 1,733
Posted By romah
Please try this code after your font...

Please try this code after your font installation.


protected void paint(Graphics graphics) {

if (FontManager.getInstance().load("Myfont.ttf", "MyFont", FontManager.APPLICATION_FONT) ==...
Forum: Developer Forum 08-31-2010, 10:00 AM
Replies: 6
Views: 2,739
Posted By romah
Also please see this if you want to use KSOAP ...

Also please see this if you want to use KSOAP

//passing strings and returns EmployeeResponse object
FieldChangeListener employeeListener = new FieldChangeListener() {
public void...
Forum: Developer Forum 08-31-2010, 09:57 AM
Replies: 6
Views: 2,739
Posted By romah
While generating the stubs using wireless...

While generating the stubs using wireless toolkit, it generates one file "YourWebServiceNameSoap_Stub.java". Inside that file, please check whether there is correct webservice URL path or not. Is...
Forum: Developer Forum 08-19-2010, 09:17 AM
Replies: 11
Views: 3,181
Posted By romah
Thank you Dougsg38p. It worked now.

Thank you Dougsg38p. It worked now.
Forum: Developer Forum 08-19-2010, 09:15 AM
Replies: 11
Views: 3,181
Posted By romah
Woked fine !!! Solved !!! Thank you Dougsg38p...

Woked fine !!! Solved !!!
Thank you Dougsg38p for helping me.


UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
delete(myMgr);
myMgr=displayInfo();...
Forum: Developer Forum 08-19-2010, 09:01 AM
Replies: 11
Views: 3,181
Posted By romah
VerticalFieldManager myMgr=new...

VerticalFieldManager myMgr=new VerticalFieldManager();
myMgr=displayInfo();
add(myMgr);

In above code, displayInfo() calls webmethod, populates the list with database values, adds the list in...
Forum: Developer Forum 08-18-2010, 04:20 PM
Replies: 11
Views: 3,181
Posted By romah
Now the refresh is working fine but throws...

Now the refresh is working fine but throws exception while assigning the value to the manager in run().

public MyScreen() {

//some codes to display the data from database
VerticalFieldManager...
Forum: Developer Forum 08-18-2010, 02:40 PM
Replies: 11
Views: 3,181
Posted By romah
I added the object list in Manager and that...

I added the object list in Manager and that mananger to the screen.
I tried invalidating the manager. Again it's not refreshing the screen data.

public MyScreen() {

//some codes to display the...
Forum: Developer Forum 08-17-2010, 02:57 PM
Replies: 11
Views: 3,181
Posted By romah
I also tried with following code. Again, it's not...

I also tried with following code. Again, it's not working.

UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
invalidate();
}
},3000,true);
Forum: Developer Forum 08-17-2010, 02:27 PM
Replies: 11
Views: 3,181
Posted By romah
How to define 3 seconds time interval in...

How to define 3 seconds time interval in UiApplication.invokeLater() so that it refreshs the screen repeatedly?

UiApplication.getUiApplication().invokeLater (new Runnable() {
public void...
Forum: Developer Forum 08-17-2010, 10:51 AM
Replies: 11
Views: 3,181
Posted By romah
Refreshing the screen not working

Refreshing the screen not working


public class MyScreen extends MainScreen{
private Timer headerTimer = new Timer();
private TimerTask headerTask;

public MyScreen() {

//some codes to...
Forum: Developer Forum 08-12-2010, 12:02 PM
Replies: 3
Views: 1,721
Posted By romah
Solved !!! public void focusChanged(Field...

Solved !!!


public void focusChanged(Field field, int context) {
if (spinBoxStates== field) {
String sel = (String) spinBoxStates.get(spinBoxStates.getSelectedIndex() );
if (sel.equals("New...
Forum: Developer Forum 08-10-2010, 02:29 PM
Replies: 3
Views: 1,721
Posted By romah
When I try with following code, it throws...

When I try with following code, it throws "IllegalArgumentException".
Please somebody help me. It's urgent.


public void focusChanged(Field field, int context) {
if (spinBoxStates== field) {...
Forum: Developer Forum 08-10-2010, 08:42 AM
Replies: 3
Views: 1,721
Posted By romah
Somebody pls help me.

Somebody pls help me.
Forum: Developer Forum 08-09-2010, 04:36 PM
Replies: 3
Views: 1,721
Posted By romah
How to load the second list in spinbox if I select/focus an item of the first list?

How to load the second list in spinbox if I select/focus an item of the first list?

public class SpinTest extends BaseScreen implements FocusChangeListener {

final String[] stateList={"New...
Forum: Developer Forum 07-29-2010, 02:11 PM
Replies: 4
Views: 3,122
Posted By romah
Yogesh, Thank you very much. Yes, it displays...

Yogesh, Thank you very much. Yes, it displays icon. Can we make this icon hyperlink so that it navigates to another page?
Forum: Developer Forum 07-22-2010, 12:40 PM
Replies: 4
Views: 3,122
Posted By romah
I am asking how to display an icon to indicate an...

I am asking how to display an icon to indicate an unread message in my own application. While there is no new message, it should not display the icon. Actually I want to show that icon in my...
Forum: Developer Forum 07-22-2010, 10:10 AM
Replies: 4
Views: 3,122
Posted By romah
How to create custom icon to indicate an unread message in blackberry development?

How to create/display icon to indicate an unread message in blackberry application development?
Forum: Developer Forum 07-06-2010, 10:47 AM
Replies: 1
Views: 2,436
Posted By romah
Try this. HorizontalFieldManager...

Try this.


HorizontalFieldManager myManager = new HorizontalFieldManager(
HORIZONTAL_SCROLL | HORIZONTAL_SCROLLBAR);
TextField textField = new...
Forum: Developer Forum 06-29-2010, 04:23 PM
Replies: 6
Views: 2,581
Posted By romah
I've hardcoded the list values and the...

I've hardcoded the list values and the functionality is ok.

But the indentation is not good.
I also need to set the proper color.

Would you please help me?


Here is the code:
Forum: Developer Forum 06-29-2010, 11:01 AM
Replies: 6
Views: 2,581
Posted By romah
Ok, here is my requirement. -CustomerInfo ...

Ok, here is my requirement.

-CustomerInfo
-Address
|---DepartAddress
|---DestAddress
|---Stops
-History
|---Jobs Accepted
|---Jobs Rejected
Forum: Developer Forum 06-29-2010, 09:30 AM
Replies: 6
Views: 2,581
Posted By romah
Yes, I tried TreeField also. I found a good...

Yes, I tried TreeField also.

I found a good example of TreeField
h**p://stackoverflow.com/questions/1038048/blackberry-treefield-with-checkboxes

I don't need checkboxes. So, I removed...
Forum: Developer Forum 06-28-2010, 04:30 PM
Replies: 6
Views: 2,581
Posted By romah
Child list and expand/collapse in ListField

How to display child list in ListField? Is there any way to expand and collapse the child list in ListField?
Forum: Developer Forum 06-25-2010, 10:06 AM
Replies: 4
Views: 3,317
Posted By romah
You're welcome.

You're welcome.
Forum: Developer Forum 06-24-2010, 04:27 PM
Replies: 4
Views: 3,317
Posted By romah
This is working code from my small project. Hope...

This is working code from my small project. Hope it will help you.

//passing strings and returns EmployeeResponse object
FieldChangeListener employeeListener = new FieldChangeListener() {...
Showing results 1 to 48 of 48

 
Forum Jump

8 AWG Gauge PV Wire 1000/2000 Volt Pre-Cut 15-500 Ft Solar Installation BLACK picture

8 AWG Gauge PV Wire 1000/2000 Volt Pre-Cut 15-500 Ft Solar Installation BLACK

$80.00



18 Gauge 2 Conductor Electrical Wire Stranded PVC Red & Black Cord Pure Coppe... picture

18 Gauge 2 Conductor Electrical Wire Stranded PVC Red & Black Cord Pure Coppe...

$24.04



22 Ga 4 Conductor UL Stranded Copper Black 500 FT Security Alarm Wire picture

22 Ga 4 Conductor UL Stranded Copper Black 500 FT Security Alarm Wire

$100.36



Surecrimp Copper Compression Lug Connector, Conductor Size 6, 2 Holes, Long Barr picture

Surecrimp Copper Compression Lug Connector, Conductor Size 6, 2 Holes, Long Barr

$28.00



Southwire 20488301 Building Wire Thhn 8 Awg  100 Ft, Black, Nylon Jacket, Pvc picture

Southwire 20488301 Building Wire Thhn 8 Awg 100 Ft, Black, Nylon Jacket, Pvc

$65.00



WindyNation 6/3 SOOW SO 6 Gauge 3 Conductor Portable Power Cord 600V Cable Wire picture

WindyNation 6/3 SOOW SO 6 Gauge 3 Conductor Portable Power Cord 600V Cable Wire

$253.45







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.