[android-developers] I'm struggling to understand differences between View.setBackground( NinePatchDrawable) and View.setBackground( BitmapDrawable) differ. As one produces drawing errors while the ot

2011-09-19 Thread neuromit
I have an activity with a grid of 3x4 ImageButtons. When an ImageButton is pressed it grows to fill the screen then shrinks back down to its original location and size. However _during_ the shrink animation trailing lines are left and are only cleared once the animation has finished. I posted

[android-developers] Re: Cannot connect to Samsung Galaxy 10.1

2011-09-19 Thread neuromit
Did you put the galaxy tab in debug mode On Sep 18, 7:27 pm, gag gagel...@adelphia.net wrote: Hi Everyone, I am trying to run and debug my application on a Samsung Galaxy 10.1 tablet. When I try to launch it from Eclipse, I don't the Galaxy under the attached devices. I installed the USB

[android-developers] Re: Drawing errors during a shrink animation in Android 2.3.4

2011-09-15 Thread neuromit
bumb... On Sep 13, 4:23 pm, buda gavril dlbudagav...@gmail.com wrote: did you trued to invalidate the view? maybe if you draw it again it will look good On Sep 13, 6:10 pm, neuromit stuart.lay...@gmail.com wrote: I have 12 ImageButtons setup in a 3x4 grid. When the user clicks

[android-developers] Drawing errors during a shrink animation in Android 2.3.4

