[android-developers] Re: Question about cupcake changes.

2009-01-06 Thread Dianne Hackborn
You can see the settings that have been moved here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/provider/Settings.java;h=e93bbeb95cc0df6f0e936328f5ac8e5cae4c351c;hb=HEAD Where possible, applications should launch the appropriate settings panel to

[android-developers] Re: Get the screen resolution

2009-01-06 Thread Dianne Hackborn
Note that it is very unlikely you should not be doing this, since this is the raw size of the display and does not account for space taken by the status bar and other display decorations in the future such as an input method. I would strongly recommend that you don't use this, instead setting up

[android-developers] Re: Set Window Titile

2009-01-06 Thread Dianne Hackborn
Try doing it after setContentView(). On Mon, Jan 5, 2009 at 6:47 AM, mscwd01 mscw...@gmail.com wrote: How do you set/change the title of the Activities window? I am currently using this code but it has absolutley no effect: @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] Re: Android Limitation on Instrumentation

2009-01-06 Thread Dianne Hackborn
Applications are not allowed to send input events to other applications. You should add an activity monitor to mock out the contact picker activity, probably returning a canned result. This is better in a lot of ways: it is less work while running the test, lets you completely control the result

[android-developers] Re: Performance of local variable vs. class field

2009-01-06 Thread Dave Kong
Thanks Diane, So the perf optimization documented is just the same as in regular java app, or for that matter, any OO language. I was afraid that for Dalvik VM, the cost of accessing member variable is disproportionally large. Perhaps the HW makes this optimzation more worthwhile. I understand

[android-developers] How to create a bitmap with desired text?

2009-01-06 Thread Ernest
Hi,Everythone I want to create a new bitmap and use it only in memory.The bitmap is created from an exist drawable resource and paint some text in it.I tested the BitmapDrawable,and override the draw(Canvas arg0),such as public void draw(Canvas arg0) { // TODO

[android-developers] Code coverage testing Android

2009-01-06 Thread sundar
Hi all, Does anyone have any idea of doing Code coverage testing in Android ?? any tool ?? - sundar --~--~-~--~~~---~--~~ 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] Xml validation

