[android-developers] How to have your app overlayed on top of any other app?

2011-01-16 Thread pcm2a
That subject may sound crazy and before today I thought it was
impossible.  There is a free app called Super Manager on the market.
This app gives you a little button to press that is overlayed
everywhere.  No matter if you are on your home screen, gmail or the
browser that icon is overlayed.

Pressing the icon brings up the app interface which is a little box.
This box is also overlayed on top of your already running application
like dolphin.

While the icon overlay or app overlay is on the screen you can still
interact with the app you were running!

How can I accomplish something like this in my code?  I can think of
many great uses.

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to have your app overlayed on top of any other app?

2011-01-16 Thread pcm2a
Hopefully someone can hit us up with some open source examples.  This
would be amazing as an optional feature in application.  Just cause
some users would not want to use the option isn't a reason to never
have it!

On Jan 16, 8:48 pm, Hari Edo hari@gmail.com wrote:
 Another program called SoftKeys does this by way of a running
 Service.  It offers access to the usually-mandated hardware keys
 like MENU, BACK, HOME, SEARCH, even for those few oddball
 devices like NOOKcolor that do not include those keys.

 An IME keyboard is also a form of this kind of UI overlay that
 people see all the time.  I am just guessing, but any soft keyboard
 is likely another example of a service that spawns interface bits.

 However, I can see this sort of thing being more nuisance than
 godsend... one person's great uses is another person's clutter.

 On Jan 16, 9:34 pm, pcm2a reeeye...@gmail.com wrote:



  That subject may sound crazy and before today I thought it was
  impossible.  There is a free app called Super Manager on the market.
  This app gives you a little button to press that is overlayed
  everywhere.  No matter if you are on your home screen, gmail or the
  browser that icon is overlayed.

  Pressing the icon brings up the app interface which is a little box.
  This box is also overlayed on top of your already running application
  like dolphin.

  While the icon overlay or app overlay is on the screen you can still
  interact with the app you were running!

  How can I accomplish something like this in my code?  I can think of
  many great uses.- Hide quoted text -

 - Show quoted text -

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Longer description using versionname in Manifest?

2010-08-11 Thread pcm2a
If you look up Aquarium Donation Live Wallpaper on the market you
will see a normal description but at the bottom where it normally
would say Version: #.# he has a whole extra sentence there.

I assume he has placed all of this in the version name attribule in
the manifest file.  Does anyone know how much text you can put in
there?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Removing copy protection from my market app?

2010-07-21 Thread pcm2a
If I publish a new version of my application and remove copy
protection will any of my users be impacted?

For example if users using 1.6 and greater will not be impacted but
users still running 1.5 would have to reinstall and resetup the
application I could live with that.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-27 Thread pcm2a
When I pick properties of the Android ADB Interface I have 3 tabs,
General, Driver, and Details.

Driver Tab:
- Driver Details
  - WinUSB, WdfCoInstaller01007, WinUSBCoInstaller
- Update Driver
  - Update Driver has me search for another driver
- Roll Back Driver
  - No driver has been backed up for this device.
- Uninstall

Details Tab:
- Value: USB\VID_22B8PID_41DB\040368420F01901B


On Jun 26, 6:43 pm, schwiz sch...@gmail.com wrote:
 when it detects the device goto the properties and select install
 driver and then pick from existing installed drivers and pick adb from
 another android phone.

 On Jun 26, 5:54 pm, pcm2a reeeye...@gmail.com wrote:



  When I uncheck the Show compatible hardware box the ADB selection
  disappears.

  My ADK drivers are also revision 3.  However, that hasn't stopped me
  from deleting them and download them several additional times through
  the SDK.
  I have also gone as far as to download random other SDK versions I
  found floating about the internet.

  I still can't find the one single place that tells it to keep looking
  at the SDK for the drivers.  Somewhere in some registry setting or
  file it's telling it hey go look in this usb_driver folder for
  files.  I've deleted a billion things out of my registry but so far
  no success.

  On Jun 26, 5:49 pm, Lance Nanek lna...@gmail.com wrote:

   I have to uncheck Show compatible hardware before Windows 7 will
   offer Android ADB Interface for the Droid. Not that I know the
   difference between the Android Composite ADB Interface driver I'm
   using and the Android ADB Interface one you are using.

   Is your USB driver that comes with the SDK up to date? I'm using Usb
   Driver package, revision 3 according to the Android SDK and AVD
   Manager. You can update it from the same in the available packages
   section if yours is earlier. Then you have to go use the update
   driver option in the device manager again to switch over to the
   updated one.

   On Jun 26, 3:25 pm, pcm2a reeeye...@gmail.com wrote:

When I choose Dont search I will choose the driver to install I only
get two things listed:
- Android ADB Interface
- USB Compisite Interface

After installing and reinstalling the Motorola drivers 100 times I was
hoping to see something extra in this list but nothing ever changes.

