[android-developers] Setting theme in an activity

2010-06-05 Thread Sudeep Jha
Hi All, This is my themes.xml file *...@drawable*/bodyimg_blue @color/*royalblue* @color/*midnightblue* @style/TextVie

[android-developers] Re: Associate my app with file format

2010-06-05 Thread jdeslip
Thanks, Ya, I figured "application/emx*" would not match anything; but I was grasping at straws. The server side of things is not in my control. I have to deal with the .emx files being downloaded with empty mimetype - or give up the enterprise entirely. :/ Usining "mimetype=applcation/*" is t

[android-developers] Re: Is it possible to draw to a home screen icon?

2010-06-05 Thread James W
Actually the appwidgets do support standard animations such as tweening and frame, but they are a bit of a hack job to get to work. For tweening, you get use the layoutAnimation tag in your widgets XML. It supports all the standard tween animations. When the remote views object for that widget is

Re: [android-developers] Associate my app with file format

2010-06-05 Thread Dianne Hackborn
We generally don't do matching based on extension, but on MIME type. Ideally you want your server to reporting a proper MIME type for your file. Also, the MIME type matches only handles '*' for type and subtype -- that is, application/* or */*. Your 'application/emx*' will not match anything. O

[android-developers] Re: Associate my app with file format

2010-06-05 Thread jdeslip
Further info, I tried adding the following to my manifest: Now, in astro, OI-Filemanager my app is associated with .emx files. But, in the Browser downl

[android-developers] permission denied on devce

2010-06-05 Thread amsale zelalem
Hello guys, I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have f

[android-developers] Re: Published app not showing up on HTC Evo or Droid Incredible

2010-06-05 Thread niko20
This is expected behavior, this happens all the time with new devices, turn off copyprotection. It hurts u more than helps, its pretty worthless anyway. Rooted phones can stillcopy the app. On Jun 5, 1:19 am, Alberto wrote: > Hello, I recently published our app to the marketplace and enabled >

[android-developers] A slightly altered pattern for extending the life span of a broadcast receiver (Not entirely verified yet)