2009-01-06 Thread Nico
Hi, I need to validate XML files with DTD. I use this code : SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader analyser = sp.getXMLReader(); analyser.setFeature(http://xml.org/sax/features/validation;, true); analyser.setErrorHandler(handler);

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
to dear Dianne, I need to implement a remote background service and a service controller activity. I want to present an effect which the controller activity could know whether or not this service is already started, and enable / disable the menu button which is used to start / bind / unbind /

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-06 Thread roland
Hi Moto, did you implement the OnGestureListener for your LinearLayout? Here is a sample i made to test the horizontal scrolling, check it out. http://0467525716.free.fr/Android/scrollTest.zip On 6 jan, 02:10, Moto medicalsou...@gmail.com wrote: I tried using your code but I'm not sure if I

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread Dianne Hackborn
To monitor the state of a service, I suggest binding to it without the flag to create it. Then you will not cause it to start, but be told when it is created or destroyed via the appropriate callbacks. On Tue, Jan 6, 2009 at 1:24 AM, yukinoba ckmagic...@gmail.com wrote: to dear Dianne, I

[android-developers] Re: Performance of local variable vs. class field

2009-01-06 Thread Dianne Hackborn
On Tue, Jan 6, 2009 at 12:14 AM, Dave Kong davek...@gmail.com wrote: So the perf optimization documented is just the same as in regular java app, or for that matter, any OO language. I was afraid that for Dalvik VM, the cost of accessing member variable is disproportionally large. Perhaps the

[android-developers] what's the equivalent class of java.awt.Image

2009-01-06 Thread Derek
Hi, I'm trying to port a java 2D app to android. What's the equivalent class of java.awt.Image in Android? Thanks, Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Album Art

2009-01-06 Thread Protocol-X
I know media scanner does but the problem is it does not work.. even using a working example in the samples it will not pull the album art.. i am not the only once experiencing this problem either. it breakes the code trying to pull the album art so im looking for a working example On Jan 5,

[android-developers] Scale a View's Frame

2009-01-06 Thread Ryan
Hi, I'm looking for a way to scale a view's frame. E.G. I would like to apply the same effect to a view as running a scale animation. However, without having to run the animation. I have discovered how to scale the view's canvas. But this doesn't seem to increase the views frame size, like a

[android-developers] AutocompleteTextView with cursor

2009-01-06 Thread jphdsn
hi , How to use AutoCompleteTextWiew with a cursor ? I tried for instance for the cursor addr contact.addTextChangedListener(this); contact.setAdapter(new SimpleCursorAdapter (this,R.layout.selectmail_item,addr, new String[]

[android-developers] How to use command Line Arguments in Android??

2009-01-06 Thread Asif k
Hi all, Is it possible to use commandline arguments in Android ?? If yes then how ?? Please guide me. Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
to dear Dianne, I see your point. However, when I try to bind the service without BIND_AUTO_CREATE flag, I expect it will return false to me. But the bindService method always returns true. This is a weird behavior for bindService with a flag 0. the code I used is following: isBound =

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
to dear Dianne, I see your point. However, when I try to bind the service without BIND_AUTO_CREATE flag, I expect it will return false to me. But the bindService method always returns true. This is a weird behavior for bindService with a flag 0. the code I used is following: isBound =

[android-developers] Re: what's the equivalent class of java.awt.Image

2009-01-06 Thread hazmatzak
Note that Image is an abstract class. One of the direct known subclasses is BufferedImage, and that is similar to android.graphics.Bitmap. Do you want to replace the AWT logic, or re-implement the missing pieces of AWT the app actually uses? //Ken On Jan 6, 1:51 am, Derek

[android-developers] Re: RTP socket creation

2009-01-06 Thread develop code
Hi, What is the idea behind PVMF_STREAMING_MANAGER_RTPPACKETSOURCE_NODE node? Is this meant to play rtp data directly? If so, is the pv player capable of playing now or its a place holder for future enhancement? I did not see any node being created with this nodeTag, but this node is deleted in

[android-developers] Re: what's the equivalent class of java.awt.Image

2009-01-06 Thread Derek
I'm trying to re-implement the missing pieces of AWT the app actually uses. --~--~-~--~~~---~--~~ 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] Re: Target window when launching a new web browser activity?

2009-01-06 Thread Mark Murphy
Dan Dumont wrote: Any ideas? Unfortunately, it is working as designed. There was a discussion a few weeks ago in this group on this topic. It will require firmware changes to augment the Browser application to accept some sort of extra that indicates what you'd like the window behavior to be.

[android-developers] Re: the text font size in pixel != the actual pixels each character occupies?

2009-01-06 Thread Xiongzh
The TextPaint worked well to measure the text length in pixel. I've implemented my ScrollTextView successfully. Here's my codes to calculate the scrolling length. Just for your information. private void calculateScrollingLen() { TextPaint tp = getPaint();

[android-developers] Re: How to use command Line Arguments in Android??

2009-01-06 Thread Mark Murphy
Asif k wrote: Is it possible to use commandline arguments in Android ?? The Android OS does not have a command line in any conventional sense that you can make use of in an ordinary Android application. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to

[android-developers] Meaning of numbers on Android Market Listing

2009-01-06 Thread info.sktechnol...@gmail.com
What is the meaning of the three numbers given for each app in the developer market listing? There is a number in paren right before the stars. There are also numbers for total and active installs. What makes an install active? --~--~-~--~~~---~--~~ You received

[android-developers] Re: How to use command Line Arguments in Android??

2009-01-06 Thread Asif k
Hi All, Can you lpease tell me what is the use of android.content.Intent.ACTION_RUN intent??? can we run any other application using it?? In the android site, this intent is not explained properly. On Jan 6, 5:39 pm, Mark Murphy mmur...@commonsware.com wrote: Asif k wrote:    Is it

[android-developers] Re: Unique problem only for the EXPERTS.

2009-01-06 Thread Charlie Collins
Here is an example of getting the SmsMessage object: http://unlocking-android.googlecode.com/svn/chapter7/trunk/TelephonyExplorer/src/com/msi/manning/telephonyexplorer/SmsReceiver.java The SmsMessage has various methods to get at different parts of the message, including the body as a String.

[android-developers] Re: Need help for creating submenu

2009-01-06 Thread Charlie Collins
http://code.google.com/android/reference/android/view/Menu.html Try the addSubMenu method. On Jan 5, 11:20 pm, siva pvsivaram...@gmail.com wrote: Hi All, I am new to  Android development. I want to add submenu to menu item , I mean when i select menu item there should be submenu for that

[android-developers] Re: How to use command Line Arguments in Android??

2009-01-06 Thread Mark Murphy
Asif k wrote: Can you lpease tell me what is the use of android.content.Intent.ACTION_RUN intent??? I do not believe it is presently in use in Android, except perhaps as part of a test harness. can we run any other application using it?? Not that I am aware of. To start another

[android-developers] Re: Implementing Parcelable with Eclipse - MyClass.java is in the way of MyClass.aidl

2009-01-06 Thread Jonathan DERROUGH
Hi, It seems that there is no need for an .aidl file since the parcelable declaration was automatically added to 'project.aidl' at the root of the project. Cheers. On Jan 4, 2:01 pm, Jonathan DERROUGH jonathan.derro...@gmail.com wrote: Hi, I am trying to use theParcelableinterface to have

[android-developers] Re: How to create a bitmap with desired text?

2009-01-06 Thread Mike Reed
This may not be the issue, but inside a drawable, you need to draw everything relative to your bounds (i.e. getBounds()). arg0.drawBitmap(getBitmap(), bounds.left, bounds.top, ...) On Tue, Jan 6, 2009 at 3:21 AM, Ernest sunkil...@gmail.com wrote: Hi,Everythone I want to create a new

[android-developers] Are you localizing an app? Do you want to be?

2009-01-06 Thread Dan Morrill
We have been working on some documentation to help developers localize their applications, in anticipation of Android devices becoming available in more countries. (You might have seen some information on this via an email to Android Market developers, recently.) We bumped into a couple issues

[android-developers] Re: Unique problem only for the EXPERTS.

2009-01-06 Thread Al
Hi, once you read the SMS into a String, you can use the String.substring() method to find the first character of the sms. E.g, if the SMS is hello and it is stored in String foo, you would use foo.substring(0,1) for the first char. On Jan 6, 7:33 am, IPEG Student ipeg.stud...@gmail.com wrote:

[android-developers] Problem with mapview again

2009-01-06 Thread Sudha
Hi last month I had made a mapview to display the google map(used the apikey) and used the setCenter(geopoint). it was working fine and moving to that part of the map. but today when I cheked it again what ever value I gave its moving to one location in the water near green land. But with the

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread rsung
Anyone??? Is this a known bug? On Dec 21 2008, 11:00 pm, PKC poisonkimc...@gmail.com wrote: I'm trying to make a simple set of animationsrepeat.  Based on documentation, it appears that below should work but the animation runs once and does notrepeat.  Any pointers would be appreciated.

[android-developers] Question on recovering deleted pictures and wallpaper

2009-01-06 Thread Ed Burnette
I USB-mounted my G1 phone and was trying to use Windows to clean up the /sdcard/dcim/Camera directory in preparation to making a copy. Unfortunately Windows reported a bunch of read/write errors and then deleted the whole directory from the sdcard. Any advice on recovering the lost data (I

[android-developers] Debugging into the framework source ?

2009-01-06 Thread jarkman
I'm have a frustrating time debugging our app, and I am beginning to wonder if I'm missing some debugging tricks. For example, right now, I am adding Filterable to a list view on a complicated cursor. It mostly works, but under some circumstances I get a NullPointerException with the stack

[android-developers] Re: Get Email log

2009-01-06 Thread ena
if anyone has the solution then please let me know... On Dec 27 2008, 2:33 pm, ena enu1...@gmail.com wrote: Hi All, How to get Email log??? Please help me out... Thanks in Advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Sundog
I posted about exactly this a couple of days ago with no responses. Now with your report I'm beginning to think it's a real bug. Anyone at Google care to toss in an opinion? On Jan 6, 7:25 am, rsung poisonkimc...@gmail.com wrote: Anyone??? Is this a known bug? On Dec 21 2008, 11:00 pm, PKC

[android-developers] Re: the text font size in pixel != the actual pixels each character occupies?

2009-01-06 Thread David Turner
On Tue, Jan 6, 2009 at 7:09 AM, Xiongzh zx.zhangxi...@gmail.com wrote: Say, my font size of the text in TextView is 20.5px. It doesn't mean that every character of the text occupies 20.5px in the screen, does it? certainly not, the text size is only a notional unit. the actual number of

[android-developers] Restart application

2009-01-06 Thread goldfish
I need to restart my application after a user changes some preferences. I want to restart my application as if the user hit home and relaunched my application. Does anyone know how to do this? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Stopping a Thread

2009-01-06 Thread Brad Gies
Cyril... thanks... I implemented that yesterday, but I think I came up with something even more robust while I was testing it, so I thought I'd share it. My thread downloads images from my server, using http, and sends them back to my UI thread using messages. Sometimes that can take some

[android-developers] Re: what's the equivalent class of java.awt.Image

2009-01-06 Thread Mike Reed
Bitmap is correct. I also think android has awt classes implemented, btw. On Tue, Jan 6, 2009 at 6:54 AM, Derek xianguan...@gmail.com wrote: I'm trying to re-implement the missing pieces of AWT the app actually uses. --~--~-~--~~~---~--~~ You received this

[android-developers] Can't get keyboard events: no keyboard for id 0

2009-01-06 Thread LeegleechN
I have a somewhat complex view hierarchy, with the focus inside of a popup window. Navigation inside of the popup window works fine using the d-pad and enter, the standard navigational controls. Now, I want to intercept keypresses happening while the popup window has focus. However, I've tried

[android-developers] Re: Meaning of numbers on Android Market Listing

2009-01-06 Thread Sundog
Never seen any documentation on this, but I thought it was obvious; the number is the number of comments, and an active installation is one that hasn't been uninstalled. On Jan 6, 5:39 am, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: What is the meaning of the three numbers

[android-developers] Re: How to use command Line Arguments in Android??

2009-01-06 Thread alexdonnini
Hello, Depending on what you want to run from the command line, you might want to think about trying Runtime.getRuntime().exec() e.g. Runtime.getRuntime().exec(top -t -n 1) Alex Donnini On Jan 6, 8:01 am, Mark Murphy mmur...@commonsware.com wrote: Asif k wrote:   Can you lpease tell me

[android-developers] Obtain Uri references of .jpgs in MediaStore.Images.Media.EXTERNAL_CONTENT_URI

2009-01-06 Thread mobilek...@googlemail.com
Hi, I'm wondering how to obtain Uri references of the images stored on my SD card. I can access information about them by using MediaStore.Images.Media.EXTERNAL_CONTENT_URI, however, I'm not sure how to obtain a unique reference for each of them. Could pls you give me any direction? Thanks

[android-developers] Re: How can I specify message body part in SMS intent?

2009-01-06 Thread devileper
The following intent will launch the sms application with no destination but with a valid message body. Intent intent = new Intent(Intent.ACTION_VIEW, sms:#); intent.putExtra(sms_body, The SMS text); startActivity(intent); On Dec 18 2008, 1:15 pm, devileper devile...@gmail.com wrote: I have

[android-developers] Re: How to get focus for a button?

2009-01-06 Thread roland
requestFocus() works for EditText, but not Button, because the Button is not focusable in touch mode. Call isFocusableInTouchMode() first to check if a component could be foced. On 7 nov 2008, 20:01, april ypu01...@yahoo.com wrote: I am using emulator. In onCreate() function, I used

[android-developers] Re: Meaning of numbers on Android Market Listing

2009-01-06 Thread info.sktechnol...@gmail.com
Does this mean that google keeps track of when you uninstall apps? Does it also do this for non-market apps? What other info is being kept? On Jan 6, 9:58 am, Sundog michael_...@tmail.com wrote: Never seen any documentation on this, but I thought it was obvious; the number is the number of

[android-developers] Re: Set Window Titile

2009-01-06 Thread mscwd01
Thanks for your reply Dianne, I tried it after the setContentView() as you suggested, however it still has no effect. I have no android:label=@string/app_name in my activity so at present the title just displays the package location of the Activity i.e. com.test.app.MyActivity. Is there any

[android-developers] Resizing camera preview dimensions

2009-01-06 Thread Robert
Is anyone aware of how to lower the width and height size that is returned by previewCallback for Camera? Right now it returns an image with dimensions 480x320 and I would like to reduce that by at least half. Any suggestions? Robert --~--~-~--~~~---~--~~ You

[android-developers] Re: Unique problem only for the EXPERTS.

2009-01-06 Thread Ninad
Here you go.. You can get the SMS in the String Array as per below: # Uri uri = Uri.parse(content://sms/inbox); Cursor c= getContentResolver().query(uri, null, body like '%hello%', null,null);

[android-developers] Re: AlarmManager.ELAPSED_REALTIME keeps running even when screen is asleep

2009-01-06 Thread Dianne Hackborn
A broadcast is sent when the screen goes on or off: http://code.google.com/android/reference/android/content/Intent.html#ACTION_SCREEN_OFF Also the foreground activity only stays resumed while the screen is on. You should be able to use these to schedule your alarm during the desired time. On

[android-developers] Re: AlarmManager.ELAPSED_REALTIME keeps running even when screen is asleep

2009-01-06 Thread ArtJin
Thank you for clarification Dianne. I am trying to further optimize the app. For example, if screen is off then the app does not really need to connect to the server, but as soon as it turns on it should. With this logic, I have no problem with AlarmManager working while CPU is running, as long

[android-developers] Re: Meaning of numbers on Android Market Listing

2009-01-06 Thread Dianne Hackborn
The market app only keeps track of applications installed through it. On Tue, Jan 6, 2009 at 8:56 AM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: Does this mean that google keeps track of when you uninstall apps? Does it also do this for non-market apps? What other info

[android-developers] Re: Can't get keyboard events: no keyboard for id 0

2009-01-06 Thread Dianne Hackborn
That is a normal message. On Tue, Jan 6, 2009 at 7:52 AM, LeegleechN leeglee...@gmail.com wrote: I have a somewhat complex view hierarchy, with the focus inside of a popup window. Navigation inside of the popup window works fine using the d-pad and enter, the standard navigational controls.

[android-developers] Re: AlarmManager.ELAPSED_REALTIME keeps running even when screen is asleep

2009-01-06 Thread ArtJin
This solves the problem Thanks a lot! --~--~-~--~~~---~--~~ 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,

[android-developers] Re: Set Window Titile

2009-01-06 Thread mscwd01
Al, you little genius - you just solved a very long running problem in two short sentences! Thanks very much! On Jan 6, 5:54 pm, Al alcapw...@googlemail.com wrote: Is there any particular reason for using getWindow()? I've always used setTitle and it always worked for me. On Jan 6, 5:00 

[android-developers] Help on MediaStore.Images.Media.EXTERNAL_CONTENT_URI

2009-01-06 Thread mobilek...@googlemail.com
Hi, I'm trying to make a simple gallery by accessing the image content of the SD card. My question is how do you make thumbnails of the images so that the device doesn't run out of memory by loading the images in their original sizes? I have noticed the MINI_THUMB_MAGIC column in the database,

[android-developers] What is the best practice for finding friends that have android phones?

2009-01-06 Thread Robert Green
This can be simple or complex, depending on how you look at it. I'm sure this will be an issue for _many_ applications going forward but I'll start with mine because I haven't seen a good answer to this yet. I'm in development of a multiplayer component to a game and the way it needs to work is

[android-developers] stopSelf() question

2009-01-06 Thread jsm
I have two doubts - When I call stopself() in the service, it raises an ANR (Force close or Wait) I am calling this in a seperate thread as shown in my service: ... quitServer(){ Thread thrm = new Thread(null, mTask, MYService);

[android-developers] Re: Resizing camera preview dimensions

2009-01-06 Thread blindfold
The G1 ignores whatever preview dimensions you throw at its camera. http://android.git.kernel.org/?p=platform/hardware/msm7k.git;a=blob_plain;f=libcamera/QualcommCameraHardware.cpp Regards On Jan 6, 6:07 pm, Robert rret...@gmail.com wrote: Is anyone aware of how to lower the width and height

[android-developers] Re: stopSelf() question

2009-01-06 Thread Dianne Hackborn
Look at what your main thread is doing when the ANR happens. It may not be directly related to the stopSelf() at all -- you may have some code in a completely different location that is blocking the main thread, and the stopSelf() call just happens to cause the system to try to interact with your

[android-developers] Receive email permission?

2009-01-06 Thread Matt Hall
Hi All, I'm looking for a permission or something similar to the SMS equivalent java.lang.String RECEIVE_SMS. I'd like to be able to process incoming emails in my app and am wondering if there's a way to do that. Thanks very much, Matt --~--~-~--~~~---~--~~ You

[android-developers] how can BroadcastReceiver do managedquery?

2009-01-06 Thread CJ
it seems to do a query, i have to have an activity. but, what i have for now is a BroadcastReceiver. how should i redesign my application? because i did not intend to start any activity in my BroadcastReceiver. thanks --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Sundog
We'll settle for a No, you dummies, you're doing it wrong! On Jan 6, 8:19 am, Sundog michael_...@tmail.com wrote: I posted about exactly this a couple of days ago with no responses. Now with your report I'm beginning to think it's a real bug. Anyone at Google care to toss in an opinion? On

[android-developers] Please Google: clean racist comment on Android Market

2009-01-06 Thread arnouf
Hello, I posted yesterday a new app (DiceDroid on Android Market) and I don't why a racist discussion is running through the comments feature. Please Google, could you delete this racist comments!! You can contact me at arnaud.farine AROBAS expertiseandroid.com Thanks a lot for your support

[android-developers] Re: how can BroadcastReceiver do managedquery?

2009-01-06 Thread Dianne Hackborn
It makes no sense to do a managed query in a BroadcastReceiver, since a managed query is all about helping you manage the query with an activity's lifecycle in a BroadcastReceiver is not an activity. The lifecycle of a receive is very simple: its function is called, that function does stuff, it

[android-developers] Re: Please Google: clean racist comment on Android Market

2009-01-06 Thread Sundog
IMHO it is well past time for Google to admit that the comments are an idea that was not well thought out, and disable the feature entirely. The comments feature, unlike the ratings, has no value whatsoever, especially unmoderated. On Jan 6, 2:13 pm, arnouf arnaud.far...@gmail.com wrote: Hello,

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
Hello everybody. Carter, did you find out what was the problem? I am having exact same issue. the receivers are installed with no problems, however they do not receive SCREEN_ON or SCREEN_OFF broadcasts for some reason, unless I do everything programatically. Here is the receiver snippet from my

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread Dianne Hackborn
These are currently only delivered to receivers actively registered with registerReceiver(). On a side note... why are you running your receivers in a separate process?? On Tue, Jan 6, 2009 at 1:57 PM, ArtJin ajin...@gmail.com wrote: Hello everybody. Carter, did you find out what was the

[android-developers] should android:id be unique?

2009-01-06 Thread skink
hi, do you know whether android:id for one R class have to be unique (for example defined in different layout.*.xml files)? if yes, why ADT doesn't check this? regards, pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread loty
I've seen this one too and gave up. I guess we'll have to file into Nobody knows nobody cares category On Jan 6, 4:06 pm, Sundog michael_...@tmail.com wrote: We'll settle for a No, you dummies, you're doing it wrong! On Jan 6, 8:19 am, Sundog michael_...@tmail.com wrote: I posted about

[android-developers] Re: should android:id be unique?

2009-01-06 Thread Dianne Hackborn
It only needs to be unique within a view hierarchy (or sub-view hierarchy) in which you are looking for the ID. On Tue, Jan 6, 2009 at 2:10 PM, skink psk...@gmail.com wrote: hi, do you know whether android:id for one R class have to be unique (for example defined in different layout.*.xml

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Sundog
That category is getting a little crowded for my tastes. On Jan 6, 3:15 pm, loty lev.pert...@gmail.com wrote: I've seen this one too and gave up. I guess we'll have to file into Nobody knows nobody cares category On Jan 6, 4:06 pm, Sundog michael_...@tmail.com wrote: We'll settle for a

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-06 Thread fadden
On Jan 5, 1:59 pm, EboMike ebom...@gmail.com wrote: This problem seems to be particularly prevalent with exceptions - I wrote a test app that throws an exception every 10ms and it OOMs very quickly (and you can see the memory pile up), but also with files (which was what 6418 was about in the

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Romain Guy
It is a known issue. On Tue, Jan 6, 2009 at 2:17 PM, Sundog michael_...@tmail.com wrote: That category is getting a little crowded for my tastes. On Jan 6, 3:15 pm, loty lev.pert...@gmail.com wrote: I've seen this one too and gave up. I guess we'll have to file into Nobody knows nobody

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
Got it thanks. To answer your question let me describe what I am trying to do. I have an AlarmManager that runs a service, which connects to web server and gets some data. Everything works fine, but battery drains quickly since AlarmManager stops running only when CPU stops. So I wanted to

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Sundog
Ahh, thank you. I knew the answer was out there. So much for my cool animation... On Jan 6, 3:20 pm, Romain Guy romain...@google.com wrote: It is a known issue. On Tue, Jan 6, 2009 at 2:17 PM, Sundog michael_...@tmail.com wrote: That category is getting a little crowded for my tastes.

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Romain Guy
You can achieve it by using two Animations. Start the first one and when it ends (using an animation listener to be notified), start the second one. It's not as nice and easy but it should work. On Tue, Jan 6, 2009 at 2:43 PM, Sundog michael_...@tmail.com wrote: Ahh, thank you. I knew the

[android-developers] Re: imeem and buffering audio with MediaPlayer

2009-01-06 Thread Dave Sparks
I don't think there will be significant changes to the MediaPlayer API deployed on devices in the next few months. On Jan 4, 7:08 pm, Dan McGuirk mcgu...@gmail.com wrote: Thanks for the reply and the suggestion. I do wonder, though, how long this will remain the suggested solution. Are

[android-developers] Re: should android:id be unique?

2009-01-06 Thread skink
On 6 Sty, 21:17, Dianne Hackborn hack...@android.com wrote: It only needs to be unique within a view hierarchy (or sub-view hierarchy) in which you are looking for the ID. i thought exactly the same way but when i declared the same IDs in different layout files i got strange errors when

[android-developers] Re: should android:id be unique?

2009-01-06 Thread Dianne Hackborn
If the two layouts are used for the same activity but with different orientations, then you will need to keep the IDs consistent between them. On Tue, Jan 6, 2009 at 2:51 PM, skink psk...@gmail.com wrote: On 6 Sty, 21:17, Dianne Hackborn hack...@android.com wrote: It only needs to be unique

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread Dianne Hackborn
My question was actually about why you are using multiple processes for your receiver components. Nothing in what you describe indicates that you need that. Keep in mind that each process currently requires about 2MB of overhead, and slows down your app if it needs to be launched. On Tue, Jan

[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?

2009-01-06 Thread Dave Sparks
android-discuss is probably a better forum for this discussion. I would like to correct a misconception: Android is an application processor stack. It does not include a radio stack, nor is it likely to include one in the near future. The radio firmware is typically proprietary to the chip

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
I just changed my service class to run the thread loop with handler, instead of creating a scheduled alarm. This way my app is able to react on screen changes, since SCREEN_ON/ OFF broadcasts are available only when actively registered. Lots of learning today :-) Thanks a bunch for your help. On

[android-developers] Re: Please Google: clean racist comment on Android Market

2009-01-06 Thread mathiastck
The comments feature is useful, I've found them to be very helpful for the Apple App store. Giving users the ability to rank comments as helpful or unhelpful could help improve their quality. This thread probably belongs on Android discuss though. On Jan 6, 1:54 pm, Sundog

[android-developers] Re: How to start the standard MusicBrowserActivity?

2009-01-06 Thread geoff . stromberg
Thanks Alex, Your second suggestion is much like what I ended up doing. This launches the built in MediaPlaybackActivity and begins playing the desired track. However, I'm now trying to figure out to keep that track playing when you back out of the MediaPlaybackActivity. My problem is that when

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
Oh, I did not understand the question, apologies. Good point! I fixed that, so everything is handled by a single process that receives both on and off broadcasts. Thanks. On Jan 6, 6:01 pm, ArtJin ajin...@gmail.com wrote: I just changed my service class to run the thread loop with handler,

[android-developers] Re: What is the best practice for finding friends that have android phones?

2009-01-06 Thread Mark Murphy
Robert Green wrote: What would be the ideal solution is if somehow the user's contacts had a flag that indicated if the contact has registered an android phone to a given email address. Does that exist? Not that I'm aware of. I'm assuming that nothing like that exists so my solution is to

[android-developers] Really need to subclass MapView in MapActivity

2009-01-06 Thread Tim Bray
I have a MapActivity, and an Overlay on its MapView on which I draw some graphics (picture at http://www.tbray.org/ongoing/When/200x/2009/01/01/FeedMapper). I handle touch events on the map and display popups. I am having all sorts of problems because MapActivity makes its own MapView so I can't

[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?

2009-01-06 Thread Dianne Hackborn
I'd never claim that all of the software on android can be replaced by third party developers. Most system application components can be re-used and replaced by third party apps, but that is a very different statement. Also, just being able to replace the phone app (which is not really any app,

[android-developers] Re: Really need to subclass MapView in MapActivity

2009-01-06 Thread Mark Murphy
Tim Bray wrote: I have a MapActivity, and an Overlay on its MapView on which I draw some graphics (picture at http://www.tbray.org/ongoing/When/200x/2009/01/01/FeedMapper). I handle touch events on the map and display popups. I am having all sorts of problems because MapActivity makes its

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Sundog
I see. I will try that tonight and report on results. Thanks for the suggestion. On Jan 6, 3:44 pm, Romain Guy romain...@google.com wrote: You can achieve it by using two Animations. Start the first one and when it ends (using an animation listener to be notified), start the second one. It's

[android-developers] hey Google men! Autocomplete problem. thanks

2009-01-06 Thread jphdsn
hi , How to use AutoCompleteTextWiew with a cursor ? I tried for instance for the cursor addr contact.addTextChangedListener(this); contact.setAdapter(new SimpleCursorAdapter (this,R.layout.selectmail_item,addr, new String[]

[android-developers] Re: What is the best practice for finding friends that have android phones?

2009-01-06 Thread Robert Green
I totally understand what you're saying. There is a chicken or egg problem, though. Say user 1 wants to play user 2 but user 2 isn't registered yet. What is a convenient way to set up the game so that user 2 is in pending status but user 1 didn't have to explicitly enter user 2's email

[android-developers] using Google GSON in an Android application

2009-01-06 Thread Sean Sullivan
Is anybody using Google's GSON library in an Android application? I can't get GSON to work properly on Android's Dalvik VM. The Dalvik runtime is throwing java.lang.TypeNotPresentException. Here is the stack trace: E/jpoco.android.ContactsActivity( 251): Type jpoco.client.Contact not

[android-developers] Re: [google-gson:246]: using Google GSON in an Android application

2009-01-06 Thread Luciano Resende
Are there any specific features unique to GSON that you need ? Maybe you could use the native JSON support from Android platform. On Tue, Jan 6, 2009 at 4:00 PM, Sean Sullivan s...@seansullivan.com wrote: Is anybody using Google's GSON library in an Android application? I can't get GSON to

  1   2   >