Re: [android-developers] Google direction API

2013-07-07 Thread Sunny
Hi TreKing,
thank you for your response. 
to answer to your question, I did removed the space and tried with a comma 
- there is no change in the behavior. 
I am wondering if you can think of any tips or others can chip in..  

i posted this question at multiple sites. I will let you know if I get it 
to work or someone else responds with a solution. so far no one did... uggh 
:-(


On Saturday, July 6, 2013 6:52:09 PM UTC-7, Sunny wrote:

 Hi TreKing,
 It doesn't matter whether you put a comma or a space, the behavior is : 
  it works well with a space or comma when you are invoking it on the 
 browser. It does not work when you do the same from an android code. I wish 
 the error response was something like illegal argument or not found etc but 
 here the response is REQUEST_DENIED. That is what is frustrating. 

 thanks
 Sunny

 On Saturday, July 6, 2013 4:51:16 PM UTC-7, TreKing wrote:


 On Sat, Jul 6, 2013 at 4:19 PM, Sunny meno...@gmail.com wrote:

 However if you remove the space btw the Lat  Lnt, it would not work and 
 the status will be NOT FOUND.


 Well, you're not just removing the space and thus combining the two 
 values, are you? You're supposed to separate them with a comma:


 http://maps.googleapis.com/maps/api/directions/xml?origin=37.2345487,-121.5840723destination=37.236064,-121.961595sensor=false


 -
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Google direction API

2013-07-06 Thread Sunny
Thank you for your response TreKing !

I did exactly that the first time ( actually multiple times) but the status 
returned was NOT FOUND. I also ran it on the browser and this is the 
response I got:-
?xml version=1.0 encoding=UTF-8?
-DirectionsResponsestatusNOT_FOUND/status/DirectionsResponse

However when I insert the space ( like I have it in the code)  and run it 
on the browser, it does return results.

if you cut and paste the below in URL, it would give the correct result:-

http://maps.googleapis.com/maps/api/directions/xml?origin=37.2345487 
-121.5840723destination=37.236064 
-121.961595sensor=false

However if you remove the space btw the Lat  Lnt, it would not work and 
the status will be NOT FOUND.

I maybe missing something  very petty here.. sometimes I pair of eye ain't 
enough I suppose..
thanks
Sunil.




On Friday, July 5, 2013 7:57:57 PM UTC-7, TreKing wrote:

 This is your code

 On Thu, Jul 4, 2013 at 9:19 PM, Sunny meno...@gmail.com javascript:wrote:

  String hosturl=https://maps.googleapis.com/maps/api/directions/xml?;;
  String url = origin= +*lat1 +   + lon1*  + destination= + *lat2 
 +   + lon2* + sensor=true;


 And this is the docs for that API.

 https://developers.google.com/maps/documentation/directions/#RequestParameters

 *Required parameters* 

- origin — The address or textual latitude/longitude value from which 
you wish to calculate directions. If you pass an address as a string, the 
Directions service will geocode the string and convert it to a 
latitude/longitude coordinate to calculate directions. *If you pass 
coordinates, ensure that no space exists between the latitude and 
 longitude 
values.*


 -
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Google direction API

2013-07-06 Thread Sunny
Hi TreKing,
It doesn't matter whether you put a comma or a space, the behavior is :  it 
works well with a space or comma when you are invoking it on the browser. 
It does not work when you do the same from an android code. I wish the 
error response was something like illegal argument or not found etc but 
here the response is REQUEST_DENIED. That is what is frustrating. 

thanks
Sunny

On Saturday, July 6, 2013 4:51:16 PM UTC-7, TreKing wrote:


 On Sat, Jul 6, 2013 at 4:19 PM, Sunny meno...@gmail.com javascript:wrote:

 However if you remove the space btw the Lat  Lnt, it would not work and 
 the status will be NOT FOUND.


 Well, you're not just removing the space and thus combining the two 
 values, are you? You're supposed to separate them with a comma:


 http://maps.googleapis.com/maps/api/directions/xml?origin=37.2345487,-121.5840723destination=37.236064,-121.961595sensor=false


 -
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Google direction API

2013-07-04 Thread Sunny
Folks,
any suggestion on why I am receiving REQUEST_DENIED xml response when I 
use the google direction API web services from my android code. Nothing 
fancy here:-
 String hosturl=https://maps.googleapis.com/maps/api/directions/xml?;;
String url = origin= +lat1 +   + lon1  + destination= + lat2 +   + 
lon2 + sensor=true;
String tag[] = { lat, lng };

ArrayListGeoPoint list_of_geopoints = new ArrayListGeoPoint();
HttpResponse response = null;
try {
HttpClient httpClient = new DefaultHttpClient();
HttpContext localContext = new BasicHttpContext();
String newurl = URLEncoder.encode(url, UTF-8);
String finalurl = hosturl + newurl;
System.out.println( Direction request going out:+ finalurl);
HttpPost httpPost = new HttpPost(finalurl);
try{
response = httpClient.execute(httpPost, localContext);
}
catch (Exception exc){
System.out.println(IO Exeception in making direction request: 
+ exc.getMessage());
//list_of_geopoints=null;
return list_of_geopoints;
}
InputStream in = response.getEntity().getContent();
DocumentBuilder builder = 
DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(in);
if (doc != null) {
NodeList nl1, nl2, statusList;
statusList = doc.getElementsByTagName(status);

when I print the status node, I get a REQUEST_DENIED. 

I see that others have also posted the same but did not get any response. 

I already have a key for my MAP API. However, I am not using the latest 
Google Places API as I believe I do not need to. I am completely clueless.
I am making the app using Android 3.2 while running it on my HTC 1x which 
uses 4.1.1

My Map rendering is working and so is also my location details. However I 
am trying to show the direction btw 2 Geopoints. 

Any advice will be greatly appreciated. 2 days of frustration - I am sure 
it will be something very simple.

thanks
Sunny


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to place gridview in the middle of two button in android

2012-11-06 Thread sunny
i want to make horizontally galley between two button , when i click left 
button gallery will be scroll left side ,similar right side 
how can i make i'm new in android

-- 
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] How to braoadcast keyevent that can be detect by all running application automatically

2012-05-29 Thread sunny
hiii all
can to please help me to know
How to braoadcast keyevent that can be detect by all running
application automatically

thnks

-- 
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] How to resume on previous activity after finishing the newly launched activity

2012-05-21 Thread sunny
I have an activity running as a service and I start a new activity
through it and after completion a task i closed this activity calling
the finish() method...but my previous activity stops ,can u please
help me how can i resume my previous activity after closing the newly
launched activity...
one thing more I called new activity from the thread of infinite loop.
plz help me with some peace of codes...

-- 
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] how to Fire a keyevent to player running on foreground from background apps...its gives some Runtime Exception

