[android-beginners] Re: Android phones still require data plan?

2010-04-11 Thread alexk-il
On Apr 11, 2:40 am, Mark Murphy wrote: > > Also, don't these phones generally > > come with Wifi? If so why not use Wifi for activation? > > Because you cannot set up WiFi until you register your Google account > with the phone. Mark, I've set my Google account on my HTC Hero over the WiFi. I'

[android-beginners] Re: Registering a reciever for the BOOT_COMPLETE and attribute

2010-04-08 Thread alexk-il
; when you specify > an intent filter. So it seems logical to me that specifying an intent > filter overrules the android:exported="false". > > Do you need to know this for something more specific than just > understanding? > > On 6 apr, 23:50, alexk-il wrote: >

[android-beginners] Foreground periodic service and Battery life

2010-04-06 Thread alexk-il
Hi, Mark Murphy has given a great answer about different options to execute a periodic task in Android: http://groups.google.com/group/android-beginners/browse_thread/thread/2ce0d2034ce13cd/980c10d21bed92a7?hl=en&lnk=gst&q=periodic+task#980c10d21bed92a7. But which of the options will have less ov

[android-beginners] Re: Registering a reciever for the BOOT_COMPLETE and attribute

2010-04-06 Thread alexk-il
On Apr 6, 11:24 am, a2ronus wrote: > > Maybe those examples use intent filters? > > "The default value (of android:exported) depends on whether the > broadcast receiver contains intent filters. The absence of any filters > means that it can be invoked only by Intent objects that specify its ...

[android-beginners] Re: How to get a list of Applications in Android

2010-04-04 Thread alexk-il
ctivityManager.Ru... > > Hope this helps, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ------

[android-beginners] Re: Code efficiency in BroadcastReciever

2010-04-04 Thread alexk-il
Thanks a lot. Alex On Apr 4, 1:09 am, Corneil wrote: > Declare locally in method if possible. GC will detect short life > objects and deal differently from those that live longer. > > On Apr 3, 1:27 pm, alexk-il wrote: > > > > > Hi, > > > I'm comin

[android-beginners] Re: Registering a reciever for the BOOT_COMPLETE and attribute

2010-04-03 Thread alexk-il
On Apr 3, 7:46 pm, alexk-il wrote: > Hi, > > I am trying to understand how the   > forks Ooops, should be "works" :) -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your qu

[android-beginners] Registering a reciever for the BOOT_COMPLETE and attribute

2010-04-03 Thread alexk-il
Hi, I am trying to understand how the forks for the BOOT_COMPLETE reciever. According to the Android Documentation (http://developer.android.com/ intl/fr/guide/topics/manifest/receiver-element.html) the indicates that the the receiver can handle messages sent from other sources than the appli

[android-beginners] Re: Code efficiency in BroadcastReciever

2010-04-03 Thread alexk-il
Hi Mark, Thanks a lot for your answer. On Apr 3, 2:40 pm, Mark Murphy wrote: > If you are referring to a BroadcastReceiver registered through > registerReceiver() (e.g., from an Activity), then you should be choosing > your scope more by data visibility more than by GC rules. Yes, this is what

[android-beginners] How to get a list of Applications in Android

2010-04-03 Thread alexk-il
Hi, I couldn't find this in the SDK documentation, so I wonder how to get programmatically the following information: 1. The list of installed Android applications 2. The list of running Android applications 3. The list of running Android services Thanks Alex -- You received this message beca

[android-beginners] Code efficiency in BroadcastReciever

2010-04-03 Thread alexk-il
Hi, I'm coming to Java from C/C++ so I am a little bit confused about achieving CPU/Battery/Memory efficiency in Android. I wonder, what the preferred way to store temporary variables would be in case of the onRecieve() method in BroadcastReciever? I only refer to the variables, which do not per

[android-beginners] Re: What is the best way to store non-editable preferancies

2009-12-31 Thread alexk-il
Hope that helps, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------- > > On Wed, Dec 30, 2009 at 6:28 PM, alexk-il > wrote: > &g

[android-beginners] What is the best way to store non-editable preferancies

2009-12-30 Thread alexk-il
Hi, Is it posible to define both editable and non-editable preferences within the same preferences.xml file? The following non-working example may illustrate what I am trying to achieve: "10min 10sec" The attribute "PreviousLocation" should not be either editable o

[android-beginners] Re: Learning from Mark Murphy's book - threading question

2009-12-30 Thread alexk-il
Hi Mark, Thanks for your help. I am registering for the CW group as well. Cheers Alex P.S. My example also needs to be fixed :). The declaration > >boolean isRunning=false; should be put before the onStart() definitions (within the class scope). On Dec 28, 7:29 pm, Mark Murphy wrote:

[android-beginners] Re: Activity - calling finish() in onStart()/onCreate()

2009-12-28 Thread alexk-il
nce Nanek" wrote: > > It does seem to be mentioned in the documentation for the onCreate > method at > least:http://developer.android.com/intl/zh-CN/reference/android/app/Activit... > > On Dec 23, 9:22 am, alexk-il wrote: > Hi, > > > > > > I am confused with

[android-beginners] Learning from Mark Murphy's book - threading question

2009-12-28 Thread alexk-il
Hi, I'm really enjoying Mark's "Beginning Android" - everything is clear and straight to the point. I wonder why in the Threading example the "isRunning" flag wasn't declared "volatile". The flag is used to stop a thread from another thread. In case you have the book (or even wrote it :) ) - it'

[android-beginners] Re: Not sure why my app installs twice (I see two identical ICON's).

2009-12-28 Thread alexk-il
Perhaps your Manifest has two activities with "". In such case, leave one activity to be the ".LAUNCHER" and change the second activity to Cheers, Alex On Dec 25, 5:44 pm, cellurl wrote: > When I run my app in the emulator, I see the ICON in the list of > programs twice instead of just once l

[android-beginners] Re: Activity - calling finish() in onStart()/onCreate()

2009-12-24 Thread alexk-il
e Cycle Table and the Paths of the Activity life cycle diagram. Best Alex On Dec 24, 11:01 am, Lance Nanek wrote: > It does seem to be mentioned in the documentation for the onCreate > method at > least:http://developer.android.com/intl/zh-CN/reference/android/app/Activit... > > O

[android-beginners] Activity - calling finish() in onStart()/onCreate()

2009-12-23 Thread alexk-il
Hi, I am confused with the SDK documentation which describes that Activity states "onCreate" through "onResume" are "not killable" by the system. However, calling finish() in onCreate() (for example, as a response to SW error) seems to be working - the Activity goes directly from onCreate to onD