On Jun 26, 1:47 pm, Lance Nanek lna...@gmail.com wrote:

 I ran into the same problem connecting both the Evo 4G and Droid to my
 Windows 7 Tablet PC. After installing the HTC software off the Evo's
 SD card, the Droid stopped working. I guess I did update a lot of SDK
 stuff around then too, so that's also a potential factor.

 I did eventually get both phones working at once. Basically I just
 tried lots of combinations of removing everything HTC/Motorola in
 remove programs, reinstalling them, connecting and disconnecting
 devices, and the star of the show: right clicking on devices in the
 device manager and choosing to update their drivers and picking a
 different one from the list of applicable drivers. You can use this,
 for example, to change a Mot Composite ADB Interface to an Android
 Composite ADB Interface by choosing the Android drivers instead of
 Motorola's.

 My currently working setup doesn't even have Motorola's software
 installed, but does have HTC's. There are several Android Composite
 ADB Interface for the Droid and other phones, and one My HTC, no
 Mot Composite ADB Interface. Kind of sad HTC screwed everything up,
 but I had to uninstall Motorola, but whatever. Although if you have
 something pointing to a removed directory somehow I'd try fixing that
 first via similar right-clicking on devices and updating methods.
 Although I suspect what you are talking about there might just be a
 helpful last used location for something copied into system32/drivers
 anyway.

 On Jun 26, 12:52 pm, pcm2a reeeye...@gmail.com wrote:

  Still have no resolution for this issue.

  I have tried uninstalling and removing every single DLL that hte
  Android SDK USB Drivers comes with from my system.  Afterwards I
  installed the Motorola USB Drivers.  Next I plug in the Droid and 
  all
  it does it keep erroring out looking for the old sdk usb folder, 
  which
  I removed.

  On Jun 25, 11:52 am, pcm2a reeeye...@gmail.com wrote:

   I have owned my Droid since day 1 and I have been doing Android
   development, with ADB working, on my Windows 2003 Server laptop 
   all
   this time.  I'll try to be as detailed as possible.

   Things to note right off the bat:
   - Motorola Droid 2.1
   - Windows Server 2003 laptop
   - ADB has worked perfectly with this for ~ 8 months

   My work gave me a HTC Evo to do some development on. I installed 
   the
   HTC drivers, ADB worked fine, did my development and now I am done

