[android-developers] Re: bad compass and sensor data (stuck data).

2009-07-28 Thread Richard Schilling
propped up against a book so I could see the display. Very strange. Rudhttp://mysticlakesoftware.blogspot.com/ On Jul 22, 3:00 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: Am researching a problem with compass and sensor values returned by the phone. I found this thread

[android-developers] Re: CameraPreview: Out of memory

2009-07-28 Thread Richard Schilling
this happens? Richard Schilling Root Wireless On Jul 19, 11:45 pm, elixir infiniteopt...@gmail.com wrote: I ran in to this issue too. If you release() yourCameraobject during surfaceDestroyed you will not get this exception. Using the CameraPreview.java as an example I now have: mCamera.stopPreview

[android-developers] Re: CameraPreview: Out of memory

2009-07-28 Thread Richard Schilling
purpose is to display and hide the camera. I use this second activity as opposed to trying to get the main activity to turn off and on the camera preview on its own surface view. Seems to work much better this way.. Cheers, Richard Schilling On Jul 19, 11:45 pm, elixir infiniteopt...@gmail.com

[android-developers] Re: Please assist with sensors.

2009-07-24 Thread Richard Schilling
, Richard Schilling richard.rootwirel...@gmail.com wrote: Here is a really good example:http://mysticlakesoftware.blogspot.com/2009/07/sensor-accelerometer-m... This will get you pointed in the right direction. Richard Schilling Root Wireless On Jul 22, 2:54 pm, Mike internet

[android-developers] bad compass and sensor data (stuck data).

2009-07-22 Thread Richard Schilling
Am researching a problem with compass and sensor values returned by the phone. I found this thread: http://groups.google.com/group/android-developers/browse_thread/thread/cba46eeb09b1765a/17ec150c99427b31?lnk=gstq=compass+stuck#17ec150c99427b31 Which seems related, but it's old so I'm starting

[android-developers] Re: Programming for performance.

2009-07-22 Thread Richard Schilling
); buf.position(0); return buf.array(); } Pass each string in, and then pack the results from each call into your file. Richard Schilling Root Wireless On Jul 22, 12:57 pm, gnugu rho...@gmail.com wrote: Just creating 1000 objects isn't going to take 45 seconds, it sounds

[android-developers] Re: Programming for performance.

2009-07-22 Thread Richard Schilling
Oh - almost forgot. Look at the presentation from Google I/O 2009 on programming for performance and gaming (I forget the title). It was really good, because the presenter gives some other really good general performance tips. Cheers, Richard Schilling Root Wireless On Jul 22, 1:17 pm

[android-developers] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Richard Schilling
delay the reclamation of A's memory. To be safe, use a ReferenceQueue, because it provides more control over the way the VM deals with references during garbage collection. So, check out ReferenceQueue. Again, I haven't played around with it, but it might give you what you want. Richard

[android-developers] Re: java.lang.NullPointerException

2009-07-22 Thread Richard Schilling
guide on activities as well as services. Richard Schilling Root Wireless On Jul 22, 4:38 am, Pritam pritampat...@gmail.com wrote: Hi, I have one Activity, that starts one Service and my service will lunch one Activity, i wanna to stop the Activity which one started my my Service after few

[android-developers] Re: Please assist with sensors.

2009-07-22 Thread Richard Schilling
Here is a really good example: http://mysticlakesoftware.blogspot.com/2009/07/sensor-accelerometer-magnetics.html This will get you pointed in the right direction. Richard Schilling Root Wireless On Jul 22, 2:54 pm, Mike internet...@hotmail.com wrote: Hello, i am in dire need of some

[android-developers] Re: Camera View = Regular out of memory exceptions

2009-07-16 Thread Richard Schilling
I am having this issue as well at the moment. I think this might be of help: http://groups.google.com/group/android-developers/browse_thread/thread/ebc5f7cf52ab23cb/3921b58105056789?lnk=gstq=camera+%22out+of+memory%22#3921b58105056789 On Jun 16, 8:54 am, mscwd01 mscw...@gmail.com wrote: Just

[android-developers] CameraService error ...