2012-05-15 Thread sunny
Hello All

One thing more I like to ask you...
I have an application running in background...and a second application
which is a video player running on foreground build on flash
technology...
My work is to launch this application via my background application
and give it the content to play after downloading from the remote
server and I did it successfully...
but My problem is that...
the key event code is written in foreground app(ie in player) ,when we
press 'L' using keyboard then it display live...
and when we press 'R' then it resume to play its recorded or
downloaded contents
but when I want to send the same key through my background app on
it...it not work...and cause an fatal error and my background program
crashed...
I did it using the Instrumentation class
like

Instrumentation inst = new Instrumentation();
 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_L);

but it not work
I also did it using Intent and keyevent class but the result remain
abortive


KeyEvent lKey1Dwn = new
KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_L);
KeyEvent lKey1Up = new
KeyEvent(KeyEvent.ACTION_UP,KeyEvent.KEYCODE_L);
Intent lKey1DwnIntent = new Intent(Intent.ACTION_MEDIA_BUTTON);
Intent lKey1UpIntent = new Intent(Intent.ACTION_MEDIA_BUTTON);
lKey1UpIntent.putExtra(Intent.EXTRA_KEY_EVENT, lKey1Up);
lKey1DwnIntent.putExtra(Intent.EXTRA_KEY_EVENT, lKey1Dwn );
ctx.sendBroadcast(lKey1DwnIntent);
ctx.sendBroadcast(lKey1UpIntent);

(where ctx is an instance of Context on that page.)

can u plz help me?
I will be thankful to you.

-- 
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] how to use the android project in google code(I'm using eclipse)

2012-05-15 Thread Sunny^11_year_edtion
I have already checkout this project  here  
http://code.google.com/p/android-imagedownloader/
. However, there are no android libraries.. and other dependencies.
How can I get that project running?
In brief,  how to import those jars?


Thanks for your answer.

-- 
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] Does Android supports UDP protocol??

2012-05-15 Thread sunny

sir
I am making an application to play UDP stream in android...but the
results are abortive
I have an application which is able to play HTTP protocol and RTSP
protocol but not UDP why??
Is there any android API available which supports UDP?
if yes then please help me.
if possible plz help me with some peace of codes...
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


[android-developers] I want to know how can I make the cell take input from the soft keypad ?

2011-10-13 Thread sunny
Hi,

I am a newbie to Android development.

I have created a grid of rows x columns by creating a class which
extends a View and then painting the grid lines on the canvas. Then I
was able to pop up the soft keypad when a user touches any cell on the
grid.

1) I want to know how can I make the cell take input from the
displayed soft keypad. eg :- I type 'A' on the soft keypad, then the
alphabet 'A' should be shown in the selected cell. I am unable to
achieve this.

2) How can I achieve horizontal fling on the grid so that I can scroll
horizontally ?

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


[android-developers] How to achieve horizontal scrolling in a view extending AbsListView ?

2011-09-30 Thread sunny
Hi,

I would like to know how can I proceed in achieving a horizontal
scroll in a view which extends from AbsListView. ?

-- 
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] How to make a select region of a custom widget scroll

2011-08-10 Thread sunny
Hi,
I have a custom widget inherited from a EditText.  Since it is of type
EditText, the intention is that i want it to be a free text area where the
user can type and say reach the last line, it would scroll down. I want to
achieve the following things though:
a) i only want to scroll a certain section of the screen so that heading
text and top line in the widget remain visible , while the writable (
horizontal) lines below scroll down. This is where the user would
write/scribble. It is free text.
b) when it scrolls down, I want to render horizontal lines so that people
can write just like in a normal notebook.

I am clueless.. My current code allows me to scroll down but I cannot freeze
the top header and heading line as they move up. Moreover , horizontal lines
I draw are visible only visible for current height but as I scroll down they
do not appear.


would appreciate if anyone can give me some pointers..
Sunny

-- 
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] Audio Editing

2011-06-07 Thread sunny ghai
I need some guidance regarding audio editing in android.

Problem: I want to change pitch and speed of sound file independently.

currently I am using SoundPool for that, it is changing the rate of
the sound which effects both pitch and the sound at a same time.

Is there is any external library (Like Dirac for iphone) for
achieving it ?



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


[android-developers] Panel/Mixer during Google IO

2011-05-08 Thread sunny
Hi guys-