[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-26 Thread pcm2a
Still have no resolution for this issue.

I have tried uninstalling and removing every single DLL that hte
Android SDK USB Drivers comes with from my system.  Afterwards I
installed the Motorola USB Drivers.  Next I plug in the Droid and all
it does it keep erroring out looking for the old sdk usb folder, which
I removed.

On Jun 25, 11:52 am, pcm2a reeeye...@gmail.com wrote:
 I have owned my Droid since day 1 and I have been doing Android
 development, with ADB working, on my Windows 2003 Server laptop all
 this time.  I'll try to be as detailed as possible.

 Things to note right off the bat:
 - Motorola Droid 2.1
 - Windows Server 2003 laptop
 - ADB has worked perfectly with this for ~ 8 months

 My work gave me a HTC Evo to do some development on. I installed the
 HTC drivers, ADB worked fine, did my development and now I am done
 with the Evo. The problem is my Droid no longer works with ADB.

 Here are some steps that I have tried:

 Attempt A:
 1. In device manager I have listed Android Phone-Android ADB
 Interface
 2. Right click-Uninstall
 3. Scan for new hardware-Device shows up
 4. Select this device, pick the usb drivers that come with the SDK
 5. Various items install like ADB and Moto A855
 6. Device manager looks exactly as it did in step 1.
 7. ADB Doesnt work

 Attempt B:
 1. Start up USBDeview
 2. Delete the HTC entry, Delete all the Motorola A855 entries
 3. Go through the steps in Attempt A.
 4. ADB Doesnt work

 Attempt C:
 1. Download Motorola 4.6.0 driver package and install it
 2. Uninstall the current driver in device manager
 3. Scan for drivers automatically
 4. Drivers from SDK are automatically used
 5. ADB not working
 6. Go back and pick have disk for the driver. Tried every driver
 than came with Mtorola 4.6.0 driver package and none would install.

 Now I'm just stumped. Also important to note that the phone and ADB
 still work fine on other computers that I never installed the HTC
 drivers on.

 Thanks for any tips!

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-26 Thread pcm2a
When I choose Dont search I will choose the driver to install I only
get two things listed:
- Android ADB Interface
- USB Compisite Interface

After installing and reinstalling the Motorola drivers 100 times I was
hoping to see something extra in this list but nothing ever changes.

On Jun 26, 1:47 pm, Lance Nanek lna...@gmail.com wrote:
 I ran into the same problem connecting both the Evo 4G and Droid to my
 Windows 7 Tablet PC. After installing the HTC software off the Evo's
 SD card, the Droid stopped working. I guess I did update a lot of SDK
 stuff around then too, so that's also a potential factor.

 I did eventually get both phones working at once. Basically I just
 tried lots of combinations of removing everything HTC/Motorola in
 remove programs, reinstalling them, connecting and disconnecting
 devices, and the star of the show: right clicking on devices in the
 device manager and choosing to update their drivers and picking a
 different one from the list of applicable drivers. You can use this,
 for example, to change a Mot Composite ADB Interface to an Android
 Composite ADB Interface by choosing the Android drivers instead of
 Motorola's.

 My currently working setup doesn't even have Motorola's software
 installed, but does have HTC's. There are several Android Composite
 ADB Interface for the Droid and other phones, and one My HTC, no
 Mot Composite ADB Interface. Kind of sad HTC screwed everything up,
 but I had to uninstall Motorola, but whatever. Although if you have
 something pointing to a removed directory somehow I'd try fixing that
 first via similar right-clicking on devices and updating methods.
 Although I suspect what you are talking about there might just be a
 helpful last used location for something copied into system32/drivers
 anyway.

 On Jun 26, 12:52 pm, pcm2a reeeye...@gmail.com wrote:



  Still have no resolution for this issue.

  I have tried uninstalling and removing every single DLL that hte
  Android SDK USB Drivers comes with from my system.  Afterwards I
  installed the Motorola USB Drivers.  Next I plug in the Droid and all
  it does it keep erroring out looking for the old sdk usb folder, which
  I removed.

  On Jun 25, 11:52 am, pcm2a reeeye...@gmail.com wrote:

   I have owned my Droid since day 1 and I have been doing Android
   development, with ADB working, on my Windows 2003 Server laptop all
   this time.  I'll try to be as detailed as possible.

   Things to note right off the bat:
   - Motorola Droid 2.1
   - Windows Server 2003 laptop
   - ADB has worked perfectly with this for ~ 8 months

   My work gave me a HTC Evo to do some development on. I installed the
   HTC drivers, ADB worked fine, did my development and now I am done
   with the Evo. The problem is my Droid no longer works with ADB.

   Here are some steps that I have tried:

   Attempt A:
   1. In device manager I have listed Android Phone-Android ADB
   Interface
   2. Right click-Uninstall
   3. Scan for new hardware-Device shows up
   4. Select this device, pick the usb drivers that come with the SDK
   5. Various items install like ADB and Moto A855
   6. Device manager looks exactly as it did in step 1.
   7. ADB Doesnt work

   Attempt B:
   1. Start up USBDeview
   2. Delete the HTC entry, Delete all the Motorola A855 entries
   3. Go through the steps in Attempt A.
   4. ADB Doesnt work

   Attempt C:
   1. Download Motorola 4.6.0 driver package and install it
   2. Uninstall the current driver in device manager
   3. Scan for drivers automatically
   4. Drivers from SDK are automatically used
   5. ADB not working
   6. Go back and pick have disk for the driver. Tried every driver
   than came with Mtorola 4.6.0 driver package and none would install.

   Now I'm just stumped. Also important to note that the phone and ADB
   still work fine on other computers that I never installed the HTC
   drivers on.

   Thanks for any tips!- Hide quoted text -

 - Show quoted text -

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-26 Thread pcm2a
When I uncheck the Show compatible hardware box the ADB selection
disappears.

My ADK drivers are also revision 3.  However, that hasn't stopped me
from deleting them and download them several additional times through
the SDK.
I have also gone as far as to download random other SDK versions I
found floating about the internet.

I still can't find the one single place that tells it to keep looking
at the SDK for the drivers.  Somewhere in some registry setting or
file it's telling it hey go look in this usb_driver folder for
files.  I've deleted a billion things out of my registry but so far
no success.

On Jun 26, 5:49 pm, Lance Nanek lna...@gmail.com wrote:
 I have to uncheck Show compatible hardware before Windows 7 will
 offer Android ADB Interface for the Droid. Not that I know the
 difference between the Android Composite ADB Interface driver I'm
 using and the Android ADB Interface one you are using.

 Is your USB driver that comes with the SDK up to date? I'm using Usb
 Driver package, revision 3 according to the Android SDK and AVD
 Manager. You can update it from the same in the available packages
 section if yours is earlier. Then you have to go use the update
 driver option in the device manager again to switch over to the
 updated one.

 On Jun 26, 3:25 pm, pcm2a reeeye...@gmail.com wrote:



  When I choose Dont search I will choose the driver to install I only
  get two things listed:
  - Android ADB Interface
  - USB Compisite Interface

  After installing and reinstalling the Motorola drivers 100 times I was
  hoping to see something extra in this list but nothing ever changes.

  On Jun 26, 1:47 pm, Lance Nanek lna...@gmail.com wrote:

   I ran into the same problem connecting both the Evo 4G and Droid to my
   Windows 7 Tablet PC. After installing the HTC software off the Evo's
   SD card, the Droid stopped working. I guess I did update a lot of SDK
   stuff around then too, so that's also a potential factor.

   I did eventually get both phones working at once. Basically I just
   tried lots of combinations of removing everything HTC/Motorola in
   remove programs, reinstalling them, connecting and disconnecting
   devices, and the star of the show: right clicking on devices in the
   device manager and choosing to update their drivers and picking a
   different one from the list of applicable drivers. You can use this,
   for example, to change a Mot Composite ADB Interface to an Android
   Composite ADB Interface by choosing the Android drivers instead of
   Motorola's.

   My currently working setup doesn't even have Motorola's software
   installed, but does have HTC's. There are several Android Composite
   ADB Interface for the Droid and other phones, and one My HTC, no
   Mot Composite ADB Interface. Kind of sad HTC screwed everything up,
   but I had to uninstall Motorola, but whatever. Although if you have
   something pointing to a removed directory somehow I'd try fixing that
   first via similar right-clicking on devices and updating methods.
   Although I suspect what you are talking about there might just be a
   helpful last used location for something copied into system32/drivers
   anyway.

   On Jun 26, 12:52 pm, pcm2a reeeye...@gmail.com wrote:

Still have no resolution for this issue.

I have tried uninstalling and removing every single DLL that hte
Android SDK USB Drivers comes with from my system.  Afterwards I
installed the Motorola USB Drivers.  Next I plug in the Droid and all
it does it keep erroring out looking for the old sdk usb folder, which
I removed.

On Jun 25, 11:52 am, pcm2a reeeye...@gmail.com wrote:

 I have owned my Droid since day 1 and I have been doing Android
 development, with ADB working, on my Windows 2003 Server laptop all
 this time.  I'll try to be as detailed as possible.

 Things to note right off the bat:
 - Motorola Droid 2.1
 - Windows Server 2003 laptop
 - ADB has worked perfectly with this for ~ 8 months

 My work gave me a HTC Evo to do some development on. I installed the
 HTC drivers, ADB worked fine, did my development and now I am done
 with the Evo. The problem is my Droid no longer works with ADB.

 Here are some steps that I have tried:

 Attempt A:
 1. In device manager I have listed Android Phone-Android ADB
 Interface
 2. Right click-Uninstall
 3. Scan for new hardware-Device shows up
 4. Select this device, pick the usb drivers that come with the SDK
 5. Various items install like ADB and Moto A855
 6. Device manager looks exactly as it did in step 1.
 7. ADB Doesnt work

 Attempt B:
 1. Start up USBDeview
 2. Delete the HTC entry, Delete all the Motorola A855 entries
 3. Go through the steps in Attempt A.
 4. ADB Doesnt work

 Attempt C:
 1. Download Motorola 4.6.0 driver package and install it
 2. Uninstall the current driver in device manager
 3. Scan for drivers automatically

[android-developers] Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-25 Thread pcm2a
I have owned my Droid since day 1 and I have been doing Android
development, with ADB working, on my Windows 2003 Server laptop all
this time.  I'll try to be as detailed as possible.

Things to note right off the bat:
- Motorola Droid 2.1
- Windows Server 2003 laptop
- ADB has worked perfectly with this for ~ 8 months

My work gave me a HTC Evo to do some development on. I installed the
HTC drivers, ADB worked fine, did my development and now I am done
with the Evo. The problem is my Droid no longer works with ADB.

Here are some steps that I have tried:

Attempt A:
1. In device manager I have listed Android Phone-Android ADB
Interface
2. Right click-Uninstall
3. Scan for new hardware-Device shows up
4. Select this device, pick the usb drivers that come with the SDK
5. Various items install like ADB and Moto A855
6. Device manager looks exactly as it did in step 1.
7. ADB Doesnt work

Attempt B:
1. Start up USBDeview
2. Delete the HTC entry, Delete all the Motorola A855 entries
3. Go through the steps in Attempt A.
4. ADB Doesnt work

Attempt C:
1. Download Motorola 4.6.0 driver package and install it
2. Uninstall the current driver in device manager
3. Scan for drivers automatically
4. Drivers from SDK are automatically used
5. ADB not working
6. Go back and pick have disk for the driver. Tried every driver
than came with Mtorola 4.6.0 driver package and none would install.

Now I'm just stumped. Also important to note that the phone and ADB
still work fine on other computers that I never installed the HTC
drivers on.

Thanks for any tips!

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Google support number for Droid's sent to Developers from Google?

2010-06-23 Thread pcm2a
A few months ago Google sent top market developers a feww phone (Droid
or Nexus).  I was one of them and received a Droid.  I just now called
in to activate the Droid on my Verizon account and was told that it is
not activatable.  They said that the ESN number is tied to a business
account and currently active.  Verizon said the only thing I can do is
to contact Google, who sent me the phone, and work it out with them.

The paperwork with the phone came with no numbers or email addresses.

I have tried calling the Nexus support line, they could not direct me
anywhere.

I have tried emailing the automated robots that sent me emails about
the phone.

Is there anyone at Google that I can contact that would be able to
help with this?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] code.google.com is down for source code viewing or svn