2010-06-05 Thread Satya Komatineni
How would one go about making sure a broadcast receiver (triggered) code can run for more than 10 secs (this is the limit when you start seeing not responding warnings), This has been much disccussed in this group and excellent suggestions and even working code like "wakefulintentservice" (thanks

[android-developers] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Streets Of Boston
But a simple synchronized(object) { if(!someConditation) object.wait(); } and public boolean changeSomeCondition() { synchronized(object) { someCondition = true; object.notifiyAll(); } } can be easy enough to warrant using a wait() statement. But i agree, as soon as you start

[android-developers] Re: Is it possible to draw to a home screen icon?

2010-06-05 Thread Zigurd
Try Live Wallpapers: http://developer.android.com/resources/articles/live-wallpapers.html App icons are not accessible outside the launcher. At best, you might be able to hack something by turning activity aliases on and off and "changing" an app icon that way. That is, you might have an second a

[android-developers] Re: LocationListener not refreshing ???

2010-06-05 Thread Lance Nanek
http://code.google.com/p/android/issues/detail?id=2545 On May 25, 8:35 am, Squ36 wrote: > Hi all. I'm trying to develop a small app, that can retrieve GPS > coordinates, and store them, so I can retrace the path I took. The > thing is, the GPS on Android emulator is kind of screwing around with >

[android-developers] Associate my app with file format

2010-06-05 Thread jdeslip
I am writing an app that needs to be able to open (be associated in the browser download window for example) with a certain file type. The file type has .emx extension and is in an xml format (the top of the files have ). However, I can't for the life of me get my app associated with this filetyp

Re: [android-developers] Is it possible to draw to a home screen icon?

2010-06-05 Thread Mark Murphy
Rob Y. wrote: > I think it could be cuter if it were > possible to get a surface view that mapped to the home screen icon for > the app and animate that when the app is running and the icon is > visible. I am uncertain as to what "the icon" is. I can think of four possibilities: -- the icon in t

[android-developers] Re: Is it possible to draw to a home screen icon?

2010-06-05 Thread Rob Y.
...and if animating the icon's not possible, would doing it as a widget work? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send emai

[android-developers] Is it possible to draw to a home screen icon?

2010-06-05 Thread Rob Y.
I have a little app that draws moving animations in a surface view. Cute, useless time waster. I think it could be cuter if it were possible to get a surface view that mapped to the home screen icon for the app and animate that when the app is running and the icon is visible. Is that possible? I

Re: [android-developers] Re: Home key - desired behaviour?

2010-06-05 Thread Mark Murphy
guich wrote: > Thanks. I got that the onStop event is called when the home key is > pressed. onStop() is called any time the activity is no longer visible. Hence, onStop() will be called for: -- HOME -- BACK -- you starting another activity -- the user choosing a notification from the drawer -- a

[android-developers] Re: Home key - desired behaviour?

2010-06-05 Thread guich
Thanks. I got that the onStop event is called when the home key is pressed. As a side question, is there a way to discover the name of the intent that called another intent? Like a stack trace of intents. thanks! guich -- You received this message because you are subscribed to the Google Gr

Re: [android-developers] Home key - desired behaviour?

2010-06-05 Thread Mark Murphy
guich wrote: > What is the desired behaviour when the user press the home key? I have > a situation here that when the home key is pressed and i call my > application again, it returns as if it was not destroyed (actually, > onDestroy is indeed not called). That is to be expected. > So, is the be

[android-developers] Home key - desired behaviour?

2010-06-05 Thread guich
Hi all, What is the desired behaviour when the user press the home key? I have a situation here that when the home key is pressed and i call my application again, it returns as if it was not destroyed (actually, onDestroy is indeed not called). So, is the behaviour: 1. when returning to the app,

[android-developers] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Al
What does the exception stack trace say? Are you synchronizing access to the object before calling wait()? Just wait() without synchronization will cause an IllegalMonitorStateException. Ali Chousein wrote: > Hi, > > I have two AsyncTasks running; let's say A1 and A2. A2 is manipulating > the data

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
Hello everyone! First of all I'd like to thank you all for your helpful tips and information about what could be causing the problem. That said, I'd like to address a few points that have been mentioned: 1. I'm not concerned about reboots or Force Closes - if the device is rebooted or the brows

Re: [android-developers] Bring InCallScreen to front while in call

2010-06-05 Thread Dianne Hackborn
There isn't an API to do this. I can't way to do it off-hand, and likely if you do discover a trick to do so there is a good chance it will break in the future. On Sat, Jun 5, 2010 at 7:47 AM, Kitzy wrote: > I am trying to bring the InCallScreen to the foreground when clicking > on a notificati

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Dianne Hackborn
I am pretty sure the browser saves its state in onSaveInstanceState, not persistently, and this is currently as intended. That is, it will retain its state when its process gets killed and restarted, but it is deliberately not trying to retain its state across reboots. Note that instance state is

[android-developers] Free and paid version share same data

2010-06-05 Thread andreas
I have a free app in the market and use the data directory of the app to store some files. Now I think about offering a paid (donate) version of the app, so that people who want to pay a few pennys will be able to do so. But AFAIK the new (paid) app needs a new name, so I won't be able to use the

Re: [android-developers] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Mark Murphy
Ali Chousein wrote: > Thank you for the reply and the suggestion. Having two threads, one > waiting for the other was the best solution for my problem, but > apparently calling wait() in AsyncTask is not supported. Probably I'll > have multiple AsyncTasks, which don't wait for each other, but which

Re: [android-developers] Re: Android Library Project

2010-06-05 Thread Xavier Ducrohet
How does your library project depend on the (standard?) java project? >From the refactoring feature point of view, both projects are Java project (a library project, like normal Android project, is both Java and Android projects), so I'm not sure how it's the fault of the library feature? (Now, af

[android-developers] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Ali Chousein
Thank you for the reply and the suggestion. Having two threads, one waiting for the other was the best solution for my problem, but apparently calling wait() in AsyncTask is not supported. Probably I'll have multiple AsyncTasks, which don't wait for each other, but which combine subsets of the func

Re: [android-developers] Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Mark Murphy
Ali Chousein wrote: > Hi, > > I have two AsyncTasks running; let's say A1 and A2. A2 is manipulating > the data produced by A1 (in fact is a typical producer-consumer > scenario). It's very tempting to use wait() inside doInBackground() > implementation of A2, BUT this causes an IllegalMonitorStat

[android-developers] Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Ali Chousein
Hi, I have two AsyncTasks running; let's say A1 and A2. A2 is manipulating the data produced by A1 (in fact is a typical producer-consumer scenario). It's very tempting to use wait() inside doInBackground() implementation of A2, BUT this causes an IllegalMonitorStateException. Is it really not pos

Re: [android-developers] How to show a dialog even if the Activity is in background

2010-06-05 Thread sachin ravi
Trying using toast notification with custom view. On Sat, Jun 5, 2010 at 10:47 PM, Frank Weiss wrote: > "Simply, I want to pop up a dialog on the current visible Activity, even if > the Activity belongs to other application. And at this time, if my > application is running on background (invisib

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Frank Weiss
The state save I'm refering to is via SharedPreferences. I've observed this in my own application. Indeed, the Android Browser's bookmarks are saved across reboots, and I'd suppose across force closes as well, However, I think Mark is correct that some state may not be correctly saved in a FC situa

Re: [android-developers] Re: How to make a widget that doesn't drain the battery and updates often

2010-06-05 Thread Mark Murphy
Chister Nordvik wrote: >> ... to see who is messing up. > > Well, people will blame my widget even if I try to tell them that they > have another application that has wake_locks so I must make my widget > behave nicely with the rest of the apps out there. You are missing the point. Unless you hav

[android-developers] Re: How to make a widget that doesn't drain the battery and updates often

2010-06-05 Thread Chister Nordvik
> Frankly, I don't know why the Genie... service sticks around for the > stock News and Weather. It does not appear to be affecting the > thoroughly irritating and non-configurable > change-the-headline-every-five-seconds feature, as that persists even > when I shut down the service via the Setting

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Mark Murphy
Frank Weiss wrote: > I think the OP's issue is that the Andorid Browser doesn't save the open > windows state upon close (force close in the OP's case). The Browser rarely goes through a normal close, because Browser uses the BACK button for browser operations, so eventually people just start usi

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Frank Weiss
I think the OP's issue is that the Andorid Browser doesn't save the open windows state upon close (force close in the OP's case). I've confirmed this with just a reboot - but that may be a different syndrome. -- You received this message because you are subscribed to the Google Groups "Android De

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Mark Murphy
Simon Broenner wrote: > 1. Open browser > 2. Open maximum number of windows by using "open in new window" (set to > open new windows in background, in case that matters), all with > different content (so not all the same link) > > 3. Switch to a different application (in my case I clicked an e-mail

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
Just reproduced again with all the newly freed program memory (albeit with relatively memory-heavy web sites like Engadget and Slashdot) :( Looks like having more free application memory delays the process somewhat though... > > On 5 Jun 2010 19:11, "Kostya Vasilyev" wrote: > > 05.06.2010 20:09

Re: [android-developers] How to show a dialog even if the Activity is in background

2010-06-05 Thread Frank Weiss
"Simply, I want to pop up a dialog on the current visible Activity, even if the Activity belongs to other application. And at this time, if my application is running on background (invisible), don't display any Activities (even if the topmost Activity) of my applicatioin except to pop up a dialog."

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
When I reach the max., the new window and open new window buttons just disappear. Max. is something like 8 or 10 windows. On 5 Jun 2010 19:11, "Kostya Vasilyev" wrote: 05.06.2010 20:09, Simon Broenner пишет: > > 2. Open maximum number of windows by using "open in new window" (set to open new w

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Kostya Vasilyev
05.06.2010 20:09, Simon Broenner пишет: 2. Open maximum number of windows by using "open in new window" (set to open new windows in background, in case that matters), all with different content (so not all the same link) What do you mean by "maximum number of windows" ? How many is that? What

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
I'm pretty sure the browser is using a lot of memory, and the OS is perfectly within its rights to close the application when it's in the background - but not without saving the state first. I'm currently testing with more free phone storage memory (previously about 22MB free, now 53MB), and so fa

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Frank Weiss
This might be a longshot. Perhaps it's not the browser, but the web pages. If you have many browser windows open, each web page contributes to memory pressure. I have the same experience on my desktop with 2 GB. After power browsing for a while - that is, having multiple open tabs for several days

[android-developers] Non Standard Preview Format on Samsung SPH M900

2010-06-05 Thread madruga
Hello, I've made an app the processes preview frames from the camera. It works fime in every single phone except the Samsung SPH M900. This phone seems to be on 1.5 firmware. When I query the camera preview format it returns "19" which is neither YCbCr_420_SP or YCbCr_422_SP or any other documen

[android-developers] Re: Android finishActivity()

2010-06-05 Thread mike
hi Sean, yep true. then it'll redirect to the Activity A. but then it is breaking my requirement. i want Activity C to run on top of Activity B. when you set android:noHistory="true" when i'm starting Activity C, Activity B will be cleared from the stack. it's almost similar to finish() before s

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
This is the relevant part of the log, as far as I can tell: 06-05 18:02:21.531: INFO/ActivityManager(1282): Displayed activity com.google.android.gm/.ComposeActivity: 2025 ms (total 2631 ms) 06-05 18:02:22.101: ERROR/cache(2780): disableTransaction is out of sync 06-05 18:02:22.242: INFO/ActivityM

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
I just went through the whole process and logged it: 1. Open browser 2. Open maximum number of windows by using "open in new window" (set to open new windows in background, in case that matters), all with different content (so not all the same link) 3. Switch to a different application (in my case

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Mark Murphy
Simon Broenner wrote: > Hmmm, I'm beginning to get that feeling too. > > Any idea what the cause could be? Obviously I'm not using any auto task > killers or anything like that... :( Off the top of my head, no. If you're a developer, and you can get it to happen, plug it into USB and scan logcat

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
Hmmm, I'm beginning to get that feeling too. Any idea what the cause could be? Obviously I'm not using any auto task killers or anything like that... :( On Sat, Jun 5, 2010 at 5:26 PM, Mark Murphy wrote: > Simon Broenner wrote: > > Obviously the windows (which is what I meant - I _am_ using the

[android-developers] Re: HTC Incredible suffering a reset while service running.

2010-06-05 Thread nikhil
CPU takes down wifi..In other words, because CPU turns off it takes wifi with it.. Thats why we require wakelock to keep it alive. Anyways, if you are not using wakelock and if your app is making the phone reboot on its own, then may be you will have to check for memory leakage or something like th

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Mark Murphy
Simon Broenner wrote: > Obviously the windows (which is what I meant - I _am_ using the native > Android browser) stay open as they should in most scenarios - it's > usually when the memory starts to get low and the OS starts killing > tasks that this becomes a problem. I use Android devices a fai

Re: [android-developers] How to make a widget that doesn't drain the battery and updates often

2010-06-05 Thread Kostya Vasilyev
05.06.2010 15:14, Chister Nordvik пишет: So is this really the best solution to have a service running in the background? So if someone downloads 10 different news widgets from different companies they end up with a list of 10 services in the "Running services" list? If this is the case, the

[android-developers] Re: Android Dev Phone with 2.x?

2010-06-05 Thread ko5tik
On Jun 4, 1:28 pm, Tomáš Hubálek wrote: > In this case there is no chance in our country as Vodafone (as Nexus > One distributor in Europe) said that they will not sell this phone in > Czech Republic. > > I wish there would be ADP 3 as I like to have phone officially rooted > (because of unoffi

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
Obviously the windows (which is what I meant - I _am_ using the native Android browser) stay open as they should in most scenarios - it's usually when the memory starts to get low and the OS starts killing tasks that this becomes a problem. There are a few similar experiences listed in this thread

Re: [android-developers] How to make a widget that doesn't drain the battery and updates often

2010-06-05 Thread Mark Murphy
Chister Nordvik wrote: > 2. Update the widget every 5 seconds to change the currently displayed > article using AlarmManager (AlarmManager.RTC) Please consider making that configurable and able to be disabled, as an improvement over the brain-dead stock news-and-weather widget. > I guess the devi

[android-developers] Webview duplicate HTML problem

2010-06-05 Thread oriharel
Hi all, I load a url over the web containing images (their source is another url). when then view loads the html, it loads it without the images. after few milliseconds, the images come along but then the html is redrawn, and it does so over the previous html, causing it the web view to hold 2 html

Re: [android-developers] Re: Android finishActivity()

2010-06-05 Thread Sean Hodges
OK I must have misinterpreted your description, so you want: A -> B -> C -> B -> (close) The simple answer is to move the android:noHistory="true" from the Activity B declaration, to the Activity A one. On Sat, Jun 5, 2010 at 3:25 PM, mike wrote: > Hi Sean, > > when you set > ... activity> >

Re: [android-developers] Tab Widget Text Color

2010-06-05 Thread Mark Murphy
Sasikumar.S wrote: > Hi, > > In my application i'm using tab widget. > how can we set the text color and font size to a single tab ?.. > Any Suggestion ? Try TabHost.TabSpec#setIndicator(View) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonswar

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Mark Murphy
Simon Broenner wrote: > Does your browser stay active if you open up the maximum amount of tabs, > launch a different application and then come back? The standard Android browser does not have tabs. Perhaps you installed a different browser. If by "tabs" you mean "windows", then, yes, they stay o

[android-developers] Re: Skinning Buttons

2010-06-05 Thread John Gaby
I got it to work, thanks. On Jun 4, 6:05 pm, Mark Murphy wrote: > John Gaby wrote: > > I want to provide my own images for buttons.  Now I can call the > > setBackgroundResource(id) function to change the background of a > > button, but it does not handle the various states.  How do I specify a >

[android-developers] Bring InCallScreen to front while in call

2010-06-05 Thread Kitzy
I am trying to bring the InCallScreen to the foreground when clicking on a notification, and am having trouble figuring out how to do so. My application is displaying information about the call and acts like a dialog (where it is translucent, so you can still see whatever is behind it). While in

[android-developers] Re: Android finishActivity()

2010-06-05 Thread mike
Hi Sean, when you set ... like this what happens is Activity C runs on top of Activity A not on Activity B. that is not what i want i want Activity C to run on top of Activity B regards, Mike -- You received this message because you are subscribed to the Google Groups "Android Developers" gro

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Simon Broenner
I'm using a Motorola Milestone, running Android 2.1 (stock & unrooted). Does your browser stay active if you open up the maximum amount of tabs, launch a different application and then come back? Do all the tabs stay open, and not refresh (or close altogether) when you reopen the browser? On Sa

Re: [android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread Anton Persson
What phone are you using? I do that stuff on my HTC Magic everyday, no issues. (Android 1.5 FTW? ;-) On Sat, Jun 5, 2010 at 3:00 PM, bemymonkey wrote: > Hello everyone! > > First of all, I hope this is at least somewhat on-topic for this > discussion group, as it seems to be the only way to reac

[android-developers] How to detect CPU Speed?

2010-06-05 Thread Martiño
Is there a way of getting the speed at which the device is running? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to andro

[android-developers] Read user profile

2010-06-05 Thread ls02
Is there way to read user default profile on the phone: e-mail address, first and last names? -- 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

Re: [android-developers] How to show a dialog even if the Activity is in background

2010-06-05 Thread Jiang
Thanks, both of all. Simply, I want to pop up a dialog on the current visible Activity, even if the Activity belongs to other application. And at this time, if my application is running on background (invisible), don't display any Activities (even if the topmost Activity) of my applicatioin exc

[android-developers] Multitasking on Android - Why So Incredibly Bad?

2010-06-05 Thread bemymonkey
Hello everyone! First of all, I hope this is at least somewhat on-topic for this discussion group, as it seems to be the only way to reach Android developers easily. The problem I would like to discuss is the way Android handles running multiple applications at the same time. Take the following s

[android-developers] Tab Widget Text Color

2010-06-05 Thread Sasikumar.S
Hi, In my application i'm using tab widget. how can we set the text color and font size to a single tab ?.. Any Suggestion ? -- Thanks & Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] How to make a widget that doesn't drain the battery and updates often

2010-06-05 Thread Chister Nordvik
Hi. I want to make (yet another) news widget. Initially I thought it was enough to: 1. Download all the news articles 2. Update the widget every 5 seconds to change the currently displayed article using AlarmManager (AlarmManager.RTC) 3. Update the widget every 30-60 minutes to get new articles T

[android-developers] Android Spinner

2010-06-05 Thread mike
hi guys, i want to display a Spinner once menu item is selected. how can this be done. do i have to define the spinner in different xml file??? i have define the spinner in the current activities xml file. so once i call setContentView(current.xml) the spinner is getting loaded. i don't want to

Re: [android-developers] Re: Android Activities monitor

2010-06-05 Thread Mark Murphy
Mihai Dumitrache wrote: > Is there a method to see what application is currently in the > foreground, or what resources (memory, hw space, cpu) it uses ? You are welcome to look PackageManager and ActivityManager to see what is there that may be of interest to you. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Android Activities monitor

2010-06-05 Thread Mihai Dumitrache
Is there a method to see what application is currently in the foreground, or what resources (memory, hw space, cpu) it 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@googlegrou

Re: [android-developers] Re: 最近写了两个应 用,MMTimer,火车余票查询

2010-06-05 Thread igo where
hi,Bob kerms,I have another problem. I use two TimerTaskto update the widget,one widget in every one minute,and one in everyone seconds.but it doesn't work. When the widget receive the onUpdate Message I start a server to do this, but It just update ones, would you tell me how to update the widget

Re: [android-developers] Android Activities monitor

2010-06-05 Thread Mark Murphy
Mihai Dumitrache wrote: > Hello, > I am trying to build a service on android that receives broadcast > events about some changes in the system. Right now i am trying to > figure out how to receive events about what activity is currently > running in the foreground. I was thinking that maybe android

Re: [android-developers] Re: Petitions to Google

2010-06-05 Thread Steve Gores-Todd
Hello Again! I realized much to late after posting, I neglected to mention I have no problems with the current build process and can insert the execution of the CPP on my own. I only wanted to add to the discussion legitimate reasons for its use. Steven Gores-Todd On Sat, Jun 5, 2010 at 4:14 A

[android-developers] Re: Petitions to Google

2010-06-05 Thread Steve
Hello, I'm fairly late to this thread. I join it now that it seems it has mostly devolved into the discussion of how useful conditional compiling is. In general I do not have the luxury of a build environment with a modern IDE. Thus, the ability to use the CPP and #include is invaluable. I'd rathe

Re: [android-developers] Re: 最近写了两个应 用,MMTimer,火车余票查询

2010-06-05 Thread igo where
thanks your help. i had rebooted many times,even delete the MMTimerWidget.java ,the layout files and rebuild again.but it not be useful. I will try other methods,May be I can find the solutions. -- Sometime write some code Interest in Android Wu Zejun 在 2010年6月5日 下午3:12,Bo

[android-developers] Android Activities monitor

2010-06-05 Thread Mihai Dumitrache
Hello, I am trying to build a service on android that receives broadcast events about some changes in the system. Right now i am trying to figure out how to receive events about what activity is currently running in the foreground. I was thinking that maybe android sends a broadcast event with the

[android-developers] Re: 最近写了两个应用, MMTimer,火车余票查询

2010-06-05 Thread Bob Kerns
I'm not sure exactly what the "process is bad" error message means. I've seen it, but it hasn't been a persistent problem. Maybe someone else here knows? Have you tried rebooting your device? That's fixed the problem for me and others. Another possibility is this: http://osdir.com/ml/AndroidDev