Re: [android-developers] Strange ClassNotFoundException

2012-01-30 Thread Mort
The manifest contains the class. There also weren't any changes to the manifest entry or the imports of the receiver class. -- 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] Strange ClassNotFoundException

2012-01-29 Thread Mort
Hi, I got several mails about my app crashing since the recent update. In the developer console, I see several stack traces with a ClassNotFoundException. Strange thing is, the class surely exists, and the error doesn't seem to happen on every device. At least the developer edition (i.e. debug

[android-developers] Re: Notification Background Color (ICS)

2012-01-02 Thread mort
On 31 Dez. 2011, 11:10, Zsolt Vasvari zvasv...@gmail.com wrote: Maybe it's a 4.0.2 vs 4.0.3 problem.  You could try it in an emulator and if it's a regression in 4.0.3, create a bug report. It seems to be a 4.0.3 bug. I've got the same bug both on the 4.0.3 emulators (4.0.0 don't work for me -

[android-developers] Re: how to play streaming media on android

2011-09-27 Thread mort
If your device isn't too buggy to do it (which isn't that rare...), simply pass the URL instead of the file name (setDataSource(http://...;)). And you should do MediaPlayer.prepare() in its own thread, otherwise establishing the connection and buffering might end with an ANR. If you need a way

[android-developers] Re: Multiple APK support - Who's tried it?

2011-08-10 Thread mort
On 9 Aug., 16:59, b0b pujos.mich...@gmail.com wrote: I have not tried multiple APK support but IMHO it is much trouble for what it's worth. It is much more simple to have a universal APK, even if size is bigger. Where it works, you're right. But show me how to support Android 1.5 (or even

[android-developers] Two menu buttons in Honeycomb?

2011-08-10 Thread mort
I'm currently adding new Honeycomb features to my app. After adding the Action Bar, there are now two menu buttons - one in the upper right corner (Action Bar) and one in the Status Bar. Both will open the menu in Honeycomb style (dropdown in upper right corner). Any ideas how this could happen

[android-developers] Re: Multiple APK support - Who's tried it?

2011-08-09 Thread mort
The concept is quite fine imho, but sadly the Market still has some severe bugs. I uploaded a new update that uses multiple apks yesterday. The apk upload area works fine, at least for my usecase (legacy version for Android 1.5/1.6, other version for 2.0+ devices), it also shows (temporary)

[android-developers] AudioEffects - a fragmentation rant...

2011-06-15 Thread mort
This is mostly sharing some experiences, maybe it helps some others. I don't really expect anything will change by telling this... Oh, and it's not about the Android version fragmentation, though it's pretty bad to see that the majority of users isn't able to use an important feature, just because

[android-developers] Re: AudioEffects - a fragmentation rant...

2011-06-15 Thread mort
On 15 Jun., 12:46, Zsolt Vasvari zvasv...@gmail.com wrote: Have you filed any bug reports on b.android.com? No. I don't see much sense in it, since everything works flawless on Nexus S, so it don't seem to be core problems. It certainly appears as if the CTS doesn't properly exercise those

[android-developers] Re: car dock mode

2011-04-28 Thread mort
On 27 Apr., 21:24, Dianne Hackborn hack...@android.com wrote: Um. This API was introduced in Froyo/2.2 (that is API 8). Oops, sorry, mixed up the version numbers... :o ACTION_DOCK_EVENT is about the device being placed in a dock.  Calling that API puts the device in to car mode, but that

[android-developers] Re: car dock mode

2011-04-27 Thread mort
On 27 Mrz., 06:34, Dianne Hackborn hack...@android.com wrote: Better: http://developer.android.com/reference/android/app/UiModeManager.html Sadly, this works only if you only target the about 2% devices with Android 2.3... But the main reason for me to revive this thread: Is it possible to

[android-developers] Re: car dock mode

2011-04-27 Thread mort
Additionally: Is there a way to emulate thedockmodes? I only found some old tools that stopped working since Android 2.2. Little update: I tried to emulate at least the car dock mode with UiModeManager.en-/disableCarMode(). I get the steering wheel in the notification bar and a Config changed

[android-developers] Re: IllegalArgument Exception: Service is not registered

2011-04-18 Thread mort
If after bindService, there is an orientation change or the activity is finished before onServiceConnected is called, myBinder will still be null, and your code won't call unbindService, despite having called bindService. You're right, I'll change that. Don't know if this can later cause

[android-developers] unknown mimetypes and file managers...

2011-03-24 Thread mort
I'd like to handle a file extention (.m3u8) which has no registered MIME mapping for the extention, when the file is opened in a file manager/explorer. But no matter what I try, the file managers I tried aren't able to open the file with my app. Is this something that is generally impossible in

[android-developers] Re: Do existing scheduled items on the AlarmManager get cancelled after an application update from the Marketplace?

2011-03-15 Thread mort
I've been notified about this problem as well. It seems like using the PACKAGE_REPLACED intent should make it able to offer a workaround. Otherwise, if you offer an alarm clock function or any other important schedule, you'd got to tell your users they have to disable auto update and restart your

[android-developers] Re: Toggle button with more states that two

2011-03-10 Thread mort
I think this would also break the user experience. Better use a spinner. You can show different foreground images if you use proper layouts and adapter. For both button and spinner you could simply set a new button background when the item has changed, i.e. in the OnClick- or

[android-developers] How to display current default ringtone?

2011-03-05 Thread mort
I try to display (and change) the current default ringtone in an app. Both Settings.System.getUriFor(Settings.System.RINGTONE) and RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE) will return content://settings/system/ringtone (at least on my device). I tried to get the title with

[android-developers] Re: Icon Design Guidelines for Android 3.0?

2011-02-23 Thread mort
I think it's even more funny with the Widget guidelines. The Google search Widget seems to be the only one left which looks at least somewhat like that. http://developer.android.com/intl/de/guide/practices/ui_guidelines/widget_design.html I guess Google has adopted the Wicca motto: And ye harm

[android-developers] Conversion is '' in preferences

2011-02-21 Thread mort
) android.preference.Preference.onBindView(Preference.java:441) android.preference.Preference.getView(Preference.java:391) android.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.java: 221) ( - no class of my app appears in stack) Regards, Mort -- You received this message because you are subscribed

