[android-developers] Does Android have a LinkButton. Basically like text but you click on it?

2011-02-19 Thread AndroidDevTime
Does Android have a link button? -- 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] What does Android do when you click on a widget whose application is not running?

2011-02-13 Thread AndroidDevTime
If you add a widget to the home screen that is part of an application that does not start on boot, and then you power on/off the device, and click on the widget does Android restart the widget's application? Right now my widget does nothing when clicked unless added when my application is

[android-developers] Android Application without a Main Activity?

2011-02-13 Thread AndroidDevTime
Is it possible to have an Android application that runs without a Main Activity? I have mostly Widget--Service communication and I really don't want a Main Activity to show most of the time. But anyway my question is can this be done? Does an application have to have a Main Activity? Can it

[android-developers] When to use an IntentService vs. Service

2011-02-13 Thread AndroidDevTime
Its clear that for long running work IntentService is very cool. But are there other reasons to use Intent service? If you have no long running work does it still make sense to use it? When do you not use IntentService is another way of asking this question. -- You received this message

[android-developers] Re: Android Application without a Main Activity?

2011-02-13 Thread AndroidDevTime
in the application list. However, my personal observation is that doing this can cause user confusion and a bunch of 1-star duznt opin type comments in Market. -- Kostya Vasilyev --http://kmansoft.wordpress.com 14.02.2011 2:40 пользователь AndroidDevTime androiddevd...@gmail.com написал

[android-developers] Can Main Activity be conditionally shown based on app launch method?

2011-02-13 Thread AndroidDevTime
Can an application detect the manner it is being launched. Specifically if it is a user launching from application list or on boot. I want the Main Activity to show when the user launches the application, but not when the application is launched on boot. Thanks, Steve -- You received this

[android-developers] What does/does not belong in WidgetProvider

2011-02-12 Thread AndroidDevTime
Widget Provider is a specialized BroadcastReceiver. Assuming there exists an Application, 1-n android service,1-k activities, and potentially additional 0-n broadcast receivers that are not widgets, I would like to verify what belongs and does not belong logically inside the broadcast receiver.

[android-developers] Logcat Filter for two or tags in Eclipse?

2011-02-12 Thread AndroidDevTime
Clicked on create filter could not figure out from docs how to create a filter for say two or more tags. If I have two tags com.test.TestClassA and com.test.TestClassB how do I create a filter that shows log for both of these classes? I saw how you can start ADB for only certain tags, but how can

[android-developers] ListView Dyamically selected layout based on Item type in row.

2011-02-12 Thread AndroidDevTime
Could some explain in detail how it is possible to have a ListView where each item in the list is rendered by its type and has different layout. So to clarify if i have ten rows they will all have the same layout if they are each the same type of record like non-fiction book. If have of the

[android-developers] What is iconLevel on notification?

2011-02-11 Thread AndroidDevTime
What is iconLevel on Notification? I've read the doc. http://developer.android.com/reference/android/app/Notification.html#iconLevel. It just says public int iconLevel If the icon in the status bar is to have more than one level, you can set this. I might want to do this if I knew

[android-developers] Problem Loading Widget

2011-02-09 Thread AndroidDevTime
I am seeing Problem Loading Widget on the home screen. Several things seem odd about this. First there is no mention of which widget it tried to load. Never the less the home screen is covered with Problem Loading Widget. Did the system not know the name of the widget it was trying to load even

[android-developers] Re: Problem Loading Widget

2011-02-09 Thread AndroidDevTime
guys, I 'm dealing with this right now. Am I the only one on this board that has encountered this? On Feb 9, 2:52 pm, AndroidDevTime androiddevd...@gmail.com wrote: I am seeing Problem Loading Widget on the home screen.  Several things seem odd about this. First there is no mention of which

[android-developers] Re: Intent Flags ignored coming from an widget?

2011-02-09 Thread AndroidDevTime
Well you could look at the lifecycle methods on a widget. These include onEnable, onUpdate, onReceive, onDelete, and onDisable. You might want to take a look at the values in some of these methods. Perhaps you want to close something out here. On Feb 9, 3:57 pm, Dirk Vranckaert