2010-03-19 Thread pcm2a
One example would be here:
http://code.google.com/p/android-wifi-tether/source/browse/

svn checking out or in is down as well:
svn checkout http://android-wifi-tether.googlecode.com/svn/trunk/ 
android-wifi-tether-read-only
svn: Server sent unexpected return value (502 Bad Gateway) in response
to OPTIONS request for 'http://android-wifi-tethe
r.googlecode.com/svn/trunk'

Has been down for over an hour.  Is anyone on google's side aware of
the outage?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Code to enable and disable bluetooth for SDK 3 and above?

2010-03-03 Thread pcm2a
Hey all.  People are requesting bluetooth toggle support in my More
Icons Widget.  The problem is I have to keep things compatible with
Android 1.5 (SDK level 3) and above.  There also are about 9500 free
or pay bluetooth toggles that work on SDK 3 and above so I know it
must be possible.

The only examples I can find are for Android 1.0
(context.getSystemSerivce(bluetooth)) which is no longer available
in Android 1.5, and of course I have found examples of how to do it if
you are using hte Android 2.0 (SDK 5) SDK.

I know that I will have to use reflection to access the
android.bluetooth.BluetoothDevice class for SDK 3 phones and then I
will have to also use reflection for SDK 5 and greater phones.  I've
done my best to get it working for a few days but it has been a no-go.