[android-developers] Re: MediaPlayer getCurrentPosition problems on Android 2.2

2011-02-04 Thread mort
On 2 Feb., 09:57, roguel6 miguel.rode...@gmail.com wrote: I am having the same issue with 2.2.2. The method getCurrentPosition() in MediaPlayer doesn't return the correct value. It is lower than real value. I have tried the same code in 2.1 and that works perfectly. Any fix for this? At least

[android-developers] Re: Adding Slide Button on Key lock screen

2011-02-04 Thread mort
As Mark stated correcly, you can't modify the original except with an own ROM. However, you can respond to ACTION_SCREEN_OFF or ACTION_SCREEN_ON (note you must register it manually with registerReceiver, it's not enough to add it in the manifest!) to show your own Activity. You can either use

[android-developers] Default local charset/encoding?

2011-02-02 Thread mort
Is there a way to get the default local charset/encoding for a device? I.e., I'd like to get e.g. ISO-8859-1, windows-1251, ISO-2022-CN, or whatever is common in the device's default locale (and supported by the device), not UTF-8 like Charset.defaultCharset() or System.getProperty(file.encoding)

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-19 Thread mort
Only a blind shot: Did you check whether another instance of frustrum is used? Like e.g. an accidental float[][] frustrum = ... in the function or maybe even an if block or something similar, so a local instance is used instead of the class member, parameter, or whatever was intented. However, I

[android-developers] Re: Could I exec some codes after my app is installed

2011-01-19 Thread mort
On 18 Jan., 11:03, Marcin Orlowski webnet.andr...@gmail.com wrote: When my app is downloaded from Market and installed, could some code be executed? No. Which is good. I wouldn't say that in such a generalized way. I'd be annoyed if an Activity would be invoked, but I can imagine there could

[android-developers] Re: Services and battery life

2011-01-12 Thread mort
On 11 Jan., 17:37, TreKing treking...@gmail.com wrote: The likelihood of your Service running un-interrupted for 30 minutes, especially if you're not running in the foreground, is extremely low. Well, if really necessary, one could show a notification and use startForeground. I for one would

[android-developers] Re: What is the name of this widget?

2011-01-12 Thread mort
On 12 Jan., 09:12, Dianne Hackborn hack...@android.com wrote: Many classes that are public make use of private classes for implementation.  That isn't a reason to make those other classes public. Of course. I just meant in this case the public and private classes do share the problems. If one

[android-developers] Re: Making 2 buttons the same size

