[android-developers] Re: android help

2012-02-01 Thread ajay talreja
have tried as you told to change Try getting the location through a
location update.  (Use
requestLocationUpdate() or requestSingleUpdate() instead.)

but it is also not working for meproviding the code for your
review..

Code:
gps12.java 
package d.gps12;


import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.TextView;

public class gps12 extends Activity {
/** Called when the activity is first created. */
TextView t1,t2;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager lm = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
LocationListener ll = new mylocationlistener();
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
ll);
t1=(TextView) findViewById(R.id.TextView01);
t2=(TextView) findViewById(R.id.TextView02);

t1.setText(hii);
t2.setText(h);
}

private class mylocationlistener implements LocationListener {
public void onLocationChanged(Location location) {
if (location != null) {
t1.setText((int) location.getLatitude());
t2.setText((int) location.getLongitude());

}

else
{
t1.setText(unable);
t2.setText(unable);



}
}

public void onProviderDisabled(String provider) {
}
public void onProviderEnabled(String provider) {
}
public void onStatusChanged(String provider, int status,
Bundle extras) {
}

}
}

After launching this application, I'm passing latitude and long.
values from emulator and have also tried passing from command line
through telnet ..but location values seems to be empty so...the
latitude and long. values are not getting displayed.
and the text view are not changing the values.it means that
location changed  method is not getting execute neither its if
part nor its else part..so what might be the problem


isn't the code correct or what might be the other
problems..???
please get it run on your system help please..

thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: android help

2012-02-01 Thread Kristopher Micinski
I'll look at this tomorrow unless somebody else does first...

By the way, this would be a really good time for you to go read up on
how to use the Eclipse debugger.  This would allow you to put a
breakpoint on your onLocatoonChanged and see if it ever executes.

Additionally, if you don't get any errors, watch the log cat for
errors / warnings as your app executes..

kris

On Thu, Feb 2, 2012 at 2:43 AM, ajay talreja ajayt...@gmail.com wrote:
 have tried as you told to change Try getting the location through a
 location update.  (Use
 requestLocationUpdate() or requestSingleUpdate() instead.)

 but it is also not working for meproviding the code for your
 review..

 Code:
 gps12.java 
 package d.gps12;


 import android.app.Activity;
 import android.content.Context;
 import android.location.Location;
 import android.location.LocationListener;
 import android.location.LocationManager;
 import android.os.Bundle;
 import android.widget.TextView;

 public class gps12 extends Activity {
    /** Called when the activity is first created. */
        TextView t1,t2;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        LocationManager lm = (LocationManager)
 getSystemService(Context.LOCATION_SERVICE);
        LocationListener ll = new mylocationlistener();
        lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
 ll);
        t1=(TextView) findViewById(R.id.TextView01);
        t2=(TextView) findViewById(R.id.TextView02);

        t1.setText(hii);
        t2.setText(h);
        }

        private class mylocationlistener implements LocationListener {
                public void onLocationChanged(Location location) {
                    if (location != null) {
                    t1.setText((int) location.getLatitude());
                    t2.setText((int) location.getLongitude());

                    }

                    else
                {
                        t1.setText(unable);
                    t2.setText(unable);



                }
                    }

                public void onProviderDisabled(String provider) {
        }
        public void onProviderEnabled(String provider) {
        }
        public void onStatusChanged(String provider, int status,
 Bundle extras) {
        }

 }
        }

 After launching this application, I'm passing latitude and long.
 values from emulator and have also tried passing from command line
 through telnet ..but location values seems to be empty so...the
 latitude and long. values are not getting displayed.
 and the text view are not changing the values.it means that
 location changed  method is not getting execute neither its if
 part nor its else part..so what might be the problem


 isn't the code correct or what might be the other
 problems..???
 please get it run on your system help please..

 thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android help

2012-01-29 Thread ajay talreja
@kris : Sorry.
I'll start again.

I have problem with my GPS location applicationmy application
is not able to retrieve latitude and longitude... I'm providing the
code  for your reference.the below application is launching
successfully on emulator but unable to retrieve the values into Text
View.I have tried passing values from Emulator Control and
through command line via TELNETthen with Geo-pointsplease go
through the code..and tell me where i have gone wrong...


Files are as follows

1) gps.java

package d.gps;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.widget.TextView;

public class gps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager locationManager;
locationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