Does anyone have any good examples of this or know of any open source
bluetooth toggles that I can take a look at.  I'm dead in the water
here.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread pcm2a
These phones are on sale with 2.1 Os on them right now.  My friend
just ordered two with overnight shipping.

How is it even remotely acceptable that people will have 2.1 in their
hands before developers even get to touch the SDK?  I already have
users using the Nexis-Droid 2.1 rom saying that my highly used widget
doesn't work.  How am I supposed to test this out in advance without
hacking our phone all up?

All this does is frustrate users when apps don't work and further
degrades the market with 1 stars because developers don't have a
chance to update their code.

Thanks google
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Where to find this graphic? com.android.internal.R.id.keyboardView

2009-12-28 Thread pcm2a
I am looking for several graphics from Android 2.0 source but I am
unsure where online to locate them.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Droid 2.1?

2009-12-28 Thread pcm2a
They ported the Nexus 2.1 build to the droid weeks ago over on
alldroid.

On Dec 28, 5:25 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I've seen Nexus already, today was the first time I saw Droid with
 2.1. Maybe a test device?

 -John Coryat

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Multitouch code examples?

2009-12-24 Thread pcm2a
Are there any multitouch code examples that Google provides for SDK
levels 2.0 or higher?  I do searches on here and on google and come up
empty.

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Widget - onUpdate gets called even if no room on the screen for it!

2009-12-22 Thread pcm2a
Hopefully someone else has ran into this issue.  On SDK level 3
(Android 1.5) if a user adds a homescreen widget that there is not
room for, the onUpdate method is still called.

So in my widgets, in the onUpdate I check to see if hte widget has
been configured.  If it has not then I launch the configuration.
Stuff also gets saved to a SharedPreferences config.

So in this example if the user adds a widget that is too big for their
screen 10 times, it is going to launch the config needlessly 10
times.  Also for that appWidgetId, stuff is going to get saved 10
times.

How can I head this off and tell that there is no room on the screen,
in onUpdate, before doing all of that?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to change widget layout background or hide it dynamically?

2009-12-09 Thread pcm2a
I have a simple layout:
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:background=@drawable/background
android:layout_height=fill_parent
android:layout_width=wrap_content
android:orientation=vertical

In my method onUpdate I can get the remote view:

RemoteViews remoteView = new RemoteViews(context.getPackageName(),
R.layout.somelayout);

I cannot find any information on how to change or hide the background
image.

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Sprint Hero users appWidgetId changes after reboot, no settings saved!

2009-12-09 Thread pcm2a
So this one is crazy guys.  I have 7000+ users using my widget with no
problem at all.  However, I got one Sprint Hero using an unrooted
phone with no home screen manager besides the default Hero SenseUI.

I shot him over a copy of my widget pumped full of debug lines.  I can
see him add the widget with say an appWidgetId of 50.  After that he
reboots the phone and then sends me another set of logs.  In the next
set of logs the widget didnt save its settings because the appWidgetId
is now 54.

So really those settings are saved, they are just under a different
appWidgetId!

Can I do anything for this user besides refund his money and tell him
that Android has let him down?

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to change widget layout background or hide it dynamically?

2009-12-09 Thread pcm2a
I've tried two scenarios of this.

1. I used R.layout.mylayout
remoteView.setBitmap(R.layout.main, setBackgroundDrawable,
((BitmapDrawable) context.getResources().getDrawable
(R.drawable.background)).getBitmap());

12-09 19:55:06.972: WARN/AppWidgetHostView(626): updateAppWidget
couldn't find any view, using error view
12-09 19:55:06.972: WARN/AppWidgetHostView(626):
android.widget.RemoteViews$ActionException: can't find view:
0x7f030006