2011-09-13 Thread neuromit
I have 12 ImageButtons setup in a 3x4 grid. When the user clicks on an image button it grows to fill the screen, holds, and then shrinks down to its original location. The animation works except that when the button is shrinking it sometimes leaves lines behind. (I've attached images below). The

[android-developers] How do I get the usable dimensions of the screen?

2011-08-18 Thread neuromit
I'm interested in getting the usable dimensions of the screen as opposed to the dimensions of the entire screen as part of the screen is occupied by the notification bar and a system bar in Honeycomb. The numbers reported by DisplayMetrics only give you the dimensions of the whole screen. I've

[android-developers] Re: How do I get the usable dimensions of the screen?

2011-08-18 Thread neuromit
View.getWindowVisibleDisplayFrame(Rect) On Thu, Aug 18, 2011 at 4:12 PM, neuromit stuart.lay...@gmail.com wrote: I'm interested in getting the usable dimensions of the screen as opposed to the dimensions of the entire screen as part of the screen is occupied by the notification bar

[android-developers] Is it possible to stream audio or video from a computer to a android phone?

2011-08-05 Thread neuromit
I'm extremely interested in streaming audio and or video from a computer to an android device? Ideally an event on the computer would trigger the creation of the A/V stream, the computer would then notify the phone via sms, or some other mechanism, about the stream at which point the phone could

[android-developers] Can I hide my app in their application drawer?

2011-07-07 Thread neuromit
Is it possible to have my app appear in the application drawer until the user has launched it once? -- 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

[android-developers] Intent fails to grab image on certain devices

2011-05-29 Thread neuromit
In my application I want to let users pick a custom image. Currently I'm using the following code to do this: http://paste2.org/p/1442508 (also pasted below). It works great on most phones but a few users have reported it isn't working on their phones. Also this also only works using the default

[android-developers] Re: Intent fails to grab image on certain devices

2011-05-29 Thread neuromit
hmm... so I take it there isn't a simpler way than that. On May 29, 2:42 pm, Mark Murphy mmur...@commonsware.com wrote: Write your own image selector using the MediaStore content provider. On Sun, May 29, 2011 at 2:26 PM, neuromit stuart.lay...@gmail.com wrote: In my application I

[android-developers] Re: Intent fails to grab image on certain devices

2011-05-29 Thread neuromit
That's actually not a bad idea, i wonder if anyone has a recommendation On May 29, 3:31 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, May 29, 2011 at 3:27 PM, neuromit stuart.lay...@gmail.com wrote: hmm... so I take it there isn't a simpler way than that. You are welcome to recommend

[android-developers] Re: Mac or PC for development

2011-05-27 Thread neuromit
I purchased a MacBookPro 6 months ago and I like it but there are things I definitely miss about my old thinkpad. If you think you'll ever want to develop for the iphone or ipad then you should get the mac. Otherwise get the PC and save some money. On May 27, 10:34 am, Marcin Orlowski

[android-developers] How to make my app compatible with plugins?

2011-05-26 Thread neuromit
I have written a very simple game that I'd would also like to make plugins for. The plugins would change the sprites a the logic that controls the sprites. I'm hoping that something like this is possible, but I am not sure how to do it. I've thought about including all the plugin code into the

[android-developers] how to create theme packs

2011-05-25 Thread neuromit
I'm interested in releasing theme packs for my application. I've written a free application and plan on selling themes for it in the android market (much like ADWLauncher does). I have no clue however on how to do this. Has anyone here done this and if so what resources can I turn to for an

[android-developers] Re: how to create theme packs

2011-05-25 Thread neuromit
app is present. The second option sounds reasonable except that it requires that all themes get packaged into the original app increasing its size. The 1st option is probably the better way to go but I have no clue as to how to actually implement it. On May 25, 2:05 pm, neuromit stuart.lay

[android-developers] Performance issues drawing on a canvas

2011-05-24 Thread neuromit
I'm writing a pacman style game that has a lot of things to be drawn, namely, the dots that pacman likes to eat. I'm finding that the drawing of the dots is greatly hampering the performance of the game. If I turn them off my app consumes much fewer cpu cycles than if they are left on. here is

[android-developers] Re: Performance issues drawing on a canvas

2011-05-24 Thread neuromit
/Collision_detection On Tue, May 24, 2011 at 12:57 PM, neuromit stuart.lay...@gmail.com wrote: I'm writing a pacman style game that has a lot of things to be drawn, namely, the dots that pacman likes to eat. I'm finding that the drawing of the dots is greatly hampering the performance

[android-developers] Re: Performance issues drawing on a canvas

2011-05-24 Thread neuromit
Also do you mean that they should be split into separate threads or just separate methods? On May 24, 11:25 am, neuromit stuart.lay...@gmail.com wrote: Thank you both for your suggestions, they are really helpful.   I was able to optimise my code quite a bit. My collision detection is pretty

[android-developers] Re: Performance issues drawing on a canvas

2011-05-24 Thread neuromit
:48 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, May 24, 2011 at 4:25 PM, neuromit stuart.lay...@gmail.com wrote: Thank you both for your suggestions, they are really helpful.   I was able to optimise my code quite a bit. My collision detection is pretty primitive, so

[android-developers] Re: Image Picker and Cropper

2011-05-21 Thread neuromit
yes it is. I guess I should have specified that. From my app I'd like to let the user pick an image and then crop it but I want to enforce a specific Width x Height ratio and I was wondering if there was something in the SDK to do this. On May 15, 9:24 pm, Nicholas Johnson

[android-developers] Re: Image Picker and Cropper

2011-05-15 Thread neuromit
bump... On May 14, 10:17 am, neuromit stuart.lay...@gmail.com wrote: Is there a way to pick an image from the gallery while also specifying that it should be cropped or resized to certain dimensions? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Bitmap Distortion

2011-05-10 Thread neuromit
I'm loading a png file using Bitmap eBitmap = BitmapFactory.decodeResource(r, R.drawable.pm) ; and then drawing it using: canvas.drawBitmap(eBitmap, x, y, mPaint); The problem I'm experiencing is the bitmap is coming out distorted. The corners are getting rounded and messing up the image. Is

[android-developers] Re: Bitmap Distortion

2011-05-10 Thread neuromit
but on the phone it looks terrible. On May 10, 1:06 pm, neuromit stuart.lay...@gmail.com wrote: I'm loading a png file using Bitmap eBitmap = BitmapFactory.decodeResource(r, R.drawable.pm) ; and then drawing it using: canvas.drawBitmap(eBitmap, x, y, mPaint); The problem I'm experiencing

[android-developers] Can a live wallpaper detect the layout of shortcuts and widgets?

2011-05-08 Thread neuromit
The subject says it all, is there a way for a live wall paper to detect the layout or widgets or applications on the homescreen? -- 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: Media player problems with android 2.3 (gingerbread), I can't open a service connection....

2010-12-21 Thread neuromit
of its process. On Mon, Dec 20, 2010 at 3:43 PM, neuromit stuart.lay...@gmail.com wrote: I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application

[android-developers] Media player problems with android 2.3 (gingerbread), I can't open a service connection....

2010-12-20 Thread neuromit
I'm trying to setup a service connection to control the stock android media player. This works great under 2.1 and 2.2. However, when I tried to run my application on the 2.3 emulator my application crashes and I get the following error: ERROR/AndroidRuntime(466): Caused by:

[android-developers] SharedPreferences not persisting

2010-12-18 Thread neuromit
I've been trying to save some state variables in the SharedPrefs, this seems to work fine when onPause, and onStop are called but not when OnDestroy() is called. When that happens the next time my activity loads the preference values have disappeared. Here is the code I use to save the variables:

[android-developers] Re: SharedPreferences not persisting

2010-12-18 Thread neuromit
the SharedPreferences, as that will be the one that PreferenceActivity uses. Otherwise, your code seems fine. However, bear in mind that onDestroy() is not guaranteed to be called, so you may be better served writing them in onStop(), anyway. On Sat, Dec 18, 2010 at 5:01 PM, neuromit

[android-developers] Re: SharedPreferences not persisting

2010-12-18 Thread neuromit
seems fine. However, bear in mind that onDestroy() is not guaranteed to be called, so you may be better served writing them in onStop(), anyway. On Sat, Dec 18, 2010 at 5:01 PM, neuromit stuart.lay...@gmail.com wrote: I've been trying to save some state variables in the SharedPrefs

[android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread neuromit
, Dec 16, 2010 at 3:18 PM, neuromit stuart.lay...@gmail.com wrote: android.intent.activity.SENDTO, is there a way to programmatically separate sms activities from email activities? There are other considerations for filtering intents besides the action. Try checking the other properties. The data

[android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread neuromit
No it is unfortunately not the case. If you only have a single SMS app installed then there is no SMS app listed under the preferred applications. On Dec 17, 12:46 pm, TreKing treking...@gmail.com wrote: On Fri, Dec 17, 2010 at 10:55 AM, neuromit stuart.lay...@gmail.com wrote: Now

[android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread neuromit
, Dec 17, 2010 at 12:31 PM, neuromit stuart.lay...@gmail.com wrote: No it is unfortunately not the case. If you only have a single SMS app installed then there is no SMS app listed under the preferred applications. Have you tried this:http://developer.android.com/reference/android/content/pm

[android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread neuromit
Ok this is what I want to do: I have a button in my app, lets call it a super button. I let the user define the action of this button. The user can select options such as: send SMS, send an Email, open a browser, etc... I would like the icon of this button to be the icon of the users preferred

[android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread neuromit
this super button is pressed? Probably you will show some list of apps that the user will manually select, right? If that's the case then once the app is selected you know exactly the application and you can get its icon, etc... On Fri, Dec 17, 2010 at 10:29 PM, neuromit stuart.lay

[android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread neuromit
wow, the getActivityIcon(Intent) method grabs the icon that is preferred by the user if one has already been selected! how great! On Dec 18, 12:14 am, neuromit stuart.lay...@gmail.com wrote: @Treking, Thanks, I feel like a total idiot for overlooking that YuviDroid, No I'm not displaying

[android-developers] Re: Stuck at Screen Locked View

2010-12-16 Thread neuromit
I'm assuming that you have tried unlocking the phone using your mouse (a click registers as a touch). On a phone when you push the power button the screen goes black, this does not happen on the emulator. Try pressing the virtual power button once and this should let you unlock the phone. On Dec

[android-developers] How to get Icon of user defined default application

2010-12-16 Thread neuromit
When my app executes: Intent i = new Intent(Intent.ACTION_SENDTO, Uri.parse(sms:)); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); c.startActivity(i); for the first time the user is prompted to select a default action and then subsequent intents get passed to the application that they chose as the

[android-developers] Re: How to get Icon of user defined default application

2010-12-16 Thread neuromit
, cName.getClassName() + + intFilter.getAction(jdx) + +intFilter.getDataScheme(jdx)); } } On Dec 16, 3:13 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 16, 2010 at 1:58 PM, neuromit stuart.lay...@gmail.com wrote: Is it possible for me to discover which app they selected

[android-developers] Re: Global search app

2010-12-15 Thread neuromit
Treking, this is exactly what I'm trying to do. On Dec 15, 10:36 am, TreKing treking...@gmail.com wrote: On Wed, Dec 15, 2010 at 12:14 AM, Bob Kerns r...@acm.org wrote: As a user, I would never, in a million years, consider giving up the Android-provided global search capabilities. If

[android-developers] Droid X problems with SEARCH_LONG_PRESS intent

2010-12-15 Thread neuromit
Hi, I recently tested out my application that listens for a SEARCH_LONG_PRESS intent. On my droid incredible the intent gets registered and I can use a long press of the search button to bring up my app, however, on the droid X it doesn't work. Does anyone know why this doesn't work on the droid

[android-developers] Global search app

2010-12-14 Thread neuromit
I would like to write an application that replaces the dialog that shows up when you long press the search button. How would I making it so my app gets launched on a search button long press? -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Global search app

2010-12-14 Thread neuromit
Thanks a million On Dec 14, 5:48 pm, Jake Basile jakerbas...@gmail.com wrote: I also just saw that android.intent.action.SEARCH_LONG_PRESS exists, so maybe that's one you can use too. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Global search app

2010-12-14 Thread neuromit
the code I'm never prompted to pick a default application. Long pressing the search button brings up the voice search dialog box. Is there something else I need to specify to say that my application should be launched on a search button long press? On Dec 14, 6:05 pm, neuromit stuart.lay...@gmail.com

[android-developers] Re: Global search app

2010-12-14 Thread neuromit
thanks for your replies... but I think I need to do something more. My SMS client (ChompSMS) can be bound to the search button long press and it doesn't start any sort of voice recognition activity. When I cleared the default application and long pressed the search button the dialog appeared

[android-developers] Re: Global search app

2010-12-14 Thread neuromit
Ahh.. I missed your post where you said to add: category android:name=android.intent.category.DEFAULT / this indeed fixes the problem! On Dec 14, 10:23 pm, neuromit stuart.lay...@gmail.com wrote: thanks for your replies... but I think I need to do something more. My SMS client (ChompSMS) can

[android-developers] Global intercept of the search key

2010-12-13 Thread neuromit
I'm wondering how hard it would be to globally intercept the search key in every application? I'm guessing this isn't possible using the standard API's. Could I do this on a rooted phone? If so what steps would I need to take? -- You received this message because you are subscribed to the Google

[android-developers] Re: Problems changing the drawable on a Button

2010-12-11 Thread neuromit
=true            android:drawable=@drawable/bt_back_selected / !-- focused --      item android:drawable=@drawable/bt_back_default / !-- default --  /selector On Dec 10, 1:24 pm, neuromit stuart.lay...@gmail.com wrote: I'm working on a basic media player and am having problems changing

[android-developers] Looking for intents to control a media player

2010-12-10 Thread neuromit
I'm trying to write a universal music widget, and struggline to figure out the best way to control the user specified music player without having to explicitly include coded dedicated to each media player in code. I'm hoping that there are generic intents that get passed on to the user specified

[android-developers] Re: Problems changing the drawable on a Button

2010-12-10 Thread neuromit
hmm... I'm not looking to create two seperate buttons, rather I would prefer to have a single button and change the drawable every time the button is clicked. On Dec 10, 5:50 am, H m...@howardb.com wrote: I think I tried using the same setCompundDrawables... method but it didn't work for me

[android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread neuromit
knowing what that default app is. On Dec 10, 11:18 am, TreKing treking...@gmail.com wrote: On Fri, Dec 10, 2010 at 10:15 AM, neuromit stuart.lay...@gmail.com wrote: I'm hoping that there are generic intents that get passed on to the user specified music player, however I haven't been able

[android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread neuromit
. On Dec 10, 8:08 pm, neuromit stuart.lay...@gmail.com wrote: Right but I was going that there would be a standard set of  that would get piped to the user specified default player. so if this standard set of intents doesn't exist how do default applications work? If I want to send a sms from my app

[android-developers] Re: Looking for intents to control a media player

2010-12-10 Thread neuromit
Mark, thanks for your reply! On Dec 10, 9:09 pm, neuromit stuart.lay...@gmail.com wrote: Sorry I posted that from my phone and it didn't come out right. I was hoping that there would be a set of system intents that would be passed on to whatever app is designated by the user as the default

[android-developers] Problems changing the drawable on a Button

2010-12-09 Thread neuromit
I'm working on a basic media player and am having problems changing the drawable on the play pause button. Here is the code I'm using: Drawable draw = getResources().getDrawable(R.drawable.play); playPauseBTN.setCompoundDrawablesWithIntrinsicBounds(draw, null, null, null); The code executes

[android-developers] Adding buttons to a notification

2010-12-09 Thread neuromit
I'd like to add some buttons to a persistant notification to control my application. I have successfully added the buttons in XML and they show up perfectly when I run my application in the emulator. However, I can't figure out how to access these buttons from within my code. The only way I know

[android-developers] IMediaPlaybackService and gingerbread

2010-12-08 Thread neuromit
I found this discussion http://www.last.fm/group/Last.fm+Android/forum/114391/_/660948/1?fallback=1noredirect=1 where the last.fm developer claims that the IMediaPlaybackService will be made private in gingerbread. Is this true? If so can someone explain to me why this change is happening --

[android-developers] Can I add items to the power button menu?

2010-12-06 Thread neuromit
I'm looking to create an app that I would like to access from the power button menu. From what I've read online many people have solved this problem by modifying the rom. However, I'd like to be able to do this from a market installed APK. Is this possible, even with root? -- You received this