2009-07-16 Thread Richard Schilling
this means? Thanks Richard Schilling Root Wireless Here's the entire dump from LogCat for CameraService: 07-16 17:41:23.789: DEBUG/CameraService(35): Connect E from ICameraClient 0x20d10 07-16 17:41:23.789: DEBUG/CameraService(35): Client E constructor 07-16 17:41:24.339: DEBUG/CameraService(35

[android-developers] Re: CameraService error ...

2009-07-16 Thread Richard Schilling
); } } return client; } On Jul 16, 5:47 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I've got an application where I turn Camera Preview on and off while the application is running: User clicks a checkbox option in a preferences screen, and the camera preview turns

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-15 Thread Richard Schilling
everyone for your help, especially Dianne. In addition to helping me resolve the issue, process lifecycle (as opposed to activity lifecycle) is much less of a mystery to me now. Richard Schilling Root Wireless On Jul 14, 12:30 pm, Dianne Hackborn hack...@android.com wrote: Don't do

[android-developers] Re: Some G1 phones getting device not found with adb...

2009-07-15 Thread Richard Schilling
I did resolve the BATTERY_CHANGED events issue - it was in my application design. Search for BATTERY_CHANGED to see that thread. Haven't worn out my connectors yet! Richard On Jul 14, 12:02 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: Somehow I feel both relieved and scared

[android-developers] Camera preview on an OpenGL surface....

2009-07-15 Thread Richard Schilling
preview. What's the best way to either a) use the OpenGLSurfaceView for the camera preview and then draw on top of the camera preview, or b) create an OpenGLSurfaceView object with a transparent background (which, I don't think is possible?). Thanks. Richard Schilling Root Wireless

[android-developers] Re: Camera preview on an OpenGL surface....

2009-07-15 Thread Richard Schilling
as the main view the GLSurfaceView object using the setContentView method. 2. Then, add the SurfaceView being used to draw the camera. 3. Add other SurfaceViews to the display as necessary. That order is very important, otherwise the views block each other. Richard Schilling Root Wireless On Jul

[android-developers] BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
defined in the manifest. When the application first starts up, I get one BATTERY_CHANGED intent that the phone gives me. And, then after that, the phone doesn't broadcast any more BATTERY_CHANGED intents as the phone is plugged in and unplugged. This is really weird. Richard Schilling Root

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
Oh, and I do have permission android.permission.BATTERY_STATS included in the manifest as well. So. what's wrong? Any ideas? Thanks in advance, Richard Schilling Root Wireless On Jul 14, 1:54 am, Richard Schilling richard.rootwirel...@gmail.com wrote: For some reason

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
That's a good point. I will try registering the broadcast receiver programmatically as well to see if there's a difference in behavior. Richard Schilling Root Wireless On Jul 14, 9:08 am, Dianne Hackborn hack...@android.com wrote: Fwiw, you don't need that permission to get the battery state

[android-developers] Re: Cell Radio Info

2009-07-14 Thread Richard Schilling
I found good field test mode instructions at http://phoneftd.blogspot.com/2009/03/google-g1-phone-field-test.html Enter the Field Mode by typing (exactly) this into the Dailer app: *#*#7262626#*#* When the dialer sees the string it will start the field test application. I'm sure if you look at

[android-developers] Re: Some G1 phones getting device not found with adb...

2009-07-14 Thread Richard Schilling
rather quickly damage the port. On Jul 13, 6:56 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I'm doing a lot of G1 development these days, and I'm seeing a problem others have talked about but there seems to be no consistent answer. I have multiple G1 phones.  Same model

[android-developers] Re: BATTERY_CHANGED not being sent for some reason.

2009-07-14 Thread Richard Schilling
receiver.); registeredBatteryIntent = true; } } } Richard On Jul 14, 10:31 am, Mark Murphy mmur...@commonsware.com wrote: Richard Schilling wrote: That's a good point.  I will try registering the broadcast receiver programmatically as well to see if there's

[android-developers] Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
eliminates object references for Activities and Services and in particular when static variables get reset to default values? Thanks. Richard Schilling Root Wireless --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: multiple-process in single application.

