[android-developers] please help me?

2009-07-01 Thread Dorj
hello all, How to detect key event without activty in android? How to detect key event in broadcastReceiver in android? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] how to do a HttpDelete properly

2009-07-01 Thread zlu
I can do HttpGet and HttpPost just fine but HttpDelete is being considered as a regular get by my rails app. Does anyone have a working example of delete (destroy) of a resource? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread Kaj Bjurman
Doesn't apple have a multitouch patent? On 1 Juli, 00:15, CraigsRace craig...@gmail.com wrote: So the latest Android phone now officially has multi-touch support. Ref:  http://shop.orange.co.uk/mobile-phones/htc-hero-in-graphite I know it is not a Google Experience phone, however, can we

[android-developers] Re: help with apn settings insertion

2009-07-01 Thread Melvin Dave P. Vivas
On Jun 17, 6:37 pm, Raj lal.ra...@gmail.com wrote: use following permission in your manifest file: uses-permission android:name=android.permission.WRITE_APN_SETTINGS / Should solve your problem. Mind you that on 1.5 sdk, the apn may not appear on the device list. Hi, even if it's not

[android-developers] Encoding

2009-07-01 Thread UK Android Apps UK Android Apps
Hi, When I parse data from a http request sometimes the £ sign and others do not get encoded correctly and result in the SAX parser complaining What's the default encoding? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread John Smith
2009/7/1 Kaj Bjurman kaj.bjur...@gmail.com Doesn't apple have a multitouch patent? Was this before or after laptops started having touch pads that are multitouch compatible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: TabActivity - OnClickListener not working

2009-07-01 Thread Aracos
Thanks for your Response. am I reading this right, I have to rewrite the complete TabWidget just to get the event when clicking on the currently active element or is there a way to get the adapter responsible for the tabs and add the code you posted? Or am I getting it all wrong and should use

[android-developers] How to get all data of one contact ?

2009-07-01 Thread sharon
Hi all, Seems no direct way to get all info (name,number,phone,email,IM,organization.total data) of one contact. Is that so? If I want to get all these data,how could I do? Thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: MASTER RESET INTENT

2009-07-01 Thread Dianne Hackborn
If you are doing this for a device, you should posting your questions to android-porting (since this is outside of the SDK), and you should modify the software to perform factory resets however you want. I'm not sure if the standard open source platform even has a full implementation of it, since

[android-developers] Re: How to get all data of one contact ?

2009-07-01 Thread Dianne Hackborn
Correct, because there can be an arbitrary number of contact methods and such, you will need to query the appropriate URIs and iterate through the results. On Wed, Jul 1, 2009 at 12:31 AM, sharon dxx...@gmail.com wrote: Hi all, Seems no direct way to get all info

[android-developers] Re: please help me?

2009-07-01 Thread Dianne Hackborn
You can't. You need to have your UI displayed and in focus to receive input events. On Tue, Jun 30, 2009 at 11:06 PM, Dorj b.dor...@gogo.mn wrote: hello all, How to detect key event without activty in android? How to detect key event in broadcastReceiver in android? -- Dianne Hackborn

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread Kaj Bjurman
The patent is for usage on touch screens. The patent was filed in 2008: http://mashable.com/2009/01/26/apple-multi-touch-patent/ On 1 Juli, 09:13, John Smith deltafoxtrot...@gmail.com wrote: 2009/7/1 Kaj Bjurman kaj.bjur...@gmail.com Doesn't apple have a multitouch patent? Was this

[android-developers] Re: Game using Canvas porting to OpenGL please help

2009-07-01 Thread Alistair.
Take a look at the sprite drawing code in the apps-for-android code here http://code.google.com/p/apps-for-android/ You will see how you go about drawing a bitmap onto the OpenGL surface. Trying to explain the steps required to re-implement your sample code in Android might have seemed a bit of

[android-developers] Re: TextView Highlight/Select Issue

2009-07-01 Thread Aracos
Try disabling the clickable and longClickable properties of your textView - this should disable the dimming effect you described. android:clickable=false android:longClickable=false if you still want your links clickable, enable this by adding the property android:linksClickable=true On 29