2011-01-11 Thread mort
On Mon, Jan 10, 2011 at 7:01 PM, John Lussmyer johnlussm...@gmail.comwrote: Is there any way to do that via settings in the XML? Give them both the same weight. Sadly, this also works only for short texts like OK and Cancel. If you need word wrap or a word's too long, the layout is messed

[android-developers] Re: What is the name of this widget?

2011-01-11 Thread mort
On 11 Jan., 23:25, Dianne Hackborn hack...@android.com wrote: The widgets aren't public because we aren't happy with them, and don't want to commit to them in their current form and be stuck with that in the platform forever more. But Date- and TimePicker are public and using the NumberPicker

[android-developers] Re: Change the background of an AppWidget

2011-01-10 Thread mort
I think if you're feeling masochistic, you could create 9 images and do some kind of manual 9-patch image with e.g. table or linear layout views. Just like in bad old HTML times... ;) If your dynamically created images aren't too complex, you might also use something similar to the XML shape

[android-developers] Re: What's new in honeycomb?

2011-01-10 Thread mort
I don't know if I get a bit off-topic, but it's still related to Honeycomb and tablets: I've seen several apps in the Honeycomb videos which displayed in one screen what must've been multiple Activities before, like e.g. the mail list and single mail view. Will there be an easy way to support

[android-developers] Re: What is the name of this widget?

2011-01-10 Thread mort
On 10 Jan., 22:21, Kumar Bibek coomar@gmail.com wrote: The reason why a NumberPicker is not public or a part of the SDK is perhaps because it's not a widely used widget. If it were, it would have been a part of the SDK, and the widget would have been public. IMO. I think it's more like

[android-developers] Re: How does Beautiful Widget do it?

2010-12-14 Thread mort
It's pretty simple: Use theme=android:Theme.Transparent (in AndroidManifest.xml) and use a .png with alpha channel as background of the activity's root view for the gray layer above. But be warned: This can slow down performance pretty much. E.g., I've never seen BW's animations without sagging on

[android-developers] Re: Can I do anything about bogus user comments?

2010-12-14 Thread mort
On 14 Dez., 20:46, Brill Pappin br...@pappin.ca wrote: not sure what her problem is, maybe a competitor or something, but the comment is completely bogus. I'm afraid that's the old problem with separating what permissions might allow an app to do vs. what an app actually does with them. Of

[android-developers] Re: Auto android:debuggable. Anybody got it working?

2010-12-13 Thread mort
A suggestion for a later update: a checkbox in the device selection dialog or maybe an optional query would be nice. Because sometimes, I just want to do a quick check on the actual device, and debug mode often is painfully slow... btw: What happened to create signed application package? It's

[android-developers] Re: ninePatch bug?

2010-12-08 Thread mort
Not sure which bug you mean. I now of two troubles with 9patch-drawables: - AFAIR (might be wrong): If you've got only ldpi/mdpi images and a hdpi device, the images are first stretched with 9patch to the mdpi pixel size and then to hdpi. I.e., the corners might become sawtoothy, but will stay the

[android-developers] Re: Buttons on Android Devices

2010-11-12 Thread mort
On 11 Nov., 19:24, Mark Murphy mmur...@commonsware.com wrote: Any device that has the Android Market on it will have a MENU and a BACK hard or soft button. I think the Home button is mandatory as well, the Search button seems to be optional. Most devices without Market will have those buttons

[android-developers] Change Eclipse Layout Orientation

2010-11-06 Thread Greg Mort
Hello I want to know how to change the orientation of my layout inside of eclipse in my manifest I have android:screenOrientation=landscape in my layout xml I have android:orientation=horizontal but when I click the layout button it still shows it as a vertical layout Thank You -- You

Re: [android-developers] Change Eclipse Layout Orientation

2010-11-06 Thread Greg Mort
will find an option to change the orientation, a drop down at the top On Sun, Nov 7, 2010 at 4:08 AM, Greg Mort gregm...@mortyg.com wrote: Hello I want to know how to change the orientation of my layout inside of eclipse in my manifest I have android:screenOrientation=landscape in my

[android-developers] Re: Changelog in Market!

2010-11-04 Thread mort
On 3 Nov., 15:03, TreKing treking...@gmail.com wrote: If it were searchable, people would just use it as an extension to their app description to add more stuff people might search for to find their app. Not only that, it might also confuse results. A changlog often includes some internals

[android-developers] Re: Application still Running After Exit