Tapjoy and Apsalar will be hosting a panel/mixer this Tuesday, May
10th at 6pm-9pm.

To attend, please RSVP at http://androidapps.eventbrite.com!


Android: The Next Froniter

Android represents the next frontier for mobile app developers. Don’t
believe us? Well then take it from comScore, who reported that Android
was the fastest growing mobile OS in the U.S. last year. Or take it
directly from Google, who reported in their last earnings call that
over 350,000 Android devices are being activated every day.

So what’s your strategy for app discovery, engagement and monetization
on Android? If you don’t have one yet, or you’re still figuring it
out, or even if you think you have it all figured out and just want to
network with like-minded Android developers, join us, our good friends
from Apsalar, and an esteemed lineup of speakers during Google I/O for
a night of discussion, debate and brainstorming, mixed with a splash
cocktails and “networking.”

Some topics we’re hoping to cover include:

How can you get your app discovered on Android?
What are the best strategies for monetizing free-to-play apps?
How can you improve retention and engagement?
What are the main differences between Android and iOS?
What types of analytics should you be tracking?
WHAT: Android: “The Next Frontier”

WHERE: Harlot in San Francisco

WHEN: May 10, 6:00 – 9:00 pm

WHO:

Charles Hudson, Bionic Panda
Mihir Shah, Tapjoy
Michael Oiknine, Apsalar
Brian Cho, Booyah
Com2uS

-- 
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: database and maps

2011-03-23 Thread sunny
@piyush thanx a lot . I knw this is bit too much do u hav links to sm
tuts regarding dis .I have been at it fr a while..


On Mar 23, 12:33 pm, Piyush Hari piyush.h...@gmail.com wrote:
 Putting latitudes and longitudes is one way. Putting just the address
 and geocoding it before displaying on map is another. The caveat with
 the latter approach is that geocoding everytime you retrieve data is
 costly. Since latitudes/longitudes associated with addresses do not
 change, it is best to store lat/lng in dB after geocoding the address
 at the time of inserting the entry in db.

 On Mar 22, 4:48 pm, sunny sunnykradi...@gmail.com wrote:







  in my project i need to take entries frm Db and show location on map

  is der any simpler approach den puttin latitude and longitude in table

-- 
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] database and maps

2011-03-22 Thread sunny
in my project i need to take entries frm Db and show location on map


is der any simpler approach den puttin latitude and longitude in table

-- 
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] Hey Android Developers

2011-03-02 Thread sunny ghai
hello everyone on this group. i wanna learn android, can any one tell
me from where i have to start and what are the main or important thing
that i should learn to being an android developer. i m waiting for all
of your replies.

Regards

-- 
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] How to build init.rc for the android filesystem

2011-03-02 Thread Sunny
I am building the android kernel for Pandaboard Rev A1.

I am using the directions from the wiki page http://www.omappedia.org/
wiki/L27.INC1.8.2_OMAP4_Froyo_ES2_Release_Notes

I have done the following so far:

1. Setting up build environment

From your work directory (where your 27.8.2 folder resides):

export YOUR_PATH=`pwd`
export PATH=$PATH:toolchain_parent_dir/arm-2010q1/bin
export MYDROID=${YOUR_PATH}/27.8.2/mydroid
mkdir $MYDROID/logs
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export CROSS_COMPILE=arm-none-linux-gnueabi-
export PATH=${YOUR_PATH}/u-boot/tools:${PATH}

Building U-BOOT

cd $YOUR_PATH/u-boot
make distclean
make ARCH=arm omap4430sdp_config
make 21 |tee $MYDROID/logs/u-boot_make.out

Building X-LOADER

cd $YOUR_PATH/x-loader
make distclean
make ARCH=arm omap4430sdp_config
make ift 21 |tee $MYDROID/logs/x-loader_make.out


Building Kernel
To create kernel uImage you need to add mkimage directory path to
your PATH environment variable:

cd $YOUR_PATH/kernel/android-2.6.35
make ARCH=arm distclean
make ARCH=arm android_4430_defconfig
make ARCH=arm uImage 21 |tee $MYDROID/logs/kernel_make.out

Building Kernel modules

cd $YOUR_PATH/kernel/android-2.6.35
make ARCH=arm modules 21 |tee $MYDROID/logs/kernel_modules.out

Create an uMulti image by doing:
sudo ./mkimage -A arm -O linux -T multi -C none -a 0x80008000 -e
0x80008000 -n 'L25.11' -d ./zImage uMulti-2


After all this I have the following files in my $YOUR_PATH/kernel/
android-2.6.35 directory.

linux@linux:~/building_android/27.8.2/mydroid/kernel/android-2.6.35$
pwd
/home/linux/building_android/27.8.2/mydroid/kernel/android-2.6.35
linux@linux:~/building_android/27.8.2/mydroid/kernel/android-2.6.35$
ls
arch Documentation  init   lib
net securityvirt
blockdriversipcMAINTAINERS
README  sound   vmlinux
COPYING  firmware   Kbuild Makefile
REPORTING-BUGS  System.map  vmlinux.o
CREDITS  fs kernel mm
samples tools
crypto   includekernel_modules.output  Module.symvers
scripts usr

I Need to have the following files

data
default.prop
dev
env.txt
init
init.goldfish.rc
init.omapzoom2.rc
init.rc
proc
sbin\
sbin\adbd
sbin\hotplug

I am missing init files. default.prop, proc, dev and sbin directory.

Can someone help me please ???

-- 
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] custom widgets in animation

2011-01-23 Thread sunny
Hi