[android-developers] Re: Game using Canvas porting to OpenGL please help

2009-07-01 Thread Tjerk Wolterink
I am already reading some opengl es tutorials. OpenGL is really low level as i see it, but not that difficult. So i will manage i hope. Greetings 2009/7/1 Alistair. alistair.rutherf...@googlemail.com Take a look at the sprite drawing code in the apps-for-android code here

[android-developers] Re: Set Ringtone

2009-07-01 Thread tydiz...@gmail.com
You can't...you'll have to use some sort of hash table or dictionary (String to int) to really get that same effect. Its kind of unfortunate that the system uses the id numbers but at the same time, its more efficient in the long rong. On Jun 2, 12:13 am, Nirav niravshah1988s...@gmail.com

[android-developers] Re: Dialogs don't fill width in landscape mode

2009-07-01 Thread Alea
Hi, Setting android:minWidth in the layout xml to the desired width in landscape mode should work. As I remember it will automatically adapt to partrait width if in portrait mode. On Jun 14, 3:57 pm, Keith Wiley kbwi...@gmail.com wrote: bump On Jun 13, 11:33 am, Keith Wiley kbwi...@gmail.com

[android-developers] Re: How to get all data of one contact ?

2009-07-01 Thread sharon
Thanks for your quick response. Maybe I could reference the ViewContactActivity,right ? On 7月1日, 下午3时45分, Dianne Hackborn hack...@android.com wrote: Correct, because there can be an arbitrary number of contact methods and such, you will need to query the appropriate URIs and iterate through

[android-developers] PendingIntent.getService not working ...

2009-07-01 Thread Richard Schilling
I'm having a hard time finding a good working example of PendingIntent.getService. My code isn't working. I have a service, MyService, that I want to start using an alarm. Here's some code I have in my activity's onStart () method: AlarmManager am = (AlarmManager)this.getSystemService

[android-developers] Search UI not showing

2009-07-01 Thread Mario Muñoz
Hello everybody, I'm having some problems on showing the search UI within an Android application. I've tried to follow the documentation found on http://developer.android.com/reference/android/app/SearchManager.htm and the example from API demos

[android-developers] Andoid Name, Image and Royalties

2009-07-01 Thread Carl
I am writing a game, and in it I would like to use the Android image (green robot thing that looks a bit like R2D2 as shown on the Google Groups heading and other Android literature) as a background. I would like to be able to charge for the game on the Android Marketplace. Is this allowed?

[android-developers] play audio from resource during call

2009-07-01 Thread Honest
My application is making call from application. Now i want to play some audio on speaker when the caller will receive call. So can some one tell me will i have to play audio in new thread or i will have to do some change ? Can some one give me any code snippt ?

[android-developers] Re: Get all package names

2009-07-01 Thread Abdul Mateen
I have done this using this, I hope this will help you: PackageManager pmPack; pmPack = getPackageManager(); ListPackageInfo packinfo = pmPack.getInstalledPackages(PackageManager.GET_ACTIVITIES); System.out.println(How many Applications are installed + packinfo.size());

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread Paul Kilgo
On Wed, Jul 1, 2009 at 3:12 AM, Kaj Bjurman kaj.bjur...@gmail.com wrote: The patent is for usage on touch screens. The patent was filed in 2008: http://mashable.com/2009/01/26/apple-multi-touch-patent/ Couldn't you feasibly implement multitouch in a different way and be legally sound? I

[android-developers] Re: PendingIntent.getService not working ...

2009-07-01 Thread Peli
I have not tried a pending service yet, but a quick workaround would be to send a pending broadcast intent to yourself (broadcast receiver), and launch the service from there. Regardless of this workaround, it would be nice to know whether there are issues with pending service intents, or

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread Mike Hearn
HTC may have licensed the patents, or this may simply be a screwup by Orange. Since Android launched I've been consistently amazed at how inaccurate and bogus operator specification pages are. They're apparently created by people with no ability to even read what they wrote. For instance that

[android-developers] Andoid Image, Name and Royalties

