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

Search results

  1. GIR

    Apps Advice needed: Service or Thread?

    Hello, I am making an app that makes sure someone is safe my monitoring their motion via the accelerometer, but this is draining the battery very quickly. To help mitigate this I am considering moving the main code to either a service or a thread so the sensors can be used on a 1 minute on/off...
  2. GIR

    Apps services and call backs

    Hello, I have a program that I wrote that detects motion via the sensors, and I am having trouble finding tutorials on how to go about this - namely sending data to and from and service. I found some tutorials that looked promising - IF I target 1.5, as it uses AIDL, and for some reason...
  3. GIR

    Apps Should I use a Timer or an Alarm manager?

    Hello, I have a chunk of code in my app that needs to be executed on the 1/4 hour, every hour, but I'm unsure which method to use. Thanks to google Im now aware that I can use either a Timer or the Alarm manager. I found an alarm example, which I can modify to run my code every 15 minutes...
  4. GIR

    Apps SOS / Man Down Alarm app

    Hello, My Nan has taken a fall recently and the family have tasked me with making an app [SIZE=4] that she can use should any other problems arise in the future (she has dementia and has had 2 strokes plus her eyesight is failing) We're going to chip in
  5. GIR

    Apps Noob question about services and hardware buttons

    Hello, I have an app that listens to the play/pause button being pressed, and it works just fine, but only as long as the screen is on. I've become confused with how to go about making my app still perform its function when the device has its screen off. I know that there are services, like...
  6. GIR

    Apps Dynamically merge views

    Hello, I have a situation where I need to merge dynamically created views. I've found lots of info via google about how to do this with xml, but can it be done on the fly? I think I just need a nudge in the right direction... GIR
  7. GIR

    Apps Popping top items from a string

    Hello, I have a string which has data appended to it, and it displayed in a textview. The problem is I need to display only the last 10 items appended to prevent fresh data being appended out-of-view. The data is appended with eol, so I can spilt the string at that point. I know I can use ...
  8. GIR

    Apps How to get phone number from address book

    Hello everyone, I've been all over google/stackoverflow/other sites, but I just cant seem to get this solved. Im aiming for 2.1 API, and simply want to open the address book, and when a contact is pressed by the user, have that number returned as a string. It seems I'm far from alone in...
  9. GIR

    Apps Headphone pause button event capture

    Hello everyone, I've had a full-on Android day today :D I got sidetracked looking to find code examples about reverse geolocation... and found some details about the play/pause button on the headphones. According to some poking around with a spare headset and a multimeter I discovered that...
  10. GIR

    Apps GPS and reverse GeoLocation

    Hello everyone, Im still a bit green when it come to java programming but I've given this topic a good stab before asking My goal is to collect the postal address based on GPS coordinates. I have been going through the numerous tutorials but I seem to have reached an impasse: mapview is...
  11. GIR

    Apps Where to place mp3 files?

    Hello All, I am trying to develop a simple soundboard app for my son to play with. I am using developing on Ubuntu 10.04 LTS, using Eclipse SDK Version: 3.5.2, Build id: M20100211-1343. When a new project is setup for 2.1 API, in which directory do I place the mp3 file? I have spent a lot of...
  12. GIR

    Apps How can I make my app pause for 5 seconds?

    Hello again, Ive been trying many combination of examples (yes - im still learning), but so far ive been unable to make my program pause for 5 seconds. My goals is this: Display a picture for 5 seconds, then display buttons. The only thing that is different from other examples ive seen is...
  13. GIR

    Apps Webview open as new screen

    Hi Folks, Ive been searching for a while (here, in other forums, and good ol' google), but i cant find a solution. My goal is this, to have a button click open a webview and display embedded HTML. Ive got a button press to show a 'toast' pop-up, so i know where to hook the code to open...
  14. GIR

    Apps How do I assemble a sliding display?

    Hello, I know this might sound like a stupid, simple question, but please be reassured I've search all over for hints on this. So far I can make a screen with a column of buttons under each other. IF i add additional buttons to the others they simply display off the emulator and my ZTE...
  15. GIR

    Apps Play sound from assets?

    I want to play a sound in an app im writing as part of my learning curve. Im using eclipse on Ubuntu for 2.1, and have the track.ogg file in the assets directory. How does one go about playing the track when the program starts? I know its a combination of R.raw.soundfile but Im unsure...
  16. GIR

    Apps How to stream music from internet radio station?

    Hello fellow coders! I've been through the tutorials, and have started on the learning curve, however when I try any combination of examples available that promise to stream audio I have run into problems, the main one being syntax. Could anyone please be so kind as to point me in the...
  17. GIR

    Port Forwarding....

    Hi folks, I have occasions that I need to either host a small website in my phone or stream video from it. I have the software installed and set up, and works well of Wifi, but how can I get the same service over 3G? Has anyone else contacted 3 about this? I'd be very interested to hear anything...
  18. GIR

    Apps Wifi to Wifi connection

    Hello, Just wondering if there is a way(example?) to directly connect two or more Android devices via Wifi? For example use one device as a wireless camera and another as a viewer?
  19. GIR

    How to scan for bluetooth devices and store details?

    Hello, Please bear with me! I would like to display a simple list of device names, in Python this was easy, but i'm unsure how to do this in java... Question#1: How do I go about storing text into an array? Question#2: How do I scan for discoverable bluetooth devices and append their details...
  20. GIR

    Apps Simple Text output

    Hiyer folks! I'm just dipping my toes and to get started i would like to re-create a program from my C=64 days: a program that goes through a loop printing out the loop counter. e.g. for n =1 to 10 print "n is now ",n next n n is now 1 n is now 2 ... How can i do this? I keep getting errors...