[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Max Salley
On Jun 9, 1:02 pm, "Mark Murphy" wrote: > > I have an app that has some network connections that are causing > > issues when the app closes/reopens.  I would like to close the > > connections when the app exits, and reinstantiate them when it opens > > again.  onCreate/onDestroy don't work for th

[android-developers] How to tell when application exits?

2009-06-09 Thread Max Salley
I have an app that has some network connections that are causing issues when the app closes/reopens. I would like to close the connections when the app exits, and reinstantiate them when it opens again. onCreate/onDestroy don't work for this purpose because they get called for the foreground act

[android-developers] How to tell when application exits?

2009-06-05 Thread Max Salley
I'm making an app that uses some network connections that I would like to tear down when the app exists, and put back up when it starts up again. Activity.onCreate/onDestroy will not work since those get invoked by a few actions that don't entail quitting/starting the app, such as sliding out the

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

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

[android-developers] Object encapsulating multiple views

2009-06-03 Thread Max Salley
I have a layout that has three views (situated in one vertical linearlayout and one horizontal) in it which I would like to wrap into a single object. Is there any easy way to do this? Right now I have a flurry of foo.setBlahBlah(bar) calls to link them all which I have to call after setContentV

[android-developers] Re: Cannot allocate any memory when using camera pic

2009-05-27 Thread Max Salley
#x27;s onDraw method gets called it sets the image, rather than setting it in the xml layout. After this it trips the flag and subsequent onDraw calls get passed to the super. It's not ideal, but it works On May 27, 2:30 pm, Max Salley wrote: > I have an app that displays a camera pictu

[android-developers] Cannot allocate any memory when using camera pic

2009-05-27 Thread Max Salley
I have an app that displays a camera picture as part of it, but if the picture is in memory I get an out of memory exception when an allocation of any size happens no matter what. If the app uses a seekbar in addition to my PictureView the ~900 bytes it allocates are too much. I even tried to lo

[android-developers] Re: stupid camera.startPreview question

2009-05-26 Thread Max Salley
Whatever SurfaceHolder you gave the camera needs to have its type set to SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS. This may not be your problem, but it will cause a blank screen On May 26, 4:18 pm, enervat...@gmail.com wrote: > Hi all, > > I'm using the camera for which I've used the CameraPrevie

[android-developers] ImageMatrix has no effect when ImageView is in matrix scaling mode

2009-05-26 Thread Max Salley
I have an extension to ImageView that I would like to draw by manually altering the ImageMatrix. When I set the View's scaling type to matrix however, changing the matrix has no effect on the image. If I put it into a different mode, say center, changing the matrix does change the display, but i

[android-developers] Re: How to force to update a view?

2009-05-22 Thread Max Salley
I'm having a similar issue with an ImageView based class that uses Matrix transformations. I update the Matrix with setImageMatrix, but the view does not update. how can I get the view to update? On May 22, 5:31 am, Gavin wrote: > Hello, >    I have a List activity which use cursor adapter. Wh

[android-developers] Re: Speed: Divide by two or multiply by .5? - I wrote a little FPS performance tester to find out.

2009-05-20 Thread Max Salley
Also there's overhead associated with putting the code into the middle of the draw loop. The speed at which this loop runs will depend on more than just the code you want to target. Maybe alter it so that it spawns a separate thread which performs whatever code you're testing and just have it re

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
I'm trying to show a cropped version of the preview, but show it at native resolution rather than showing the entire thing scaled down. I discuss what I'm doing more here (http://groups.google.com/group/ android-developers/t/f95804f843d3711b). On May 20, 3:50 pm, Jason Proctor wrote: > what do

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
I think I might go the offscreen buffer route and render when I can, as FPS doesn't matter to me in the slightest. I'm looking at creating a virtual canvas to draw to, but I'm not sure what to do with the YCbCr array that can get it into a usable form. What would you suggest I do with the array?

[android-developers] Display Cropped Camera Preview

2009-05-20 Thread Max Salley
d it seems that doing such things in the preview callback is unworkably expensive. How should I draw a subpicture at native resolution rather than the entire image scaled to fit the phone's screen? Thanks - Max --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
Thanks for the advice, I had feared something like that. From what I've read it seems that operating on the previews using the callback is much too expensive to be feasible anyway On May 20, 3:12 pm, Jason Proctor wrote: > check out the Camera SDK docs. camera previews are in raw YUV/YCbCr > fo

[android-developers] Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
I'm using the Camera.PreviewCallback.onPreviewFrame to try to generate a bitmap from the byte array passed to that method. If I use BitmapFactory.decodByteArray it returns null. I'm assuming that the array is correctly formatted since the data just comes right from the camera, so what could the

[android-developers] How to crop camera preview?

2009-05-20 Thread Max Salley
eHolder, but I don't see a callback that would let me get access each time a frame is ready to display. What would be the best way to preview a subset of the camera preview at native resolution? Thanks - Max --~--~-~--~~~---~--~~ You received this message beca

[android-developers] How to see information that write /dev/radio

2009-05-15 Thread max
|| !strcmp(tag, "GSM") || !strcmp(tag, "STK")) log_id = LOG_ID_RADIO; for all those TAGS, the information is dumped into LOG_ID_RADIO, which is /dev/radio how can I use adb command to see it ? Max --~--~-~--~~~---~--~~ Yo

[android-developers] what do MACRO "LOCAL_SDK_VERSION " do?

2009-05-11 Thread max
Finally I find if I comment out LOCAL_SDK_VERSION := current in the mk file, then the error disappear, Can anyone tell me why? Thanks Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: How I can add new app icon in the mainscreen(or HomeScreen)

2009-05-07 Thread max
displayed when android started up? Anybody can tell me? On May 8, 6:52 am, Jeff Sharkey wrote: > You can't add it automatically--users can long-press on a workspace > and insert a shortcut to your app. > > j > > On Thu, May 7, 2009 at 3:44 PM, max wrote: > >

[android-developers] How I can add new app icon in the mainscreen(or HomeScreen)

2009-05-07 Thread max
Hi, ALL I want to add my app into the mainscreen for user to start . How can I do? Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Why adb push to sdcard report "Read-only file system" for the emulator of the latest android source code

2009-04-05 Thread max
ource code, but no answer for this moment yet. Can anyone give me some light on this? Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] why repo sync can not get the alsa module from git repository though they are there on http://android.git.kernel.org/

