• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. P

    Apps Need help with AlertDialog. .show() doesn't show it!

    SOLVED BELOW Below is the snippet of code that isn't working how I think it should. What I want it to do is detect if GPS is currently on. If not, then throw up an AlertDialog letting the user know I want it enabled, and then open the screen for them so they can turn it on. It's detecting...
  2. P

    Apps How do I record audio for X seconds?

    Google has an example on how to record audio here: Audio and Video | Android Developers The problem with their example is they don't explain what to do to keep recording for a set time period. I've tried putting the thread to sleep for 10 seconds with Thread.sleep(10000); but that seems to...
  3. P

    Apps Unable to instantiate service

    I have a BroadcastReceiver that seems to work, but when it tires to call my IntentService it bombs out saying that it's, "Unable to instantiate service". Below is some of my code: Broadcast Receiver: public my_receiver extends BroadcastReceiver { @Override public void...