[android-developers] canvas woe

2010-09-08 Thread dadada
hi all, i tried the sample compass app in apidemo. When there's a new reading in azimuth, i write the reading on canvas. However, the canvas is set to rotate when new reading comes in, to simulate the rotation of the compass arrow. Is there an alternative to just rotate the bitmap rather than

[android-developers] Re: canvas woe

2010-09-08 Thread dadada
onDetachedFromWindow() { mAnimate = false; super.onDetachedFromWindow(); } } } On Sep 8, 4:18 pm, dadada ytbr...@gmail.com wrote: hi all, i tried the sample compass app in apidemo. When there's a new reading in azimuth, i write the reading on canvas

[android-developers] is there a way to access the system camera?

2010-09-09 Thread dadada
hi all, i saw some application that can use the system camera instead of having just a blank camera preview? ie, the camera preview is the same as the default android camera application with full control. how do i access that? Thank you. -- You received this message because you are

[android-developers] is there a way to implement screenshot functionality in android

2010-09-10 Thread dadada
hi all, question as above! thanks bryan -- 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] Re: is there a way to implement screenshot functionality in android

2010-09-11 Thread dadada
at 9:53 AM, dadada ytbr...@gmail.com wrote: question as above! This is not supported, for security reasons. There are apparently ways you can get something to work if you root your phone. And, of course, you can do screenshots from outside your phone using DDMS. -- Mark Murphy (a Commons

[android-developers] java issues in mac and window

2010-09-11 Thread dadada
hi all, So i opened my android project(from win7 environment) in my mac. then i have these java problems : @Override public void onFocusChange(View v, boolean hasFocus) { // TODO Auto-generated method stub } @Override

[android-developers] is there a way to retrieve the latest image taken using system camera?

2010-09-12 Thread dadada
hi all, so i have an intent that use the system camera. so after i taken the photo, it brings me back my application. I want to display the image (just taken) as a thumbnail. How do i retrieve that latest image from MediaStore.Images.Thumbnails. thanks! bryan -- You received this message

[android-developers] Re: canvas woe

2010-09-12 Thread dadada
пользователь dadada ytbr...@gmail.com написал: hello all, i used matrix to rotate instead of the canvas. However, the result isn't what i expected. The path just rotate infinitely without stopping. below is my code. it is a modification of the compass.java in apidemo.  can someone please give me

[android-developers] how do i draw the direction arrow on the map

2010-09-13 Thread dadada
hi all, question as above. right now, i am creating a class extending mylocationoverlay. then, i override the draw method. is this the correct method? because after i rewrote the draw method, the map tile cannot render. please advise. Thanks! bryan -- You received this message because you

[android-developers] Re: is there a way to access the system camera?

2010-09-13 Thread dadada
); startActivityForResult(intent,0); On Thu, Sep 9, 2010 at 12:46, dadada ytbr...@gmail.com wrote: hi all, i saw some application that can use the system camera instead of having just a blank camera preview? ie, the camera preview is the same as the default android camera application

[android-developers] Re: canvas woe

2010-09-13 Thread dadada
that constructs mPath so it gets created from scratch every time through, as a temporary test. If this works, consider keeping the path constant, applying the transform at canvas level. -- Kostya Vasilyev --http://kmansoft.wordpress.com 12.09.2010 18:53 пользователь dadada ytbr...@gmail.com написал

[android-developers] Re: how do i draw the direction arrow on the map

2010-09-13 Thread dadada
do. On Sep 13, 10:38 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 13, 2010 at 3:35 AM, dadada ytbr...@gmail.com wrote: question as above. What is the direction arrow? You mean the indicator on the MyLocationOverlay that Google Maps shows?  right now, i am creating a class extending

[android-developers] how do i launch google street view from app

2010-09-13 Thread dadada
hi all, question as above. I cannot find anything in the sdk regarding google street view. do we launch it from the web? please advise. 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] Re: how do i launch google street view from app

2010-09-13 Thread dadada
oops thanks treking! On Sep 13, 11:23 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 13, 2010 at 10:18 AM, dadada ytbr...@gmail.com wrote: I cannot find anything in the sdk regarding google street view. Really?http://developer.android.com/guide/appendix/g-app-intents.html

[android-developers] should i be reusing the same location manager?

2010-09-14 Thread dadada
Hi all, I have a few activities within an app. Should i be reusing the same location manager or should i call (LocationManager) this.getSystemService(Context.LOCATION_SERVICE) for each new activities? Thanks Bryan -- You received this message because you are subscribed to the Google Groups

[android-developers] path appearing twice on map canvas