2009-04-04 Thread max
h the code from http://android.git.kernel.org/ Can anybody give me some light on this? Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Curl for android

2009-04-02 Thread Max
Any one know a function that acts like curl or wget does for linux? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: setRequestedOrientation call flow

2009-03-31 Thread Max R.
Thanks! Got it now! On Mar 31, 10:32 am, Dianne Hackborn wrote: > This is ActivityManagerService, WindowManagerService, PhoneWindowManager. > > > > On Tue, Mar 31, 2009 at 9:10 AM, Max R. wrote: > > > I meant  SCREEN_ORIENTATION_LANDSCAPE for the parameter for >

[android-developers] Re: setRequestedOrientation call flow

2009-03-31 Thread Max R.
is valid and translate it to eOrientation90? Thx! Max On Mar 30, 7:15 pm, Dianne Hackborn wrote: > It's complicated and involves the activity manager, window manager, current > window manager policy, and eventually a rotation on the surface flinger.  If > you want to know generally

[android-developers] setRequestedOrientation call flow

2009-03-30 Thread Max R.
Hi, what's the actual call (function) flow from setRequestedOrientation (java) down to SurfaceFlinger(cpp)? Specially, can someone explain where the parameter 0 of setRequestedOrientation get translated into ROTATION_90? Max --~--~-~--~~~---~--~~ You rec

[android-developers] passing intents

2009-03-30 Thread max
how do you pass an intent from a service to a new activity launched from a main activity ? there's a passextra( intent src ); but i dont think thats what im looking for ? activity main > start service( intent wuteverserviceintent ); activity main > start activity( intent newactivityintent );

[android-developers] how can I get date from web behind proxy?

2009-02-24 Thread Max
I konw how can get data from web when there is no proxy restricted,like the code below. But when there is proxy restricted,it doesn't work,and has a exception "Socket is not connected" so I added some codes into the project, InetSocketAddress address = new InetSocketAddress("MY_IP",8080); Proxy

[android-developers] Why my gallery on real device behave so oddly?

2009-02-21 Thread max
orking also. I feel very puzzled, is there any environment or property is not set, or something wrong with my touchscreen driver? Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Why my gallery on real device behave so oddly?

2009-02-21 Thread max
el very puzzled, is there any environment or property is not set, or something else error happened? Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Where can I put some media files(image or video) into emulator or real device

2009-02-20 Thread max
ALLERY app display them. Thanks a lot in advance! Max --~--~-~--~~~---~--~~ 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 u

