[android-developers] Re: file system change notification

2009-01-06 Thread pradeep
hi all, the below program which i got form net. i am able to create the file a.txt but the onEvent fuction is not being called as the Log.e (); is not getting logged. plz help me out. *start of the program*

[android-developers] Re: Sliding text

2009-01-06 Thread Xiongzh
android.widget.Scroller is a better choice to make the text sliding I've just tried a scrolling TextView. It worked well with only small defects. Source codes are in my blog: http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html On Nov 13 2008, 3:48 am, Mark Murphy w

[android-developers] Re: where can I find the source code for G1 phone's contact application

2009-01-06 Thread cindy
In "contact" application, the round number will be focused by scroll track ball. For me it looks like imageButton, but it doesn't have rectangle around it. it also response to user's click very fast. Does any one know how it is implemented? On Jan 6, 10:54 pm, cindy wrote: > G1 phone has a defa

[android-developers] where can I find the source code for G1 phone's contact application

2009-01-06 Thread cindy
G1 phone has a default application called "contact". Where can I find the source code for that? Thanks! Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

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

2009-01-06 Thread Xiongzh
I've shared my ScrollTextView at http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html Comments are welcomed On Jan 6, 8:36 pm, Xiongzh wrote: > The TextPaint worked well to measure the text length in pixel. > I've implemented my ScrollTextView successfully. > Here's

[android-developers] How to use observer pattern in Andorid/ or other method to improve UI response

2009-01-06 Thread cindy
Hi All, It is a common question for UI. If user needs to send a request to server to get information, it always have delay time. In regular java code, we can first generate default UI, display it. Then send request to server in a thread. After response is back, update the UI. If the applicati

[android-developers] Re: SQLite3 sql command to show tables in a database

2009-01-06 Thread michael m
Perfect!! Thanks Marcus! On Dec 31 2008, 12:59 am, visionera gmbh wrote: > hi michael, > > try this > > SELECT name FROM sqlite_master WHERE type = "table" > bye > marcus > > > Von: michael m > An: Android Developers > Gesendet: Dienstag, den 30. Dezember 2008,

[android-developers] Re: File permissions for world read/write

2009-01-06 Thread michael m
Aren't the methods in the Context class specific to the files within the application private file store? I've been trying to find a way to export data out of the applications space to the sdcard, the solution above by ggcespia is the only I've found that works. The methods I tried in the Context

Re: Fw: [android-developers] Re: Android and bluetooth

2009-01-06 Thread Qwavel
Hi Dianne, Thanks for your response. I'd like to address some of your points. > users should not worry about the apps they install doing unexpected harmful > things I believe that limiting the functionality of the phone/API enough to achieve complete safety for any application would be very d

Re: Fw: [android-developers] Re: Android and bluetooth

2009-01-06 Thread Qwavel
Nick, I'm sorry to hear this, but I understand the need to add some sort of bluetooth API to Android as quickly as possible. I look forward to v1.1. Thanks, Tom. On Jan 6, 11:07 pm, Nick Pelly wrote: > On Tue, Jan 6, 2009 at 7:10 PM, Qwavel wrote: > > > Is there any update on this? > > > Spe

Re: Fw: [android-developers] Re: Android and bluetooth

2009-01-06 Thread Qwavel
On Jan 6, 10:26 pm, "Dianne Hackborn" wrote: > I think you are being overly dismissive of the security repercussions.  One > of our goals with Android is to create an open and thriving third party > application market.  Two cornerstones of doing this is that it should be > dead easy for a user

Re: Fw: [android-developers] Re: Android and bluetooth

2009-01-06 Thread Nick Pelly
On Tue, Jan 6, 2009 at 7:10 PM, Qwavel wrote: > > Is there any update on this? > > Specifically, have decisions been made about whether to limit > bluetooth comm to paired devices - as discussed below? > We are unlikely to have this in the first Bluetooth API release. I don't think developers wo

[android-developers] How to change view for activities??

2009-01-06 Thread Wesley Sagittarius
hi all, I wanna to change view... but when I try to setContentView() when wanna to change to second view... it has this error... 01-07 03:58:58.568: WARN/System.err(309): Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child

[android-developers] Re: Get Email log

2009-01-06 Thread ena
just like as logs are maintained for incoming and outgoing call ..im loking for the same type of logging for email..., which will maintained a log for each outgoing and received emails... in any case if u don't know how it is done then plz tel what is the ContentProvider to get this information?

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

2009-01-06 Thread Dianne Hackborn
The LocalServiceBinding API demo should be a good example, you'll just want to bind without the BIND_AUTO_CREATE flag so the service doesn't get created as a result of your own binding. On Tue, Jan 6, 2009 at 7:32 PM, Moto wrote: > > I'm also interested on your solution but could you explain a l

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

