[android-developers] Re: How to decode large resolution Images

2009-05-06 Thread vishal bhoj
Can Anyone help me on this ? On Tue, May 5, 2009 at 6:31 PM, bhoj vishalb...@gmail.com wrote: Hello All, I want to decode high resolution pics something like 8 mega pixel images and view it. when I try to decode them I get out of memory exception. Decoding of single 8 mega pixel also fails

[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-06 Thread Dianne Hackborn
You can look at the Touch Paint API demo as an example of one approach. On Tue, May 5, 2009 at 9:04 PM, Sukitha Udugamasooriya suk...@gmail.comwrote: Thanks. Is there a way to save the Canvas object on re-draw that in the onDraw()?? -- Dianne Hackborn Android framework engineer

[android-developers] Re: How to show soft keyboard in landscape mode?

2009-05-06 Thread Dianne Hackborn
If you are on a G1, the default behavior of InputMethodService is not to be shown when there is a hardware keyboard available. On Tue, May 5, 2009 at 8:21 PM, Yan Shi shiyansu...@gmail.com wrote: I tried a lot of ways with no luck. Could anyone please help me? Thanks -- Dianne Hackborn

[android-developers] Access my own provider in another app

2009-05-06 Thread quill
Hi all, I hava build a notepad application just like the notepad sample in sdk.It has a NotePadProvider. Now in another application I want to insert or delete a record in notepad database, how should I do this? Can I use NotePadProvider? how? I know that how to insert a record in contacts:

[android-developers] Dx Tool

2009-05-06 Thread Sergio Ciruela
Hi, I would like to know where i can find a how-to about DX tool. 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: Access my own provider in another app

2009-05-06 Thread Dianne Hackborn
Link the NotePadProvider class into the second application and just use it the same way as you would in the original app. On Tue, May 5, 2009 at 11:22 PM, quill quill...@163.com wrote: Hi all, I hava build a notepad application just like the notepad sample in sdk.It has a NotePadProvider.

[android-developers] Re: Access my own provider in another app

2009-05-06 Thread quill
Hi Dianne, I have try this, just to import com.example.android.notepad.NotePadProvider; but eclipse shows me an error. On May 6, 2:31 pm, Dianne Hackborn hack...@android.com wrote: Link the NotePadProvider class into the second application and just use it the same way as you would in the

[android-developers] Re: Access my own provider in another app

2009-05-06 Thread Dianne Hackborn
You need to statically link it into your app (sorry I can't help with exactly how to do this with ADT, I do my work in the platform build system). On Tue, May 5, 2009 at 11:37 PM, quill quill...@163.com wrote: Hi Dianne, I have try this, just to import

[android-developers] Re: Android 1.5: How to get the BT state?

2009-05-06 Thread Nick Pelly
There is a simple bug in your code. Try looking in the source for other examples of the use of BLUETOOTH_STATE_CHANGED and you should quickly see what you have done wrong. Sorry not going to spoon feed you for private API's. Nick On Tue, May 5, 2009 at 10:45 PM, so_is

[android-developers] Re: Access my own provider in another app

2009-05-06 Thread quill
No problem, I will find it out! On May 6, 2:41 pm, Dianne Hackborn hack...@android.com wrote: You need to statically link it into your app (sorry I can't help with exactly how to do this with ADT, I do my work in the platform build system). On Tue, May 5, 2009 at 11:37 PM, quill

[android-developers] Re: Lost focus on soft keyboard

2009-05-06 Thread Yossi
Anyone has this issue or am I doing something wrong? On May 2, 11:51 am, Yossi yossi@gmail.com wrote: Hi, I implemented a custom preference screen on which I have an EditText control. The problem I have is when the user clicks on the EditText control to enter data,

[android-developers] Re: Update application from the Android Market

2009-05-06 Thread Mariano Kamp
How do you know that the process is still running? I've never seen this behavior. It's the other way around. The app is updated so cleanly that it forgets scheduled alarms. From what I know I think that an upgrade is an uninstall (removing the alarms and the running process) and install. So

[android-developers] Re: Update application from the Android Market

2009-05-06 Thread Dianne Hackborn
You are wrong, when installing an update all processes of the current version are killed. You can test this yourself by doing adb install -r path-to-apk On Tue, May 5, 2009 at 3:30 AM, David C dcampi...@gmail.com wrote: Hi, After different testing, I found an issue with the update method

[android-developers] Re: Lost focus on soft keyboard

2009-05-06 Thread Dianne Hackborn
IMEs do not take input focus, so I don't really understand what you are describing. What behavior are you seeing that is different than how the IME behaves in other parts of the UI? On Tue, May 5, 2009 at 11:47 PM, Yossi yossi@gmail.com wrote: Anyone has this issue or am I doing something

[android-developers] Re: Lost focus on soft keyboard

2009-05-06 Thread Yossi
1. User clicks on the EditText 2. Soft keyboard pops-up and EditText loses the focus. Any typing on the keyboard does nothing 3. User touches again the EditText to get focus 4. Now, any click on the keyboard shows the character for a second in the EditText but then it disappears. Thanks. On May

[android-developers] Re: Lost focus on soft keyboard

2009-05-06 Thread Dianne Hackborn
You'll need to supply code that demonstrates the problem. Given that this behavior is nothing like the standard behavior of EditText anywhere else in the system, here must be something in your code instigating it. On Wed, May 6, 2009 at 12:24 AM, Yossi yossi@gmail.com wrote: 1. User

[android-developers] Re: reset to paid or completely remove the old free apps from Market?

2009-05-06 Thread MrChaz
You can't convert a free app to a paid one unfortunately. I ended up renaming the package and then changing the title of the old one on the market. On May 5, 10:42 pm, jman chunyen...@gmail.com wrote: I certainly would like to keep using the old name for the paid version of the software but I

[android-developers] Re: Lost focus on soft keyboard

2009-05-06 Thread Yossi
this is the layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+android:id/widget_frame android:orientation=vertical android:padding=10px android:layout_width=fill_parent

[android-developers] Re: BUGS ? something strange about class SQLiteQueryBuilder

2009-05-06 Thread Jacky Boy
Thanks for your reply. What about the second question ? On May 4, 12:58 pm, Romain Guy romain...@google.com wrote: Q1: Method appendWhere can only append ONE query condition? why it named append? Read the javadoc

[android-developers] AppWidget Position

2009-05-06 Thread Mr.No
Hello, how do i get the position of the App.Widget on screen? --~--~-~--~~~---~--~~ 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

[android-developers] EditText for App.Widget

2009-05-06 Thread Mr.No
Hello, in which Android-SDK version their will be a EditText for the App.Widget? --~--~-~--~~~---~--~~ 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] OAuth on Android

2009-05-06 Thread Matthias
Hey guys, I have recently been working on an OAuth library that has been designed to play well with Apache HttpComponents 4 (and thus, Android of course). If you're looking for a straight forward way to do client- side OAuth on Android, check it out (literally) here:

[android-developers] Re: When GPS goes off?

2009-05-06 Thread Mohamed Amir
Is it that hard? On Apr 24, 6:36 pm, Mohamed Amir mohamed.a...@gmail.com wrote: I am working on an application that requires getting location using GPS. I registered a listener to get GPS location updates.  The location manager keeps reporting GPS locations for sometime and then stops

[android-developers] RelativeLayout with vertical center positioning problem

2009-05-06 Thread elDoudou
Hello. I've been fighting for hours now, and still do not understand what I'm missing. Sorry for posting only text, since I cannot attach an image to this post. I have an activity which uses an XML layout made of a top-level RelativeLayout composed of 3 TextViews (see the XML at the end of the

[android-developers] Re: Android 1.5 SDK now available

2009-05-06 Thread icedfusion
I too am having this exact same problem. It seems to be related to 64bit versions of linux. In terms of developing on linux, this release is a backward step - its unusable. I may have to revert back to the previous release, if that is indeed an option. ice. On Apr 27, 8:41 pm, Javi

[android-developers] Re: Launch Activity

2009-05-06 Thread danielececil...@gmail.com
Ok but i have problem with the startActivity method. I created a class ScreenGet witch extends Actity and override onCreated. I write a function main to launch it : -- Begin Code public class Main { public static void main(String[] args) { Intent i =

[android-developers] Re: 'Take a picture' intent on 1.5 - anybody please? ;)

2009-05-06 Thread BoD
I'm really sorry to insist :) It's just that I didn't find a definitive answer anywhere so I was really hoping somebody from Google could quickly answer. Is there another intent to use or a parameter to the ACTION_IMAGE_CAPTURE one, to simply take a full-sized picture (should be 2048x1536 on the

[android-developers] Request for remote logs

2009-05-06 Thread chris
Hi , i just created this issue but since it's not clear if the issue management is used or not , i'll put it again here http://code.google.com/p/android/issues/detail?id=2589 What i find really frustrating is that our users seems unable to report the issues they are having with any usefull

[android-developers] how to add app to apps list

2009-05-06 Thread birdy
Hi all; After build the cupcake, I can find many apps' .apk files in folder: \out\target\product\generic\obj\APPS\xxx_intermediates. But only 12 apps put in apps list (alarclock, browser, calender, camcoder... etc). How can I add an app (ex. ApiDemos) to the app list and then I can run it? What

[android-developers] Re: onDraw() help

2009-05-06 Thread Sukitha Udugamasooriya
Is there a way to save the canvas object? --~--~-~--~~~---~--~~ 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

[android-developers] help: button.setBackgroundColor

2009-05-06 Thread Sukitha Udugamasooriya
HI, After clling button.setBackgroundColor(int color)... the 3D look of the button has gone... :( How can I mend this?? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How to capture key events from on screen keyboard?

2009-05-06 Thread Yan Shi
What I want to do is that when a normal key (such as A) is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard. How can I do that? Thanks!

[android-developers] Re: Questions on Tab (TabWidget) Width

2009-05-06 Thread Mark Murphy
Lewis Z. wrote: It seems to me that the current implemetaion of TabWidget is only good for four tabs, which is too few for any complicated applications. Use other activities to avoid the need for so many tabs. Or, as the previous poster suggested, roll your own tab-like system, perhaps using a

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-05-06 Thread Mark Murphy
so_is wrote: Well Mark the problem is that I am using the suggested way to save the settings. I do commit every single edit() like suggested. But a lot of users are still reporting that they lose settings. I don't know why but it happens some times. :( (I have worked with my app for 2 months

[android-developers] book page animation

2009-05-06 Thread zeeshan
Hi Experts, i am wondering if i can animate my book app next page. any helping link of page animation? --~--~-~--~~~---~--~~ 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: Launch Activity

2009-05-06 Thread Mark Murphy
danielececil...@gmail.com wrote: Ok but i have problem with the startActivity method. I created a class ScreenGet witch extends Actity and override onCreated. I write a function main to launch it : -- Begin Code public class Main { public static

[android-developers] Re: How to capture key events from on screen keyboard?

2009-05-06 Thread Yan Shi
Still need help. I found there a flag in KeyEvent: KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? The key listener I registered never received any key events from soft keyboard. On May 6, 6:40 pm, Yan Shi shiyansu...@gmail.com wrote: What I want to do is that when a normal key

[android-developers] Low Memory: No more background

2009-05-06 Thread balakrishna...@gmail.com
Hi, I am working on openGles with seven images displayed on the screen. I am translating the position of these seven images on a button click so it is drawing every time it seems. But, after sometime all the images are getting disappeared then I've checked in the logcat I found this

[android-developers] R.drawable.list_selector_background doesn't yield in orange

2009-05-06 Thread gsmd
Ok, here's a simple 'helloorange' activity: -- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(some text); tv.setBackgroundDrawable(getResources().getDrawable

[android-developers] use long field in sqlite

2009-05-06 Thread Zeeshan Khan
Hi, I want to store long value in database ( current time millis) , how to store it Please reply soon. Thank you Regards zeeshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: use long field in sqlite

2009-05-06 Thread Mark Murphy
Zeeshan Khan wrote: Hi, I want to store long value in database ( current time millis) , how to store it Please reply soon. Thank you Use an INTEGER column, which will handle long values. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The

[android-developers] Text getting cut-off in a list view

2009-05-06 Thread Gyan
I have a list of text views in my screen. The text in one of the list item gets cut-off on the right side. There is no padding attached in the layout and there are no over-lapping layouts. But when i focus that particular list item the text view is re-drawn and re-positioned to give me uncut text.

[android-developers] 3D transition flip between activities?

2009-05-06 Thread zeeshan
Hi experts, i am wondering if i can flip 2 different views by 3D transition like in iphone? 3D transition example in ApiDemo seems transition in the same activity --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] ALSA channels

2009-05-06 Thread l hx
when i use the code below. status_t ALSAStreamOps::channelCount(int channels) { int err; if (!mHandle) return NO_INIT; err = snd_pcm_hw_params_set_channels(mHandle, mHardwareParams, channels); if (err 0) { LOGE(Unable to set channel count to %i: %s,

[android-developers] Unable to remove default launching of an application.

2009-05-06 Thread Guillaume Perrot
Example: I have a button which starts an activity with GET_CONTENT audio/* I have a menu with choices: Music Track or Sound Recorder and a checkbox. I check the box, it tells me that I can clear the setting in Application - Manage Applications. I launch the Music Track with the box checked. I go

[android-developers] Re: Unable to remove default launching of an application.

2009-05-06 Thread Guillaume Perrot
I go to the application settings, but the clear defaults button is always enabled - I meant always disabled. On 6 mai, 15:39, Guillaume Perrot guillaume.p...@gmail.com wrote: Example: I have a button which starts an activity with GET_CONTENT audio/* I have a menu with choices: Music Track or

[android-developers] Re: onDraw() help

2009-05-06 Thread Streets Of Boston
Nope. Try this. -Create a mutable bitmap the size of the screen. Save this bitmap as a variable of your instance. -Create a Canvas from this bitmap (i think you can 'cache' it, save this canvas as a variable of your instance). -Draw your touches into this canvas. Then in the 'onDraw(Canvas

[android-developers] Re: onDraw() help

2009-05-06 Thread Streets Of Boston
Nope. Try this. -Create a mutable bitmap the size of the screen. Save this bitmap as a variable of your instance. -Create a Canvas from this bitmap (i think you can 'cache' it, save this canvas as a variable of your instance). -Draw your touches into this canvas. Then in the 'onDraw(Canvas

[android-developers] DTD file for syntax checking of layouts / manifest files

2009-05-06 Thread a druid
Hi, Some XML tools request DTD files in order to allow syntax checking. Is there any place for official Android DTD files for the Manifest / for the layout XML files? If yes, Where could I find them? If no: Wyy does Google / Android not provide them? Thanks in advance for any answer

[android-developers] OnfocusChangeListener question

2009-05-06 Thread André Charles Legendre
I have one ItemizedOverlay in a 1.5 SDK application. It is working good. I would like to be informed when the user point (not tap) one Item. I don't know if ItemizedOverlay.OnfocusChangeListener is the good tool for that and how to use it. Regards Andre

[android-developers] Display image in marker

2009-05-06 Thread Wouter
Hey, I want to display an image (loaded from an internet source) in a marker in a MapView! How can I do that? Thx, Wouter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Do application updates put your app back to the top of the list on the By Date tab in the android market?

2009-05-06 Thread jcook2004
I have an app on the android market and when I release an update, the application does *not* goto the top of the app list on the by date tab. But I notice that this isnt the case for all apps - infact just today I noticed an app that was published months ago but updated w/ to a new version

[android-developers] Issue with activities

2009-05-06 Thread Tushar
Hi, I writing a small application on android 1.1 . This application when launched from application menu starts with Activity1 . Using some UI Activity1 launches Activity2 which finally launches Activity3 after some user action. When Press Home button and relaunch my application Activity1 get

[android-developers] Re: Handling key events in a paused Activity

2009-05-06 Thread Satya Komatineni
What about function keys? Is it possible to tie together a set of function keys (if they exist) to a service or an activity that is in the background? On Tue, May 5, 2009 at 6:19 PM, Mark Murphy mmur...@commonsware.com wrote: Taísa Cristina wrote: In fact I do need to handle key strokes.

[android-developers] Re: use long field in sqlite

2009-05-06 Thread Zeeshan Khan
Thanks Mark for your reply, i will try what you told, For the timing i have stored it in Text field . but will change if above works Regards, Zeeshan On Wed, May 6, 2009 at 6:41 PM, Mark Murphy mmur...@commonsware.com wrote: Zeeshan Khan wrote: Hi, I want to store long

[android-developers] Re: Handling key events in a paused Activity

2009-05-06 Thread Mark Murphy
Satya Komatineni wrote: What about function keys? Is it possible to tie together a set of function keys (if they exist) to a service or an activity that is in the background? You can be notified when select dedicated hardware keys are pressed: ACTION_CAMERA_BUTTON ACTION_MEDIA_BUTTON

[android-developers] Re: Get Latitude/Longitude informations of an image

2009-05-06 Thread Georg
Okay I could fix this problem. I changed to the new SDK, now it works without any problem. Perhaps it's a bug in the old SDK: Regards Georg On Apr 27, 5:06 pm, Georg georgk...@gmail.com wrote: Hi, I'm trying to retrieve Latitude/Longitude informations of an image, but I always get 0.0 for

[android-developers] Marker Info Window

2009-05-06 Thread Wouter
Hey, How can I make such a info bubble like you see at this image http://www.lifeaware.net/images/screenshots/locatefriend.png I'm looking for it for very long! Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] How to implement a button in a widget

2009-05-06 Thread 6real
Dear all, I try to create a widget and I am now wondering how to be able to put a button on my widget and set its onClickListener. It seems that we are limited to the RemoteViews... OK I can deal with that (but this is a limitat to me) but I'd like to add a button where the user can request an

[android-developers] Re: Questions on Tab (TabWidget) Width

2009-05-06 Thread Lewis Z.
Mark, thanks for the idea. I also implemented a similar stuff like your ViewFlipper for other OS. A list view can be as simple as one column list but can be as complicate as a spreadsheet. I think a good widget should be easily extensible/expansible. For example, the options menu is well

[android-developers] TextView Hanging Indent?

2009-05-06 Thread nEx.Software
Is there a way to do like a hanging-indent in the standard TextvView? Basically, I have an image that I am trying not to overlap, but I want the text to be as close as possible to that image. I think a hanging indent would be perfect for this but am not sure that this is possible in the standard

[android-developers] How to re-do the incoming phone app

2009-05-06 Thread dashman
How would one re-do the application that displays the incoming phone number. I assume it's a content provider or a service that can be replaced. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to capture key events from on screen keyboard?

2009-05-06 Thread Yan Shi
Still need help... On May 6, 7:53 pm, Yan Shi shiyansu...@gmail.com wrote: Still need help. I found there a flag in KeyEvent: KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? The key listener I registered never received any key events from soft keyboard. On May 6, 6:40 pm,

[android-developers] Re: ALSA channels

2009-05-06 Thread Marco Nelissen
This group is for developing using the SDK. You might want to ask your question in the android-porting group instead. On Wed, May 6, 2009 at 6:31 AM, l hx lihongxia8...@gmail.com wrote: when i use the code below. status_t ALSAStreamOps::channelCount(int channels) { int err; if

[android-developers] Android 1.5 - crash during drawing of multiline TextView

2009-05-06 Thread Mike
I have a problem with Android 1.5 (problem that didn't appear in 1.1 and earlier): This TextView is in RelativeLayout: TextView android:id=@+id/list_item_name android:layout_width=wrap_content android:layout_height=wrap_content android:text=Some

[android-developers] Does SimpleDateFormat no longer throw a ParseException?

2009-05-06 Thread EboMike
In an 1.5 environment, it seems like SimpleDateFormat.parse() no longer throws an exception if it can't parse the string - it simply returns null. Did that change? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Android 1.5 - crash during drawing of multiline TextView

2009-05-06 Thread Mark Murphy
Mike wrote: I have a problem with Android 1.5 (problem that didn't appear in 1.1 and earlier): This TextView is in RelativeLayout: TextView android:id=@+id/list_item_name android:layout_width=wrap_content android:layout_height=wrap_content

[android-developers] Re: Update application from the Android Market

2009-05-06 Thread David C
so how could you explain me that people that updated their app don't have new feature until reboot of the phone... sorry guys... i faced the same problem with different application updates... (Meridian, Android Fortunes. etc) David On May 6, 9:10 am, Dianne Hackborn hack...@android.com wrote:

[android-developers] signed 1.5 does not work.. probs with 1.5

2009-05-06 Thread guruk
hi, i have quit a strange problem. my app developed on sdk 1.1 was fine to install on g1 1.1 - direct from eclipse run - as exported unsigned - as the .apk from the /bin now i developing it on sdk 1.5 - works direct from eclipse run - DOES NOT install the exported unsigned - DOES NOT install

[android-developers] Re: Android 1.5 - crash during drawing of multiline TextView

2009-05-06 Thread Romain Guy
How deep and complicated is your view hierarchy? With Android 1.5, I get the sense that StackOverflowError will be triggered by a too-complex set of views, particularly in terms of depth. You can use hierarchyviewer (in the tools/ of your SDK) to see how many layers you have -- if you're in

[android-developers] Re: DTD file for syntax checking of layouts / manifest files

2009-05-06 Thread Romain Guy
There is no DTD for the layout files because they use dynamic tag names. A DTD cannot be written. On Wed, May 6, 2009 at 6:53 AM, a druid klausf...@gmail.com wrote: Hi, Some XML tools request DTD files in order to allow syntax checking. Is there any place for official Android DTD files

[android-developers] Re: help: button.setBackgroundColor

2009-05-06 Thread Romain Guy
Don't call setBackgroundColor(). It simply replaces the button's background with a solid color. If you want to keep the button look but give it a new set of colors, you will have to grab the original assets from the source code and modify them in a graphics editing tool. Alternatively you can

[android-developers] Re: OnfocusChangeListener question

2009-05-06 Thread André Charles Legendre
Hi I finally succeed to use ItemizedOverlay.OnfocusChangeListener in my Map Overlay but it onFocusChanged is called only when I click in one Item (in same time that OnTap do it) bu not when I point one Item. The only difference is that OnFocusChanged is call even if I click outside one Item (I

[android-developers] Video with MediaRecorder

2009-05-06 Thread Anders Nilsson Plymoth
Hi, Does anyone know how to use the MediaRecorder to API to capture video? I am writing an application where I want to be able to capture video. I am trying to use the MediaRecorder API in 1.5, which is supposed to support video capture. However, there are no examples in the documentation on how

[android-developers] Re: signed 1.5 does not work.. probs with 1.5

2009-05-06 Thread guruk
also when I bring the source i developed on sdk 1.5 to my sdk 1.1 and compile there no error.. but i can not install the /bin .apk not the exported unsigned and even not the exported signed. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How to implement a button in a widget

2009-05-06 Thread Jeff Sharkey
Sure, this is easy to do. If you have a Button in your target layout passed to new RemoteViews(), you can call RemoteViews.setOnClickPendingIntent() to trigger firing of the given PendingIntent when people click on your button. You could also use any View, not just Button. Here's how the Music

[android-developers] Re: R.drawable.list_selector_background doesn't yield in orange

2009-05-06 Thread Jeff Sharkey
So the list_selector_drawable is a stateful drawable, where it's default state is black. (This is why ListView unselected items are transparent/black.) The default button drawable is also stateful, but it's default state is an unpressed button. You could force it into a focused state using

[android-developers] Re: signed 1.5 does not work.. probs with 1.5

2009-05-06 Thread guruk
shit.. and now when i compile it from my sdk 1.5 and make run from eclipse i also get an Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE [2009-05-06 19:07:49 - My Days 07] Please check logcat output for more details. [2009-05-06 19:07:49 - My Days 07] Launch canceled! so what !!.. now I

[android-developers] Re: 'Take a picture' intent on 1.5 - anybody please? ;)

2009-05-06 Thread bra...@gmail.com
Bod - as far as I know there is no intent just to snap a picture. What you can do is call the camera intent to start the camera app itself and use that to take your image then use the last URI it generated as the source for whatever you want. On May 6, 6:03 am, BoD bodl...@gmail.com wrote: I'm

[android-developers] Re: R.drawable.list_selector_background doesn't yield in orange

2009-05-06 Thread Romain Guy
It's default state is transparent actually :) On Wed, May 6, 2009 at 9:10 AM, Jeff Sharkey jshar...@android.com wrote: So the list_selector_drawable is a stateful drawable, where it's default state is black.  (This is why ListView unselected items are transparent/black.)  The default button

[android-developers] Re: OnfocusChangeListener question

2009-05-06 Thread André Charles Legendre
Finally I found a solution. Thank you for your help. Andre On Wed, May 6, 2009 at 6:43 PM, André Charles Legendre andre.legen...@gmail.com wrote: Hi I finally succeed to use ItemizedOverlay.OnfocusChangeListener in my Map Overlay but it onFocusChanged is called only when I click in one Item

[android-developers] Re: 'Take a picture' intent on 1.5 - anybody please? ;)

2009-05-06 Thread BoD
Thanks a lot for your answer! Well I'm guessing this means I have to instruct the user to press the back button after they took the picture (to go back to my own activity), which is not ideal... It's too bad cause the ACTION_IMAGE_CAPTURE one is exactly what I want - except the result image is

[android-developers] Re: signed 1.5 does not work.. probs with 1.5

2009-05-06 Thread guruk
thanks, but i targeted already in eclipse to 1.1 (api 2) why you say level one ? api 3 is 1.5 and google apis as i see. now i was able to install my old app,, deinstalled from the app manager and now i can compile again from eclipse and it runs on my 1.1 g1 now.. tripple Check: delete

[android-developers] iPhone like Tab Widget

2009-05-06 Thread Yash Patel
Hi, Please anyone know how to create iphone like Tab widget (in the bottom of the screen). 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] MP3 to PCM 16 Bit

2009-05-06 Thread Vimae
With the new 1.5 now finally being released, I'm trying to give my app a second go. I currently have a service where you can stream your music library from the web. However, each stream has to be authenticated with a cookie or the server returns a 500 error, so the standard MediaPlayer will not

[android-developers] Re: MP3 to PCM 16 Bit

2009-05-06 Thread Marco Nelissen
On Wed, May 6, 2009 at 10:19 AM, Vimae mi...@vimae.com wrote: With the new 1.5 now finally being released, I'm trying to give my app a second go. I currently have a service where you can stream your music library from the web. However, each stream has to be authenticated with a cookie or

[android-developers] Re: signed 1.5 does not work.. probs with 1.5

2009-05-06 Thread Raphael
On Wed, May 6, 2009 at 9:58 AM, guruk ilovesi...@gmail.com wrote: thanks, but i targeted already in eclipse to 1.1 (api 2) why you say level one ? api 3 is 1.5 and google apis as i see. He said -t 1 which means target platform number 1. In the SDK the first platform is API 2. Yeah a bit

[android-developers] Re: MP3 to PCM 16 Bit

2009-05-06 Thread miles
I really can't believe I never thought of using a local proxy. It seems all so simple now! As I understand the concept, but not the actual implementation, would you know of any tutorials or sample apps that go about the same lines that I could look into? On May 6, 10:29 am, Marco Nelissen

[android-developers] Re: R.drawable.list_selector_background doesn't yield in orange

2009-05-06 Thread alex
Thanks, Jeff. When user selects a TextView it 'slips' (which is indicated by background color change) and the user is expected to select(tap) another view then. Not every tap should lead to the first view losing 'focus'. That's the motivation behind setting background drawable programmatically.

[android-developers] Re: R.drawable.list_selector_background doesn't yield in orange

2009-05-06 Thread alex
Slightly off-topic, but thanks for the 'Drawable mutations' blog post anyways. :) On May 6, 7:18 pm, Romain Guy romain...@google.com wrote: It's default state is transparent actually :) On Wed, May 6, 2009 at 9:10 AM, Jeff Sharkey jshar...@android.com wrote: So the list_selector_drawable

[android-developers] Re: Video with MediaRecorder

2009-05-06 Thread Dave Sparks
You need to call setPreviewDisplay() and pass in a SurfaceView before you call prepare(). On May 6, 8:45 am, Anders Nilsson Plymoth lanils...@gmail.com wrote: Hi, Does anyone know how to use the MediaRecorder to API to capture video? I am writing an application where I want to be able to

[android-developers] Re: How to re-do the incoming phone app

2009-05-06 Thread Yusuf T. Mobile
The incoming call screen is currently not customizeable, sorry. Yusuf Saib Android ·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 May

[android-developers] Re: Android 1.5 SDK now available

2009-05-06 Thread Roderick Kennedy
No reply to my question so far, here is the error I get in full: Microsoft Windows [Version 6.0.6001] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\.\Android\Toolsandroid create avd -t 1 -n android1.1 Exception in thread main java.lang.NullPointerException

[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2009-05-06 Thread Toph
Yes they do, but is that wrong? I thought it was ok to have multiple views with the same id. They are part of 2 different activities that share a common layout. On Apr 27, 10:17 pm, Romain Guy romain...@google.com wrote: Your two list views probably have the same id. On Sat, Apr 25, 2009

[android-developers] Re: R.drawable.list_selector_background doesn't yield in orange

2009-05-06 Thread Jeff Sharkey
When user selects a TextView it 'slips' (which is indicated by background color change) and the user is expected to select(tap) another view then. Not every tap should lead to the first view losing 'focus'. That's the motivation behind setting background drawable programmatically. Ouch,

[android-developers] Activity state on pressing Back and Home button on the screen

2009-05-06 Thread karthikr
Hi Guys, Whenever I press the home button when Im in the root task of my application and when I click on the icon of my app again the state of my task (activity) is retained, but when i press the back button on the emulator and when I open my application its state is not retained. I want the

[android-developers] Re: Activity state on pressing Back and Home button on the screen

2009-05-06 Thread Mark Murphy
karthikr wrote: Whenever I press the home button when Im in the root task of my application and when I click on the icon of my app again the state of my task (activity) is retained, but when i press the back button on the emulator and when I open my application its state is not retained. The

[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2009-05-06 Thread Toph
Ok that prompts a few questions: 1) Can you elaborate on your last sentence: But that's true within an activity only. Are you saying that the identifier is the id plus the activity? I have 2 different activities (on 2 tabs, actually). 2) How do you share a layout and use it multiple times,

[android-developers] Copy My Location Functionality efficiently?

2009-05-06 Thread Hunter Peress
Hi. I'm looking to do a single location update as efficiently as possible, currently, I'm doing: requestLocationUpdates (getBestProvider(criteria, true), 0,0, listener); and then in the callback: onLocationChanged(Location) { removeUpdates (listener) } The idea is to do 1 high priority

[android-developers] Re: How to get current date ??

2009-05-06 Thread fadden
On May 5, 5:31 pm, Daehoon Jeon jeondaeh...@gmail.com wrote: Thanks for help, but I already completely done, I think Android is different from Java about get current date. In what way? --~--~-~--~~~---~--~~ You received this message because you are subscribed

  1   2   3   >