updateWithNewLocation(location);
}
/** Update UI with a new location */
private void updateWithNewLocation(Location location) {
  TextView myLocationText =
(TextView)findViewById(R.id.myLocationText);

  String latLongString;

  if (location != null) {
double lat = location.getLatitude();
double lng = location.getLongitude();
latLongString = Lat: + lat + \nLong: + lng;
  } else {
latLongString = No location found;
  }

  myLocationText.setText(Your Current Position is:\n +
latLongString);
}

}

2) main.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:id=@+id/myLocationText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
  /
/LinearLayout

3)String.xml

?xml version=1.0 encoding=utf-8?
resources
string name=helloHello World, gps!/string
string name=app_namegps/string
/resources

4) androidmanifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=d.gps
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.gps
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
permissionuses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/

/manifest

thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: android help

2012-01-29 Thread Kristopher Micinski
Try getting the location through a location update.  (Use
requestLocationUpdate() or requestSingleUpdate() instead.)  Asking for
the last known location won't necessarily tell you anything.  This
might be your issue.

kris

On Sun, Jan 29, 2012 at 12:14 PM, ajay talreja ajayt...@gmail.com wrote:
 @kris : Sorry.
 I'll start again.

 I have problem with my GPS location applicationmy application
 is not able to retrieve latitude and longitude... I'm providing the
 code  for your reference.the below application is launching
 successfully on emulator but unable to retrieve the values into Text
 View.I have tried passing values from Emulator Control and
 through command line via TELNETthen with Geo-pointsplease go
 through the code..and tell me where i have gone wrong...


 Files are as follows

 1) gps.java

 package d.gps;

 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Context;
 import android.location.Location;
 import android.location.LocationManager;
 import android.widget.TextView;

 public class gps extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        LocationManager locationManager;
        locationManager =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
        Location location =
 locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

        updateWithNewLocation(location);
        }
    /** Update UI with a new location */
    private void updateWithNewLocation(Location location) {
          TextView myLocationText =
 (TextView)findViewById(R.id.myLocationText);

          String latLongString;

      if (location != null) {
            double lat = location.getLatitude();
            double lng = location.getLongitude();
            latLongString = Lat: + lat + \nLong: + lng;
          } else {
            latLongString = No location found;
          }

          myLocationText.setText(Your Current Position is:\n +
 latLongString);
        }

 }

 2) main.xml
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
    android:orientation=vertical
    android:layout_width=fill_parent
    android:layout_height=fill_parent
    
 TextView
    android:id=@+id/myLocationText
    android:layout_width=fill_parent
    android:layout_height=wrap_content
    android:text=@string/hello
  /
 /LinearLayout

 3)String.xml

 ?xml version=1.0 encoding=utf-8?
 resources
    string name=helloHello World, gps!/string
    string name=app_namegps/string
 /resources

 4) androidmanifest.xml

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=d.gps
      android:versionCode=1
      android:versionName=1.0
    application android:icon=@drawable/icon android:label=@string/
 app_name
        activity android:name=.gps
                  android:label=@string/app_name
            intent-filter
                action android:name=android.intent.action.MAIN /
                category
 android:name=android.intent.category.LAUNCHER /
            /intent-filter
        /activity

    /application
    uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
 permissionuses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/

 /manifest

 thanks.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android help

2012-01-28 Thread ajay talreja
okkk.
For my first application...Emergency Sms which send msg at one tab of
application or key,as you said long pressed on application is not
possible.so is there any method to do code on numeric
keypadlike speed diali want to send message from my numeric
keylike when one is pressed.A message should be sent to
specified number..if yes provide me with that help
also




For my second application ,i'll need Gps values so
I'm just trying to retrieve values of  latitude and longitude values
from my basic applicationand display them to Text view.in
above post of mine i have provided with the code of the
samethere are no errors.it do get launch on
emulator...but application is not retrieving the values of
longitude and latitudeso... is there any kinda mistake in
my code???...or what are the other reason of not getting
latitude and longitude ..i have tried providing values from
Emulator and command line..but it is not able to retain the values
of latitude and longitude...


thanks...




