Hi Macro,
You are right and I know this but this can be applicable only when
you are invoking sub activity that u had created so that u can write
ur logic in that. And My problem is, I am invoking the activity for
the phone dialer application using startActivity so I dont have
control on the
You have to be careful with the context in which you are using an activity
group. I encountered this problem when i was trying to show a dialog in an
activity but with different context.
So if you are using any context as parameter, just verify it.
Hi everyone,
i'm trying to build an application that captures an image
shares it...
'm calling the inbuilt camera application with the following code
code
Intent i = new Intent(android.media.action.IMAGE_CAPTURE);
startActivityForResult(i, 0);
/code
N my on activity result is
Filed: #2781
On May 27, 3:16 pm, Romain Guy romain...@google.com wrote:
Oops, it's a copy/paste. My bad :)
Do you mind filing a bug at b.android.com?
On Wed, May 27, 2009 at 7:08 AM, AusR austinjr...@gmail.com wrote:
From the page:
i got the problem too.
but i fixed by use the icon which can hlep you to create the Android XML
file,which is is just left of the debug icion.
2009/5/27 Raphael r...@android.com
On Mon, May 25, 2009 at 5:10 PM, androg roger.weinhei...@gmail.com
wrote:
I get this error with all three
can you send me your full codes?
im on a project on gps.
Thanks for your help.
Hence Chen
2009/5/22 pawpaw17 georgefraz...@yahoo.com
I'm having no luck getting getLastKnownLocation to
return a non-null value in the Android emulator running
in Eclipse. The following call always returns null:
write
uses-library android:name=com.google.android.maps /
as a child of appliaction tag in anroidmenifest.xml file.
also write
uses-permission android:name=android.permission.INTERNET/
uses-permission
uses-permission
as far as i know u cannot connect to gps usin the emulator...
On Thu, May 28, 2009 at 12:39 PM, chen hence hencechen...@gmail.com wrote:
can you send me your full codes?
im on a project on gps.
Thanks for your help.
Hence Chen
2009/5/22 pawpaw17 georgefraz...@yahoo.com
I'm having no
hi,guys.
I want to make my android project Internationalization,but i don't
know how to achieve it.
I have searched on the internet,and just know i have to make values-xx
file in \res.I want to know what should i do about the code.
thank you.
--~--~-~--~~~---~--~~
I am a little surprised that when drawing many individual pixels to a
canvas, I get much faster performance from Canvas.drawPoint with a
Paint object than I get with Bitmap.setPixel with a direct color.
First, I would expect the Paint object to be more complicated than a
numerical color. Second,
Hi,
I want to unregister my location listeners whenever the app is hidden
by another application. I cannot use the onPause() hook in my main
activity, because that hook will also be called when an activity of my
app is hidden by another activity of my own app (in which case I do
not want to
Thanks for the reply - if anyone has a simple setup for the local
proxy, plz post it, since I am not likely to investigate this problem
any further.
On 25 Mai, 12:16, David Turner di...@android.com wrote:
It's a known bug in the 1.5 emulator. It only happens under specific network
conditions
Hm, so I just peeked at the source code of the Google Maps app on
Android, because they seem to get it right: if you have GPS enabled,
then it will stay on if the main Maps activity is hidden by another
activity of the same app, e.g. the Maps history screen, but it will
turn off when pausing the
Hello there ;)
I am still confused about configuration changes. I considered this a
bug in earlier API versions and didn't care much about it. But since
this behaviour is still the same in the 1.5 SDK, I wonder if I do not
misunderstand something completely... :/
If I want to handle a change of
I need to make sure, that onDestroy returns only after proper clean up
by the background thread.
Else (according to my understanding) OS may kill the process hosting
the service before proper cleanup.
--~--~-~--~~~---~--~~
You received this message because you
Thanks, but It's not that, I have all three declarations in my
manifest.
On May 28, 8:10 am, sagar.indianic sagar.india...@gmail.com wrote:
write
uses-library android:name=com.google.android.maps /
as a child of appliaction tag in anroidmenifest.xml file.
also write
okay, so sActivityReference is a java.lang.ref.WeakReference, so
apparently this is related to something else (memory management stuff
I guess?).
Any other ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
On 28 Maj, 01:28, Peter Carpenter
peter.carpen...@skytechnologies.com wrote:
Hi guys,
It appears that plenty of people have asked about this in newsgroups,
but no solution offered.
textView.setText(s);
try:
tv.setText(s);
sv.post(new Runnable() {
void run() {
sv.scrollTo(0,
hi,
I want to view the Log on device i.e the System.out.println(); I
am able to view on DDMS but how to view on device screeen while
running an apk file
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
If you're on Windows, I used to use FreeProxy succesfully a few years ago to
deal with an anal-retentive corporate proxy.
It has a rather nice GUI to setup everything.
http://www.handcraftedsoftware.org/index.php?page=5
On Thu, May 28, 2009 at 9:44 AM, Chronos g358279012044...@gmail.com wrote:
has any1 tried inostallin the android on a pda?
is it always from the source code, or is there any other way???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
I have the same problem with tabactivity but it's quite random and
rare.
I'll try to simplify the layout...
On 11 mai, 18:51, hina naz hinana...@gmail.com wrote:
*How to earn money please visit my site *
*http://latesttechnologyinfo.com/*
--~--~-~--~~~---~--~~
I found a workaround, but it's a hack, so I'm still open for better
ideas. I found this to do exactly what I need:
in the main activity of my app:
@Override
protected void onPause() {
super.onPause();
ActivityManager am = (ActivityManager) getSystemService
Hey,
I have a ListView where each row is a layout inflated from an xml
file. Within each layout I have a TextView which is defined by the
following:
TextView style=@style/MenuItem android:paddingLeft=10sp
android:textColor=@drawable/menu_item /
The style attribute sets the font size and style,
Hi,
I am writting unit tests on my Android project.
I would like to test whether a specific dialog window appears when i
click on a button.
For example, I have :
--Begin Code
-
public class MyDialog extends Dialog
{
I can use the addJavascriptInterface() mechanism to pass strings and
ints (as function return values) from Android to Javascript, but is it
also possible to pass on an entire array (of ints) in one go, to next
iterate over its elements in Javascript? So far that does not seem to
work for me,
Hello! I want to create custom dialog. I want to use my png drawable
as background for it. I would like the background to be expandable
vertically and it would be good if it was of constant width. Another
requirement is that the top part of the drawable must be background
for the title and also
i found my mistake
i forgot to add the EXTRA_STREAM in the extras...
now its workin fine...
if anyone is need of such an app jus send me a request...
On May 28, 11:35 am, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
Hi everyone,
i'm trying to build an application
hi,
I looked into some examples of sharing data to other apps using content
Provider. All these examples talks about sharing sqlite dbs. I need to share
data under shared Preferences of my app to other apps using content
Provider.
Can I use content Provider to do that ?. Please let me know some
Hi,
I've read:
http://groups.google.com/group/android-developers/browse_thread/thread/ba29f880345c03aa
http://www.google.com/support/forum/p/Android%20Market/thread?tid=55c6a8a72f53961fhl=en
but both discussions seem a little outdated. At Google IO there were
free HTC Magic phones (unlocked as
http://code.google.com/android/adc/
On May 28, 12:47 pm, szeldon szeldon@gmail.com wrote:
Hi,
I've
read:http://groups.google.com/group/android-developers/browse_thread/threa...http://www.google.com/support/forum/p/Android%20Market/thread?tid=55c...
but both discussions seem a little
^ In that link it mentions phones were given out to aid people for ADC
2 so I guess these would be configured as such. I guess it wont be
long before they're updated.
On May 28, 1:08 pm, mscwd01 mscw...@gmail.com wrote:
http://code.google.com/android/adc/
On May 28, 12:47 pm, szeldon
I want to make my android project Internationalization,but i don't
know how to achieve it.
I have searched on the internet,and just know i have to make values-xx
file in \res.I want to know what should i do about the code.
Close.
You do not create values-xx files, you create values-xx
can anyone tell me how to have buttons in a 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
can anyone tell me how to have buttons in a button?
Option #1: Use ImageButton
Option #2: Use Button and android:drawableTop (or related properties) to
put an image above the normal text caption
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android
Hi
I want to move an image around the screen according to the trackball
movement. I am able to capture the movements using the
onTrackballEvent method. But this is being called for very small float
values (I believe for each rotation?) of the trackball.
Now as X and Y positions of views
Has anyone else noticed this? It's slightly annoying. I downloaded
my version of 1.5 from
https://android.clients.google.com/updates/partner/signed-kila-ota-148830.de6a94ca.zip
Thanks
Rob
--~--~-~--~~~---~--~~
You received this message because you are
hi,
I looked into some examples of sharing data to other apps using
content Provider. All these examples talks about sharing sqlite dbs. I
need to share data under shared Preferences of my app to other apps
using content Provider.
Can I use content Provider to do that ?. Was there any other way
I looked into some examples of sharing data to other apps using
content Provider. All these examples talks about sharing sqlite dbs. I
need to share data under shared Preferences of my app to other apps
using content Provider.
Why? Other than the UI framework, shared preferences are
When I need to show dialog windows I use my parent context. That was the
only way I could show them with no BadTokenException.
But when showing a search window I don't use any context as parameter.
It seems that my embedded activity does not have the window token, but its
parent. However a
Hi,
Do you solve your problem with the dialog window?
I try to verify Dialog component too. But I do not find any help.
Cecilia
On Apr 30, 9:36 pm, Rick richardgc...@gmail.com wrote:
I've seen a few posts with no answer. Consider this scenario:
I use Android's InstrumentationTestCase to run
I tried using setDescendantFocusability(FOCUS_AFTER_DESCENDANTS) on my
ActivityGroup layout, and then I got a different error message:
ERROR/AndroidRuntime(871): android.view.WindowManager$BadTokenException:
Unable to add window -- token
thanks dude...
i used the 2nd option n it worked wonderfully...
On Thu, May 28, 2009 at 5:50 PM, Mark Murphy mmur...@commonsware.comwrote:
can anyone tell me how to have buttons in a button?
Option #1: Use ImageButton
Option #2: Use Button and android:drawableTop (or related properties)
Hey guys,
I've got a general performance question. In my Webview app, I'm trying
to display a div (statically-sized) that is 100px x 200px. The div has
a linear gradient that goes the whole 200px. From a performance
standpoint, do you believe that it would be fastest to use an
optimized 1px
Goodmorning,
A call to notifyDataSetChanged() on a ArrayAdapter causes all items in
a listview to redraw. This is quite ineffecient.
At swing you can control which items (or which range of items) redraw.
Is this also possible with android?
Kind regards,
TWan
Then you should call join() in onDestroy after calling
myBackgroundThread.stopThread() causing onDestroy to wait until your
background thread to end.
Make sure that your background thread never blocks or takes too long
to shut-down. If onDestroy is waiting too long, your user's ain't
gonna be
Good morning,
I got a little textview defined in layout xml:
===
TextView android:id=@+id/tvCategory
android:layout_width=wrap_content
android:background=@android:color/background_light
android:layout_height=wrap_content
android:padding=2dp
There is an Application.onCreate() and an Application.onDestroy() you
can use. These are not guaranteed to be called when your app isn't
visible, in fact destroy isn't guaranteed to be called at all, but
that's OK for your use case.
Apparently, the way Maps is doing it is they set a weak ref in
Confusing but probably deliberate, the most important color when
thinking about text is of course the background color it will be
displayed on top of
On May 28, 4:04 pm, twan twa...@gmail.com wrote:
Good morning,
I got a little textview defined in layout xml:
===
TextView
I think 'light' refers to a theme in this case, and if you're using the
light theme, you get a light background with dark text on it.
On Thu, May 28, 2009 at 7:04 AM, twan twa...@gmail.com wrote:
Good morning,
I got a little textview defined in layout xml:
===
TextView
Your understanding is wrong - your service can be killed at any time
without onDestroy being run. I'm not actually sure why onDestroy even
exists in this case, I found it was much more common for the kernel to
OOM kill my process than it was for the AM to nicely request my
service to quit. Don't
I doubt it'll help, but you probably should not put your application
into a single package called main. The point of Java packages is to
avoid conflicts when code is loaded together.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Has anyone download the template pack zip file from
http://android-developers.blogspot.com/2009/05/android-icon-guidelines.html
I get the following error as the download never goes through---
signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part
If you want to distribute the app to existing Android phone owners,
you're out of luck. You'll have to file a bug.
How does the Camera app itself handle this situation?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
You don't need a Service, that's way too complicated for what you
need. Especially if you use the RPC stuff (optional but the docs don't
tell you that!)
If you create the progress dialog using the onCreateDialog() method
then it'll be automatically reconstructed after an orientation
change.
To
never mind. finally got it on the 5 attempt ...
--~--~-~--~~~---~--~~
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
If it is just a refresh and not an entirely new list or additions/
removals of elements, use notifyDataSetInvalidated() instead. I think
it's a bit more efficient.
But, as far as i know, you can't specifiy a range of elements. But you
can optimize it yourself.
I do this at times using the
Hi All,
I want to fill a bitmap with a colour. I have the a,r,g b values. The
techinique I'm using is;
public Bitmap evaluate(Bitmap input) {
Canvas c = new Canvas(input);
c.drawARGB(a, r, g, b);
return input;
}
But my changes are not apparent in the returned
Hi Mike,
Is it safe to cache a Handler (in a static variable)? Some objects,
such as Activities or Drawables, are not safe to cache statically and
share amongst multiple activity-instances due to possible memory leaks
(memory referencing to destroyed activities that doesn't get cleaned
up in a
Finally! I must not have seen the woods for the trees. I guess I got
pretty confused about to what extent the Maps are a part of Android. I
assume we should treat it as an external add-on despite the fact it's
from the same company.
Thanks a lot, Mark!
On May 26, 1:54 am, Mark Murphy
I have the same problem as you: after upgrading to 1.5 I can't create
movie from the resources neither using Movie.decodeStream nor
Resources.openMovie. Both functions return null.
On May 27, 5:52 am, Freshman csato...@gmail.com wrote:
com'on guys,
Has anyone faced this issue with Android 1.5
Agreed. Please file doc bugs for the benefit of is all.
Hamy
On May 27, 11:12 pm, Raphael r...@android.com wrote:
Please file doc bugs athttp://b.android.com-- the API probably
evolved before 1.0 without the javadoc being updated.
R/
On Wed, May 27, 2009 at 6:51 PM, havexz
I guess I got
pretty confused about to what extent the Maps are a part of Android.
I think, internally, they had considered it a separate component from the
outset. However, because it was bundled with the SDK so tightly, it was
easy for us to think that it was going to be universally
Judging from your resource name (gif_animation), it looks like you try
to open an image (gif image) as a movie... If it's not a movie/video,
i'm not entirely surprised that opening it as a movie fails.
(an animated gif is not a movie)
On May 22, 2:52 am, Freshman csato...@gmail.com wrote:
I've
hi,
If it matters I reported it to :
http://code.google.com/p/android/issues/detail?id=2788
See you there
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
I suspect this is not a bug. Your button is probably not highlighting
because it's not focused, because the text view that you're typing in to
retains focus.
On Thu, May 28, 2009 at 8:18 AM, www.rzr.online.fr www.rzr.online.fr@
gmail.com wrote:
hi,
If it matters I reported it to :
IIRC, Button is a subclass of TextView, so whatever works with
TextView should work with button. If you define the button text with
resources, then the usual font, br /, and other tags should work
just fine. Haven't tried it myself, though.
--~--~-~--~~~---~--~~
Have you guys tested it previewing to a surfaceview instead? I'm
wondering if it doesn't behave differently there.
On May 28, 12:25 am, karan parikh karan.n...@gmail.com wrote:
Hey All,
@Robert: Yes. I am talking about the same function call. If you read
the documentation for that, It
On Thu, May 28, 2009 at 8:17 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:
Judging from your resource name (gif_animation), it looks like you try
to open an image (gif image) as a movie... If it's not a movie/video,
i'm not entirely surprised that opening it as a movie fails.
(an
Karan,
Option 1 is no good - only stubs are in Android.jar for things like
that. Most of that code is native. You'd need a custom build of
Android. If it was just an issue of java, you could write your own
code but since it's native, you're right, portability is the problem.
Option 2 is no
On Thu, May 28, 2009 at 7:12 AM, Mike Hearn mh.in.engl...@gmail.com wrote:
Your understanding is wrong - your service can be killed at any time
without onDestroy being run. I'm not actually sure why onDestroy even
exists in this case, I found it was much more common for the kernel to
OOM
Hi Marco,
Would you mind giving a brief code snippet of how this might work? I've been
trying to get a similar function to run faster but when I use the bitmap the
values I thought were written by the canvas aren't there.
Kind regards,
Gav
On Tue, Apr 21, 2009 at 12:21 AM, Marco Nelissen
Yep. I have the same problem. I haven't officially reported it
because I did a manual install from (presumably) the same file you are
using instead of waiting for the official OTA. However, it seems
highly unlikely that this problem will be fixed in the next week or
so, so I'm sure all
Hi,
i need image and text on list view and i am using list 14 example in
API demo.
i can have image and text in listview but wondering how to implement
onItemClickListener for each position
anybody help plz
--~--~-~--~~~---~--~~
You received this message because
No, notifyDataSetInvalidated() causes the entire content of ListView
to disappear. It's even more inefficient than notifyDataSetChanged().
If you want to refresh the content of a specific item, call
invalidate() on its View. If you changed the content of the Adapter
though, call
- Create a mutable bitmap from immutable. But instead of a copy, just
create an empty one with the same width and height as the original
one.
- Create a canvas from this mutable bitmap (new Canvas(mutable));
- Create a ColorFilter object. Set its saturation to 0 (this is one
way of doing this).
Thanks...
The plan is to start the service once (startService()) and never call
stopService. I want my service to be running always (will set
service.forground() = true).
When any activity wants to use the service it would get the service
via bind and invoke methods on the service.
Also, by
I gues GLSurfaceView uses OpenGL ES and regular views don't.
The first stop is API Demos from SDK. There are few examples under
Graphics-OpenGLES.
It's hard to tell for sure for the other, but you may want to check
following games:
3D Cube Race Demo
Hi dear,
i am trying to capture video since a week but still no luck.
can anybody help me to figure out what i am missing in the code below:
final MediaRecorder recorder = new MediaRecorder();
ContentValues values = new
ContentValues(3);
Aha! I stand corrected.
That is not what i understood from the API documentation...
Romain,
could you describe the exact differences (and usage example) of the
two?
Thanks!
About calling 'invalidate()':
Does calling invalidate() on a list-item's View cause the 'getView()'
method of an Adpater
What do you mean by no luck? Does something crash? Do you get an
exception? Does it create the recording file? Is there any data in it?
On Thu, May 28, 2009 at 9:25 AM, zeeshan genx...@gmail.com wrote:
Hi dear,
i am trying to capture video since a week but still no luck.
can anybody help
notifyDataSetInvalidated() is used when the adapter loses all of its
content. It's there to tell ListView to stop using the adapter
basically. This is usually invoked when you have a Cursor and you call
close() on the Cursor.
On Thu, May 28, 2009 at 9:27 AM, Streets Of Boston
You don't set a separate OnItemClickListener for each position, you set one
for the entire list, and in your click listener you will be told which
position was selected.
On Thu, May 28, 2009 at 9:05 AM, zeeshan genx...@gmail.com wrote:
Hi,
i need image and text on list view and i am using
Thanks!
The fact that it's used to 'tell the list view to stop using the
adapter' might actually explain an issue i have with a list of images
i show in my own app. :)
On May 28, 12:31 pm, Romain Guy romain...@google.com wrote:
notifyDataSetInvalidated() is used when the adapter loses all of
Hi,
i have a quit strange problem,
I have a textview in the top and fill some buttons later with:
mbs[i].setBackgroundColor(daybgcolor);
all fine,
but when I also add
mbs[i].setBackgroundResource(R.drawable.chart);
it kills the text in my textview?!? also when i even dont know what my
OK, got it to reproduce when running with the -tcpdump flag. I've
attached the resulting pcap file to the bug report (actually just the
DNS records since the entire 15MB compressed file wouldn't upload).
Here's an excerpt of the DNS traffic from where it turned bad
(starting at 79853):
76915
Well, I need to disable the listeners when the app goes into the
background, not only when it terminates.
I also tested this use of WeakReference, simply to see how it behaves,
and it didn't work for me at all. Regardless of whether the app was
paused to display another application or to display
Hi Guys,
Can someone please help me with this regard?
I need this functionality in my app..
Even setting the scroll bar image to a particular color on scrolling
and changing it while idle will do..
Regards,
R.Karthik
--~--~-~--~~~---~--~~
You received this
up
On 24 mai, 22:19, kaoul kaoul@gmail.com wrote:
Hello,
I would like to read and writewbxml.
I found org.xmlpull.v1.XmlSerializer but it seems to help just for
writing.
Thank you for giving me some ideas.
--~--~-~--~~~---~--~~
You received this
Bump!
[What's up with this? Base question got posted back in April, and
there's still no answer?]
So, is there some BETTER forum for Android questions than this 'Google
Group'?
I have the same exact question: I read in all the press that Android
is considered
a 'mobile OS' that netbooks are
It's more a case of there is no good answer yet.
Plans for Android on netbooks haven't been formally announced so if you really
want one now you should look around for a group or groups who are porting it to
netbooks to ask them, or you'll have to sit and wait until something is
announced.
In my app I want to completely dim the screen for a period of time and
later restore the brightness. Dimming works fine:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 0.0f;
getWindow().setAttributes(lp);
But this seem to put the phone into an odd state
Hi all,
I want make a Mask effect with 2 bitmaps. The first has to be masked
by the second. What is the best way? I need it to redraw portions of
the screen the are involved in animations. I have an object(bitmap)
that moves on the screen and i need to redraw with a mask its last
position with
On Thu, May 28, 2009 at 10:37 AM, cookdav david.hubert.c...@gmail.comwrote:
Bump!
[What's up with this? Base question got posted back in April, and
there's still no answer?]
This group is for asking question about development using the Android SDK.
Asking which netbooks might run Android
Hi,
I am trying to stream a hinted AMR narrowband file through darwin
streaming server.
(i) This is not getting streamed at all. RTSP Describe is followed
by Teardown. I use the api demo apk and c that it is failing @ prepare
(). I am able to stream this file through QuickTime Pro.
(ii)
I agree that this was frustrating in the past, but since installing
1.5 I see buttons wrapping text automatically now. I didn't even
ask. :-)
On May 27, 3:04 pm, jonathan topcod...@gmail.com wrote:
the possible button width are fill_parent or wrap_content, is there a
way to make it wrap
I'm trying to dynamically load a jar file, then load the classes
inside the jar. The code is simple but I keep getting ClassNotFind
exception. The class is in the jar. How can I figure out what is
wrong?
import java.net.URL;
import java.io.IOException;
import java.net.URLClassLoader;
import
when I load external web page, image or javascript file from local
webpage.
I can't see external image and can't load javascript or webpage.
but I can only see local image.
why I can't load external javascript, webpage or image?
here is the HTML source.
(of course, I filled right [daum open API
when I load external web page, image or javascript file from local
webpage.
I can't see external image and can't load javascript or webpage.
but I can only see local image.
why I can't load external javascript, webpage or image?
here is the HTML source.
(of course, I filled right [daum open API
when I load external web page, image or javascript file from local
webpage.
I can't see external image and can't load javascript or webpage.
but I can only see local image.
why I can't load external javascript, webpage or image?
here is the HTML source.
(of course, I filled right [daum open API
1 - 100 of 245 matches
Mail list logo