Can someone help me figure out how to set the text color in a dialog?
--
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
What part of colour setting are you having difficulty with?
James
--
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
Select the textview, then click on the properties tab, scroll down to text
coloryou have to create a colors.xml file in your resources and put all
your color definitions in it.
Regards,Sy
On 8 Jun 2011 18:07, James Ots james...@gmail.com wrote:
What part of colour setting are you having
Sent from my Verizon Wireless Phone
-Original message-
From: Dianne Hackborn hack...@android.com
To: android-developers@googlegroups.com
Sent: Wed, Jun 8, 2011 00:11:51 GMT-03:00
Subject: Re: [android-developers] Display.getRotation() incompatible with
accelerometer data
Which device
Hi
Today i downloaded ADT 11.0.0 and now when i am adding any view to
Relative layout i am having problem adding it. Like i can not find any
id to reference as a align bottom or Layout Right of property..
when i try to set these properties it shows me
Drawables,Arrays,Strings,Layout - ids but i
Your blog post IS the best explanation I have seen to date of what the
Home key really means. I thought it was particularly interesting that
it emphasized something I have been dimly aware of but keep
forgetting: unlike the Back key, pressing Home does NOT cause finish()
to be called. I assume
There is no such plan at the moment.
On Wed, Jun 8, 2011 at 10:17 AM, Erik R ejwrobert...@gmail.com wrote:
I'm working on a simple image manipulation app that requires opening
bitmaps at full resolution, which of course results in OutOfMemory
issues. I know that the short answer is to simply
Java doesnt support pointers or direct access to memory which is why native
routines exist...why dont you open the files as streams and only render what
is require for the view orrescale the image?
Regards,Sy
On 8 Jun 2011 18:21, Erik R ejwrobert...@gmail.com wrote:
I'm working on a simple
Guys, I solved that problem.
My problem was in a layout definition that was defined with caps lock, but
with the same name, and the Eclipse don't put erros in line, but the
emulator show me in logCat.
Thanks, bye.
On Wed, Jun 8, 2011 at 12:21 PM, TreKing treking...@gmail.com wrote:
On Wed, Jun
Add try and catch clauses to your methods that should help you locate the
problem.
Regards,Sy
On 8 Jun 2011 15:49, Diogo Salaberri caxix...@gmail.com wrote:
hi guys, I need a help please.
I got this error on my app:
06-08 14:42:33.584: ERROR/AndroidRuntime(269): java.lang.RuntimeException:
Hi all, for my new app I'd like to use mode selector pattern as described
here http://www.androidpatterns.com/uap_pattern/mode-selector
I was trying to figuring out how to implement it, and I was thinking about
using a framelayout, having an hidden listview which overrides the main
list view,
Hi,
I am working on an application which will continuously listen to
server i.e if there is any changes on server then server will push it
to the client and client should be able to receive it.I dont want to
poll the server.I want to use push technology.
I did a lot of google.People are suggesting
On Wed, Jun 8, 2011 at 12:31 PM, Indicator Veritatis mej1...@yahoo.comwrote:
But shouldn't it trigger onStop() too? After all, the application is
no longer visible. And what about the Activity Stack? Doesn't pressing
Home put the least recently used Activity on that stack?
Yes and yes
J
Sent from my Verizon Wireless Phone
-Original message-
From: Marcin Orlowski webnet.andr...@gmail.com
To: android-developers@googlegroups.com
Sent: Tue, Jun 7, 2011 18:59:45 GMT-03:00
Subject: Re: [android-developers] Honeycomb keyboard responding to touch
events on status bar
On
Think of home like alt-tab in windows. You never need to capture it.
You just need to handle onPause()/onStop() in a way that makes sense
for the user temporarily leaving your app. You'll get onFinish() when
your app is to be actually destroyed. If you have a need to actually
kill off the whole
Hello,
You can do this dynamically as well.
At http://realfred.uphero.com/android/androidsnippets.html
is the following snippet which works
button1.setBackgroundColor(Color.argb(125, 0, 0, 255));
Hope this helps,
Fred.
On 08/06/2011, bob b...@coolgroups.com wrote:
Can someone help me figure
F2
Sent from my Verizon Wireless Phone
-Original message-
From: Marcin Orlowski webnet.andr...@gmail.com
To: android-developers@googlegroups.com
Sent: Tue, Jun 7, 2011 18:59:45 GMT-03:00
Subject: Re: [android-developers] Honeycomb keyboard responding to touch
events on status bar
On
I just checked this approach out as a user had emailed me asking about
screenshot capability. This definitely does the trick, but a another poster
pointed out, any output from certain components (in my case the camera
preview surfaceview) does not show up.
Perhaps the correct approach then is
Sent from my Verizon Wireless Phone
-Original message-
From: bob b...@coolgroups.com
To: Android Developers android-developers@googlegroups.com
Sent: Wed, Jun 8, 2011 13:46:17 GMT-03:00
Subject: [android-developers] text color
Can someone help me figure out how to set the text color
On Wed, Jun 8, 2011 at 2:07 PM, Adam Ratana adam.rat...@gmail.com wrote:
Mark Murphy, you said this is impossible, did you mean in the sense of the
way DDMS grabs the full-monty screenshot?
Um, for some definition of full-monty, I presume, yes. :-)
I do hope that Android Handset/Tablet
I'm working on a simple image manipulation app that requires opening
bitmaps at full resolution, which of course results in OutOfMemory
issues. I know that the short answer is to simply use less memory via
BitmapFactory's inSampleSize Option to downsample the bitmap, but for
this app I really
I wrote an image editor app that claims to deal with full-resolution of the
images.
However, there is a limit due to the 'issues' you found (limit memory).
I got around it (at least, i haven't seen many stack-traces/error-logs sent
my way) by doing this:
- Limit the resolution. On 1st gen
Hi there,
as the Object of this topic... is it possible to create two different
OpenGL Contexts in the same activity? I mean creating two different
glsurfaceviews, where every of them use a different EGLConfig and
Renderer.
And also... what about texture? Can I share texture through the two
OGL
ESent from my Verizon Wireless Phone-Original message-From: Sandeep Patil sandeep.patil2...@gmail.comTo: Android Developers android-developers@googlegroups.comSent: Tue, Jun 7, 2011 22:07:23 GMT-03:00Subject: [android-developers] Unable to use the surface object from application side in
So I want to achieve the following: suppose I have one Activity in my
app that generates an event that I want other Activities in my app's
back stack to know about so they can react to it accordingly (i.e.
update UI, refresh data via separate Thread, etc...). What strategies
would I have to pursue
Brill,
I'm not sure if this is what you're trying to do but I'm using
fragments when switching between tabs.
Essentially I have each added tab use a generic content_fragment as
the content. then the changeTab looks at which tab is selected and
does all the fun Fragment transactions. An odd
VSent from my Verizon Wireless Phone
-Original message-
From: Marcos Lima marcoslima...@gmail.com
To: Android Developers android-developers@googlegroups.com
Sent: Tue, Jun 7, 2011 22:06:06 GMT-03:00
Subject: [android-developers] 2.2 Froyo Widgets wrong behavior
(power-controls widget
On Wed, Jun 8, 2011 at 3:00 PM, Diego Tori
diegotoridoesandr...@gmail.com wrote:
So I want to achieve the following: suppose I have one Activity in my
app that generates an event that I want other Activities in my app's
back stack to know about so they can react to it accordingly (i.e.
update
Note that just because heap limits aren't imposed on the native heap like
they are on the Java heap doesn't mean that there aren't limits. The
failure cases are just more difficult -- not allowing stuff to work in the
background when it should to your application just silently being killed.
You
sp and Surface are native APIs. This code will break on various devices.
The only supported way to do this is with the new extended native APIs in
2.3.
On Tue, Jun 7, 2011 at 7:06 AM, Sandeep Patil
sandeep.patil2...@gmail.comwrote:
Dear frndz,
I am facing a problem of being not able to use
Gah I meant to say sp and Surface are *internal implementation* details.
On Wed, Jun 8, 2011 at 12:37 PM, Dianne Hackborn hack...@android.comwrote:
sp and Surface are native APIs. This code will break on various devices.
The only supported way to do this is with the new extended native APIs
Hi Joachim,
Thanks for the tip.
Eventually we decided that since the new ActionBar stuff kind of makes tabs
mute (or rather has its own similar thing) that we only needed tabs for legacy
apps. In that case, we simply use the activity as tab content with the
fragments embedded it.
It a real
Hi,
I'm trying to set a widget's style attribute with a reference to a
custom attribute that's been loaded with a real-concrete style.
The Android SDK docs show an explicit example for just setting the
textColor attribute based on a style reference:
EditText id=text
It is kind of ridiculous that you cannot just load a bitmap in full
quality the size of the phone's camera capability, let alone edit it.
Then you have to explain to users that you can't because you can only
use 16/24/32 MB when their phones have 512MB.
As open and powerful as Android is, I never
The ?foo syntax is a reference to a theme attribute.
To complete this, you need to first create a theme that has these
attributes:
style name=FooBarTheme parent=@android:style/Theme
item name=foovalue/item
/style
and then specify this theme for your activity:
activity name=.
How does the native heap actually tell you, will malloc return NULL if
it cannot reserve enough space?
And if you are a foreground app, you won't get in trouble will you
(unless you use insane amounts of it) I can understand that a
background app should not use more native memory than the limit.
That's the thing, if I set a shared preference flag or cached flag via
cache object, and they did try to check for that value in onResume,
wouldn't the first activity from the back stack to get the foreground
check its state, then set it back to false after checking for it being
true before having
Confusion easily comes from thinking about the home screen and the home key
as being more special than they are.
The home screen, to a large degree, is just another application. When it
comes to the foreground, the usual rules with onPause / onStop apply to the
current application.
As for not
I guess it's playing nice to other background apps. Even a foreground app
can't gobble up all the memory and starve the background apps.
I figured out a way to edit 9MPixel images 16-bit (i.e. 18MByte of data). It
makes you program quite carefully when using the left over 6Mbyte of memory,
but
Keep in mind that this is not a one-time event. Rather it is an event
that the user generates, all I want those other activities to know is
whether or not the event was generated by the user while in the
background.
On Jun 8, 4:16 pm, Diego Tori diegotoridoesandr...@gmail.com wrote:
That's the
I have a layout that contains a ScrollView
Inside of that ScrollView, I would like to dynamically add a group of
views as a package. I know I can do this as single lines, but I have
a complex row made up of several views that I need to add as a group.
What I want is a CheckBox on the left side,
while extracting using httprequest and binding to listview and make
items clickable to open the PDF file
regards...
On Jun 8, 5:33 pm, James Ots james...@gmail.com wrote:
Which part in particular are you having difficulty with?
James
--
You received this message because you are
That works but I don't consider 16-bit to be full-resolution, color
fidelity is just as important.
On Jun 8, 10:25 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
I guess it's playing nice to other background apps. Even a foreground app
can't gobble up all the memory and starve the
On Wed, Jun 8, 2011 at 4:16 PM, Diego Tori
diegotoridoesandr...@gmail.com wrote:
That's the thing, if I set a shared preference flag or cached flag via
cache object, and they did try to check for that value in onResume,
wouldn't the first activity from the back stack to get the foreground
On Wed, Jun 8, 2011 at 3:40 PM, darrinps darri...@gmail.com wrote:
How can I add multiple segments (my upper LinearView is called a segment)
to the ScrollView?
Add multiple segments to one parent LinearLayout then shove that in the
ScrollView.
Yeah, but it'll do. :-)
The quality of the cameras on phones and tablets is not that great anyway.
--
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
You guessed correctly. Where I wrote 'least', I should have written
'last'. But since you agree that both onPause() and onStop() will be
called, Bob M. really has to change the wording in his blog. As it
stood when I wrote that, it really did imply that ONLY onPause() is
called, not onStop(). As
On Wed, Jun 8, 2011 at 4:14 PM, Indicator Veritatis mej1...@yahoo.comwrote:
But you are wrong to deny the causal link between pressing Home and the
lifecycle in turn causing onPause() and onStop() to be called. It is not
only perfectly correct, but even important to understand the lifecycle as
I'm guessing you're trying to add the reference from the property
sheet through the dialog that pops-up when you click the ... button?
If this is the case then this reference chooser dialog does not in
fact show any id. This does not prevent you from setting them though,
just manually type
Thanks for replying Xavier...
You are right i am trying to add the reference from the property
sheet... in previous versions i was able to choose ids from this sheet
through dialog but now
i have to write it through XML code I did it through manually
writing but it takes more time :( .
Thanks Kostya,
I think I'm doing pretty much what you said (I'll check again), I'm
trying to use the ?foo reference to dynamically set the style of an
individual view or view-group.
1) I've created my own fixed styles, there are three of these. I want
to select one of the three by setting the
building a dialog with own layout.
when i click on any of the positive/neutral/negative buttons,
it closes the dialog...any way to stop that...i'm intercepting
the onclicklistener but no sure what to set.
also, is there any way to change the labels of any of the
buttons from within the onclick
On Wed, Jun 8, 2011 at 1:15 PM, webmonkey webmonke...@gmail.com wrote:
How does the native heap actually tell you, will malloc return NULL if
it cannot reserve enough space?
No, as I said, your app will eventually be silently killed.
And if you are a foreground app, you won't get in
?MyCompanyStyle should ultimately resolve to @style/something, via the
theme.
You can check the Android sources, under
android-sdk\platforms\android-X\data\res\values. Look for themes.xml,
styles.xml, attrs.xml. These files have a lot of style references.
For example:
!-- Widget styles
?MyCompanyStyle should ultimately resolve to @style/something, via the
theme.
You can check the Android sources, under
android-sdk\platforms\android-X\data\res\values. Look for themes.xml,
styles.xml, attrs.xml. These files have a lot of style references.
For example:
!-- Widget
What for? The logcat should have a nice readable stack trace with source
file names and line numbers.
--
Kostya Vasilyev
08.06.2011 21:46 пользователь Simon Platten simonaplat...@googlemail.com
написал:
Add try and catch clauses to your methods that should help you locate the
problem.
It does (but not on all devices, IIRC).
There are tricks you can play with subclassing AlertDialog, getting the
button references after calling super.onCreate and setting your own click
listeners. It works for me, but I don't know if this is really kosher. On
the other hand, I remember seeing
I have a couple of questions
1) If you have a form in in app what do you do if the app goes into the
background while you are in the middle of completing the form? Do you need to
do something in OnResume or will it resume in the state that you left it in
before it went into the background?
No, as I said, your app will eventually be silently killed.
OK, but not if you are a foreground app, wouldn't be very silent ;-)
Pretty universally people coming from a desktop environment have a very
different definition of reasonable amount of memory than is actually sane
for a mobile
On Wed, Jun 8, 2011 at 6:14 PM, Knutsford Software
i...@knutsford-software.co.uk wrote:
1) If you have a form in in app what do you do if the app goes into the
background while you are in the middle of completing the form? Do you need
to do something in OnResume or will it resume in the state
On Wed, Jun 8, 2011 at 3:17 PM, webmonkey webmonke...@gmail.com wrote:
No, as I said, your app will eventually be silently killed.
OK, but not if you are a foreground app, wouldn't be very silent ;-)
It is silent as far as you are concerned -- no warning, no way to recover,
just *poof*.
I
I'm trying to slide a view on and off the bottom of the screen. The
view is a relative layout with a couple of child views- one a header
bar, and the other a listview, positioned below it with a margin in
all sides.
I'm using the translate animation code below. The performance is
terrible --
I think you just need to read up on web services and JSON. Android
comes with a JSON parser.
On Jun 6, 11:25 pm, mike mleon...@gmail.com wrote:
I need to create a news feed that takes the string from the following
link and displays each on separate links, like the google news and
weather
I don't remember anyone asking
how to prevent the user from pressing the power key to unlock the phone :)
That's be because the power key doesn't unlock the phone :P, it wakes
it up, then you slide to unlock.
I do actually get user requests to disable the power key from waking
the device, but
I think that may be where we're getting mixed up.
I've created a style tree that follows the SDK recommendations like
this. It follows inheritance, using the . notation, just like the
examples in the SDK
MyCompanyStyle
|
MyCompanyStyle.Header
| |
| MyCompanyStyle.Header.Bold
|
I'm a bit surprised this used to work. I'll double check.
On Wed, Jun 8, 2011 at 2:50 PM, Abhishek Akhani
abhishek.akh...@gmail.com wrote:
Thanks for replying Xavier...
You are right i am trying to add the reference from the property
sheet... in previous versions i was able to choose ids from
Hi,
Agreed, that is why I said the 'book'.
Regards
On Jun 8, 9:07 pm, Mark Murphy mmur...@commonsware.com wrote:
On Tue, Jun 7, 2011 at 9:05 PM, gjs garyjamessi...@gmail.com wrote:
I saw an interesting variation
inhttp://www.deelin.com/downloads/books/java_concurrency_in_practice.pdf
on
Oh yes, not only slapping my hand on my forehead but slapping myself
with a large trout :D
--
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
What is the data type of directions and what are you doing with it
after you assign it?
It looks like you're doing string concat with it, which means
everything is getting converted to a String, including the output from
Html.fromHtml, which probably means that the image is getting stripped
out.
On Jun 7, 4:56 am, Zulfiqar anzar.zulfi...@gmail.com wrote:
what i need is my application should be among top positions in that
share menu
is it possible, ??? well i think so its possible but dont know wat to
be done, be coz it isnt in the order of installation of
application...
Plz
On Jun 7, 4:32 am, Rajender rajender.g...@gmail.com wrote:
I want to do all these using batch file (command line)..
Use ant.
http://developer.android.com/guide/developing/building/index.html
Doug
--
You received this message because you are subscribed to the Google
Groups Android
Hi all,
so here I am again with a problem. I have declared a class that
extends Application class and in there I have some variables that I
want to access from wherever I am. But, the problem is that I have
several classes that I use but are not extending the Activity class so
I can not do
On Wed, Jun 8, 2011 at 7:34 PM, Duskox dus...@gmail.com wrote:
so here I am again with a problem. I have declared a class that
extends Application class and in there I have some variables that I
want to access from wherever I am. But, the problem is that I have
several classes that I use but
Well I used Application because I thought it would be easily
accessible...but it's not.
If I declare for example a static variable in my Activity class, I
will still have trouble accessing it since the handler for XML is not
being called by me, in that case I would just pass the variable, but I
Ok, I have an idea. Since I have a myXMLHandler object I will create a
public function in it that will fill a temporary ArrayList and return
it to me through this function. Then I will just put it in my
Application object. Only thing is that this way I can not use the
object I defined in myApp
I've submitted a bug report. I don't know what to do about going further
with this.
I setup an inherited class so that I could throw some logging into the
EditText in hopes of finding a pattern or blip. No joy.
Bug: 17508
Please feel free to elaborate or correct anything I might have said.
On Wed, Jun 8, 2011 at 7:55 PM, Duskox dus...@gmail.com wrote:
Ok, I have an idea. Since I have a myXMLHandler object I will create a
public function in it that will fill a temporary ArrayList and return
it to me through this function. Then I will just put it in my
Application object. Only
If this is what you currently do:
In your Activity, you call a method that winds up parsing some XML. Then you
have implement an xml-handler (content-handler), that has no idea of how to
get at the 'current activity'... And you need that activity (or at least the
application-context associated
On Wed, Jun 8, 2011 at 8:23 PM, Streets Of Boston
flyingdutc...@gmail.com wrote:
If this is what you currently do:
In your Activity, you call a method that winds up parsing some XML. Then you
have implement an xml-handler (content-handler), that has no idea of how to
get at the 'current
- Original Message -
From: Mark Murphy mmur...@commonsware.com
To: android-developers@googlegroups.com
Sent: Wednesday, June 08, 2011 11:24 PM
Subject: Re: [android-developers] two questions from a newbie
On Wed, Jun 8, 2011 at 6:14 PM, Knutsford Software
On Wed, Jun 8, 2011 at 8:30 PM, Knutsford Software
i...@knutsford-software.co.uk wrote:
Sorry - what do you mean by stuff the form contents into the Bundle
http://developer.android.com/guide/topics/fundamentals/activities.html#SavingActivityState
For part two I meant if you have been browsng
Reporting back, as far as specifically capturing camera preview output to a
bitmap and following the prior examples to draw, this is definitely
possible. There's some interesting things going on that may be helpful for
others:
1. Camera preview size varies, some phones (such as the Samsung
But even my Xoom only includes 3 languages so it's almost useless for
testing translations -
On Jun 9, 12:04 am, Dianne Hackborn hack...@android.com wrote:
Nexus One has a smaller partition for the system image, so can't fit every
possible thing. New translations were added to the platform
That's awful. My HTC Magic which came out in 2009 supports ~40
languages/varieties.
--
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,
For dynamically changing the theme, you can call setTheme in your
activities' onCreate, before calling super.
--
Kostya Vasilyev
09.06.2011 3:06 пользователь Danny D daniel.m.dev...@gmail.com написал:
I think that may be where we're getting mixed up.
I've created a style tree that follows the
On Wed, Jun 8, 2011 at 4:41 PM, tamer hatoum tamer84hat...@gmail.comwrote:
while extracting using httprequest and binding to listview and make
items clickable to open the PDF file
regards...
Typically what you will do is download the source, parse it, stuff it in a
listview, and make
What you quoted is quintessential initialization on-demand holder. And its
supposed to be more like _eager_ init, not lazy init.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
With one TextView per line, a compound drawable on the left side should work
very well.
--
Kostya Vasilyev
09.06.2011 3:20 пользователь Doug beafd...@gmail.com написал:
What is the data type of directions and what are you doing with it
after you assign it?
It looks like you're doing string
I have an ImageView that I keep changing the picture
Bitmap pictBM = BitmapFactory.decodeFile(/sdcard/DCIM/+CURRENT_IMAGE);
image.setImageBitmap(pictBM);
parent.addView(image);
After 4 or 5 pictures I get a OutOfMemory crash
In c++ there is .free() or .destroy() call
What do you use in
Hi,
My application uses multiple activities which runs in different process. Is
there any way I can test it using Instrumentation?
Best Regards,
Amit Dixit
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
Hi All,
I've been using SensorManager with Sensor.TYPE_ORIENTATION for its
pitch/roll values. I want to update the code to support multiple
screen orientations (and while I'm at it get rid of some deprecated
code).
My current solution is below. The main problem with it, is that if I
set the
sivakumar boopathisivakumar at gmail.com writes:
anybody know how android is facing difficulties with 3G-324M
protocol..
i need some articles that shows interfacing architecture of android
with 3G-324M protocol..
and also working principle of 3G-324M architecture with android
mobiles..
On Wed, Jun 8, 2011 at 9:05 PM, New Developer secur...@isscp.com wrote:
Bitmap pictBM = BitmapFactory.decodeFile(/sdcard/DCIM/+CURRENT_IMAGE);
Don't hard code the SD card path - that's not portable.
In c++ there is .free() or .destroy() call
What do you use in android ?
Start here:
Hi,
I am trying to make an MP3 player in android. Can anyone please
suggest me how to forward a media file on forward button click??? i
mean is there any way to set progress of that running media file :(
--
You received this message because you are subscribed to the Google
Groups Android
Hi,
I have my layout like this
FrameLayout
SurfaveView
VideoView/VideoView
/SurfaceView
LinearLayout
ImageView/ImageView
ImageView/ImageView
/LinearLayout
/FrameLayout
I have registered onTouch Listeners for all the views.The
Hello, Doug,
Thanks for your info.
It will be helpful if i can get a example.
How can i generate a build.xml ?
Regards,
Rajender
On Jun 9, 4:26 am, Doug beafd...@gmail.com wrote:
On Jun 7, 4:32 am, Rajender rajender.g...@gmail.com wrote:
I want to do all these using batch file
101 - 196 of 196 matches
Mail list logo