On Jan 28, 11:26 am, TreKing treking...@gmail.com wrote:
 On Sat, Jan 28, 2012 at 12:04 AM, ajay talreja ajayt...@gmail.com wrote:
  Is that “View.OnClickListener”  listener only restricted to Layouts
  i.e. button Events  etc

 Yes. You can look through the docs to see where it's used.

  or it can be used to application click event…….example when application is
  double clicked ,dialer gets opened
  and when same application is single clicked , should get open...

 There is no concept of clicking an application. You application, when
 it's running, has some UI to display to the user - these UI elements can be
 clicked, as described by the various listeners I linked you to.

  is it possible…if yes….kindly help me with the code of the same…..

 Kindly explain what you're trying to do.

  I have done coding to retrieve the latitude and longitude using gps
   but its not workinglocation is showing null value and finally it
  do not have any values of latitude and longitude.

 You need to explain this better. Maybe a SMALL sample of code where this is
 not working.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: android help

2012-01-28 Thread TreKing
On Sat, Jan 28, 2012 at 12:43 PM, ajay talreja ajayt...@gmail.com wrote:

 is there any method to do code on numeric
 keypadlike speed diali want to send message from my numeric
 keylike when one is pressed.A message should be sent to
 specified number..if yes provide me with that help
 also


No. Not that I'm aware of.


 it do get launch on emulator...but application is not retrieving the
 values of
 longitude and latitude


Emulator does not have an actual GPS radio. You have to simulate it with
the tool. See the documentation:
http://developer.android.com/guide/developing/debugging/ddms.html#using-ddms

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: android help

2012-01-28 Thread Kristopher Micinski
On Sat, Jan 28, 2012 at 1:43 PM, ajay talreja ajayt...@gmail.com wrote:
 okkk.
 For my first application...Emergency Sms which send msg at one tab of
 application or key,as you said long pressed on application is not
 possible.so is there any method to do code on numeric
 keypadlike speed diali want to send message from my numeric
 keylike when one is pressed.A message should be sent to
 specified number..if yes provide me with that help
 also




No.  Not unless you modify the firmware.


 For my second application ,i'll need Gps values so
 I'm just trying to retrieve values of  latitude and longitude values
 from my basic applicationand display them to Text view.in
 above post of mine i have provided with the code of the
 samethere are no errors.it do get launch on
 emulator...but application is not retrieving the values of
 longitude and latitudeso... is there any kinda mistake in
 my code???...or what are the other reason of not getting
 latitude and longitude ..i have tried providing values from
 Emulator and command line..but it is not able to retain the values
 of latitude and longitude...


You mean by forcing a geo fix with mock locations or using a fake
gps type application?

FYI, any time you're wondering if you can modify the platform beyond
your app the answer is usually no.

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android help

2012-01-28 Thread ajay talreja
@treking : thanks...but have tried them as well 
@kris : thanks.

@kris :   You mean by forcing a geo fix with mock locations or using a
fake
gps type application?



No, I'm not trying to modify the locationsI'm just passing the
values from emulator control which are default present in EditText of
Emulator controland also tried to pass from command line...by
Telnet methodbut both are not working for me...i
donno why???.Sir ,did u referred to my code in above
post.there may be a possibility of having a bug in my
code...please check...then lemme know



On Jan 29, 1:09 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 On Sat, Jan 28, 2012 at 1:43 PM, ajay talreja ajayt...@gmail.com wrote:
  okkk.
  For my first application...Emergency Sms which send msg at one tab of
  application or key,as you said long pressed on application is not
  possible.so is there any method to do code on numeric
  keypadlike speed diali want to send message from my numeric
  keylike when one is pressed.A message should be sent to
  specified number..if yes provide me with that help
  also

 No.  Not unless you modify the firmware.



  For my second application ,i'll need Gps values so
  I'm just trying to retrieve values of  latitude and longitude values
  from my basic applicationand display them to Text view.in
  above post of mine i have provided with the code of the
  samethere are no errors.it do get launch on
  emulator...but application is not retrieving the values of
  longitude and latitudeso... is there any kinda mistake in
  my code???...or what are the other reason of not getting
  latitude and longitude ..i have tried providing values from
  Emulator and command line..but it is not able to retain the values
  of latitude and longitude...

 You mean by forcing a geo fix with mock locations or using a fake
 gps type application?

 FYI, any time you're wondering if you can modify the platform beyond
 your app the answer is usually no.

 kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: android help

2012-01-28 Thread Kristopher Micinski
Sorry, at this point I've lost track of what you're trying to debug..
?

kris

