[android-developers] How set AppWidgetProviderInfo programmatically?

2011-07-14 Thread NTDYLF
In http://developer.android.com/guide/topics/appwidgets/index.html#MetaData it indicates that AppWidgetProviderInfo.updatePeriodMillis is programmatically adjustable when it says, You might also allow the user to adjust the frequency in a configuration. How is this done? I can see where I can set

[android-developers] Re: crash in Android SMS code

2010-04-06 Thread NTDYLF
For anyone that runs into the same problem and arrives here from an AltaVista search, the cause was (maybe) that I gave the data SMS API a byte array that's too long. When I shortened it from 151 bytes to around 100, Android stopped mysteriously crashing. On Apr 4, 11:59 am, NTDYLF

[android-developers] crash in Android SMS code

2010-04-04 Thread NTDYLF
Hi, I'm sending data SMS messages with no trouble until one (otherwise unremarkable) message in particular makes it crash: E/AndroidRuntime(29764): Caused by: java.lang.NullPointerException E/AndroidRuntime(29764):at android.telephony.SmsMessage $SubmitPdu.init(SmsMessage.java:100)

[android-developers] Re: programmatic screenshot

2009-08-06 Thread NTDYLF
, NTDYLF notthedroidyourelooking...@gmail.com wrote: Hello all y'all. How can I take a screenshot programmatically? So far I've learned that: 1) DDMS does it by sending framebuffer: to the adb service over a socket, which takes a screenshot in framebuffer_service.c that it sends back. 2

[android-developers] Re: programmatic screenshot

2009-08-06 Thread NTDYLF
Sorry to be slow, but I thought the code I posted IS trying /dev/ graphics/fb0 and not /dev/fb0. What am I missing? On Aug 6, 10:53 am, Jason Proctor jason.android.li...@gmail.com wrote: on my machine at least, fb0 is in /dev/graphics, rather than /dev. you might try that... I noticed that

[android-developers] programmatic screenshot

2009-08-04 Thread NTDYLF
there that stipulate the user must have root access, I'm not sure why. Would it be possible for an Android app to send framebuffer: to its own adb service and get the screenshot that way? Thanks in advance. ntdylf --~--~-~--~~~---~--~~ You received this message because you

[android-developers] join two tables

2009-06-25 Thread NTDYLF
Hello all, I have two tables I want to (inner) join, Contacts.People and Contacts.ContactMethods. The result will be displayed in a ListActivity. After looking into this, it appears that I should use CursorJoiner. So the code would look something like this: // 1) prepare cursors

[android-developers] HTC Magic Dev phone

2009-06-05 Thread NTDYLF
Hello all. I received an HTC Magic at the Google IO conference, and had heard that it is a dev phone, but when I adb shell into it and type su, I get su: permission denied. If this is not a dev phone, is it possible to make it one? --~--~-~--~~~---~--~~ You