[android-developers] Re: Question about using TextView

2009-06-05 Thread Tao
Hi Mark, It looks like we need to set a deprecated property on cupcake to make android:ellipsize work properly. android:Single line (Deprecated) = true (--- without this, the ellipsis will not show up) android:ellipsize = end I tried setMaxLines(1) without setting Single line property, it

[android-developers] Re: MapView Draggable Objects

2009-06-05 Thread Wayne Wenthin
I haven't been able to drag but I have been able to use these methods to pick the marker and then remove and re-insert into the ItemizedOverlay. If anyone does have code for dragging please post. I would rather do it that way then the dumb work around I have now. Plus it looks much cooler! On

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Georgy
Ok for 1) I looked it up (thanks U SAVED ME TREMENDOUS CALCULATIONS) but the function: float res = distanceTo(loc); that takes loc which is a location is not recognized. Is it deprecated or somethign? for 2) do you have any working sample? thnaks a lot! On Jun 5, 11:14 am, Brian Smith

[android-developers] Re: Question about using TextView

2009-06-05 Thread Mark Murphy
Tao wrote: Hi Mark, It looks like we need to set a deprecated property on cupcake to make android:ellipsize work properly. android:Single line (Deprecated) = true (--- without this, the ellipsis will not show up) android:ellipsize = end I tried setMaxLines(1) without setting Single

[android-developers] Re: Enhanced Sensor API

2009-06-05 Thread Mark Murphy
RickB wrote: Anyone? Well, this isn't really the right list, since what you are describing is changes to the Android open source code, not developing applications to the SDK. If you elect to pursue this further, you might wish to post to a more appropriate list:

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Brian Smith
It's an object method, not a standalone function, so it would look like this (assuming start and end are Location objects): float res = start.distanceTo(end); As for an example of using SensorManager and SensorListener, I don't have anything handy, but there is an example in the API demos:

[android-developers] How to query all phone numbers of all Contacts in the Database?

2009-06-05 Thread Meryl Silverburgh
Hi, Can you please tell me how can I query all phone numbers of all Contacts in the Database? Where can I find some examples for that? Thank you. Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to query all phone numbers of all Contacts in the Database?