2009-07-01 Thread Carl
I am writing a game, and in it I would like to use the Android image (green robot as shown on the Google Groups heading and other Android literature) as a background, and the android green color as the color of my game objects. I would also like to use the name 'Android' in the name of the game

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread Disconnect
On Tue, Jun 30, 2009 at 10:47 PM, John Smithdeltafoxtrot...@gmail.com wrote: 2009/7/1 Dianne Hackborn hack...@android.com The holiday build is NOT a developer release -- it is a LEAKED internal build.  It DOES auto-update, because it is NOT a developer release. DEVELOPER BUILDS DO NOT

[android-developers] Re: Andoid Image, Name and Royalties

2009-07-01 Thread Mark Murphy
Carl wrote: I am writing a game, and in it I would like to use the Android image (green robot as shown on the Google Groups heading and other Android literature) as a background, and the android green color as the color of my game objects. I would also like to use the name 'Android' in the

[android-developers] Re: data between activities

2009-07-01 Thread Mike Hearn
It depends on the behavior you want. Remember that Android multi-tasks. At any time, the user can go away and do something else, then return to your app later. In between, your process can be killed. Thus if you stuff some objects into a static variable, you have to be able to handle that

[android-developers] Re: setBuiltInZoomControls problem

2009-07-01 Thread Mark Murphy
tstanly wrote: hi all, when i use setBuiltInZoomControls with webview or mapview,there still have problems... mWebView1.getSettings().setBuiltInZoomControls(true); or mZoomControls1.setBuiltInZoomControls(true); it doesn't work, the error messages from the eclipse,both show the

[android-developers] - OpenGL - Question about gluProject().

2009-07-01 Thread alucard20004
Hi. My apology for my imperfect English. I'm new to OpenGL. Now I have 9 objects rotating / changing their color on the screen. Next, I'm trying to check if I touched them / which one of them just got touched. Or if I touched the empty spaces between them. I've read the document about

[android-developers] Re: Andoid Image, Name and Royalties