On Sun, Jan 29, 2012 at 1:22 AM, ajay talreja ajayt...@gmail.com wrote:
 @treking : thanks...but have tried them as well 
 @kris : thanks.

 @kris :   You mean by forcing a geo fix with mock locations or using a
 fake
 gps type application?



 No, I'm not trying to modify the locationsI'm just passing the
 values from emulator control which are default present in EditText of
 Emulator controland also tried to pass from command line...by
 Telnet methodbut both are not working for me...i
 donno why???.Sir ,did u referred to my code in above
 post.there may be a possibility of having a bug in my
 code...please check...then lemme know



 On Jan 29, 1:09 am, Kristopher Micinski krismicin...@gmail.com
 wrote:
 On Sat, Jan 28, 2012 at 1:43 PM, ajay talreja ajayt...@gmail.com wrote:
  okkk.
  For my first application...Emergency Sms which send msg at one tab of
  application or key,as you said long pressed on application is not
  possible.so is there any method to do code on numeric
  keypadlike speed diali want to send message from my numeric
  keylike when one is pressed.A message should be sent to
  specified number..if yes provide me with that help
  also

 No.  Not unless you modify the firmware.



  For my second application ,i'll need Gps values so
  I'm just trying to retrieve values of  latitude and longitude values
  from my basic applicationand display them to Text view.in
  above post of mine i have provided with the code of the
  samethere are no errors.it do get launch on
  emulator...but application is not retrieving the values of
  longitude and latitudeso... is there any kinda mistake in
  my code???...or what are the other reason of not getting
  latitude and longitude ..i have tried providing values from
  Emulator and command line..but it is not able to retain the values
  of latitude and longitude...

 You mean by forcing a geo fix with mock locations or using a fake
 gps type application?

 FYI, any time you're wondering if you can modify the platform beyond
 your app the answer is usually no.

 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android help

2012-01-27 Thread ajay talreja
Is that “View.OnClickListener”  listener only restricted to Layouts
i.e. button Events  etc  or it can be used to application click
event…….example when application is double clicked ,dialer gets opened
and when same application is single clicked , should get open...is it
possible…if yes….kindly help me with the code of the same…..
Other problems….


I have done coding to retrieve the latitude and longitude using gps
but its not workinglocation is showing null value and finally it
do not have any values of latitude and longitude.
I have tried passing the values from Emulator control and also through
command line using telnet local host 5554(device name).

Also same is the case with Google maps ,I have tried to access Google
maps but its not working via coding….i do have registered for Maps
key…..but I am able to access Google maps application from emulator
which is default present on emulator…I think so there is problem with
the code….

im providing u with the code GPS only ,‘ll try for Google maps
again.please go through it and reply sooner….

GPS
1) gps.java

package d.gps;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.widget.TextView;


public class gps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager locationManager;
locationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

updateWithNewLocation(location);
}
/** Update UI with a new location */
private void updateWithNewLocation(Location location) {
  TextView myLocationText =
(TextView)findViewById(R.id.myLocationText);

  String latLongString;

  if (location != null) {
double lat = location.getLatitude();
double lng = location.getLongitude();
latLongString = Lat: + lat + \nLong: + lng;
  } else {
latLongString = No location found;
  }

  myLocationText.setText(Your Current Position is:\n +
latLongString);
}

}

2) main.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:id=@+id/myLocationText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
  /
/LinearLayout


3)String.xml

?xml version=1.0 encoding=utf-8?
resources
string name=helloHello World, gps!/string
string name=app_namegps/string
/resources

4) androidmanifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=d.gps
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.gps
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
permissionuses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/

/manifest

Thanks……

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: android help

2012-01-27 Thread TreKing
On Sat, Jan 28, 2012 at 12:04 AM, ajay talreja ajayt...@gmail.com wrote:

 Is that “View.OnClickListener”  listener only restricted to Layouts
 i.e. button Events  etc


Yes. You can look through the docs to see where it's used.


 or it can be used to application click event…….example when application is
 double clicked ,dialer gets opened
 and when same application is single clicked , should get open...


There is no concept of clicking an application. You application, when
it's running, has some UI to display to the user - these UI elements can be
clicked, as described by the various listeners I linked you to.


 is it possible…if yes….kindly help me with the code of the same…..


Kindly explain what you're trying to do.


 I have done coding to retrieve the latitude and longitude using gps
  but its not workinglocation is showing null value and finally it
 do not have any values of latitude and longitude.


You need to explain this better. Maybe a SMALL sample of code where this is
not working.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android help

2011-04-19 Thread lbendlin
Good one. I don't think it is possible. You'll have to keep the webpage 
handy.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en