2. I put an id in my .xml's LinearLayout tag like android:id=@+id/
mylayout and I tried to use that.
remoteView.setBitmap(R.id.mylayout, setBackgroundDrawable,
((BitmapDrawable) context.getResources().getDrawable
(R.drawable.background)).getBitmap());


12-09 21:37:59.710: WARN/AppWidgetHostView(626):
android.widget.RemoteViews$ActionException: view:
android.widget.LinearLayout doesn't have method: setBackgroundDrawable
(android.graphics.Bitmap)

Neither way seemed to work.

On Dec 9, 4:08 pm, Paul Turchenko paul.turche...@gmail.com wrote:
 how about setBitmap(R.layout.you_view_id, setBackgroundDrawable,
 mYourBitmapDrawable)?

 On Dec 9, 10:58 pm,pcm2areeeye...@gmail.com wrote:



  I have a simple layout:
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
                  android:background=@drawable/background
          android:layout_height=fill_parent
          android:layout_width=wrap_content
          android:orientation=vertical

  In my method onUpdate I can get the remote view:

  RemoteViews remoteView = new RemoteViews(context.getPackageName(),
  R.layout.somelayout);

  I cannot find any information on how to change or hide the background
  image.

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to start up the native gallery app?

2009-12-07 Thread pcm2a
I eventually found two spectacular ways to get the list of
applications on the phone (including the gallery).  Both of these
methods are from Android source code!

Method one, if you want the list of applications in a list to iterate
through:
PackageManager manager = context.getPackageManager();

Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);

final ListResolveInfo apps = manager.queryIntentActivities
(mainIntent, 0);
Collections.sort(apps, new ResolveInfo.DisplayNameComparator
(manager))

if (apps != null) {
final int count = apps.size();

for (int i = 0; i  count; i++) {
ResolveInfo info = apps.get(i);

String packageName =
info.activityInfo.applicationInfo.packageName;
String activityName = info.activityInfo.name;

Drawable icon = info.activityInfo.loadIcon(manager);
  }
  }

Wow!

For the second method, in my case I needed the applications in a
pickable list.  I was able to poach some code from googles Launcher to
do this, and it also works fast and amazing.