I am struggling trying to render to custom widget as part of ViewFlipper.
when I try to access my widget from the layout file, it gives me a null
pointer exception. However putting them all into the java code is not very
clean. I am wondering if someone can share few example on how render the
ViewFlipper that would flip between two FrameLayout both identitcal
containing a custom widget .

Also, even with the ViewFlipper, I am unable to access the ViewFlipper
object from resource file. It gives me a null pointer exception. Two frame
layouts stored a resource files as frame1 and frame2.  all the viewFlipper
does is to flip between two views.



//main.xml file


?xml version=*1.0* encoding=*utf-8*?

LinearLayout xmlns:android=*http://schemas.android.com/apk/res/android;
*

android:layout_width=*fill_parent
*

android:layout_height=*fill_parent* 

ViewFlipper

android:id=*@+id/flipper
*

android:layout_width=*fill_parent
*

android:layout_height=*fill_parent* android:layout_marginBottom=*20dp*

include android:id=*@+id/first* layout=*@layout/first_view* /

include android:id=*@+id/second* layout=*@layout/second_view* /

/ViewFlipper

/LinearLayout



//code...

setContentView(R.layout.*main*);

ViewFlipper *vp* = (ViewFlipper)this.findViewById(R.id.flipper);

/the above gives me error..first view and second view contains custom
widget.



//first view..

?xml version=*1.0* encoding=*utf-8*?

FrameLayout

xmlns:android=*http://schemas.android.com/apk/res/android;
*

android:layout_width=*match_parent
*

android:layout_height=*match_parent
*

android:id=*@+id/main_layout
*



Button

android:id=*@+id/Button01*

android:layout_width=*wrap_content*

android:layout_height=*wrap_content* android:paddingBottom=*5dp*

/Button

/FrameLayout

-- 
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] reverse Geocoder (getFromLocation(lat, lnt) not reliable

2010-11-07 Thread sunny
yes, it is in a try and catch and i run it within a while loop to retry if
it fails. I also log the exception caught when it fails. its just not
consistent. Is there a known issue with geocoder ?
thanks
Sunny.

On Tue, Nov 2, 2010 at 8:03 AM, TreKing treking...@gmail.com wrote:

 On Tue, Nov 2, 2010 at 12:36 AM, sunny menon1...@gmail.com wrote:

 any tips?


 Base on posts I've seen, I think people employ workarounds like wrapping
 the call in a try catch and trying to get a valid value 3 or so times,
 waiting a second or so between each attempt, to try to get a good value
 before giving up and reporting an error.


 -
 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.comandroid-developers%2bunsubscr...@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] reverse Geocoder (getFromLocation(lat, lnt) not reliable

2010-11-01 Thread sunny
Dear all,
I find that geocoder apis particularly getFromLocation using Lat and Lnt is
not very reliable. I am noticing this behavior more after I upgraded to
android 2.2 on my Droid. I get an invalid argument exception for Latitude.
The funny thing it is not consistent in this behavior. It works some times
without any problem.

any tips?

thanks
Sunil

-- 
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: reverseGeocode is returning null in android 2.2

2010-09-26 Thread sunny
Mystery resolved - the problem was with the phone. somehow after I ugraded
to android 2.2 my phone's GPS provider stopped working. However I what I
really want to share is my experience with the Verizon tech support and
Motorola support.
well, when I complained that my GPS provider is not working, verizon support
asked me why do I need it since I have the wireless network provider
enabled. surprised to say the least at this question. so I explained the
difference btw what GPS provider would do v/s a network provider. To my
amazement, she was not convinced and told me that for me to use the GPS
provider, I need first manually enter my location . also I need to manually
update my location whenever I move frm one location to the other - can you
beleive it ?. this is what u get from a verizon droid support. then adding
to the joke, she connected to me to a motorola support who claimed that
there is nothing called automatic location finding using the GPS provider .
It relies on manual input. so I need to enter my location manually everytime
I use it .. my my..

all I could do was to blink in disbelief.. anyway, after a factory reset my
phone is able to work with the GPS provider..

thought.. I would update you and share my experience with the
verizon/motorola tech support..

thanks
Sunny

On Wed, Sep 22, 2010 at 8:54 AM, sunny menon1...@gmail.com wrote:

 Dear Folks!!,
 Looks like reverseGeocode ( getFromLocation())  is not working in android
 2.2. It is not able to fetch the address from the coordinates. It returns
 null and crashing my app.

 Any clues ?. do you see this too ?. very frustrating indeed.

 In general 2.2 is not stable - 2.1 was much better. UI response , UI
 rotation when rotate the phone etc doesn't work reliably

 sorry I could not respond to some of the earlier emails directed to me as I
 was on vacation...

 thanks a ton for your response
 Sunny


-- 
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: reverseGeocode is returning null in android 2.2

2010-09-23 Thread sunny
No.. its not. It is in droid phone.
the funny thing is it was working last week. But the same code ( no code
changes at all) simply returns null.
thanks
Sunny.

On Wed, Sep 22, 2010 at 2:49 PM, String sterling.ud...@googlemail.comwrote:

 Is this in the emulator, by any chance? Apparently geocoding is broken
 in the emulator under 2.2, though it still works on real devices.

 String

 On Sep 22, 4:54 pm, sunny menon1...@gmail.com wrote:
  Dear Folks!!,
  Looks like reverseGeocode ( getFromLocation())  is not working in android
  2.2. It is not able to fetch the address from the coordinates. It returns
  null and crashing my app.
 
  Any clues ?. do you see this too ?. very frustrating indeed.
 
  In general 2.2 is not stable - 2.1 was much better. UI response , UI
  rotation when rotate the phone etc doesn't work reliably
 
  sorry I could not respond to some of the earlier emails directed to me as
 I
  was on vacation...
 
  thanks a ton for your response
  Sunny

  --
 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.comandroid-developers%2bunsubscr...@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

Re: [android-developers] location NOT working correctly in droid after the upgrade to 2.2

2010-09-22 Thread sunny
Sorry I was on vacation - took a break away from all the tech madness.. :-)