[android-developers] Re: Intent Flags ignored coming from an widget?

2011-02-09 Thread AndroidDevTime
nonesense. These are basic questions and people should respond with what they know. On Feb 9, 4:00 pm, TreKing treking...@gmail.com wrote: On Wed, Feb 9, 2011 at 5:57 PM, Dirk Vranckaert dirkvrancka...@gmail.comwrote: Anyone? Can't figure out why it isnt working... :s You should wait

[android-developers] ADB Cannot Find Samsung Captivate

2011-02-07 Thread AndroidDevTime
adb devices - Nothing I have tried installing kies, setting usb to Kies, to Mass storage etc nothing seems to work. It is not at all clear what happens when you type ADB Devices? i tried downloading device drivers from samsung as recommended, and some of the drivers seemed to install like

[android-developers] Clickable Status Bar Icon

2011-02-07 Thread AndroidDevTime
Would appreciate some pointers on how to create clickable status bar Icon notification that will remain on status bar for the duration that widget appears on home screen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Clickable Status Bar Icon

2011-02-07 Thread AndroidDevTime
a click on the icon and issue it at that point? On Feb 7, 1:19 pm, Kostya Vasilyev kmans...@gmail.com wrote: Not sure what you mean by clickable - status bar notifications are pull downable. Any reason for not just using NotificationManager.notity() ? -- Kostya 08.02.2011 0:02, AndroidDevTime

[android-developers] Re: Where to put a broadcast receiver for a widget

2011-02-05 Thread AndroidDevTime
If the widget initialization requires some calls to registerReceiver() passing a null pointer to get the values where is the best place to be doing this. In my case, I am maintaining Application state in an Application subclass. In a sense my whole widget application has a state. The state

[android-developers] How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application. This is app/widget specific state like say STARTED, LEVEL1, LEVEL2 etc, so since the status is referenced in the widget, the service, and

[android-developers] How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application. This is app/widget specific state like say STARTED, LEVEL1, LEVEL2 etc, so since the status is referenced in the widget, the service, and

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
, you can probably do as much there as in any other callback (e.g activity onCreate), subject to ANR timeouts. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
to be more of an architectural suggestion than a real framework limitation, you can probably do as much there as in any other callback (e.g activity onCreate), subject to ANR timeouts. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: How to Keep Widget Application Status/State

2011-02-05 Thread AndroidDevTime
. -- Kostya Vasilyev --http://kmansoft.wordpress.com 06.02.2011 1:38 пользователь AndroidDevTime androiddevd...@gmail.com написал: I have an Widget Application that also has Activities, and a heavily used Service full of functions. I would like to keep a global status for the application

[android-developers] Re: Where to put a broadcast receiver for a widget

2011-02-05 Thread AndroidDevTime
On Feb 5, 2:33 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Feb 5, 2011 at 5:19 PM, AndroidDevTime androiddevd...@gmail.com wrote: Where should the application state for a Widget be maintained?  In the Application subclass or in the Widget itself. true, but what I

[android-developers] Application Shutdown

2011-02-05 Thread AndroidDevTime
I would like to handle application shutdown gracefully. Whether the user ends the application or the system decides the kill the process, I want to know the best place to put hooks in the application to detect and handle this. I know that application level components have lifecycle methods the

[android-developers] Re: Application Shutdown