Intent mainIntent = new Intent
(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
Intent pickIntent = new Intent
(Intent.ACTION_PICK_ACTIVITY);
pickIntent.putExtra(Intent.EXTRA_INTENT, mainIntent);
startActivityForResult(pickIntent,
MoreIconsConstants.REQUEST_PICK_APPLICATION)

That will return in your onActivityResults method the intent for the
item that was picked!

Enjoy.


On Nov 27, 5:15 am, Mark Murphy mmur...@commonsware.com wrote:
 pcm2awrote:
  Maybe I'm asking the totally wrong question here:

  On any android phone I can press the up arrow and get a list of all
  the built in and install application.  What is the recommended way to
  get a list of all these items, their icons, and their start intents.
  Current'y I'm using the PackageManager class.

  If that is a no go, then on any android phone I can long press, select
  shortcut, select application and a list comes up.  What is the
  recommended way to get this list along with their icons and their
  start intents?

 http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/...

 The Gallery application shows up in the Launchalot list for the Google
 Ion and the Motorola DROID. HTC Sense devices (Hero, Tattoo) do not have
 a Gallery, hence it will not show up.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Consulting/App Development:http://commonsware.com/consulting

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Where to start for home screen replacement app?

2009-12-01 Thread pcm2a
Funny topic maybe, but I feel like I have a decent hold on app
development, widget development, and even made a game.  I'd like to
tinker with creating a home screen replacement but havn't been able to
dig up any examples or good places to start.

Does anyone have any recommendations or links that might help out?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is Android backwards compatible?

2009-12-01 Thread pcm2a
Yes doesn't really cover all the situations.  Google has attempted
to make code you write for 1.5 (code level 3) or 1.6 (code level 4)
forwards compatible with Android 2.0 (code level 5).  This works
mostly but you may have to make a few tweaks.

In my case when they went from 1.6 they broke almost every single one
of my widgets that I have written due to a parameter I was using in my
provider.xml file that they changed.  I had to make a small
modification to all of them to keep it compatible with 1.5 but also
forwards compatible with 1.6 and 2.0.

Another fine example is with the higher screen resolutions.  If you
made the mistake of using of a font size of say 12pt in 1.5, thats
going to look like crap on a Droid with a higher resolution.  I had to
change a lot of stuff like that to support across the board screen
resolutions.

Your best bet right now is to write your application using SDK level 3
(Android 1.5) and then test it in an AVD emulator for 1.5, 1.6, and
2.0.  The reason you want to still be supporting 1.5 is because ALL of
the HTC Hero line of phones are still running 1.5.  This includes the
Hero, the Eris, the European Hero, etc.  There are also versions of
phones in other countries where the carrier did not push out 1.6 to
it's customers.

Good luck!

On Dec 1, 11:50 am, TreKing treking...@gmail.com wrote:
 Yes it is. Did you set the minSDK parameter in the manifest to target 1.6?
 (SDK version code 4 I believe).

 ---­--
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking



 On Tue, Dec 1, 2009 at 9:14 AM, bennyb taw...@gmail.com wrote:
  Is Android backwards compatible, in other words can an application
  developed in Android 1.6 run in Android 2.0?

  I just published a 2.0 application and discovered that I can't find it
  in the market using my G1 (Android 1.6) phone. But apparently others
  are downloading it.

  Should I downgrade the application to 1.6 or do I need to create
  separate applications for each Android version?

  --
  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, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Where to start for home screen replacement app?

2009-12-01 Thread pcm2a
Well now i feel like a fool for missing that!  It's there and it
compiles (as a 1.5 project) and runs fine on my 2.0 droid.  Obviously
is a solid place to start.

It's there in the 1.6 and 2.0 SDK as well but I haven't compared them
for differences yet.

Thanks!

On Dec 1, 12:10 pm, Mark Murphy mmur...@commonsware.com wrote:
  Funny topic maybe, but I feel like I have a decent hold on app
  development, widget development, and even made a game.  I'd like to
  tinker with creating a home screen replacement but havn't been able to
  dig up any examples or good places to start.

  Does anyone have any recommendations or links that might help out?

 There's the Home sample app in the samples that ship with the SDK. I have
 no idea if it is being kept up to date, but last I knew it still worked.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to start up the native gallery app?

2009-11-27 Thread pcm2a
Maybe I'm asking the totally wrong question here:

On any android phone I can press the up arrow and get a list of all
the built in and install application.  What is the recommended way to
get a list of all these items, their icons, and their start intents.
Current'y I'm using the PackageManager class.

If that is a no go, then on any android phone I can long press, select
shortcut, select application and a list comes up.  What is the
recommended way to get this list along with their icons and their
start intents?

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to start up the native gallery app?

2009-11-26 Thread pcm2a
The api has a nice way to get a list of all installed applications:
Code:
PackageManager appInfo = context.getPackageManager();
ListApplicationInfo list = appInfo.getInstalledApplications
(0);

The problem is that the Gallery is not in this list. So what is the
correct way to launch the gallery?

I have tried running this intent:
Code:
Intent intent = new Intent(android.intent.action.GET_CONTENT);
intent.setType(image/*);

It doesn't start up the same Gallery as pressing your normal Gallery
icon. Instead it starts up a list of all images and then when you pick
one it just returns back to the program.

What I'm looking to do is start up the regular gallery app just like
if someone pressed the Gallery icon on their home screen. Any ideas
how to do that?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread pcm2a
Why would it break in the future?  The main function of my app relies
on the user to be able to get a list of install applications.  Think
of like an application like App Task Manager that shows you the
installed apps and allows you to uninstall them.

Running appInfo.getInstalledApplications(0) each time the user wants
to do anything will grab you a fresh list of applications along with
their start intents.  From that list you can safely run any of those
apps and know that you are getting the latest item.  The only items
that I have came aross that have to be started up differently are the
Camera, the Dialer, and the Contacts list.

Do you know of a better way to:
1. Start up the Gallery application that is present on all phones
2. Get a list of native and 3rd party applications, their icons, names
and start intents without using the PackageManager?

On Nov 26, 4:43 pm, Dianne Hackborn hack...@android.com wrote:
 You can't do this.  The gallery in most devices exists as part of the camera
 app, but may not.  It is very important: if you rely on finding things by
 package name and trying to launch them, you will break in the future.  Where
 things are and what their package names are, are entirely implementation
 details.



-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread pcm2a
I don't need to start up one image, what I need to start up is the
gallery application. I'm not wanting to choose one image or return an
image back to my application.  I just want the gallery app to start up
just like you clicked the icon.

I do have some good news that I have figured out a way to actually
start it up, but not only do I have to use class names, I have also
check if it is a Hero or a non-Hero.
This line starts up the Gallery app on a non Hero phone (could be
different once the Acer A1 or Sony X10 comes out):
intent.setClassName(com.android.camera,
com.android.camera.GalleryPicker);
This line starts up the Gallery app on a Hero phone:
intent.setClassName(com.htc.album,
com.htc.album.AlbumTabSwitchActivity);

I've poached a method i found on another forum that lets me check
which activity will work with this:
 ListResolveInfo list = context.getPackageManager
().queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);

With this I now have a way for my users to start up the native gallery
app from my application.  This has been asked a tremendous amount by
my users and I'm excited to deliver it to them.  We both know that
hard coding class names in is not the best method but if there is no
other alternative, then that is just how it must be for now.

On Nov 26, 7:59 pm, Dianne Hackborn hack...@android.com wrote:
 It doesn't even work today, because different devices have the gallery
 implemented in different places.  DO NOT USE PACKAGE NAMES.  The only
 supported way to launch other applications is through the officially
 published intent protocols, such as VIEW with an image to show an image.



-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] User has returned my app, and then purchased it later on a 2nd time but cannot download it now.

2009-11-22 Thread pcm2a
The user purchases my application from the Android market yesterday
and then returned it.  The next day he has purchased it again.  I can
verify this in my google checkout console, I see where he has
purchased the app today.

Now when he goes into the market and presses download it takes him to
the buy screen.  When he presses buy again it tells him to visit
checkout.google.com.

How can he get access to the app that he has purchased?  I assume this
is some common issue caused by returning an app for a refund then
buying it again later on.

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to export from keystore and import into another keystore?

2009-11-22 Thread pcm2a
I have an older keystore and I would like to export one of my apps
from it and import that key into my newer keystore.

I have tried:
keytool -exportcert -keystore keystore.file -file certfile

This command exports my cert file.  Next I import it into my new
keystore:
keytool -importcert -keystore newkeystore.file -alias myalias -file
certfile

The newly imported key shows up as trustedCertEntry instead of
PrivateKeyEntry.

imported app, Nov 22, 2009, trustedCertEntry,
Certificate fingerprint (MD5): 61:AD:99:D2:EE:2E:4F:AC:20:FE:03:40:0F:
7E:A5:12
older app, Aug 17, 2009, PrivateKeyEntry,
Certificate fingerprint (MD5): F0:A9:21:92:3B:E4:9C:
74:D7:C1:C3:45:7C:FE:E8:C7

When I try to sign a file with jarsigner it does not find the alias
and just spits out the error that it doesn't find it in my keystore.
What step did I miss?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to force Uninstall/Reinstall instead of upgrade from the Market?

2009-08-26 Thread pcm2a

Evening fellow androiders, I have a weird problem here. In the
previous version of my app on the market, I have an icon in all
prorgams that starts up my config screen for my widget. In my new
version I have done away with this icon, and you get to configure it
from the actual widget (yay).

The problem is the automatic upgrade, that keeps your settings,
doesn't get rid of this icon in all programs. So after upgrading you
are left with an icon that does nothing but give an error when
pressed.

How can I tell the app store, I assume in my manifest file, that it
needs to do a full uninstall and reinstall rather than an in place
upgrade?
--~--~-~--~~~---~--~~
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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to force Uninstall/Reinstall instead of upgrade from the Market?

2009-08-26 Thread pcm2a

There must be some option telling it to do that.  Did it uninstall the
app for you or did it make you uninstall it, then return to the market
and reinstall?

On Aug 26, 8:41 pm, Michael Leung michaelchi...@gmail.com wrote:
 I have not published my app to the market.
 But when I upgarde the apps I use, it forced myself to reinstall.



ohttp://www.michaelleung.info
--~--~-~--~~~---~--~~
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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to force Uninstall/Reinstall instead of upgrade from the Market?

2009-08-26 Thread pcm2a

So there is currently no way to have it uninstall/reinstall the
application to work around this bug?  The only other alternative is to
put a big note to the user that says Please uninstall first due to
buggy OS?  What is the recommended way of handling this.

Maybe it would be better to keep the icon in play until the bug is
fixed.

On Aug 26, 9:09 pm, Romain Guy romain...@google.com wrote:
 This is a problem in Home that was fixed in Donut.

 On Wed, Aug 26, 2009 at 6:47 PM, pcm2areeeye...@gmail.com wrote:
can see and answer them
--~--~-~--~~~---~--~~
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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to force Uninstall/Reinstall instead of upgrade from the Market?

2009-08-26 Thread pcm2a

Thanks, a reboot does make it go away.  I will put a note on the
market description for users to expect this behavior.  I appreciate
the explanation, thanks again.
On Aug 26, 10:02 pm, Romain Guy romain...@google.com wrote:
 The user can also reboot the phone or wait for Home to be restarted (by
 launching big apps like Browser)

 On Aug 26, 2009 7:51 PM, pcm2a reeeye...@gmail.com wrote:

--~--~-~--~~~---~--~~
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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread pcm2a

The main Hero widget is a clock with the weather.  Every time you turn
your screen on, it reads your gps locations and gives you the weather
in that location.  It is obviously reading the gps sensor from the
widget.  I am looking to do something similar, except I want to read
the compass.

--~--~-~--~~~---~--~~
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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-11 Thread pcm2a

Hey all.  I am having a difficult time figuring out a way to read the
sensor data from a home screen widget.

I can successfully create a home screen widget that extends
AppWidgetProvider.
I can successfully create a stand-alone application that reads sensor
data (extends Activity).

What seems to be impossble (for me) is combining them into a home
screen widget that reads sensor data.  The classes that you have to
use, like SensorManager, SensorListener all seem to require an
Activity which the AppWidgetProdiver doesnt have.

I have also tried keeping my sensor data reader in a separate class
that extends Activity and then instantiating that class in my widget.
Makes sense in my head but no data is ever read from the sensors.

Any tips or examples of how this works is appretiated!

--~--~-~--~~~---~--~~
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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---