launch your browser--checkyour location-. it shows incorrectly from what I
get in the google map.
anyway, thats not my biggest issue NOW. The GeoCode reverseAPI is crashing
with a status of 20. Therefore getting address from lat,lnt is returning
null causing an exception.. any clue on this ?. I will send a new post on
this..

On Mon, Sep 6, 2010 at 9:10 PM, Frank Weiss fewe...@gmail.com wrote:

   However, when I use the google search or use the browser and check for
 the location . It shows a different a zipcode ( city).


 Sorry, I don't understand those two use cases (google search and browser)
 how they relate to location?

 --
 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.comandroid-developers%2bunsubscr...@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] reverseGeocode is returning null in android 2.2

2010-09-22 Thread sunny
Dear Folks!!,
Looks like reverseGeocode ( getFromLocation())  is not working in android
2.2. It is not able to fetch the address from the coordinates. It returns
null and crashing my app.

Any clues ?. do you see this too ?. very frustrating indeed.

In general 2.2 is not stable - 2.1 was much better. UI response , UI
rotation when rotate the phone etc doesn't work reliably

sorry I could not respond to some of the earlier emails directed to me as I
was on vacation...

thanks a ton for your response
Sunny

-- 
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] location NOT working correctly in droid after the upgrade to 2.2

2010-09-06 Thread sunny
Hi Folks,
I had filed a similar issue about location services not working properly in
emulator. However after I upgraded my droid phone to 2.2, I am finding that
location services are not showing the correct location. Though the
coordinates looks correct, it is showing my location as San Jose while I
stay in Los Gatos. Therefore my local search query gives me result based on
San Jose.

It used to work perfectly fine with 2.1.

thanks
Sunil.

-- 
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: cannot get my location to work on android 2.2

2010-09-06 Thread sunny
Thank you  - all of you for responding .

appreciate your prompt response. Yes, it work with the phone - but I have a
different problem. Droid with 2.2 does not show the correct location though
coordinates are correct..

i have sent a new email chain on this.

On Sun, Sep 5, 2010 at 9:54 PM, Mathias Lin m...@mathiaslin.com wrote:

 It's a known issue with the emulator, see the bug report here:
 http://code.google.com/p/android/issues/detail?id=8816
 Works fine on real device. On emulator, use an older version (7 should
 work).


 On Sep 6, 10:07 am, sunny menon1...@gmail.com wrote:
  Hi Folks,
  my app which was working on 2.1 and earlier version fails to run properly
 in
  2.2. It relies on the location but I do not get any error message.
 
  However under DDMS /logCat, I see a message saying:Error message while
  getting the location address: Reason: this service is not available.
 
  This is coming more as an information message rather than an exception or
  error. The process that is printing it out is System.out.
 
  Note that I did everything possible ( I can think of) to upgrade the app
 to
  run in android 2.2
 
  The API version was changed to 8.
 
  The manifest file contains  all the following:-
  ...
  ...
 
  uses-library android:name=*com.google.android.maps*/
 
  /application
 
  uses-sdk android:minSdkVersion=*8* /
 
  uses-permission android:name=*android.permission.INTERNET*/
 
  uses-permission android:name=*android.permission.ACCESS_FINE_LOCATION*
 /
 
  uses-permission
 android:name=*android.permission.ACCESS_COARSE_LOCATION*
  /
 
  anything else I need to do ?
 
  its very frustrating... any help would be greatly appreciated..
 
  thanks
 
  Sunny

  --
 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.comandroid-developers%2bunsubscr...@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] How to check if a user defined service is already running

2010-09-06 Thread sunny
Dear Folks,
I have a service that is running within the context of my application. It
gets invoked at the start of the activity and then gets update when new data
is inserted or deleted from the database. The problem is that everytime I
start the activity , it restarts the service. As you may have guessed  - not
a very intuitive design. Therefore I was wondering if there is a way to
determine if the service is already running before starting it. I know I can
bind to the service but I do not want that since the main activity needs to
exits after the database operation is completed.

I know for system services, you can get the service details from the
application context. How do you do it for user defined service?

thanks for all help here.

regards
Sunny.

-- 
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] location NOT working correctly in droid after the upgrade to 2.2

2010-09-06 Thread sunny
Hi Frank,
I have exactly the same build details as you have.
when I go to the google Map and check my location - it shows the correct
coordinates ( shows my street and my house). However I need to turn on my
wifi and gsm both. If I turn off the wifi , it gives me the cell tower
coordinates ( which I presume is ok). However on both cases the location or
the zipcode should remain the same.

However, when I use the google search or use the browser and check for the
location . It shows a different a zipcode ( city).

thanks
Sunny.


On Mon, Sep 6, 2010 at 8:51 PM, Frank Weiss fewe...@gmail.com wrote:

 Need some more details. Was this about someone else's thread? What is the
 test case? Have you tried a diagnostic app, such as GPS Essentials?

 I have a Droid running 2.2 and see no problems with location. I did notice
 there was a recent system update after the Froyo update. My phone shows 2.2
 build number FRG22D.

 --
 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.comandroid-developers%2bunsubscr...@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] cannot get my location to work on android 2.2