2009-07-14 Thread Richard Schilling
depending on the extras you loaded the Intent with. Clear as mud? Hope that helps. Richard Schilling Root Wireless On Jul 14, 1:20 pm, Dianne Hackborn hack...@android.com wrote: On Tue, Jul 14, 2009 at 12:59 PM, magicpig zsumagic...@gmail.com wrote: Can you provide the APIs to get

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
between the first call to onCreate(Bundle) through to a single final call to onDestroy(). Rather, you're referring to a broader lifetime of the process that underlies the Activity correct? This would be the lifetime associated with android.os.Process I assume Richard Schilling Root Wireless

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
!); } } } Thanks again. On Jul 14, 1:41 pm, Dianne Hackborn hack...@android.com wrote: Yeah, the process lifetime, which is outlined here: http://developer.android.com/guide/topics/fundamentals.html#proclife On Tue, Jul 14, 2009 at 1:38 PM, Richard Schilling

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
That affirms a lot for me. Thanks! Richard Schilling Root Wireless On Jul 14, 4:35 pm, Dianne Hackborn hack...@android.com wrote: No, it will never be true. The VM doesn't manage processes at all.  The system starts a process and runs a VM inside of it when it needs to run any components

[android-developers] Some G1 phones getting device not found with adb...

2009-07-13 Thread Richard Schilling
. Thanks. Richard Schilling Root Wireless --~--~-~--~~~---~--~~ 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 group

[android-developers] Re: com.android.internal.telephony.PhoneStateIntentReceiver not available

2009-07-09 Thread Richard Schilling
Thanks. Just checking. Re TMO network: Yeah, right. I got ocean-side property available for sale in Denver, too. Richard Schilling Root Wireless --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

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

2009-07-09 Thread Richard Schilling
. Peli www.openintents.org On Jul 1, 12:16 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: 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

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

2009-07-09 Thread Richard Schilling
to say it, but keeping the state machine your broadcast receiver has to manage seems to be key to good design using broadcast receivers. Richard Schilling Root Wireless On Jul 1, 11:13 am, Veroland marius.ven...@gmail.com wrote: Thanks, but how do you send multiple Pending's to the same service

[android-developers] Re: Better Looper documentation, please ....

2009-07-09 Thread Richard Schilling
Very helpful. Thanks. Richard Schilling Root Wireless On Jun 24, 2:10 pm, Marco Nelissen marc...@android.com wrote: On Wed, Jun 24, 2009 at 1:44 PM, Richard Schilling richard.rootwirel...@gmail.com wrote: (...) How does Looper know what handler class to send messages to?  And, where

[android-developers] Re: 1.5 Alarm Clock

2009-07-09 Thread Richard Schilling
the phone is doing. In 1.5, of course, you also need to define an AVD profile (see emulator documentation). If you don't do that the emulator will not work. Richard Schilling Root Wireless On Jul 9, 3:41 am, UncleMilt mmein...@gmail.com wrote: New to Android 1.5 using one day. Everything seems

[android-developers] Re: Analysing browser Traffic

2009-07-09 Thread Richard Schilling
. Richard Schilling Root Wireless On Jul 9, 6:01 am, arjun r zimbly.math...@gmail.com wrote: Hi All, i wish to analyse the various data passing through the browser. AFAIK i would need a handeler of the browser to query the contents. Is there any way that my application can get this handler

[android-developers] Re: Cell Radio Info

2009-07-09 Thread Richard Schilling
in the phone, but I don't have the code here (google for them). The RIL is buried pretty deeply in the Linux kernel Richard Schilling Root Wireless On Jul 9, 7:46 am, ain kodeni...@gmail.com wrote: Is there a way I can get access to the following information from the cell. I know that it uses

[android-developers] com.android.internal.telephony.PhoneStateIntentReceiver not available

2009-07-06 Thread Richard Schilling
I'm seeing that com.android.internal.telephony.PhoneStateIntentReceiver is not available to applications, and the only way to get the signal strength is by registering a PhoneStateListener with the TelephonyManager. Is that definitely true? Thanks. Richard Schilling Root Wireless

[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] Showing Toasts in a service from worker threads with service reference.

2009-06-24 Thread Richard Schilling
) s.toast(You're toasted.); // causes this exception to occur: Can't create handler inside thread that has not called Looper.prepare() } } Richard Schilling Root Wireless --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Showing Toasts in a service from worker threads with service reference.