2010-09-14 Thread dadada
hi all, I have a Main_Overlay class that extends Overlay. I added This overlay to the mapview and override the Draw method as of below: public void draw(android.graphics.Canvas canvas, MapView mapView, boolean shadow ) { mPath = new Path();

[android-developers] path appearing twice on map canvas

2010-09-14 Thread dadada
Hi all, I have a Main_Overlay that extends Overlay. Inside Main_Overlay i override the draw method: public void draw(android.graphics.Canvas canvas, MapView mapView, boolean shadow ) { mPath = new Path(); mPath.moveTo(0, -240); mPath.lineTo(-50,

[android-developers] how do i get the sensor data on mapoverlay?

2010-09-14 Thread dadada
hi all, since map overlay is not activity, how do i get the sensor data so that i can draw on the map overlay? like the direction arrow. Thanks! Bryan -- 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] Re: path appearing twice on map canvas

2010-09-14 Thread dadada
Thanks for the reply TreKing. Is there a way to prevent the second drawing? or simply how do i draw on the overlay so that there's only one path? Thanks again. On Sep 14, 10:41 pm, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 3:46 AM, dadada ytbr...@gmail.com wrote: Can

[android-developers] Re: path appearing twice on map canvas

2010-09-14 Thread dadada
You are fast! just wanted to reply! saw your a thread http://groups.google.com/group/android-developers/browse_thread/thread/2b004ab18bd7544e/131b5b435520e047, that you replied. Thanks TreKing! =) On Sep 15, 12:34 am, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 11:28 AM, dadada

[android-developers] Re: how do i get the sensor data on mapoverlay?

2010-09-14 Thread dadada
, dadada ytbr...@gmail.com wrote: since map overlay is not activity What is your map overlay contained in? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app

[android-developers] Re: how do i get the sensor data on mapoverlay?

2010-09-14 Thread dadada
is wrong? Thanks again TreKing. On Sep 15, 12:48 am, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 11:45 AM, dadada ytbr...@gmail.com wrote: map overlay sits in Map_form which extends mapactivity. Bingo.   But it crushes. Is that like pwns? Assuming you meant crashes

[android-developers] Toast not changing on mapactivity

2010-09-14 Thread dadada
Hello, I tried to update my mapactivity with toast as the sensor data changes. However, my first Toast appears and it never change despite detecting changes in sensor values. What could be the reason? Below is the snippet of my SensorListener: Can someone please give me some advices! Thanks!

[android-developers] Re: how do i get the sensor data on mapoverlay?

2010-09-14 Thread dadada
Thanks TreKing for the suggestion. it works. On Sep 15, 2:34 am, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 1:07 PM, dadada ytbr...@gmail.com wrote: But the overlay isn't redrawing. Try invalidating your MapView. You seldom, if ever, want to call draw yourself

[android-developers] what is the basic idea of sensor driven animation

2010-09-16 Thread dadada
Hi all, I want to do a sensor driven animation ( like AR) where by i use azimuth to control the flowing of drawable in the camera overlay. right now, i have the sensor reading ready on camera. I can drawable on the camera overlay. However, I am not sure how can the sensor data to be used to

[android-developers] Re: How to calculate distance between to city (dynamically)

2010-09-16 Thread dadada
you can also use 'haversine' formula. google it. you need two geopoint. On Sep 16, 3:36 pm, Rocky rkjhaw1...@gmail.com wrote: Hi Shashidhar, Thanks dear... On Thu, Sep 16, 2010 at 12:56 PM, Shashidhar shashi.zep...@gmail.comwrote: Have a look at this

[android-developers] how to create colored multicolumn listview

2010-09-16 Thread dadada
hi, do I use the imageview as the skin of the colored listview or is there better ways to create them? thanks. bryan -- 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

[android-developers] is there a way to make drawable clickable?

2010-09-19 Thread dadada
hi all, i am using drawable and translateobject to create animation on camera overlay. how do i get clickable drawable object? should i be using drawable? thanks! bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] map can't load at specific places

2010-09-20 Thread dadada
hi, something strange about my map. it doesn't load at specific location. The map view has a custom overlay where i draw some path on it. can some advise me what is wrong? below is the logcat: W/MapActivity( 7383): Recycling dispatcher

[android-developers] Re: map can't load at specific places

2010-09-20 Thread dadada
The map tile doesn't load. However, the overlay ( some path and control) is drawn. with the default enabled-compass drawn too. It only happen at home. When i go to my office, it will work fine. On Sep 21, 12:51 am, TreKing treking...@gmail.com wrote: On Mon, Sep 20, 2010 at 11:24 AM, dadada

[android-developers] Re: map can't load at specific places

2010-09-21 Thread dadada
treking...@gmail.com wrote: On Mon, Sep 20, 2010 at 10:34 PM, dadada ytbr...@gmail.com wrote: It only happen at home. When i go to my office, it will work fine. That sounds like you simply have bad coverage in your home. Are you on 3G or Wifi? Does other internet-related functionality work at home

[android-developers] global variable accessible by mapactiivty and activity

2010-09-22 Thread dadada
hi all, what is the best way to pass data between map activity and activity? basically the passed data is an array of coordinate. is it possible to create a global variable that is accesible by both mapactivity and activity? or should i use parcelable? thanks! Bryan -- You received this

[android-developers] how do i draw a semicircle using a path?

2010-09-27 Thread dadada
hi, how do i draw a semicircle using a path? thanks, bryan -- 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] http post and get request for updating map

