[android-beginners] Starting a service from top-level launcher

2009-11-01 Thread Anders Feder
Hi,

I am trying to make a 'headless' (i.e. UI-less) application. Is it possible
to start a service in my application from the top-level launcher (the one
accessed from the Android home screen) directly, that is, without the
launcher starting an activity which then start the service?

Simply adding the ACTION_MAIN and CATEGORY_LAUNCHER filters to the
declaration of the service in the manifest file does not work for me.

Thanks in advance,
Anders Feder

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

[android-beginners] Re: Sleep mode

2009-10-31 Thread Anders Feder
Anyone? If it can't be done in any other way, is there by any chance any way
to emulate that the 'end call' button has been pressed? (I've tried with
dispatchKeyEvent() to my own activity, but that didn't do anything.)

Thanks,
Anders Feder

2009/10/24 Anders Feder 

> Hello,
>
> Is it possible to programmaticly send the device into sleep mode (i.e. like
> when pressing the [end call] button once so screen the turns off and locks)?
>
> Thanks in advance,
> Anders Feder
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

[android-beginners] Re: Taking a picture

2009-10-24 Thread Anders Feder
I never did find the section on the forum, but this code sample by Commons
Guy helped me a lot:
http://github.com/commonsguy/cw-advandroid/tree/master/Camera

Anders Feder

2009/10/20 tinyang 

>
> Wonderful, just what I've been looking for!  Which section of the forum is
> the thread in and what is it's title?
>
> -Original Message-
> From: android-beginners@googlegroups.com
> [mailto:android-beginn...@googlegroups.com] On Behalf Of jbrohan
> Sent: Tuesday, October 20, 2009 5:56 AM
> To: Android Beginners
> Subject: [android-beginners] Re: Taking a picture
>
>
> http://www.anddev.org/
> Has a big discussion of camera operations. I got my app started using their
> code!
>
> On Oct 19, 4:46 pm, Anders Feder  wrote:
> > Hello,
> >
> > I need to take a photo on command (from my app) such that it is stored
> > as 'normal' photo in the Gallery, just like a photo taken with the
> > Camera application. Preferably, the photo should be geotagged, but not
> necessarily.
> >
> > The application is unattended (i.e. no user interaction when photo is
> > taken), so no preview is needed. Just shoot, and save.
> >
> > Can someone kindly tell me how to do this? Thanks in advance.
> >
> > Best regards,
> > Anders Feder
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date:
> 10/19/2009
> 2:33 PM
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Sleep mode

2009-10-23 Thread Anders Feder
Hello,

Is it possible to programmaticly send the device into sleep mode (i.e. like
when pressing the power button once so screen the turns off and locks)?

Thanks in advance,
Anders Feder

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Taking a picture

2009-10-19 Thread Anders Feder
Hello,

I need to take a photo on command (from my app) such that it is stored as
'normal' photo in the Gallery, just like a photo taken with the Camera
application. Preferably, the photo should be geotagged, but not necessarily.

The application is unattended (i.e. no user interaction when photo is
taken), so no preview is needed. Just shoot, and save.

Can someone kindly tell me how to do this? Thanks in advance.

Best regards,
Anders Feder

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Passing messages from BroadcastReceiver to Activity

2009-10-05 Thread Anders Feder
Aha. So I will do something like this in the BroadcastReceiver:

  myIntent.putExtra("x","y");
  myActivity.startActivity(myIntent);

And then in myActivity.onCreate() do something like:

  DoSomething(myBundle.getBundleExtra("x"));

Does that look about right?

If so, how do I tell, in onCreate(), whether the Activity was started by the
user or by my BroadcastReceiver?

Thanks a lot,

Anders Feder

2009/10/5 Justin Anderson 

> Use Intent.putExtra() to add the data you want to pass to the activity you
> are starting.  There are several different versions of putExtra depending on
> the data you want to pass.
>
> Then the activity you are starting can get that information from the bundle
> that is passed in via onCreate().
>
> I have never actually done this, but I believe that is how it happens... If
> I am wrong, could somebody please correct me?
>
> Thanks,
> Justin
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> ------
>
>
>
> On Mon, Oct 5, 2009 at 9:16 AM, Anders Feder wrote:
>
>> Thanks for your response, but could you please elaborate a bit? I don't
>> have the lingo that straight yet. What exactly should I do? Should I add
>> something in the AndroidManifest file? If so what, and where? Thanks again.
>>
>> Anders Feder
>>
>> 2009/10/5 
>>
>> just add that extra bundle to intent & start new activity with this
>>> extra.in the activity just retrive the bundle you added to it.
>>>
>>>
>>> On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder 
>>> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I'm developing an application with android.telephony.gsm that is
>>>> supposed to process incoming SMS messages.
>>>>
>>>> I've figured out that I need to have a BroadcastReceiver for receiving
>>>> the incoming messages. But how am I supposed to pass the received
>>>> messages from the BroadcastReceiver and on to my Activity?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Anders Feder
>>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Passing messages from BroadcastReceiver to Activity

2009-10-05 Thread Anders Feder
Thanks for your response, but could you please elaborate a bit? I don't have
the lingo that straight yet. What exactly should I do? Should I add
something in the AndroidManifest file? If so what, and where? Thanks again.

Anders Feder

2009/10/5 

> just add that extra bundle to intent & start new activity with this
> extra.in the activity just retrive the bundle you added to it.
>
>
> On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder wrote:
>
>>
>> Hi,
>>
>> I'm developing an application with android.telephony.gsm that is
>> supposed to process incoming SMS messages.
>>
>> I've figured out that I need to have a BroadcastReceiver for receiving
>> the incoming messages. But how am I supposed to pass the received
>> messages from the BroadcastReceiver and on to my Activity?
>>
>> Thanks in advance,
>>
>> Anders Feder >>
>>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Passing messages from BroadcastReceiver to Activity

2009-10-04 Thread Anders Feder

Hi,

I'm developing an application with android.telephony.gsm that is
supposed to process incoming SMS messages.

I've figured out that I need to have a BroadcastReceiver for receiving
the incoming messages. But how am I supposed to pass the received
messages from the BroadcastReceiver and on to my Activity?

Thanks in advance,

Anders Feder
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] A basic map application

2009-07-28 Thread Anders Feder

Hello,

I want make an app that opens a map (similarly to the Google Maps
app), centers on the current location of the user, fetches the
locations of ten nearby points-of-interest from my website, and then
renders them on the map as pins. When one of the pins is tapped, a
menu of actions pertaining to that point-of-interest should come up.

Can someone very kindly give me some pointers on how to accomplish
something along these lines? If anyone happens to know of any
tutorials that could be relevant, I'd be grateful for links too.
Thanks in advance.

Best regards,
Anders Feder
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] An advanced list view

2009-06-27 Thread Anders Feder

Hello,

In my application, I want to display a list of locations (names) and
the distances from the user's current location to each of those
locations. In other words, a list of items where each item shows both
a name and a distance. It must be possible to select an item from the
list somehow.

What would be a good way to implement such a list?

Thanks.

Best regards,
Anders Feder
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android Calendar / Google Maps integration

2009-06-22 Thread Anders Feder

Hello,

I am interested in contributing code to integrate the Google Maps
application with Android Calendar. In particular, I want the "Where"
field of events to be linked to a location in Google Maps, such that
when a calendar event reminder pops up on my phone, it can immediately
give me directions on how to get to the event relative to my current
location.

Can someone kindly tell me how I would get started with this task?
Thank you.

Best regards,
Anders Feder
Happy Android owner

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---