2009-06-24 Thread Richard Schilling
Sounds good. Thanks for the confirmation. I'd like to write some more documentation for the Looper class. Where do I submit the patch? Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Better Looper documentation, please ....

2009-06-24 Thread Richard Schilling
to locListen. Right? Thanks for all your help. Richard Schilling Root Wireless --~--~-~--~~~---~--~~ 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

[android-developers] Re: Better Looper documentation, please ....

2009-06-24 Thread Richard Schilling
Perhaps this will help, too get my questions answered: Of course, I see in http://developer.android.com/reference/android/os/Handler.html a description of how the handler is used from the application's main thread: When a process is created for your application, its main thread is dedicated to

[android-developers] Better Looper documentation, please ....

2009-06-23 Thread Richard Schilling
LocationManager.requestLocationUpdates with Looper, and why does this call require a Looper object? Please don't just reference the API documentation. I've been through that and it creates more questions than it answers. Thanks. Richard Schilling Root Wireless, Inc

[android-developers] no elements available in Eclipse when editing layout

2009-05-22 Thread Richard Schilling
? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content /LinearLayout Any clue as to what's going on? Thanks. Richard Schilling Mobile Operating Systems Engineer Root Wireless, Inc

[android-developers] Re: no elements available in Eclipse when editing layout

2009-05-22 Thread Richard Schilling
I'm finding threads in this forum with somewhat related problems. Here's a link: http://groups.google.com/group/android-developers/browse_thread/thread/bcc1f9a0833aa2c3/69d6425924e3bbb3?lnk=gstq=eclipse#69d6425924e3bbb3 On May 22, 11:56 am, Richard Schilling richard.rootwirel...@gmail.com

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-05-22 Thread Richard Schilling
I'm having similar issues. I'm going to try and un-install then re- install the ADT plugin and see if it helps. There's definitely something wrong with the wizard:

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-05-22 Thread Richard Schilling
Very strange: I un-installed the Android tools and restarted eclipse. The Android specific menus and tools are still all there, but the tools are not listed in the Software Updates screen. Richard On May 22, 2:29 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I'm having similar

[android-developers] Re: no elements available in Eclipse when editing layout

2009-05-22 Thread Richard Schilling
0.9.1 from http://developer.android.com/sdk/adt_download.html 4. Changed my workspace to my normal working workspace. 5. Everything works now. Richard On May 22, 2:28 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I'm finding threads in this forum with somewhat related problems

[android-developers] Android SDK Content Loader gets stuck....

2009-05-05 Thread Richard Schilling
it is restarted. Thanks. Richard Schilling Root Wireless www.rootwireless.com --~--~-~--~~~---~--~~ 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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread Richard Schilling
) - OK (BUtton) Now R will be properly resolved. Richard Schilling Root Wireless, Inc. On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with 1.5 SDK, you should try to use Project Clean if you see any error on missing or duplicate

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-04-30 Thread Richard Schilling
I also get this in the message window: [2009-04-30 14:14:15 - MyApp] /MyApp/gen already exists but is not a source folder. Convert to a source folder or rename it. Richard On Apr 30, 2:29 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I have a number of projects that were

[android-developers] list of array types that can be created in a resource file...

2009-04-29 Thread Richard Schilling
I see in the Android documentation that I can create various resources (http://developer.android.com/guide/topics/resources/available- resources.html), but the string-array resource isn't covered. Sure, it's in examples But, what I'm looking for is a list of XML tags that tell me what

[android-developers] permissions related to /dev/alarm and setting the system

2009-04-10 Thread Richard Schilling
set me straight or confirm that what I'm thinking is true that would be great. Thanks. Cheers, Richard Schilling --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: CONTROL_LOCATION_UPDATES permission failure

2009-04-09 Thread Richard Schilling
| PhoneStateListener.LISTEN_SIGNAL_STRENGTH | PhoneStateListener.LISTEN_CELL_LOCATION); } } As the phone location changes you get the information delivered, wrapped in a pretty package with a bow, to the Phone signal listener. Richard Schilling Root Wireless On Apr 9, 11:15 am

[android-developers] new NTP client tools on the Android Market

