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 =
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
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
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
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
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
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
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
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
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
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
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
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 ?
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
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...
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
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.
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 {
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
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
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
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 {
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 -
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
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
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 : )
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
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
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,
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
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
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)
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
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
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
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
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
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
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
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
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
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.
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
43 matches
Mail list logo