[android-developers] Re: How to support Bluetooth optionally?

2013-04-14 Thread limtc
Thanks for the help! I have read through this twice and still very confused - why do we have both uses-permission and uses-feature? So I changed from uses-permission to uses-feature and it will work? But why? My free game has been downloaded couple of million times so I am very scared of causin

[android-developers] Re: How to support Bluetooth optionally?

2013-04-14 Thread RichardC
See http://developer.android.com/guide/topics/manifest/uses-feature-element.html On Monday, April 15, 2013 4:23:41 AM UTC+1, limtc wrote: > > Hi, > > My game has an optional support for Bluetooth controller. > > In the Manifest, I have these entries: > > > > > > > But it just occurred to me

[android-developers] Re: Using FLAG_DEBUG_LOG_RESOLUTION

2013-04-14 Thread Wenjie
在 2010年9月17日星期五UTC+8上午3时43分26秒,Bret Foreman写道: > > I'm having some difficulty getting a broadcast message to arrive at > the expected receiver. So I turned on logging like this: > > intent.addFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION); > > However, there is no message in logcat wh

[android-developers] How to support Bluetooth optionally?

2013-04-14 Thread limtc
Hi, My game has an optional support for Bluetooth controller. In the Manifest, I have these entries: But it just occurred to me that some Android on-the-stick PC does not have Bluetooth and does not allow my games to be downloaded from Play store. Is there a way to support those devices?

[android-developers] bitmapfun project possible bug

2013-04-14 Thread tsioularisa
i am using the bitmapfun example and the only part of the code that i have changed is in the class imageGridFragment, where i have added the mImageFetcher.clearCache() in the onDestroy() before the call of mImageFetcher.closeCache();. The problem that i have found is that when i launch the app

[android-developers] Re: How to detect if music is playing?

2013-04-14 Thread Doug
http://developer.android.com/reference/android/media/AudioManager.html#isMusicActive() Doug On Saturday, April 13, 2013 5:11:53 AM UTC-7, MobileVisuals wrote: > > Is there any way to detect if music is playing from players like Spotify > and Winamp? -- -- You received this message because you

[android-developers] Google Calendar API: drawbacks of using Gingerbread vs. Ice Cream Sandwich etc...

2013-04-14 Thread John Goche
Hello, I've got a few questions regarding the Google Calendar API for Android. 1. Do I really need to be running Ice Cream Sandwich or later to use the Google Calendar API? The docs seem to imply this but on the other hand I've found some code which works with API 8. I've got a Ginge

[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread Jonathan S
on new AlertDialog.Builder(getApplication());, replaces getApplication() to MainActivity.this On Sunday, April 14, 2013 10:55:42 AM UTC-4, Carlos Calvo wrote: > > Hello, > > I have a ProgressDialog running. Execute method ".dismiss" for destroy > them. > > But when i create a new AlertDialog i

[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
LogCat complete 04-14 19:15:42.780: D/dalvikvm(32486): Late-enabling CheckJNI 04-14 19:15:42.928: I/System.out(32486): Sending WAIT chunk 04-14 19:15:42.928: W/ActivityThread(32486): Application aur.sss is waiting for the debugger on port 8100... 04-14 19:15:43.014: I/dalvikvm(32486): Debugger is

[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread RichardC
Where is the rest of it, you have truncated it too soon. On Sunday, April 14, 2013 5:10:47 PM UTC+1, Carlos Calvo wrote: > > The logcat > > 04-14 18:06:42.043: E/AndroidRuntime(26483): FATAL EXCEPTION: main > 04-14 18:06:42.043: E/AndroidRuntime(26483): > android.view.WindowManager$BadTokenExcept

[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
The logcat 04-14 18:06:42.043: E/AndroidRuntime(26483): FATAL EXCEPTION: main 04-14 18:06:42.043: E/AndroidRuntime(26483): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 04-14 18:06:42.043: E/AndroidRuntime(26483): at android.view.View

[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread RichardC
Show us the Logcat On Sunday, April 14, 2013 3:55:42 PM UTC+1, Carlos Calvo wrote: > > Hello, > > I have a ProgressDialog running. Execute method ".dismiss" for destroy > them. > > But when i create a new AlertDialog i take a exception because the > progessdialog yet still show > > *Exception *"

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-14 Thread Piren
Check the fragment state before showing, it should be Started, if not, keep a flag saying that says this dialog needs to be shown. Check for the flag state during onStart/onResume and show the dialog if needed On Sunday, April 14, 2013 4:25:03 PM UTC+3, William Ferguson wrote: > > I have a Fragm

[android-developers] exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
Hello, I have a ProgressDialog running. Execute method ".dismiss" for destroy them. But when i create a new AlertDialog i take a exception because the progessdialog yet still show *Exception *"Unable to add window -- token null is not for an application" *The code:*

[android-developers] Re: How to link a library whose name does not begin with lib in Android??

2013-04-14 Thread serene
Thanks for the reply. I followed the documentation and created a Android.mk file as follows. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libmyservice.so LOCAL_SRC_FILES := myservice.so include $(PREBUILT_SHARED_LIBRARY) myservice.so is in the same folder as Android.mk.

Re: [android-developers] When to show a dialog from Fragment and when not to

2013-04-14 Thread Harri Smått
Hi, You could try using Fragment.isVisible() to determine whether the fragment is visible and can trigger a dialog. For situations where fragment is in the background you could use a Toast perhaps? -- H On Apr 14, 2013, at 4:25 PM, William Ferguson wrote: > I have a Fragment that fires an a

[android-developers] When to show a dialog from Fragment and when not to

2013-04-14 Thread William Ferguson
I have a Fragment that fires an async task to connect to a remote server. If it fails to connect (eg times out) then I use use a Handler to display a dialog to the user. final DialogFragment newFragment = > AlertDialogFragment.createConnectionFailedDialog(getSupportActivity()); > newFragment.sh

[android-developers] Re: How to link a library whose name does not begin with lib in Android??

2013-04-14 Thread RichardC
You need to read PREBUILTS.html in the NDK docs. On Sunday, April 14, 2013 11:28:23 AM UTC+1, serene wrote: > > > > > > > > > > > > > > > > > I have a basic question on Android build system. I created a shared > library wi

[android-developers] How to link a library whose name does not begin with lib in Android??

2013-04-14 Thread serene
I have a basic question on Android build system. I created a shared library with name myservice (LOCAL_MODULE := myservice) which created a myservice.so under /system/lib I tried to create an application that

[android-developers] Re: Programatically forward current / active call

2013-04-14 Thread Piren
No, you can't. Not in the normal forwarding sense. Forwarding is done at the carrier level, so you can't forward an already incoming call. You can however fake it with a lot of work - Basically use VOIP to create the outbound "forwarded" call and bridge both calls' audio. I've actually done tha