2010-09-05 Thread sunny
Hi Folks,
my app which was working on 2.1 and earlier version fails to run properly in
2.2. It relies on the location but I do not get any error message.

However under DDMS /logCat, I see a message saying:Error message while
getting the location address: Reason: this service is not available.

This is coming more as an information message rather than an exception or
error. The process that is printing it out is System.out.

Note that I did everything possible ( I can think of) to upgrade the app to
run in android 2.2

The API version was changed to 8.

The manifest file contains  all the following:-
...
...

uses-library android:name=*com.google.android.maps*/

/application

uses-sdk android:minSdkVersion=*8* /

uses-permission android:name=*android.permission.INTERNET*/

uses-permission android:name=*android.permission.ACCESS_FINE_LOCATION* /

uses-permission android:name=*android.permission.ACCESS_COARSE_LOCATION*
/



anything else I need to do ?

its very frustrating... any help would be greatly appreciated..

thanks

Sunny

-- 
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] Plz need Help

2010-04-16 Thread Shoby Sunny
let X and Y be the 2 activities, and X wants to send some txt to Y...

the snippet of X should be like this:

Code:

private void sendTxt()
{
Intent intent = new Intent();//intent is like the envelop
intent.setClass(X.this, Y.class);//arg1 is the current class and arg2
is the class u wanna call
Bundle bundle = new Bundle(); //bundle is like the letter
bundle.putString (keyword, hello) //arg1 is the keyword of the
txt, arg2 is the txt
intent.putExtras(bundle);//actually it's bundle who carries the
content u wanna pass
startActivity(intent);
}




accordingly, Y is:

Code:
private void getTxt()
{
if (Y.this.getIntent().getExtras() != null)
{
Bundle bundle = this.getIntent().getExtras();//get the intent  bundle
passed by X
Toast.makeText(Y.this,bundle.getString(keyword),Toast.LENGTH_SHORT).show();/*show
the txt in a Toast, and of course u can show it anywhere else u want
by calling Bundle.getString (String key) */
}
}



On Thu, Apr 15, 2010 at 11:18 AM, Ali Murtaza mralimurt...@gmail.com wrote:

 Hi

 I am new in android and just want to save a data in one activity and then 
 send it on other activity, just like notepad tutorials i used


 Intent ii =

 new Intent(Calendar.this, EditEvent.class);

 ii.putExtra(

 eventdate, this.toString());


 and then in other activity


 date

 = savedInstanceState != null ? savedInstanceState.getString(eventdate):null;



 i used this but it is not working, the date contain null

 please tell me error as well as the function which is run by default when 
 activity context switching occurs.

 Thanks

 --
 Ali Murtaza

 BCSF06M021
 Research Assistant
 Data Virtulization Ware House
 PUCIT, Lahore, Pakistan
 ali.murt...@pucit.edu.pk

 --
 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: DatePicket widget help

2010-03-10 Thread sunny
*Adding to what I wrote on DatePicker, let me share with you the code I
wrote. Somehow, when I try to render it using setContentView , all I am
getting is a blank screen( no exceptions at all).  *
*I am just clueless..  :-*

*public** class** myDatePicker extends** DatePicker {*

**

*public** myDatePicker(Context context) {*

*super**(context);*

*onFinishInflate();*

*setFocusable(**true**);*
*}*
*

public** myDatePicker(Context c, AttributeSet attr){*

*super**(c,attr);*

*onFinishInflate();*

*setFocusable(**true**);*
*}*
*

public** myDatePicker(Context c, AttributeSet attrs, int** defaultStyle){*

*super**(c, attrs, defaultStyle);*

*onFinishInflate();*

*setFocusable(**true**);*

*}*

*...@override*

*public** void** onDraw( Canvas c){*

*super**.onDraw(c);*
*}*

*}*

**

**

*...@override*

*protected** void** onMeasure(int** x, int** y){*

**

**

*int** width = measure(x);*

*int** height = measure(y);*

*int** getMin = Math.min(width, height);*

*//int setMax = getMin/2 ;*

*setMeasuredDimension(getMin, getMin); *

*}*

**

*private** int** measure(int** specs) {*

*// TODO** Auto-generated method stub*

**

*int** result =0;*

*int** specMode = MeasureSpec.getMode(specs);*

*int** specSize = MeasureSpec.getSize(specs);*

*if** ( specMode == MeasureSpec.UNSPECIFIED**)*

*result=100;*

*else
*

*result = specSize;*

*return** result;*

* }*

*}*



*This my Activity class which renders my DatePicker:-. Note that I am not
getting widget Id from the resouce file but directly rendering it within my
code*. * when I use the resouce file or add this widget to my main.xml, I
still see no change...*

*public** class** toDoEdit extends** Activity {*

*...@override*

*public** void** onCreate(Bundle bundle){*

*super**.onCreate(bundle);*

*setContentView(R.layout.**todo_edit);
*

*myDatePicker dp = **new** myDatePicker(this**);*

*setContentView(dp);*

*dp.setEnabled(**true**);*

*}*

On Sun, Mar 7, 2010 at 1:54 PM, sunny menon1...@gmail.com wrote:

 Hi All,

 Can someone guide me on datePicker widget. I want to reduce the dimensions
 of it within my relative layout. The goal is to reduce the size of its frame
 along with its child widgets such as the day, month and year. How can do it.


 I would greatly appreciate your quick response and wisdom here..

 thanks
 Sunny.


-- 
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] DatePicket widget help

2010-03-07 Thread sunny
Hi All,