2009-07-01 Thread Carl
Excellent! Thanks Mark. That means I need to come up with a different name and images, but at least now I know for sure. On Jul 1, 12:52 pm, Mark Murphy mmur...@commonsware.com wrote: Carl wrote: I am writing a game, and in it I would like to use the Android image (green robot as shown on

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread John Smith
2009/7/1 Disconnect dc.disconn...@gmail.com Stop, and do what she said - read it SLOWLY. You did NOT upgrade to 1.1. You upgraded to a leaked HOLIDAY PHONE image. If all you can add is nuh uh! don't bother. Actual adp images don't auto-update, and you install them manually from images on

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread Disconnect
On Wed, Jul 1, 2009 at 8:24 AM, John Smithdeltafoxtrot...@gmail.com wrote: Please explain to me why after upgrading manually to the ADP1.1 image I was prompted to install the holiday image, I did NOT manually install the holiday image the phone did it all for me. That 1.1 image WAS a holiday

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread John Smith
2009/7/1 Disconnect dc.disconn...@gmail.com On Wed, Jul 1, 2009 at 8:24 AM, John Smithdeltafoxtrot...@gmail.com wrote: Please explain to me why after upgrading manually to the ADP1.1 image I was prompted to install the holiday image, I did NOT manually install the holiday image the

[android-developers] Where to put local file on the phone

2009-07-01 Thread qLabs
Hello, Im trying to read some local files, and ive been reading a lot of stuff about it, but i still don't know where to store the files on my phone and how to get the right path. Some say, it should be stored on /data/data/your.package.here/files but where is that, i mean i can get there when

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread Disconnect
I'll say it once more, then I'm out of here. When you say I upgraded to ADP1.1 you did not. That image was NOT adp1.1. (I should know, I was the one who released it..) That image was the factory (or earlier) holiday-phone image. From that point forward, it believed it was a holiday phone so it

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread John Smith
2009/7/1 Disconnect dc.disconn...@gmail.com I'll say it once more, then I'm out of here. We will have to agree to disagree then, because I simply don't agree with your view on this, and it doesn't seem I kept the original file. --~--~-~--~~~---~--~~ You

[android-developers] Re: G1 Firmware in ADP1?

2009-07-01 Thread John Smith
2009/7/1 John Smith deltafoxtrot...@gmail.com 2009/7/1 Disconnect dc.disconn...@gmail.com I'll say it once more, then I'm out of here. We will have to agree to disagree then, because I simply don't agree with your view on this, and it doesn't seem I kept the original file. Actually,

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread CraigsRace
It's not an error. Here is a video of the HTC Hero, you can clearly see the multi touch support (zooming): http://www.adobe.com/devnet/devices/articles/htchero.html Back on topic. Will the Android SDK support multi touch? On Jul 1, 9:33 pm, Mike Hearn mh.in.engl...@gmail.com wrote: HTC

[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-01 Thread John Smith
2009/7/1 CraigsRace craig...@gmail.com It's not an error. Here is a video of the HTC Hero, you can clearly see the multi touch support (zooming): http://www.adobe.com/devnet/devices/articles/htchero.html Back on topic. Will the Android SDK support multi touch? What HTC apps support

[android-developers] Re: java.lang.ExceptionInInitializerError while reading yml file

2009-07-01 Thread Ani
Thank you fadden. I have changed to XML file instead of YML On Jun 18, 12:02 am, fadden fad...@android.com wrote: On Jun 16, 10:20 pm, Ani anish12...@gmail.com wrote: On Jun 17, 1:11 am, fadden fad...@android.com wrote: java.beans.PropertyDescriptor is not part of the Android platform,

[android-developers] Re: - OpenGL - Question about gluProject().

2009-07-01 Thread Streets Of Boston
Hints: Instead of gluProject, you likely need gluUnProject (going from the touch (x,y) coordinate on the screen to the (x,y,z) coordinate of your model-space). To obtain the model-view matrix and the projection-view matrix needed for gluProject and gluUnProject, take a look at the API Demoes

[android-developers] Re: Is the limit of memory heap only 6M?

2009-07-01 Thread Streets Of Boston
Load the picture in the size you need it, by setting the BitmapFactory.Options.inSampleSize to a value larger than 1 (so far, i have only managed to use value that are powers of 2 for this inSampleSize attribute). Look at the api-docs for more info on this attribute. What i mean is that if you

[android-developers] When does my thread die (continued discussion)

2009-07-01 Thread Lex
In addition to the posts at http://groups.google.com/group/android-developers/browse_thread/thread/47a310494882eb5a/622000c1d630690f I'm posting a new topic as the other one seems to be closed for further discussion. OK so I'm receiving traffic messages via UDP and processing them in a new

[android-developers] web browser json request for data

2009-07-01 Thread Thomas
I have a browser application that uses Json to retrieve some latitude/ longitude data from my netbook and I would like to port it to Android. Can you point me to some code samples that retrieve data from Android and return it to the browser. The browser fills in some form data fields and

[android-developers] Re: web browser json request for data

2009-07-01 Thread Andrew Burgess
You probably don't need the browser itself for the application. Instead write a activity that mimics the form, and then sends the data to your server, and retrieves the results. Hooking into the browser would probably be far too difficult. Check out

[android-developers] Re: Embedding custom text renderign

2009-07-01 Thread NAV
Hi Amit, Did you get any solution to your problem, as i am also trying to use hindi ttf file but facing same problem. Can you help me out, if you got any solution to your issue? Thanks in advance --Naved Ahmad On May 26, 12:31 pm, amit mishra amitmishr...@gmail.com wrote: Hi Dianne

[android-developers] Re: Alarm Manager

2009-07-01 Thread Marius Venter
OK, I got it point 1 working, I did not add my PedingIntent.FLAG_CANCEL_CURRENT. However, point 2 still a problem, how can I create a new PendingIntent instead of retrieving the one that is alread there? Thanks On Wed, Jul 1, 2009 at 7:23 AM, Veroland marius.ven...@gmail.com wrote: Hi I have 2

[android-developers] Is Camera.setPreviewDisplay(surfaceholder) necessary?

2009-07-01 Thread newbyca
I'm building an app that would apply various filters to data coming from the device camera's preview function and display the results in real-time. I have many questions, but I'll start with this one: is it possible to capture camera preview data without setting a preview display? e.g.

[android-developers] copy wiped/ raw data from android to sd-card (data recovery)

2009-07-01 Thread Unrealshade
Hello Android Developers, I wanted to know if it is possible to copy the raw data of the internal phone storage to the sd-card of the phone (or to some other device, maybe through internet/ usb/ bluetooth connection). Maybe even further, could users then read the raw data, so they can recover

[android-developers] Is there a way to access the serial device on G1

2009-07-01 Thread kgulzar
Hi, I want to interface my serial device on TMobile G1 Phone I want to know if there is a possibility to use a usb to serial converter or Bluetooth as a comm port to interface to my serial device --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Alarm Manager

2009-07-01 Thread Veroland
Hi I have 2 problems, I create a timer using AlarmManager and I set an Intent with certain values in the putExtra methods and then create the pendingIntent with this intent and call alamarmManager.set(RTC_Wakeup, time, pendingIntent) 1. The first time I do this everything works fine. The

[android-developers] Re: PendingIntent.getService not working ...

2009-07-01 Thread Zod
Hi! This code works for me: (although I initialize the alarm in the same service which I want to wake up with the alarmmanager). AlarmManager alarmManager = (AlarmManager) getSystemService (ALARM_SERVICE); Intent intent = new Intent(TrackerService.this, TrackerService.class);

[android-developers] Re: How to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas

2009-07-01 Thread newbyca
i'm working with the camera preview in my current project ... one thing that has helped me out *a lot* is the zebra crossing (zx) code: http://code.google.com/p/zxing/source/browse/ specifically, zx parses a small region from the preview data to determine if it contains a barcode. if a barcode

[android-developers] Re: OpenGL .dae model loader

2009-07-01 Thread Christopher
I was looking at this myself but could not find any material on the subject. I ended up just exploring the structure of the collada file and started work on my own parser. I open-sourced it at http://code.google.com/p/androidcolladaloader/ --~--~-~--~~~---~--~~

[android-developers] Any API for external accessories?

2009-07-01 Thread bubble
Hi, Is there any API for applications to talk to proprietary android phone accessories through the USB Key (In a similar way as with the iPhone OS 3.0)? Thx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Slide show in Gallery

2009-07-01 Thread rajesh v
Created a gallery (galleryView.setAdapter(new ImageAdapter(this))) with some images (added bitmap image as imageview by using a ImageAdapter class).How can I make the gallery slideshow. Want to start the slide show after load the images to the gallery (after onCreate). Please give me a solution

[android-developers] How to use mapactivity from service's startActivity

2009-07-01 Thread rio
hi, I'm making app it used mapActivity. I can use mapActivity by normal Activity transition.uses-library tag is already setting. but I couldn't use mapActivity from service's class.i wanna show activity(ex mapactivity). its my service class's code.showmap is extends MapActivity.

[android-developers] app widgets in activity

2009-07-01 Thread karan
how to display app widgets in activity. Currently i am trying to host a app widget on my activity my activity looks like protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState);

[android-developers] Re: how to use jarsigner

2009-07-01 Thread william.zane...@googlemail.com
I have the same problem My command is C:\Program Files\Java\jdk1.6.0_06\binjarsigner -verbose -keystore keys/mystore. keystore -signedjar signed_jar_name.apk keys/unsigned_proj.apk mykeystore .keystore Any ideas.. this can be potentially a big problem, as it can affect your abuility to update

[android-developers] error in copying database please help

2009-07-01 Thread ranjit
hi ALL i am new to android so how to access our own database i cant found.i found one side i.e http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ but after that what i do i dont know...i have error in copying database.i am giving some output

[android-developers] Bizarre values returned from TM.getCellLocation()).getCid()

