[android-beginners] Re: Application still consumes battery even tough it is "closed"

2010-07-03 Thread Indicator Veritatis
On the other hand, having since the previous post re-read http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html, another example of required reading, I see that I overstated my case. Almost all applications, if following those guidelines, will cause the system to call

[android-beginners] Is there a way to identify each activity uniquely?

2010-07-03 Thread tim
Hi, I would like to try identify something unique inside each activity (and reloaded data). For example, on APIDemos activity, it has a ListView with "App, Content, Graphics, Media, OS, Text and Views" in the first list. If I click on "App", then it refreshes the activity and load new data and p

[android-beginners] Re: Application still consumes battery even tough it is "closed"

2010-07-03 Thread Indicator Veritatis
This is certainly wrong. Pressing the Back key does NOT cause onDestroy() to be called. It causes onPause() to be called. I have run this in the emulator too many times myself to believe that it does. The application goes into the background, but it remains in memory, on the activity stack. Only mu

[android-beginners] Re: Application still consumes battery even tough it is "closed"

2010-07-03 Thread Indicator Veritatis
That may be true, but if so, there is a serious problem with the online Android documentation. For as I have already shown, the documentation clearly states that there is a possible transition direct from the started state to the stopped state, one that does not call onPause() first. So other than

[android-beginners] Re: Application still consumes battery even tough it is "closed"

2010-07-03 Thread Flamechamp
I can do it now! I finally solve my problem :) thx 4 the discussion ^^ -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsu

Re: [android-beginners] How to install and run Python on Adroid?

2010-07-03 Thread Mark Murphy
On Sat, Jul 3, 2010 at 12:31 PM, Rick Liu wrote: > I have a software application written in Python. > > How to install Python interpreter and run Python program on Android? See the Android Scripting Environment: http://code.google.com/p/android-scripting/ -- Mark Murphy (a Commons Guy) http://

Re: [android-beginners] Re: Unable to start service

2010-07-03 Thread Mark Murphy
On Sat, Jul 3, 2010 at 1:45 PM, Bret Foreman wrote: > OK, so let me state where we stand at the moment. Current code to > start service: > >                                        Intent myIntent = new Intent(); >                                        myIntent.setClass(MainActivity.this, > Senso

[android-beginners] How to fix: focusable EditText prevents ScrollView from scrolling

2010-07-03 Thread Mike
Hello! I've got an Android app that has a focusable EditText widget inside of a ScrollView. When I scroll down, the EditText automatically picks up the focus. When I try to scroll up, if the EditText is partially on- screen then Android scrolls the ScrollView to put the EditText completely on-sc

[android-beginners] Re: Unable to start service

2010-07-03 Thread Bret Foreman
OK, so let me state where we stand at the moment. Current code to start service: Intent myIntent = new Intent(); myIntent.setClass(MainActivity.this, SensorService.class); start

[android-beginners] How to install and run Python on Adroid?

2010-07-03 Thread Rick Liu
Hi, I have a software application written in Python. How to install Python interpreter and run Python program on Android? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow

Re: [android-beginners] When clicking on a widget, how to make it just change the text inside the widget?

2010-07-03 Thread james pruett
thanks Mark, worked great. (Code shown below for future reference) RemoteViews updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_word); Intent i=new Intent(this, WidgetService.class); PendingIntent pi=PendingIntent.getService(this, 0, i, 0);//Note Service here... updateVi

Re: [android-beginners] Re: Context Menu pops-up twice

2010-07-03 Thread Justin Anderson
I did a quick comparison between your code and mine and found a few differences between my code and yours... Try removing this line of code: *registerForContextMenu(getExpandableListView());* And replace it with this: getExpandableListView().setOnCreateContextMenuListener(this); In theory you sh

[android-beginners] Re: Context Menu pops-up twice

2010-07-03 Thread Bender
Maybe I should add the following: The second context menu which pops- up doesn't contain the items from the first context menu. For example: my context menu contains "delete" and "edit", when I push and hold one category, the first context menu pops up with "delete" and "edit", when I choose "delet

Re: [android-beginners] How change android Home default application (launcher.apk)

2010-07-03 Thread Justin Anderson
Actually I was wrong it isn't an API Demo. But here is a link to the sample I was thinking of: http://developer.android.com/resources/samples/Home/index.html -- There are only 10 types of people in the world... Those who know

Re: [android-beginners] How change android Home default application (launcher.apk)

2010-07-03 Thread Justin Anderson
There is a home replacement example in the API Demos that should give you everything you need to do that. -- There are only 10 types of people in the world... Those who know binary and those who don't.

[android-beginners] Cant change the format in chronomtere

2010-07-03 Thread Emmen Farooq
By default it is 00:00 but I want to change it into 00:00:00, but .setformat isnt working , please guide -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com