Can someone guide me on datePicker widget. I want to reduce the dimensions
of it within my relative layout. The goal is to reduce the size of its frame
along with its child widgets such as the day, month and year. How can do it.


I would greatly appreciate your quick response and wisdom here..

thanks
Sunny.

-- 
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: simple web search based on location

2010-01-27 Thread Sunny
Adding to my email below, let me share with you what I am trying to do
and the results I get:-

ListAddress wfList = gc.getFromLocationName(sb.toString(),5 )
where sb contains the address  Whole Foods, Los Gatos, CA.  what I
was expecting from above was a list of address of whole food locations
in this area.

However the wfList returns a size 0. This is a well formed address and
I was expecting it to work. Examples given for this method
( getFromLocationName)  gives the impression that partial address like
the above should work -like Dalvik, Iceland, an address such as
1600 Amphitheatre Parkway, Mountain View, CA, an airport code such
as SFO, etc.. but it is not the case :-(.

Maybe I  am doing something wrong and I need to get out  of the
woods !. Any clues !!



On Jan 21, 5:00 pm, Sunny menon1...@gmail.com wrote:
 Thanks Jeff, john.

 I tried with Geocoder getFromLocationName - it does not return
 business based results unless you have the complete address. I would
 greatly appreciate  if you have a code piece written that works. I am
 using android 2.1.

 thanks
 Sunil.

 On Jan 20, 11:15 am, jeffro j...@trackaroo.com wrote:



  Check out the GeoCoder class and the getFromLocationName methods.  You
  can input a search string like whole foods,
  los gatos, CA and it will return a list of Address results.  You can
  also specify a bounding box if you want to limit your results to your
  current map.

 http://developer.android.com/reference/android/location/Geocoder.html

  Jeff
  ---­­-
  Trackaroo
  Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com)
  Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com)

  On Jan 19, 10:41 am, John jcarp...@gmail.com wrote:

   Google provides a fairly simple interface for local searches.

  http://code.google.com/apis/ajaxsearch/documentation/#fonje

   In the search request you can specify a latitude and longitude with
   the text to get a reference to those nearby businesses. Here is the
   reference to the parameters for the search.

  http://code.google.com/apis/ajaxsearch/documentation/reference.html#_...

   You can simply make a http call and parse the json response when it
   comes back. It should be straight forward from there.

   Thanks,
   John

   On Jan 17, 8:00 pm, sunny menon1...@gmail.com wrote:

Hi Folks,
wondering if any of you can help.
This is what I am trying to do:
simple app to get list of addresses I am interested in based on my 
current
location.

I get the current location using location services. Now, based on this
current location I want to do a search on business places without really
using the SearchManager's triggerSearch. The problem with the 
triggerSearch
is that it launches the googlemap and show the business address I am
 looking for and it is blocked. I want to get the control back.  I do 
not
want to launch the map with the listing. all I want to do is the get the
Geopoint of the business address I am interested in using a simple web
search. I tried reverseGeocoding , but it is does not work with business
address. It needs full address. any suggestion?.

Simply put, all I want to do is a simple websearch , say query=whole 
foods,
los gatos, CA to get its full address. and then use it to get the 
GeoPoint.

I am stuck and wondering if anyone can give me some pointers.

thanks a ton in advance.
Sunny.- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
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: simple web search based on location

2010-01-21 Thread Sunny
Thanks Jeff, john.

I tried with Geocoder getFromLocationName - it does not return
business based results unless you have the complete address. I would
greatly appreciate  if you have a code piece written that works. I am
using android 2.1.

thanks
Sunil.



On Jan 20, 11:15 am, jeffro j...@trackaroo.com wrote:
 Check out the GeoCoder class and the getFromLocationName methods.  You
 can input a search string like whole foods,
 los gatos, CA and it will return a list of Address results.  You can
 also specify a bounding box if you want to limit your results to your
 current map.

 http://developer.android.com/reference/android/location/Geocoder.html

 Jeff
 ---­-
 Trackaroo
 Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com)
 Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com)

 On Jan 19, 10:41 am, John jcarp...@gmail.com wrote:



  Google provides a fairly simple interface for local searches.

 http://code.google.com/apis/ajaxsearch/documentation/#fonje

  In the search request you can specify a latitude and longitude with
  the text to get a reference to those nearby businesses. Here is the
  reference to the parameters for the search.

 http://code.google.com/apis/ajaxsearch/documentation/reference.html#_...

  You can simply make a http call and parse the json response when it
  comes back. It should be straight forward from there.

  Thanks,
  John

  On Jan 17, 8:00 pm, sunny menon1...@gmail.com wrote:

   Hi Folks,
   wondering if any of you can help.
   This is what I am trying to do:
   simple app to get list of addresses I am interested in based on my current
   location.

   I get the current location using location services. Now, based on this
   current location I want to do a search on business places without really
   using the SearchManager's triggerSearch. The problem with the 
   triggerSearch
   is that it launches the googlemap and show the business address I am
    looking for and it is blocked. I want to get the control back.  I do not
   want to launch the map with the listing. all I want to do is the get the
   Geopoint of the business address I am interested in using a simple web
   search. I tried reverseGeocoding , but it is does not work with business
   address. It needs full address. any suggestion?.

   Simply put, all I want to do is a simple websearch , say query=whole 
   foods,
   los gatos, CA to get its full address. and then use it to get the 
   GeoPoint.

   I am stuck and wondering if anyone can give me some pointers.

   thanks a ton in advance.
   Sunny.- Hide quoted text -

 - Show quoted text -

-- 
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] simple web search based on location