2011-02-05 Thread AndroidDevTime
or just global singleton. updateSharedVariable(String val){ this.value=val; // here update value in shared preferences } } On Feb 5, 6:01 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Feb 5, 2011 at 8:57 PM, AndroidDevTime androiddevd...@gmail.com wrote: I

[android-developers] Re: Application Shutdown

2011-02-05 Thread AndroidDevTime
, there are no guaranteed callbacks. The system assumes that if you're idle, you can be killed. On Feb 5, 8:57 pm, AndroidDevTime androiddevd...@gmail.com wrote: I would like to handle application shutdown gracefully.  Whether the user ends the application or the system decides the kill

[android-developers] Can registerReciver(null,Intent) provide latest broadcast value

2011-02-05 Thread AndroidDevTime
I have seen registerReceiver(null, Intent) can be used to get last System level broadcast values such as battery level. Does this also work for custom application Intents? Lets say I have an application Intent called SetOrder and I broadcast this Intent. Using registerReceiver(null, SetOrder)

[android-developers] Re: Can registerReciver(null,Intent) provide latest broadcast value

2011-02-05 Thread AndroidDevTime
with sendStickyBroadcast(). On Sat, Feb 5, 2011 at 7:08 PM, AndroidDevTime androiddevd...@gmail.comwrote: I have seen registerReceiver(null, Intent) can be used to get last System level broadcast values such as battery level.  Does this also work for custom application Intents?   Lets say I

[android-developers] Keeping Synced App State

2011-02-03 Thread AndroidDevTime
This is a question about domain specific state. It is not so much about storage mechanisms like SQLite or Shared Preferences (although they are no doubt part of the answer). Perhaps an example will help. Lets say I have an app with 4 states: JUMPING, TUMBLING, FALLING, CRASHING. What I need to

[android-developers] Re: Where to put a broadcast receiver for a widget

2011-02-03 Thread AndroidDevTime
what are the power battery performance implications of maintaining a service? Will this drain the battery more to keep a service up and running? Especially if you bind to the service from the widget to call service functions? On Feb 3, 3:39 pm, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Re: How to Add Item Status Bar Dropdown Menu/List?

2011-01-31 Thread AndroidDevTime
, TreKing treking...@gmail.com wrote: On Wed, Jan 26, 2011 at 9:36 PM, AndroidDevTime androiddevd...@gmail.comwrote: I would like to place an item in the Status Bar Dropdown List.  How can this be done? By reading the documentation:http://developer.android.com/guide/topics/ui/notifiers

[android-developers] Service reference to System Managers

2011-01-31 Thread AndroidDevTime
Is it a good practice for a Service to maintain static reference to System Manager? like Activity Manager, Power Manager? etc? -- 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] Should a service maintain a reference to a Broadcast Receiver

2011-01-31 Thread AndroidDevTime
Is it a bad practice to maintain a service level reference to a BroadcastReceiver? I do see there is a service level method service.registerReceiver Under what situations is it appropriate to register the BroadcastReceiver with a service? To hold a static reference to a broadcast receiver

[android-developers] Re: How to Add Item Status Bar Dropdown Menu/List?

2011-01-31 Thread AndroidDevTime
, AndroidDevTime androiddevd...@gmail.com wrote: Well the documentation does show a way to add notifications to the status bar using NotificationMgr.   I wonder if Notifications are the only thing that can be added to the STATUS bar.  And if anything else can be added below the Status Bar besides

[android-developers] Re: Service reference to System Managers

2011-01-31 Thread AndroidDevTime
because these are retrieved and associated with the Service's context. On Mon, Jan 31, 2011 at 8:06 PM, AndroidDevTime androiddevd...@gmail.comwrote: Is it a good practice for a Service to maintain static reference to System Manager? like Activity Manager, Power Manager? etc? -- You

[android-developers] Subclassing Android Application

2011-01-31 Thread AndroidDevTime
Are there any compatibility issues or disadvantages with subclassing the Android application? -- 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

[android-developers] How to Read Device Properties

2011-01-27 Thread AndroidDevTime
I don't know how to read device properties like value of LED? I do know how to write such properties using Notification Manager. So are these write-only properties? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] How to Add Item Status Bar Dropdown Menu/List?

2011-01-26 Thread AndroidDevTime
I would like to place an item in the Status Bar Dropdown List. How can this be done? 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

[android-developers] Custom Status Bar Icons Lifecycle

2011-01-26 Thread AndroidDevTime
I am able to place Status Bar Icons using Notification Manager, and I see a way to send/cancel notifications to add/remove them. Is this the right way however to maintain icons in the status bar over a period of time like to duration that my app is running? -- You received this message because

[android-developers] Options for Loading app apk

2010-12-18 Thread AndroidDevTime
This starts loading of application apkFileName Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(apkFileName)), application/vnd.android.package-archive); ctx.startActivity(intent); It also auto starts the Activity for