2009-06-05 Thread Jack Ha
You can do something like this: Cursor cursor = managedQuery(People.CONTENT_URI, null, null, null, null); if (cursor.moveToFirst()) { do { name = cursor.getString(cursor.getColumnIndex (People.NAME))); phoneNumber = cursor.getString(cursor.getColumnIndex

[android-developers] Re: How to query all phone numbers of all Contacts in the Database?

2009-06-05 Thread Jack Ha
You can do something like this: Cursor cursor = managedQuery(People.CONTENT_URI, null, null, null, null); if (cursor.moveToFirst()) { do { name = cursor.getString(cursor.getColumnIndex (People.NAME))); phoneNumber = cursor.getString(cursor.getColumnIndex

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Marco Nelissen
On Fri, Jun 5, 2009 at 11:43 AM, intbt in...@tacberry.com wrote: I don't entirely agree with Google needs to make a profit to handle these situations. They take 30% to handle e-commerce, advertise, Only part of that 30% is used to cover Google's cost, and the rest goes to the carrier. As I

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Georgy
Thanks Brian, I could use the radar from : http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Radar/src/com/google/android it is very helpful as well On Jun 5, 3:22 pm, Brian Smith avalo...@caerleon.us wrote: It's an object method, not a standalone function, so it would look

[android-developers] Re: Still searching for HOME screen, and more question about ActivityManager

2009-06-05 Thread Max Salley
What do you mean by 'detect home screen'? On Jun 5, 2:18 pm, sherry syang...@gmail.com wrote: I've asked how to detect home screen before. I'm still searching... I noticed when I press home button on Android emulator, I got this statement in catlog: INFO/ActivityManager(584):  Starting

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Keith Wiley
Happened to me too. I was pissed off as hell and sent numerous emails to Google, but in the end I was screwed with no recourse...and of course the looming threat that it will happen again. Yay. Seems to me it's the CC co's fault, or the original purchaser who bears some varying responsibility

[android-developers] Re: Still searching for HOME screen, and more question about ActivityManager

2009-06-05 Thread sherry
my app would like to know if the phone or emulator's HOME screen is displayed either by a way to detect (check some status or so) or someone notify me (notification to interested parties). In BREW, registered apps used to receive notifications if the HOME (idle) screen is displayed. Based on

[android-developers] HTC Magic Dev phone

2009-06-05 Thread NTDYLF
Hello all. I received an HTC Magic at the Google IO conference, and had heard that it is a dev phone, but when I adb shell into it and type su, I get su: permission denied. If this is not a dev phone, is it possible to make it one? --~--~-~--~~~---~--~~ You

[android-developers] Re: Detecting when a MapView is changed (panned or zoomed)

2009-06-05 Thread mscwd01
Im still struggling with this... I create an overlay and add it to the MapView, then i override the onTouchEvent to capture all the panning movements made. However, while this reads all panning movements the map no longer pans. Its as if, I have replaced the defualt MapView onTouchEvent with my

[android-developers] ISSUE: Using ACTION_IMAGE_CAPTURE to save an image and set it to background

2009-06-05 Thread Logik
TAKING SMALL PICTURE IMAGE I am trying to use the camera intent ACTION_IMAGE_CAPTURE to retrieve a small bitmap image that I can set to an imageview background on the current running activity screen Objective of code: User will be able to take a picture of an image

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-05 Thread Marco Nelissen
On Fri, Jun 5, 2009 at 3:03 PM, Disconnect dc.disconn...@gmail.com wrote: If google does ANYTHING with zero expectation of profit, they are quite literally behaving illegally. They are a publicly traded company and as such every action needs to either break even or make a profit SOMEWHERE,

[android-developers] Re: Accessing System Brightness

2009-06-05 Thread Hiro
This is indeed frustrating. however, there's a funny new wrinkle whenever I use the new cupcake-approved sugar-free method, the brightness stays after I go back to the home screen. (yay) I seem to have problems when brightness gets too low though (IE, cant do anything with the unit ...

[android-developers] Re: Still searching for HOME screen, and more question about ActivityManager

2009-06-05 Thread Romain Guy
Home is an application like any other, it does not notify other apps about when it comes to the front. On Fri, Jun 5, 2009 at 3:09 PM, sherrysyang...@gmail.com wrote: my app would like to know if the phone or emulator's HOME screen is displayed either by a way to detect (check some status or

[android-developers] Re: How to cut off a long string in TextView

2009-06-05 Thread Jeff Sharkey
Try android:ellipsize=end on the TextView in XML. j On Thu, Jun 4, 2009 at 1:29 PM, Tao grea...@gmail.com wrote: Hi All, Maybe it is a simple problem for some of you. But how do you automatically cut off long strings and add ... to the right end in TextViews, like Activity title does?

[android-developers] Re: 2D animation with User interaction

2009-06-05 Thread sagar.indianic
Hi, MrChaz. Thanks for the info. I have another question. How can we map accelerometer readings to screen cords. Both systems are completely different. Is there any function for this?? On Jun 5, 4:28 pm, MrChaz mrchazmob...@googlemail.com wrote: To get the accelerometer readings you'll need

[android-developers] Re: Need tips on BitmapFactory and ImageView Class setting backgrounds

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Priority in Messages

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Append TextViews

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Append TextViews

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Append TextViews

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Music EQ

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: [android-developers]

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: file uri doesn't work for Messaging

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Invoking Java function via c

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How can I gray out a toggle button?

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Media player problem : got the error (1,-15)

2009-06-05 Thread manoj
Hi friends, I am playing a progressive streamable content. I got the error (1, -15). I am not understanding this. Why the android guys doesn't specify any reference to all the error codes. And also, I didn't get any reference to the video file properties ( I mean the properties that the video

<    1   2