2010-01-19 Thread sunny
Hi Folks,
wondering if any of you can help.
This is what I am trying to do:
simple app to get list of addresses I am interested in based on my current
location.

I get the current location using location services. Now, based on this
current location I want to do a search on business places without really
using the SearchManager's triggerSearch. The problem with the triggerSearch
is that it launches the googlemap and show the business address I am
 looking for and it is blocked. I want to get the control back.  I do not
want to launch the map with the listing. all I want to do is the get the
Geopoint of the business address I am interested in using a simple web
search. I tried reverseGeocoding , but it is does not work with business
address. It needs full address. any suggestion?.

Simply put, all I want to do is a simple websearch , say query=whole foods,
los gatos, CA to get its full address. and then use it to get the GeoPoint.


I am stuck and wondering if anyone can give me some pointers.

thanks a ton in advance.
Sunny.
-- 
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] Porting android on a AT91SAM9G20 with 64MByte of RAM and 8MByte dataflash memory

2010-01-18 Thread Sunny Aujla
Hi SebFox,

Looking at the spec of your board it should be just about ok.  I have a
similar spec board but in my case i am using a OMAP 2430 processor. I have
got the android kernel working on my device.

Regards,

Sunny

On Sun, Jan 17, 2010 at 6:44 PM, SebFox sebastien.philip...@gmail.comwrote:

 Hi all,

 New on this Group i'am the french google moderator of groupe de
 discussion autour de Netus G20 et FOX Board G20.

 I have a Fox Board G20 based on ARM926EJ-S ™ ARM with ARM9 at 400MHz,
 64MByte of RAM and 8MByte dataflash memory. My question is: It is
 possible to port android on this board.

 For more information on the board,

 Feel free to consult this links:
 http://netus.acmesystems.it/doku.php
 http://eshop.acmesystems.it/?id=NETUSG20

 Thanks for your answer.

 SebFox

 --
 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.comandroid-developers%2bunsubscr...@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

Re: [android-developers] Re: horizentally center aligned

2010-01-15 Thread Sunny Aujla
What happens when the orientation changes?  It looks fine to me, should stay
center aligned.

On Fri, Jan 15, 2010 at 10:33 AM, Kumar Bibek coomar@gmail.com wrote:

 This is ok. Doesn't this work??

 Kumar Bibek

 On Jan 15, 2:19 pm, Jags jag...@gmail.com wrote:
  i have this layout
 
  LinearLayout android:id=@+id/llcmd
  android:orientation=horizontal
  android:layout_height=wrap_content
  android:layout_width=fill_parent
  android:layout_gravity=center_horizontal
  Button android:layout_height=wrap_content
 android:id=@+id/
  viewEvtsDone
  android:layout_width=wrap_content
 android:text=Delete/Button
  Button android:layout_height=wrap_content
 android:id=@+id/
  viewEvtsCancel
  android:layout_width=wrap_content
 android:text=Cancel/Button
  /LinearLayout
 
  I want these 2 buttons always appear centr aligned in the
  linearlayout. I dont want to use hard coded values (as it is upsetting
  the positions when orientation changes)
 
  How can i make it possible ? or is it not possible ?
 
  regards

 --
 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.comandroid-developers%2bunsubscr...@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] gdata-api

2009-11-18 Thread sunny
Hi,
I am trying to integrate my calendar application with google
calendar by making use of the apis provided by google. Android is not
supporting those apis. I am able to build the application as a java
application but not as an android application. So I request to suggest
me a way in doing this. I tried to build the source code on android
platform. But it compiled giving an error failed to convert to dalvik
format. I hope my problem may get solved if anyone suggest me a way to
create a jar library which is supported by android. Any suggestions
are appreciated.

Thanks  Rgds
Sunny.

-- 
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] The application android has stopped unexpectedly

2009-10-12 Thread Sunny

Hi ,
I am testing basic AndroidPhoneDialer application on emulator my
console showing following result

[2009-10-12 17:56:25 - AndroidPhoneDialer]Android Launch!
[2009-10-12 17:56:25 - AndroidPhoneDialer]adb is running normally.
[2009-10-12 17:56:25 - AndroidPhoneDialer]Performing
com.example.AndroidPhoneDialer.AndroidPhoneDialer activity launch
[2009-10-12 17:56:25 - AndroidPhoneDialer]Automatic Target Mode: using
existing emulator 'emulator-5554' running compatible AVD 'MY_AVD'
[2009-10-12 17:56:25 - AndroidPhoneDialer]Uploading
AndroidPhoneDialer.apk onto device 'emulator-5554'
[2009-10-12 17:56:25 - AndroidPhoneDialer]Installing
AndroidPhoneDialer.apk...
[2009-10-12 17:56:32 - AndroidPhoneDialer]Success!
[2009-10-12 17:56:32 - AndroidPhoneDialer]Starting activity
com.example.AndroidPhoneDialer.AndroidPhoneDialer on device
[2009-10-12 17:56:40 - AndroidPhoneDialer]ActivityManager: Starting:
Intent { cmp=com.example.AndroidPhoneDialer/.AndroidPhoneDialer }

but emulator showing the massage: The application a AndroidPhoneDialer
has stopped unexpectedly

Please Help me out

--~--~-~--~~~---~--~~
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: Fring on Android Dev Phone 1 (HTC) ATT provider

2009-05-13 Thread Sunny

Currently, it seems no such software.

On 3月31日, 上午11时23分, Vladimir Kelman vkel...@gmail.com wrote:
 Is Fring VOIP software compatible with Android Dev Phone 1 (ATT
 provider)?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---