[android-beginners] ColorStateList creation

2009-09-12 Thread manigault
I want to create color state list from xml file containing a selector. From the documentation its seems that i have to use static ColorStateList createFromXml(Resources r, XmlPullParser parser) but i can't figure out what parameters to pass. I guess i can use : XmlPullParserFactory factory =

[android-beginners] Re: onSaveInstanceState question

2009-09-12 Thread aamod rao
can anyone of u help me to root my phone? On Sep 12, 6:35 am, Mark Murphy mmur...@commonsware.com wrote: jason wrote: Is there a way for an (sub-)activity to pass values to the previous activity on the stack (when Back key is pressed) without resorting to persistence storage or static

[android-beginners] Re: ColorStateList creation

2009-09-12 Thread Jack Ha
You can do something like: XmlResourceParser xpp=Resources.getSystem().getXml (R.color.mycolor); ColorStateList csl = ColorStateList.createFromXml(getResources(), xpp); where R.color.mycolor is your XML resource file. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick

[android-beginners] alarm manager confusion

2009-09-12 Thread Jeffrey Blattman
i want to schedule a repeating task. i start my app, and register with alarm manager (repeating). all is fine, as long as my app is in memory. if i for example press back to remove my app from the stack, i no longer receive alarms. same thing if i manually kill the app. is this correct? my

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Jeffrey Blattman wrote: i want to schedule a repeating task. i start my app, and register with alarm manager (repeating). all is fine, as long as my app is in memory. if i for example press back to remove my app from the stack, i no longer receive alarms. same thing if i manually kill the

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Jeffrey Blattman
thanks mark. as far as i can tell, scheduled alarms are only executed if the app that scheduled them is active. in your example, you start a service that never quits obviously. so the app is active forever, in an ideal world anyway. i suspect you'd see the same behavior if you stopped your

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Jeffrey Blattman wrote: as far as i can tell, scheduled alarms are only executed if the app that scheduled them is active. That is not true. The code I gave you demonstrates that. in your example, you start a service that never quits obviously. Sure it does. My service inherits from

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Mark Murphy wrote: There is no reason to use AlarmManager for an activity, and I would not expect AlarmManager to behave very well for an activity. To clarify: if you have a running activity, and you want the activity to do things on a periodic basis, either use Timer/TimerTask (like an

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Jeffrey Blattman
as i noted i'm using alarm mgr + broadcast receiver. my activity schedules the alarm. if the activity is destroyed (off the stack, not just in the background), i don't get the alarms. On 9/12/09 1:08 PM, Mark Murphy wrote: Mark Murphy wrote: There is no reason to use

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Jeffrey Blattman wrote: as i noted i'm using alarm mgr + broadcast receiver. my activity schedules the alarm. if the activity is destroyed (off the stack, not just in the background), i don't get the alarms. Correct. As I wrote: If you have a running activity, but you want scheduled alarms

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Jeffrey Blattman
mark, "perhaps some sort of service" is a little vague. the AM schedules an alarm that calls a receiver that does three things, 1. updates some data that is shared with the activity 2. sends notifications 3. broadcasts back to another receiver that updates the activity, if it's running (the

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Jeffrey Blattman wrote: mark, perhaps some sort of service is a little vague. Generally speaking, if your manifest-registered BroadcastReceiver will be doing things that are short (say, under a second), you won't need one -- just do all your work in the BroadcastReceiver. If you are going to

[android-beginners] ADT Plugin for Eclipse

2009-09-12 Thread David Kebo
I run snow leopard ans installed Eclipse + the ADT Plugin for Eclipse. When I try to create a new project in Eclipse in shows the location of the android sdk has not been setup. I go to the Eclipe Preferences tab Android, but I cannot find the SDK location. Any help please ?

[android-beginners] Re: MediaPlayer and rtsp streaming problems

2009-09-12 Thread sDroid
No problem on youtube streaming on a HTC device. VideoView video = (VideoView) findViewById(R.id.video); video.setVideoURI(Uri.parse(rtsp://gg.rtsp-youtube.l.google.com/ CiQLENy73wIaGwkmhu4NTf6vwRMYESARFEgGUghzdGFuZGFyZAw=/0/0/0/video. 3gp)); video.start(); On Aug 10, 11:59 

[android-beginners] Re: android.location requestLocationUpdates only calls onLocationChanged once

2009-09-12 Thread Erik Babel
HELLL! (same, 1.5r3) On Sep 6, 3:08 am, piuccio piuc...@gmail.com wrote: Same problem here 1.5r3 On Jul 31, 12:32 pm, allen ardal...@gmail.com wrote: me too.Both 1.5R2 1.5R3. any idea ? On 7月28日, 上午6時19分, Zoorg will.go...@gmail.com wrote: Yes, same problem for me...

[android-beginners] Re: Work Email for Android

2009-09-12 Thread antonio pipitone
I was able to Set-up with the regular email adding another account and do the manual set up , didn't work with the work email, at list now works :-) On Aug 29, 7:46 am, cdcurtis carolinedcur...@gmail.com wrote: I just got the new android phone from t-mobile and I'm trying to set up the Work

[android-beginners] Re: to unsubscribe android group

2009-09-12 Thread Neil Perry
On the right hand side there'll be an option saying edit membership - then at the bottom of the page saying unsubscribe. Hope this helps :) On 9 Sep, 08:04, salman khan salman.kha...@gmail.com wrote: Hi ,       please unsubscribe the unsubscribe the android begginners group.

[android-beginners] XML Parsing yields bogus data

2009-09-12 Thread Felix Oghina
I'm trying to parse the XML document at this location: http://tastekid.com/ask/ws?q=placebo This is the result I am getting: http://i498.photobucket.com/albums/rr348/Znupi2/xml-bogus.png Here is my code (the part that parses the XML): public class XmlHandler extends DefaultHandler {

[android-beginners] Re: DTD Handler aren't supported

2009-09-12 Thread Thomas
Hello, I am having the same issue but I cannot fix it. I tried to use XMLReader but I am having an InstanciationException thrown by XMLReaderFactory.createXMLReader(). Though I overrided the 3 methods you mentioned. Can you give us details about how you used XMLReader and how you instanciated

[android-beginners] Re: Populate spinner

2009-09-12 Thread Erik Babel
After spending a lot of time trying to re-invent the ArrayAdapter, I came across this: ArrayAdapter adapter = new ArrayAdapterCharSequence( this, android.R.layout.simple_spinner_item, new

[android-beginners] Re: DTD Handler aren't supported

2009-09-12 Thread Thomas
Hello, I am having the same issue but I cannot fix it. I've tried to use XMLReader but I am having an InstantiationException thrown by XMLReaderFactory.createXMLReader(). Can you tell us how you used XMLReader to make the parsing ? Thanks a lot ! Thomas On Aug 25, 9:49 am, Jose Ayerdis

[android-beginners] Basic App -- not working

2009-09-12 Thread Felix Oghina
I went through the NotePad tutorials and got the minimum hang of it. Unfortunately, when I tried creating my own application, I failed. Here's my main class file: package com.tastekid.TasteKid; import android.app.Activity; import android.os.Bundle; public class TasteKid extends Activity {

[android-beginners] Re: Hello World Emulator Issue

2009-09-12 Thread Christian Grasser
I have the same problem! Emulator is starting and no Hello World is running :-( i don't see anything like this: Waiting for HOME My output: [2009-09-11 13:17:10 - HelloAndroid] -- [2009-09-11 13:17:10 - HelloAndroid] Android Launch! [2009-09-11 13:17:10 -

[android-beginners] Soft Keyboard

2009-09-12 Thread Linux Geek
Is there a way to focus on an EditView and automatically bring up the soft keyboard? --~--~-~--~~~---~--~~ 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] Basic Questions

2009-09-12 Thread yesno
To install applications on android, we need the application to be in the form of an .apk file regardless of what we use to develop it, i.e SDK or NDK. Are there absolutely no other filetypes supported? If there are further patches for the android oses which have been already deployed on the

[android-beginners] Re: How Can I Block Unwanted Calls.

2009-09-12 Thread Juan Delgado
Speaking as a user I can see the benefits of an application that might block calls from numbers that are not on my contact list. Marketing calls are VERY annoying. I do understand the potential security problems if this falls in the wrong hands, of course. But as a user I can understand : )

[android-beginners] Device info API

2009-09-12 Thread sDroid
I need to get the device phone number, s/w version info similar on HTC as they displays in settings-about phone. What API do they use to get these info? Thx.l --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] New to android

2009-09-12 Thread senrooy
Hi, I am studying the basic concepts of android for last one week. I am from C/C++ (linux) background. Do I need java knowledge to handle android applications? Thanks n regards Senrooy --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-beginners] Re: Android tutorial

2009-09-12 Thread Niamathullah sharief
thank you. I am learn myself. i am not working any where. On Mon, Sep 7, 2009 at 11:23 AM, Maxood maqs...@salsoft.net wrote: Where are you based? Are you working by yourself or working with a company? I can also help you out for android development. Maqsood On Sep 4, 4:50 pm,

[android-beginners] Re: Can't get the altitude from Location.getAltitude()

2009-09-12 Thread Ken Bradshaw
Hi, Any clue as to the solution on this? I am having the same issue, though my method of sending the location information is different. I am loading a gpx file which contains elevation information into eclipse. When I play the gpx file in eclipse, latitude, longitude and time definitely

[android-beginners] Development on the MyTouch 3G

2009-09-12 Thread Sid
Hi - I just ordered a T-Mobile myTouch 3g to develop Android apps on. I read on the Android Developers URL http://developer.android.com/guide/developing/device.html that the suggested devices to test/develop apps on are the Android dev phone and the classic G1. Can I test and/or develop apps

[android-beginners] Re: New to android

2009-09-12 Thread Mark Murphy
senrooy wrote: I am studying the basic concepts of android for last one week. I am from C/C++ (linux) background. Do I need java knowledge to handle android applications? Generally speaking, yes. While there is the Native Development Kit (NDK), it is designed to create extension (JNI)

[android-beginners] Re: Basic App -- not working

2009-09-12 Thread Mark Murphy
Felix Oghina wrote: I went through the NotePad tutorials and got the minimum hang of it. Unfortunately, when I tried creating my own application, I failed. Here's my main class file: package com.tastekid.TasteKid; import android.app.Activity; import android.os.Bundle; public class

[android-beginners] Re: Basic App -- not working

2009-09-12 Thread Jack Ha
You must specify the layout_width and layout_height attributes for the EditText. android:layout_width=fill_parent android:layout_height=wrap_content -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price

[android-beginners] Re: how to receive general IO events ?

2009-09-12 Thread Jack Ha
Maybe FileObserver is what you are looking for: http://developer.android.com/reference/android/os/FileObserver.html -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions and statements in this email are those

[android-beginners] Re: Populate spinner

2009-09-12 Thread Jack Ha
You need to use an adapter to provide the data for the spinner. You will get an UnsupportedOperationException exception if you call Spinner.addView(). -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions and

[android-beginners] Re: How Can I Block Unwanted Calls.

2009-09-12 Thread eNtriZe
Thanks to all those who reply!! But still i didn't find solution, why android api doesn't provide any facility to block unwanted call, i got task to develop an application to block unwanted calls and unwanted sms's. I dont know what to do, my new boss surely fire me. Need Help Plz

[android-beginners] AudioRecord

2009-09-12 Thread campi
Hello everyone, I am working on MacOSX, and on the android emulator. I am trying to use AudioRecord, which put the recorded audio data into a ByteBuffer. However this buffer is filled with 0 at the end of recording. Here is the code: public class AudioAcquisition { private AudioRecord

[android-beginners] Re: ADT Plugin for Eclipse

2009-09-12 Thread Jack Ha
What did you see on the right pane when you clicked on Eclipse- Preferences-Android? -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Jeffrey Blattman
well, i found this, http://code.google.com/p/android/issues/detail?id=2886 works for me now. On 9/12/09 2:00 PM, Mark Murphy wrote: Jeffrey Blattman wrote: mark, "perhaps some sort of service" is a little vague. Generally speaking, if your manifest-registered

[android-beginners] Re: MapView : Don't show the labels

2009-09-12 Thread Jack Ha
It is currently not supported. -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those

[android-beginners] How to debug crash on rotate

2009-09-12 Thread Michael Dorin
I have an application that crashes when the phone is rotated. It is based on the quickconnect framework. Sorry for the vagueness of this message, but how would I begin to debug what is happening? What should I look for? How do I gather a trace? It seems the crash comes at the onSuspend event.

[android-beginners] Re: How to debug crash on rotate

2009-09-12 Thread Romain Guy
Hi, Have you looked at the logs to see the exact stack trace? On Sat, Sep 12, 2009 at 7:24 PM, Michael Dorin bsddo...@gmail.com wrote: I have an application that crashes when the phone is rotated. It is based on the quickconnect framework. Sorry for the vagueness of this  message, but how