2009-04-09 Thread Richard Schilling
For those of you dealing with time data on the Android - or just want to see an NTP client work, check out the application I just published. It's free of course, and it's called Navy Clock It displays local time of the phone, the UTC time of the phone, and the time read from the US Naval

[android-developers] file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-08 Thread Richard Schilling
O.K., Three problems in one, perhaps all related? My application writes data to a file in the /sdcard directlry. There are no errors during the write. But, the file never shows up on the card, in the file browser (on the device - I use Glance). Where did the file go? When trying to browse

[android-developers] Re: file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-08 Thread Richard Schilling
){ ex.printStackTrace(); } } } On Apr 8, 6:43 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: O.K., Three problems in one, perhaps all related? My application writes data to a file in the /sdcard directlry.  There are no errors during the write

[android-developers] Re: file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-08 Thread Richard Schilling
Oh, and one other very weird thing: When I write the data to a FileOutputStream that was created using Context.openFileOutput(), the file is created just fine (in the application's files directory). H.. I need to save to /sdcard Richard On Apr 8, 7:09 pm, Richard Schilling

[android-developers] Re: file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-08 Thread Richard Schilling
Problem solved. There was nothing wrong - it was a permissions problem. Richard On Apr 8, 6:43 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: O.K., Three problems in one, perhaps all related? My application writes data to a file in the /sdcard directlry.  There are no errors

[android-developers] installing .apk file insanity

2009-04-06 Thread Richard Schilling
Here's another one that SHOULD be a no-brainer, but isn't. Eight hours of searching on the forums, Google, etc... brings me in circles back around to very incomplete (and often misleading) information: Dead end/Question #1: Downloading via link is not working. Downloading 3rd party apps is

[android-developers] Is there a paid technical support program for developers?

2009-04-06 Thread Richard Schilling
Assume for the moment that money is no object. I develop Android appliations for a living. As always, we have a very short time to get a finished product out the door and we're relying on the Android to be one of our flagship phones. I've got no time for phone exploration or hobbying around.

[android-developers] Re: installing applications (from installers), where's the installer?

2009-04-06 Thread Richard Schilling
Solved the name of the installer. It's appsinstaller. No spaces. Geez. Richard On Apr 6, 2:16 am, Richard Schilling richard.rootwirel...@gmail.com wrote: O.K., Couple of really big issues here that SHOULD be no brainers!  But, they aren't. Anyone know what the EXACT name

[android-developers] Re: opening a file within a service

2009-04-06 Thread Richard Schilling
very little -- just builds a File with the proper path. You might want to attach the debugger and see the stack crawl when you are stuck. On Sun, Apr 5, 2009 at 2:37 PM, Richard Schilling richard.rootwirel...@gmail.com wrote: I'm getting some weird behavior when I try to open a file

[android-developers] installing applications (from installers), where's the installer?

2009-04-06 Thread Richard Schilling
it? :-/ The Android Market website, BTW doesn't allow you to search?!? Is that right?!? You can only search the Android Market from the phone? I can understand not allowing us to DOWNLOAD from the market to our PC, but not search so I can find the appliation name I want? Richard Schilling Root Wireless

[android-developers] Re: Is there a paid technical support program for developers?

2009-04-06 Thread Richard Schilling
experience developing for android, and may help you with your particular problem (and gladly accept payment). See e.g.www.openintents.biz Peliwww.openintents.orgwww.openintents.biz On Apr 6, 11:40 am, Richard Schilling richard.rootwirel...@gmail.com wrote: Assume for the moment that money

[android-developers] opening a file within a service

2009-04-05 Thread Richard Schilling
I'm getting some weird behavior when I try to open a file within a service: code public class MyService extends Service{ public void onCreate(){ super.onCreate(); File myFile = getFileStreamPath(myfile.dat); if (myFile.exists()){ Log.i(MyService, myfile.dat exists); }

[android-developers] GsmCellLocation.getCid() returns very large numbers.

2009-03-27 Thread Richard Schilling
Has anyone seen this? And, does anyone know what accounts for such a dramatic change in numbers? Do the larger numbers contain other bits about the tower that I need to extract using bitwise flags? Thanks Richard Schilling Root Wireless

<    1   2