[android-developers] How to create blur surface from android.view.Surface?

2009-01-22 Thread Max R.
Hi, how do I create blur surface from android.view.Surface? I found this flag but there is no constructors to pass this. FX_SURFACE_BLUR Max R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Is there some kind of Widget Engine/Platform/Runtime will appear in future android platform?

2009-01-13 Thread Max
Is there some kind of Widget Engine/Platform/Runtime will appear in future android platform? Such as Google Desktop Gadget, Nokia Web RunTime, Yahoo! Widget ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Re: Comment spam in android market :(

2008-11-26 Thread Max Binshtok
Googlers, please read! I recently posted my application and while overall the comments were very useful, there is abut 30% which are spam and one or two very offensive comments. If google can't/won't moderate the comments, WHY can't we as developers do that? Mystery to me... I'll tell you the tru

[android-developers] Is Market going to support applications autoupdate mechanism?

2008-11-17 Thread Max Binshtok
will occur? 4. Do we (the developers) have to do anything to support easier auto update? Thanks, Max. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Re: Android compilation error with Sun SDK 1.6.0 Update 10

2008-10-30 Thread Max
I am also experiencing the same problem. make docs --~--~-~--~~~---~--~~ 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 fr

[android-developers] Android/WebKit browser: any way to intercept the navigation keys from a script?

2008-10-23 Thread ...Max...
oesn't see even the keyboard presses -- everything goes straight to the search bar. Is this a missing feature, or is there a trick to it? Regards, ...Max... function log( txt ) { document.getElementById( 'log' ).appendChild

[android-developers] Android/WebKit browser: text box rendered out of z-index sequence

2008-10-23 Thread ...Max...
Looks like the 'ole Microsoft IE: when the text box doesn't have focus, it is right where its z-index puts it. When you give it focus, it comes out on top. Although I think IE did that with controls, not with text boxes... Regar

[android-developers] Touch/mouse event processing in Android's browser

2008-10-21 Thread ...Max...
n the DOM, or a tag for capturing the missing events? Thanks in advance, ...Max... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Re: Does getLocationFromName work in 0.9?

2008-09-24 Thread max
Is it true that this has not been fixed for 1.0? On Sep 6, 10:49 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > You are right, getFromLocationName() with bounding box returns a empty list > ...it is a bug...and will be fixed in the next release. > > 2008/9/6 [EMAIL PROTECTED] <[EMAIL PROTECTED]>

[android-developers] Re: push apk fails saying read only filesystem

2008-09-09 Thread Max Stirling
I was under an impression that we need to push .apk packges to /system/app Thnxs for the info. /data/app-private is the location for pushing private apps. On 9/9/08, Romain Guy <[EMAIL PROTECTED]> wrote: > > Where are you pushing the files? They should be pushed in /data, not > /system. > > On

[android-developers] Re: Problem with sensors

2008-09-08 Thread max
s SensorManager by the > > > OpenIntents SensorManager. Please have a look at the samples provided > > > with the download there (OpenGLSensors and ApiDemosSensors) to see how > > > to set things up. > > > > Let me know if you have further questions. >

[android-developers] Re: Problem with sensors

2008-09-08 Thread max
the > OpenIntents SensorManager. Please have a look at the samples provided > with the download there (OpenGLSensors and ApiDemosSensors) to see how > to set things up. > > Let me know if you have further questions. > > Peliwww.openintents.org > > On 7 Sep., 15:30, max <[

[android-developers] Problem with sensors

2008-09-07 Thread max
I'm trying to access the sensors under the new 0.9 SDK. But I just don't get it to work. I distilled the essential code from the API demos, but registerListener() always returns false and I get this on logcat: "W/SensorService( 46): could not enable sensor 1". This is the code: public class Tes

[android-developers] dynamic resource

2008-04-06 Thread Max Binshtok
Is there a mechanism to dynamically obtain a resource? I mean, let's say I want to show some image depending on context out of 5 images I have in drawable dir. So I would expect something like getResourceByName(String s) : int which would take a string that points to the resource and will get m

[android-developers] selectable AutoCompleteTextView and "filtering" issue

2008-03-31 Thread Max Binshtok
Hi, I have a problem with AutoCompleteTextView I have a (clickable) list of objects i.e. when you click on an item you get to another activity which is guided by that specific item clicked. I want to use the Autocomplete to search in that list but I want the same behavior I get with a regular li

<    1   2