2010-10-30 Thread mort
On 29 Okt., 13:14, Eric F ericfrie...@gmail.com wrote: Then I suspect these may be more of the points of disagreement:  D) It's up to the developer of an application to offer the user controls to tweak performance sapping or battery draining.  E) A user uninstalling an app that performs

[android-developers] Re: Application still Running After Exit

2010-10-29 Thread mort
a task manager to switch apps, he couldn't easily return to the Shelves app. That's where the paused status would come in. 2) People associate, just like on the desktop, not wanting a function of an application to quitting the application. Earlier mort was suggesting the same thing. Twitter

[android-developers] Re: Application still Running After Exit

2010-10-29 Thread mort
On 28 Okt., 06:36, Syner idesignsgr...@aol.com wrote: (...) most of the time i am using back or home to exit the app which sounds like it is not exiting the app. Depends on your definition of exiting ;) By default, the foreground stuff is suspended until you resume to the app, while a running

[android-developers] Re: Saving Simplistic Android Widget Across Restarts

2010-10-28 Thread Greg Mort
New to this, just want to make sure this is viewable to people... can someone at least tell me that? thanks On Tue, Oct 26, 2010 at 9:48 AM, Greg Mort gregm...@mortyg.com wrote: ? On Mon, Oct 25, 2010 at 9:17 PM, morty346 gregm...@mortyg.com wrote: I have a issue that I have been

[android-developers] Re: Saving Simplistic Android Widget Across Restarts

2010-10-28 Thread Greg Mort
? On Mon, Oct 25, 2010 at 9:17 PM, morty346 gregm...@mortyg.com wrote: I have a issue that I have been struggling with for some time and its becoming quite frustrating... I have an app that a user can modify the background image of a widget in a configure activity. Once they select what

[android-developers] Re: Application still Running After Exit

2010-10-27 Thread mort
I would have to strongly disagree with this first statement. Lots and lots of very popular Windows applications do NOT provide any indication of background activity. True, but I was more relating to the usual user experience. For most Windows applications, one assumes they're running as long

[android-developers] Re: Application still Running After Exit

2010-10-27 Thread mort
On 27 Okt., 09:42, Mark Murphy mmur...@commonsware.com wrote: - Ready = waiting for AlarmManager/C2DM events (maybe with an alarm clock as status icon?) There should be no code running at this point; hence, IMHO, this status is pointless and confusing. I don't think so. From a user's point

[android-developers] Re: Application still Running After Exit

2010-10-27 Thread mort
I don't think so. From a user's point of view, there's no difference if there's a started service that's actually doing something by Handler.postDelayed every 5 minutes and an app that does the same by a repeating AlarmManager. Sure there is. It's called a process and a big chunk of RAM.

[android-developers] Re: How to handle Home Button

2010-10-26 Thread mort
On 25 Okt., 20:11, Miguel Morales therevolti...@gmail.com wrote: Try overriding your onFinish() or onPause(), you might be able to do what you're trying to do there. onFinish() is only invoked for the back button, unless you finish() in onPause(). Handling the Home button is only possible if

[android-developers] Re: How to handle Home Button

2010-10-26 Thread mort
On 26 Okt., 08:55, Kumar Bibek coomar@gmail.com wrote: I am a bit confused as to under what circumstances one would like to handle the Home Screen button. As said, the most common use I stubled upon are lock screen widgets (usually rather Activities with FLAG_SHOW_WHEN_LOCKED). Esp. if such

[android-developers] Re: applying a theme to an appwidget

2010-10-26 Thread mort
It seems that the background property is one thing that cannot be updated through RemoteViews. Indeed, even the generic reflection functions (setInt, setLong, ...) didn't seem to work for me. But you can use a combination of FrameView and ImageView, and then use setImageViewResource for the

[android-developers] Re: Application still Running After Exit

2010-10-26 Thread mort
On 25 Okt., 20:18, Kostya Vasilyev kmans...@gmail.com wrote: Yes, I also get those, and respond back that Android is different. I mostly do that as well, sometimes in pretty long mails... Educating users is better than implementing kludges that users wish on a whim. ... but I think it's a

[android-developers] Re: Application still Running After Exit

2010-10-26 Thread mort
Actually the official twitter application has a big sign out option in its menu, right next to settings. But what if a user just wants no updates temporarily until the app's restarted, like he's used to by any other OS? And not have to sign on again after the restart? Also it is important to

[android-developers] Re: Application still Running After Exit