2009-01-06 Thread Moto
I'm also interested on your solution but could you explain a little more? new Binder? Thanks, Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

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

2009-01-06 Thread Dianne Hackborn
The return value just indicates that there is infact a service that can be started, so true means all is good. What you care about for knowing whether the service is actually started are the callbacks to your connections. (Be sure your services publishes an IBinder for the Intent you are binding

Re: Fw: [android-developers] Re: Android and bluetooth

2009-01-06 Thread Dianne Hackborn
I think you are being overly dismissive of the security repercussions. One of our goals with Android is to create an open and thriving third party application market. Two cornerstones of doing this is that it should be dead easy for a user to find and install an application, and users should not

Re: Fw: [android-developers] Re: Android and bluetooth

2009-01-06 Thread Qwavel
Is there any update on this? Specifically, have decisions been made about whether to limit bluetooth comm to paired devices - as discussed below? Thanks, Tom. On Dec 22 2008, 1:01 am, Qwavel wrote: > Nick, > > Thanks for participating in this open conversation about thebluetooth > API - this i

[android-developers] Re: Avoiding onItemSelected calls during initialization

2009-01-06 Thread daekpony
I understand that the onItemSelected callback is run on the first layout, but it doesn't quite make sense to me why. I'd like the spinner to act as a simple drop down selection list that allows the user to select a single item. The only selection completed hook I found is the onItemSelected call

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

2009-01-06 Thread Ernest
Thanks for your reply.I tried the new method arg0.drawBitmap(bitmap, this.getBounds().left, this.getBounds().top, textPaint); but it not works well ,my code is public class BitmapText extends BitmapDrawable { private String name; private Bitmap bitmap; public BitmapTe

[android-developers] Re: when user click back, which function is called

2009-01-06 Thread Andrew Stadler
Cindy (or April)- > Will finish() be called every time? As I wrote before, unless you override the key handlers, pressing the back button *will* call finish(). > so current activity will be > totally destroyed (onDestroy() will be called)? Please refer to the documentation I sent you the link

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

2009-01-06 Thread yukinoba
Hi, I have tried this again with the RemoteServiceBinding example in the ApiDemos example packages. I turned the flag argument to Context.BIND_AUTO_CREATE, Context.BIND_DEBUG_UNBIND, or 0, and found out the return value of bindService is always true. More than this, when I left the RemoteService

[android-developers] Re: Get Email log

2009-01-06 Thread Andrew Stadler
Can you please describe what you're looking for, in a bit more detail, and perhaps what you're hoping to do with it? On Sat, Dec 27, 2008 at 1:33 AM, ena wrote: > > > Hi All, > How to get Email log??? > Please help me out... > Thanks in Advance > > > --~--~-~--~~~--

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Romain Guy
It's much better to use View.post(Runnable) instead of creating a new Handler here :) On Tue, Jan 6, 2009 at 5:07 PM, Emmanuel wrote: > > That's exactly what I've been doing after my post here, and it works > OK : > > class LocalAnimationListener implements AnimationListener >{ >

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Emmanuel
That's exactly what I've been doing after my post here, and it works OK : class LocalAnimationListener implements AnimationListener { public void onAnimationEnd(Animation animation) { Handler curHandler = new Handler();

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Romain Guy
You should try to post it (see View.post() or Handler.post() or Activity.runOnUiThread().) On Tue, Jan 6, 2009 at 4:57 PM, Emmanuel wrote: > > It's strange. > That exactly what I'm doing, starting a second animation on the > onAnimationEnd of the first animation listener, but it just don't do >

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread Emmanuel
It's strange. That exactly what I'm doing, starting a second animation on the onAnimationEnd of the first animation listener, but it just don't do anything. the second animation is not played. Just to be sure, I call the function that creates the first animation on the onAnimationEnd ( to create

[android-developers] Get reference to "parent" window from TabHost Activity

2009-01-06 Thread mscwd01
I have an Activity which has a TabHost, lets call this the "parent" Activity. Within the TabHost are two tabs whose content, are themselves, Activities, lets call them "child" Activities. The child activites perform several functions which can take a while to complete so I wish to add an indeterm

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

2009-01-06 Thread Mark Murphy
Robert Green wrote: > 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

[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 wrote: > > Is anybody using Google's GSON library in an Android application? > > I can't get GSON to work properly on An

[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 present

[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 addres

[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[] {Contacts.ContactMethods.NAME}

[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 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 not as nice and ea

[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

[android-developers] Create contextmenu just like the one on the homescreen

2009-01-06 Thread akurni
Hi, I can create context menu on my app, but it's a single level only. The question is how to create categorized menu on my context menu just like on the home screen's context menu? Example: Application (level 1) |-Application name (level 2) |- Shortcut Widget I tried to use submenu,

[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, b

[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: 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

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

2009-01-06 Thread Dianne Hackborn
Wonderful. :) On Tue, Jan 6, 2009 at 3:12 PM, ArtJin wrote: > > 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 wrote: > > I just chan

[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 wrote: > I just changed my service class to run the thread loop with handler, > instead of creatin

[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 y

[android-developers] Re: How to do an animated pie chart?

2009-01-06 Thread melody
Thank you. That's very helpful. Dianne Hackborn wrote: > You shouldn't need to use a worker thread. If you want to run up to the > screen refresh rate, just do invalidate() in onDraw(). Otherwise, you can > use Handler in the main thread to post delayed messages to achieve whatever > update

[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 wrote: > IMHO it is

[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: 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 vendor

[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 6,

[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 wrote: > > On 6 Sty, 21:17, "Dianne Hackborn" wrote: > > It only needs to be unique within a view hierarchy (or su

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

2009-01-06 Thread skink
On 6 Sty, 21:17, "Dianne Hackborn" 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 changing screen orien

[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 wrote: > Thanks for the reply and the suggestion. > > I do wonder, though, how long this will remain the suggested > solution. Are there plans to upd

[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 wrote: > > Ahh, thank you. I knew "the answer was out there".

[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 wrote: > It is a known issue. > > > > > > On Tue, Jan 6, 2009 at 2:17 PM, Sundog wrote: > > > That category is getting a little crowded for my tastes. > > > On Jan 6, 3:15 pm, loty

[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 resche

[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 wrote: > > That category is getting a little crowded for my tastes. > > On Jan 6, 3:15 pm, loty 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

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

2009-01-06 Thread fadden
On Jan 5, 1:59 pm, EboMike 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 first place -

[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 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 wrote: > > > > > We'll settle for a "No, you dummies, you're doing i

[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 wrote: > > hi, > > do you know whether android:id for one R class have to be unique (for > example defined in different layout.*.xml files)? > > i

[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 wrote: > We'll settle for a "No, you dummies, you're doing it wrong!" > > On Jan 6, 8:19 am, Sundog wrote: > > > I posted about exactly this a couple of days ago wi

[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 Googl

[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 wrote: > > Hello everybody. > Carter, did you find out what was the problem? > I am h

[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 m

[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 wrote: > Hello, > > I posted yesterday

[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 re

[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 A

[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 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 Jan 6, 7:25 a

[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 message

[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 re

[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] 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 wrote: > Is anyone aware of how to lower the width and height size that is > re

[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"); thrm.start(

[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] 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, h

[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 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 pm,mscwd01 wrote: > > >

[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: 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 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. Now, I want > to

[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 as

[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 i

[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 T

[android-developers] Re: Set Window Titile

2009-01-06 Thread Al
Is there any particular reason for using getWindow()? I've always used setTitle and it always worked for me. On Jan 6, 5:00 pm, mscwd01 wrote: > Thanks for your reply Dianne, > > I tried it after the setContentView() as you suggested, however it > still has no effect. > > I have no "android:labe

[android-developers] Re: button response is slow on GPhone

2009-01-06 Thread cindy
In Java, there is some design pattern called observe. User can send request, when response is back, it will update UI. Does android has similar functionality, but UI is designed in XML and loaded in in onCreate() function, I need to get data in onCreate() function. How can I do it?Could you post

[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] 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 recei

[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] 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 wrote: > Never seen any documentation on this, but I thought it was obvious; > the number is the number of comments, and an "activ

[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 wrote: > I am using emulator. In onCreate() function, I used > "button.requestFocus()" . B

[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 wrote: > I have found the appro

[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 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 wrote: > Asif k wrote: > >   Can you lpease tell me what is the use of >

[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" wrote: > What is the meaning of the three numbers given for each app in the

[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 eve

[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 wrote: > > I'm trying to re-implement the missing pieces of AWT the app actually > uses. > > > --~--~-~--~~~---~--~~ You received this message because

[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 time,

[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 subscribe

[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 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 pixels covered by the

[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 wrote: > Anyone??? Is this a known bug? > > On Dec 21 2008, 11:00 pm, PKC wrote: > > > > > I'm

[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 wrote: > Hi All, > How to get Email log??? > Please help me out... > Thanks in Advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[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 below.

[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 already

[android-developers] Re: Repeating AnimationSet

2009-01-06 Thread rsung
Anyone??? Is this a known bug? On Dec 21 2008, 11:00 pm, PKC 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. > > Thanks > >     public

  1   2   >