ashwini kalmath

Greenhorn
+ Follow
since Oct 24, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
12
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ashwini kalmath

hello,

i am generating email and sending it . it runs fine in development mode. but i get an error in deployment mode ....

CODE:


ERROR :
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)


Please help me out.

thank you
11 years ago
hello,

i am building a java application in which i need to check the gprs and gsm connectivity. so how to check it out.
over all idea is check whether there is gprs connectivity if present then send data or else store the data in some buffer. next when again new data arrives again same gprs connectivity is checked if present then retrieve first old data and send then again new data which arrived is sent else if connectivity not available then store data into some buffer( logic is first come first server data).

gsm is required when gprs is not working so that we can send data through sms service....The api i am using is jsr 253....

another doubt is when gprs network not available then where to store data whether should i use buffer or queues....which techniques should i use....? reply here we use first in first out logic.


thank you.
12 years ago
hello tim,

Thanks a lot. so for north and south same calculations.


so is the same calculation for east and west values.

or any other method to convert them:-)

if so can you please explain?

Thank you
12 years ago
Hello Noman,

oh ok ok. Thanks a lot
hello Noman,

for each loop is not supported by java 1.4 version because its introduced in java 15. version. The hardware on which i need to run this program(application) supports only java 1.4 version. so is there any alternative way to do the above task instead of for each loop. or any other solution would you like to suggest?

please help me:-)

Thank you
hello Tim Holloway,

i did the conversion in another way and i got it. but still me bit curios to know how exactly the calculation done as you said?

can you explain me with some example? let me give you the values wait............

degree decimal format : 13.025493599706797
i need to get the value in degree minutes format that is as :1301.5296N


can you solve it and get that value as result?

Thank you:-)
12 years ago
hello,


actually i am building gps application. i got the latitude and longitude values in decimal format but i need to convert them into the degrees minutes format like 1301.5130N.

so is there any API to convert it into that format please help :-)
12 years ago
i got this idea noman like passing parameters to process method. but problem is that same method is used by other applications right then they invoke this method process. then how about the parameters:-(

i need to write in general way so that applications can use this gprs class according to there requirements.
ex gps class use to send the lat and long values and some other class use to send some other values etc.....


so whats the solution for this?
should i write in general way like process method by all applications or any other way?

hope you got it what i am trying to explain:-)
Hello Noman,

if (latitude!=0 && longitude!=0) {
synchronized(runnable) {

runnable.latitude = latitude;
runnable.longitude = longitude;
Thread ref = new Thread(runnable);
ref.start();
}
}

this way i used to read the long and lat values where runnable is of gprs object.
those lat and long values are not shared by any applications. just my project(gps tracking) is like need to retrieve the value and send through gprs that's it. so how to use the values in gprs class which we got into the location listener class. i am using the same logic which you gave so how to use them in gprs class so that those values can be sent to some url.
hello john jai,


Actually i have written the code for it please can you have a look on it and tell me what the problems or errors i may face. i will show only the imp part of the project.there are four classes GPS, Main , locatioonlistenerexample and GPRS. At present my project is like i need to retrieve the GPS location and send that values through GPRS to some URL. Now only we using gprs to send the GPS location but later many other applications come into picture which uses the gprs to send data. at present i am working on GPS using GPRS so in future this following code should not lead to an error so suggest if there any errors that may occur in future when many applications uses GPRS.




Class GPRS {

private static GPRS instance = null;

private GPRS{
any initalization
}
public static GPRS getInstance(){
synchronized(GPRS.class){
if(instance==null){
instance = new GPRS();
}
}
return instance;
}

public processing(){
synchronized(instance){
here it sends lat and long value to URL
}
}

}



public class LocationListenerExample implements LocationListener{


public double latitude, longitude;
//Gprs runnable = new Gprs(); no need


/after every 60secs this locationupdate is automatically called and updated the location value. its as per the GPS API
public void location Updated(LocationProvider locationprovider,
Location location){
.......
......
......
/*if (latitude!=0 && longitude!=0) {
synchronized(runnable) {

runnable.latitude = latitude;
runnable.longitude = longitude;
Thread ref = new Thread(runnable);
ref.start(); */

//instead of above
if (latitude!=0 && longitude!=0) {

GPRS.getInstance().processing();//use this line where ever you want to use GPRS class

}



}}}

}
12 years ago
hello,


i need to build the application of Gps tracker so what will be accurate values to set?
12 years ago
Hello,


i am new to java programming, i need help that how to use the values(variables) of one class in another class. not with the constructors or by passing the parameters to method. actually i get the location values in gps class and i need those values in gprs class so that i can send them to some url through gprs class. it means that i need location values which we got in gps class in gprs class..

please help out:-)

thank u:-)
12 years ago
Hello Noman,

Again i am facing the other problem,

private GPRS{
//any initalization
}


when i add this line then it shows the following error:

Syntax error on token "private", class expected after this token
- Syntax error on token "Gprs", delete this token


and even how to access the variable latitiude and longitude values which we get in classLocationListenerExample. so i need this values send through the gprs class. so how can i retrive them in synchronized manner.:-(
Hello Noman,

Thanks a lot:-) for explaining all the questions(silly) by me....:-)