2010-10-25 Thread mort
On 25 Okt., 05:41, Frank Weiss fewe...@gmail.com wrote: I kind of agree, but I think I'll stick with what I said. I think the issue is that when developers see an app listed in what appears to be a list of running processes (like unix ps or Windows Task Manager), they tend to jump to the

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-08 Thread mort
On Oct 8, 4:00 am, Julian Bunn jjb...@gmail.com wrote: I saw a temporary boost over a few days, then a plummet ... to below the previous levels. What's going on?! I guess it's more or less just the usual procedure: People are getting their salaries/allowances either at the beginning/end or

[android-developers] Help in preferences - best practice?

2010-10-06 Thread mort
Some of my app's preferences could use some more explanation than the scarce space available for the summary. Sadly, there doesn't seem to be support from the system, like an optional help button that shows a longer text. How do you solve this problem? The first thing that comes to mind is an

[android-developers] Re: Help in preferences - best practice?

2010-10-06 Thread mort
Add a help option menu choice to your PreferenceActivity. Do you mean with long press on the entry or with the menu button? Either way, there's the trouble Android doesn't signal whether these options exist or not, and in a preference activity, most users won't be looking for them. (I'd even bet

[android-developers] Re: Market alternatives

2010-09-08 Thread mort
On Sep 8, 12:01 am, Kevin Duffey andjar...@gmail.com wrote: I have to ask.. in the last year since I started learning Android (haven't had much time the past several months to do much other than read some of these emails), how many more markets has Google got Android into that offer apps to be

[android-developers] Re: Themes and styles

2010-09-07 Thread mort
OK, found a working solution - no idea if it was indented that way, SDK documentation is very fuzzy and incomplete in this area... To stay with my example: In attrs.xml, define the CSS class ;): resources attr name=headline format=reference / /resources In styles.xml, define the style to

[android-developers] Market alternatives

2010-09-06 Thread mort
to Google's Market to simplify updates, support a single place to go, and hope it get's better one day? Do you support some selected alternatives? (Which ones and why?) Or any alternative you get to know and are able to support? Regards, Mort -- You received this message because you are subscribed

[android-developers] Themes and styles

2010-09-03 Thread mort
would ignore the current theme, while I'd rather need something like style 'headline' for the current theme. How can I accomplish this? TIA, Mort -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Can 9 patches have more than marked region or not?

2010-08-31 Thread mort
It's hard to tell without the actual image, but I guess there *is* a pixel too much. Did you check the 9th (or 10th? not sure whether it starts with 0 or 1) pixel in the border line? Maybe you should check with draw9patch, it's a tool installed with the Android SDK (in tools subdirectory). It

[android-developers] Re: How to fix a “java.lang.O utOfMemoryError: bitmap size exceeds VM budget ” error on android

2010-08-31 Thread mort
If it's any help, I use this method: public static Bitmap loadResizedBitmap( String filename, int width, int height, boolean exact ) { Bitmap bitmap = null; BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true;

[android-developers] Re: What is the proper way to close an activity/application?

2010-08-31 Thread mort
On Aug 31, 12:37 am, Dianne Hackborn hack...@android.com wrote: Yes, it is, this was on oversight when we made the different filtering options more visible.  It will be fixed in Gingerbread. Great! Android really needs a different task management - from the user perspective. Technically it's

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-30 Thread mort
On Aug 29, 9:11 pm, Dianne Hackborn hack...@android.com wrote: This is a flaw in their design (and in the design of current ad servers as well).  By having you link their code into your app, you are required to take responsibility for their permissions.  Yet it is their code, you don't have

[android-developers] Re: For a published application if I upgrade minSdk requirement to higher level what will happen?

2010-08-24 Thread mort
Update your current app to do nothing more than show a dialog with a link to your new app in the market. This would annoy users of old devices even more. Imagine you download an update, and then it's just a dialog that tells you to download an app you can't find in the Market. However, you

[android-developers] How to use AudioManager.OnAudioFocusChangeListener in FroYo?