2009-07-01 Thread tomezz
Hi, I am trying to get cell ID of the tower I am connected to but it returns very large numbers like 150858222. I am sure that Cell IDs in my surroundings are 23324,49212 etc. In contrast, when I am using NeighboringCellInfo, it returns small Cid numbers like 267,138, 283. It seems to me that

[android-developers] New to android

2009-07-01 Thread ctap105
I am new to android and google groups. I dl the sdk and tried to install into eclipse and nothing really happens. I don't have virtual device and I can't even start a new android xml. I recently got together a forum widget for a fourm that I am part of and wish to bring it onto the android

[android-developers] Re: Google Maps application problem - tiles not loading = grey background only / Maps API key available

2009-07-01 Thread Harold
Hi! Just another Idea, cause i had the same problem today! Try to adjust your GPS-coordinates. I also signed my Application and gave internet-permission. And there was always the grey-tiles. I dont know if im right, maybe it has something to do with the zoom level, that there are no data for some

[android-developers] Documentation inconsistency in Service.onBind() intent extras availability

2009-07-01 Thread Gert
Hi, I have a question about the availability of the extras in an intent passed to Service.onBind(). The documentation at http://developer.android.com/reference/android/app/Service.html#onBind(android.content.Intent) specifically states Note that any extras that were included with the Intent