2010-09-27 Thread dadada
hello, i want to post data onto google map. since there's no gdata for android, i reckon that i have to do it through http post and get which i am not good at. is there some reference code for doing http post and get request? Both the url to the map and xml are the same

[android-developers] how do i add the content view behind gridview?

2010-10-04 Thread dadada
hi all, how do i add the content view behind gridview? i could only addContentView on top of gridview. I setContentView() of the gridview for the activity. Thanks! bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] a good way to do screen cast on android

2010-10-04 Thread dadada
hi all, is there a good way to do screen cast on android? what do you guys use to replace the cursor? i'm looking for a simfinger alternative. is there something for android? anybody tried http://code.google.com/p/androidscreencast/? is it good? thanks! bryan -- You received this message

[android-developers] connecting to google map data api using http protocol

2010-10-05 Thread dadada
hi, since the gdata doesn't work on android, i'm trying to use http protocol. Retrieving the map feed from this http://maps.google.com/maps/ms?hl=enie=UTF8oe=UTF8num=200start=200vps=1jsv=282dmsa=33msid=106069377598790155454.0004720325247dc0c953aabauth=4caac8b6s7fLDxa4oy-0GX5xHS8iZJIEeWo, using

[android-developers] how do i include Authorization: GoogleLogin auth=authorization_token into the httpclient?

2010-10-05 Thread dadada
hi how do i include Authorization: GoogleLogin auth=authorization_token into the httpclient? should i be doing : ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(Authorization, GoogleLogin auth=authorization_token)); ?? Thanks!

[android-developers] Re: how do i include Authorization: GoogleLogin auth=authorization_token into the httpclient?

2010-10-05 Thread dadada
: Unable to respond to any of these challenges: {googlelogin=WWW-Authenticate: GoogleLogin realm=http://ww w.google.com/accounts/ClientLogin, service=local} W/System.err( 8462): org.apache.http.client.HttpResponseException: Missing auth token what am i doing wrong? thanks! On Oct 6, 11:21 am, dadada

[android-developers] Re: how do i include Authorization: GoogleLogin auth=authorization_token into the httpclient?

2010-10-06 Thread dadada
ok .. i got it. it should be httpget.addHeader(Authorization, GoogleLogin auth= +auth); On Oct 6, 11:35 am, dadada ytbr...@gmail.com wrote: hi, so i tried the following  HttpGet httpget = new HttpGet(http://maps.google.com/maps/feeds/maps/ default/full);  httpget.addHeader

[android-developers] map not api visible

2010-10-06 Thread dadada
hi all, so i tried to update a google map through httprequest. However, I get a org.apache.http.client.HttpResponseException: Forbidden. The initial authorization gives a 200 OK. and I got my authtoken. I then tried the url on a browser and i got a map not api visible. I checked that the

[android-developers] Re: map not api visible

2010-10-06 Thread dadada
Thank you TreKing. I will post in the google map group. At the meantime, I wonder is there someone out there who tried to use http to update map. thanks On Oct 6, 8:09 pm, TreKing treking...@gmail.com wrote: On Wed, Oct 6, 2010 at 5:41 AM, dadada ytbr...@gmail.com wrote: I then tried the url

[android-developers] limit the number of image to one for each swipe in android gallery

2010-10-06 Thread dadada
Hi, In android gallery, is there a way to limit the number of image cover to ONE for each swipe? Right now, it is covering more than one. thanks Bryan -- 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] how to get back the image taken after Intent(MediaStore.ACTION_IMAGE_CAPTURE)

2010-10-07 Thread dadada
Hi all, how do i get back the image taken from starting the Intent(MediaStore.ACTION_IMAGE_CAPTURE)? I need the image to be display as a thumbnail and also be attached to email. Thanks! bryan -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] how to support multiple screen for map overlay?

2010-11-24 Thread dadada
hi all, i have a map overlay for my map view. I have a few Path and Matrix variables within the overlay. when the project ran on other screen resolution, the map overlay did not scale to the desire screen size. How can i achieve that? did i miss out something on

[android-developers] how to support multiple screen for map overlay?

2010-11-24 Thread dadada
hi all, i have a map overlay for my map view. I have a few Path and Matrix variables within the overlay. when the project ran on other screen resolution, the map overlay did not scale to the desire screen size. How can i achieve that? did i miss out something on