2010-06-17 Thread mort
I'd like to respond in my music player to other apps (like Maps) gaining an audio focus. However, I only found requestAudioFocus to pass a listener. But I don't want the focus (it's just fine to have music in background), I just want to be notified if some other app requests it. Did I

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-08 Thread mort
I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android knows there are different views for the items. Example (untested ugly style): public int getItemViewType(int position) { if ( position == 5 ) return 1; else return 0; } public int

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

2010-06-07 Thread mort
From what I got so far, it seems like the browser tries to save the entire page contents, which might cause troubles - either because it's too slow (1/5s time limit) or because there's not enough free space on the internal flash. Maybe it'd be a solution to save the state in steps. First the URLs,

[android-developers] Re: Two articles on Android app development

2010-06-04 Thread mort
The experience I shared there was practical - and there are times and requirements when you do need to start a service at the boot time, and it's really better to run it in a separate process. For example, any mail-like application would have such requirements. Autostart might be useful, but

[android-developers] Eclipse plugin stopped working after update

2010-06-01 Thread mort
I updated the Eclipse plugins (Help - Check for update). Since the restart after installation, the plugins aren't working any longer. They're still enlisted in installation details, but there are no Android preferences, no Android menu entries, no editor (Could not open the editor: No editor

[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-18 Thread mort
Music players were the most common example for remote services even on Google's SDK site. Got a link for that handy? Sorry, can't find it right now... Maybe I just misunderstood something? How is it possible to enable playing while the app's in background without a remote service?

[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-18 Thread mort
Strange... Maybe the exported attribute makes the difference? Update: Seems like it does. At least in the emulator and on my device. -- 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: Why does Android 2.1 kill my service?

2010-05-17 Thread mort
So I did: - add android:process=:remote in the manifest You should not need that, and it may well be the source of your difficulty. Sorry for the late reply, didn't notice it at first... If I remove android:process=:remote and leave the app, music will stop eiter immediately or after the

[android-developers] Why does Android 2.1 kill my service?

2010-05-14 Thread mort
I've got a music player service which should keep on playing in background. So I did: - add android:process=:remote in the manifest - return START_STICKY in onStartCommand (because MediaPlayer does the work until the track is finished) - invoke startForeground when Activity becomes invisible

[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-14 Thread mort
Sorry, I've got the reason... I had a timing problem with the HEADSET_PLUG Intent, which is sent when registered, and in my case caused a stopSelf() because the service thought it wasn't required (bad value in internal status flag). The strange behaviour then happened, because the service right

[android-developers] Re: Listening for Bluetooth events and AVRCP profile

2010-05-10 Thread mort
You get AVRCP keys with the MEDIA_BUTTON Intent. But I don't know of support for track information. I'm afraid you need to do that low level, if it's possible at all (that is, without having to flash a patched ROM or at least having root access and using NDK...). On 10 Mai, 01:13, Moto

[android-developers] Re: Determine if my application is visible on screen

2010-05-06 Thread mort
onStop() and onPause() works great if your app only has one activity. But they're also invoked if you switch to any sub activity, even if it's done with startActivityForResult(). Only exception is when the sub activity uses a transparent theme. (Well, onPause() is invoked for sure, onStop() only

[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-04 Thread mort
Example: suchandsuchappcrond_service.. CROND service? This is what the alarm manager is for, doing a repeated task every so often. If you are consuming memory being in the background all the time, when you could simply invoke the alarm_manager to wake you every so often, that is much better

[android-developers] Re: Google should prohibit task killers on Android Market

2010-05-04 Thread mort
Yep the problem is largely associated with services and not just random processes running.  That is why the running services UI was introduced. Trouble with that is, it doesn't show the *running* services but the *started* services. Esp. services written for 1.x might just linger around to do

[android-developers] Re: How to detect Bluetooth headset key press

2010-04-29 Thread mort
Hi, it's pretty simple: add a broadcast listener to MEDIA_BUTTON: intent-filter android:priority=some number action android:name=android.intent.action.MEDIA_BUTTON / /intent-filter You need to give it a priority, which decides whether it's handled before or after other apps. In other words,

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-29 Thread mort
Got my N1 as well - but sadly it's not working. The display just remains black. It vibrates, it makes sounds when I press the volume buttons, the trackball and buttons light up, but the display just displays nothing... :( Where do I have to send the device? And how many months will I have to wait

[android-developers] Multithreading and progress dialog with remote service

2010-04-28 Thread mort
I like to do some long running initializing work in a remote service, and during that, a progress dialog shall be shown. So basicly, I invoke ProgressDialog.show, run a oneway method of the service with a callback to be invoked when it's finished, and in the callback dismiss the dialog. I

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-28 Thread mort
As far as the lack of communication is concerned - is anyone really surprised by this? This is Google. Ignoring their customers is pretty much what they do (after Search, of course). That's a bit over the top, imho. Compared to other companies, Google's support in this group, on stackoverflow,