[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-01 Thread Justin (Google Employee)
This is not possible without modifying the Android system. Such a process would require root access in order to either change the filesystem permissions or get around them by reading them as root. Obtaining root is not possible on retail Android configurations. Cheers, Justin Android Team @

[android-developers] Re: New to android

2009-07-01 Thread Justin (Google Employee)
Hey ctap, since you're just getting started I'd recommend visiting the android-beginners group which is better suited to these getting going type questions. Cheers, Justin Android Team @ Google On Jun 30, 11:01 am, ctap105 ctap...@gmail.com wrote: I am new to android and google groups. I dl

[android-developers] Re: HttpsUrlConnection Problem

2009-07-01 Thread roland
I met the same issue, have you found a solution for that? On 20 mai, 16:17, Binesy ross.bi...@gmail.com wrote: Hi I have been working with theHttpsUrlConnectionclass and have found an interesting issue, it seems to fail on every other connection.  The first request connects to the server

[android-developers] help with font size

2009-07-01 Thread Saurav Mukherjee
hi all, i have to get the height of the text for i have specified the text size. is this possible? i need to get the width using the Paint object and without. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Alexey Volovoy
bump ? On Jun 22, 8:59 am, Alexey Volovoy avolo...@gmail.com wrote: Hi All , i have dialog style activity android:theme=@android:style/Theme.Dialog When i attachedcontextmenuto it         @Override         public void onCreate(Bundle savedInstanceState) {                

[android-developers] Re: HttpsUrlConnection Problem

2009-07-01 Thread Streets Of Boston
I've had this issue even with regular HttpUrlConnection. Instead, i used the HttpClient interface instead (using HttpGet/ HttpPut/HttpResponse/etc) and this worked well for me. On May 20, 10:17 am, Binesy ross.bi...@gmail.com wrote: Hi I have been working with the HttpsUrlConnection class and

[android-developers] Re: Set Ringtone

2009-07-01 Thread Marco Nelissen
On Mon, Jun 1, 2009 at 11:13 PM, Niravniravshah1988s...@gmail.com wrote: How to set ringtone by using filename inplace of using its ID number. I don't want to use. Uri newUri=Uri.parse(content://media/external/audio/media/+ (String.valueOf(position+1)));

[android-developers] Re: help with font size

2009-07-01 Thread Jack Ha
Try paint.getTextBounds() -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 1, 8:29 am,

[android-developers] Re: Alarm Manager

2009-07-01 Thread Zod
Hi! When You pass a PendingIntent to the AlarmManager, if there is already one with the same Intent already registered the former will be canceled and the last will be the active one. Two pending intent is the same (in the case of an explicit intent) if the context and the target class is the

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Dianne Hackborn
The current platform doesn't support menus on non-fullscreen windows, sorry. On Wed, Jul 1, 2009 at 8:31 AM, Alexey Volovoy avolo...@gmail.com wrote: bump ? On Jun 22, 8:59 am, Alexey Volovoy avolo...@gmail.com wrote: Hi All , i have dialog style activity

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-01 Thread Dianne Hackborn
Yeah that is a little wrong... the extras are very complicated, because the bind is cached in various places. So you will see the extras for -some- request to bind, but not necessarily the current one. I would strongly strongly strongly urge against using extras here. There really is no need

[android-developers] Re: Alarm Manager

2009-07-01 Thread Dianne Hackborn
On Wed, Jul 1, 2009 at 9:10 AM, Zod zsolt.ba...@gmail.com wrote: When You pass a PendingIntent to the AlarmManager, if there is already one with the same Intent already registered the former will be canceled and the last will be the active one. Two pending intent is the same (in the case of

[android-developers] Re: PendingIntent.getService not working ...

2009-07-01 Thread Dianne Hackborn
Pending services work fine. However currently for the alarm manager I would recommend always first sending to a receiver, since there is a limitation in the system where the wakelock it holds will be released too early when delivering to a service. So if you want to be sure you receive the

[android-developers] Re: When does my thread die (continued discussion)

2009-07-01 Thread Dianne Hackborn
You should probably stop the service in onStop(). When you press home, the activity will be stopped but not destroyed because the user didn't close it. Also, if you really just want to do work while this particular activity is in the foreground, there is no need to use a service. The only

[android-developers] Problems with saveInstanceState and TextView with LinkMovementMethod in a List View

2009-07-01 Thread Nick
My first question is, when exactly is saveInstanceState called? I can't seem to emulate the action, as pressing the home button doesn't call it. What function will be fired when I press the Home button? Secondly, I have a Text View with Links in a list view. If I set the text view to the

[android-developers] Re: Embedding custom text renderign

2009-07-01 Thread Dianne Hackborn
Android just uses FreeType for text rendering, so if it is a valid TTF font it should render fine. We do not support right to left text, but I don't think this would have anything to do with individual characters not being displayed. Make sure you are providing the correct UTF-16 characters for

[android-developers] Register Receiver to Listen for Application Update

2009-07-01 Thread iPaul Pro
Hi, I'd like to add a Broadcast Action to my Intent Filter that listens for when my application is successfully updated (replaced). android.intent.action.PACKAGE_REPLACED is described as Broadcast Action: A new version of an application package has been installed, replacing an existing version

[android-developers] Re: Theme.Dialog Activity and Context Menu

2009-07-01 Thread Alexey Volovoy
thanks for reply Dianne. On Jul 1, 11:20 am, Dianne Hackborn hack...@android.com wrote: The current platform doesn't support menus on non-fullscreen windows, sorry. On Wed, Jul 1, 2009 at 8:31 AM, Alexey Volovoy avolo...@gmail.com wrote: bump ? On Jun 22, 8:59 am, Alexey Volovoy

[android-developers] Re: Alarm Manager

2009-07-01 Thread iPaul Pro
Does your PendingIntent have a unique requestCode? eg: private final int _id = (int) System.currentTimeMillis(); PendingIntent pendingIntent = PendingIntent.getBroadcast (getApplicationContext(), _id, i, PendingIntent.FLAG_ONE_SHOT); On Jul 1, 9:47 am, Marius

[android-developers] Re: Wrapping onCreateInputConnection for 1.1 safety

2009-07-01 Thread Dan Sherman
Anybody have any ideas? Still struggling with this... :( - Dan On Mon, Jun 29, 2009 at 5:10 PM, Dan Sherman impact...@gmail.com wrote: Recently was updating a game implementing SurfaceView to handle input from the soft-keyboard. One of the first things we noticed was that the enter/return

[android-developers] Re: Progress Dialog When Application Starts

2009-07-01 Thread Georgy
Thanks a lot On Jun 30, 6:53 pm, Dianne Hackborn hack...@android.com wrote: It's this: http://developer.android.com/reference/android/os/AsyncTask.html If you just search this group you will find lots of discussion of it. On Tue, Jun 30, 2009 at 3:46 PM, Georgy georgearna...@gmail.com

[android-developers] Re: Is there a way to access the serial device on G1

2009-07-01 Thread jdesbonnet
From the research I've done on this so far, neither bluetooth or USB are easily available for I/O at the moment (ie in API version 1.5). There is no support for the serial port profile (SPP) in bluetooth. This is a firmware limitation that will be fixed in the future. See:

[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-07-01 Thread cvance383
?? i know this is a simple thing i just cant find it anywhere. I have searched for hours On Jun 29, 12:29 pm, cvance383 cvance...@yahoo.com wrote: bump. anyone? On Jun 26, 2:26 pm, cvance383 cvance...@yahoo.com wrote: How can I hide the suggested words or turn off auto complete for the

[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-07-01 Thread Andrew Burgess
I haven't really looked into this, but I think that since this is a user preference, it should be up to the user whether suggested words pop up or not. On Wed, Jul 1, 2009 at 1:54 PM, cvance383 cvance...@yahoo.com wrote: ?? i know this is a simple thing i just cant find it anywhere. I have

[android-developers] Re: PendingIntent.getService not working ...

2009-07-01 Thread Veroland
Thanks, but how do you send multiple Pending's to the same service and are still able to differentiate between them, i.e. like 3 alarms for different times? On Jul 1, 6:29 pm, Dianne Hackborn hack...@android.com wrote: Pending services work fine.  However currently for the alarm manager I would

[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-07-01 Thread cvance383
Normally I agree, but this is really inconvenient when the text field is for a password. 1) most passwords arent words, so it wont help 2) it shows the password in visible text 3) it makes the password hard to enter, since it autocorrects On Jul 1, 2:12 pm, Andrew Burgess abom...@gmail.com

[android-developers] Re: How to hang an outgoing call? (Revisited, Partly solved here)

2009-07-01 Thread Gonzalo Aguilar Delgado
I'm sorry I didn't explained myself... What I wanted to say is that It must be another way to hang an outgoing call. Other than the hang button in the phone. Because others are doing it. So the question still remains. What is the way to hang an outgoing call? I can't believe that that's not

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-01 Thread Gert
I have a service working with selectable backends internally, and the user is able to select which on to bind to. I was hoping to optimize a bit by have that selection made by the bindService call, and just keep a single Binder per backend implementation. Guess I'll just create a new Binder per

[android-developers] Re: JIS conversion is ignored!

2009-07-01 Thread Dan Bornstein
On Tue, Jun 30, 2009 at 8:16 PM, Hirohiroy...@hotmail.com wrote: I can resolve this by omitting the input parametter in getBytes as follows. unicode = new String(unicode.getBytes(), ISO-2022-JP); It seems to me getBytes(ISO-2022-JP) won't work... Upon rereading your example, it's not clear

[android-developers] Re: How to hang an outgoing call? (Revisited, Partly solved here)

2009-07-01 Thread Mark Murphy
Gonzalo Aguilar Delgado wrote: I'm sorry I didn't explained myself... What I wanted to say is that It must be another way to hang an outgoing call. Other than the hang button in the phone. Because others are doing it. The only example you have cited is a firm (Huwaei) that presumably made

[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-07-01 Thread Andrew Burgess
This shouldn't happen if your text field is set as a password field, then that shouldn't be happening. Make sure to set your EditText.setInputType to TYPE_TEXT_VARIATION_PASSWORD On Wed, Jul 1, 2009 at 2:17 PM, cvance383 cvance...@yahoo.com wrote: Normally I agree, but this is really

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-01 Thread Dianne Hackborn
You don't need to create a new Binder, you can return the same Binder for multiple different intents. Actually you could just return the same Binder and ignore the incoming Intent completely, but that may lead to problems in the future if you do define new interfaces and apps try to bind to them

[android-developers] Re: PendingIntent.getService not working ...

2009-07-01 Thread Dianne Hackborn
Use different actions, data, type, categories, or the request code to create different distinct objects. On Wed, Jul 1, 2009 at 11:13 AM, Veroland marius.ven...@gmail.com wrote: Thanks, but how do you send multiple Pending's to the same service and are still able to differentiate between

  1   2   >