[android-developers] NoClassDefFoundError - Rejecting re-init on previously-failed class
Hi, Please somebody explain me what this error means and how to avoid it. After a while my app Force Closes because of this error: 09-28 12:53:45.746 I/dalvikvm(29489): Rejecting re-init on previously-failed class Lcom/bartat/android/ui/task/AsyncTaskExt; v=0x0 09-28 12:53:45.748 D/AndroidRuntime(29489): Shutting down VM 09-28 12:53:45.755 I/am_crash( 1146): [29489,com.bartat.android.secret,572996,java.lang.NoClassDefFoundError,com.bartat.android.ui.task.AsyncTaskExt,CommandsActivity.java,726] 09-28 12:53:45.755 I/am_finish_activity( 1146): [1079225264,123,com.bartat.android.secret/.CommandsActivity,crashed] 09-28 12:53:45.750 W/dalvikvm(29489): threadid=1: thread exiting with uncaught exception (group=0x40015560) 09-28 12:53:45.752 E/AndroidRuntime(29489): FATAL EXCEPTION: main 09-28 12:53:45.752 E/AndroidRuntime(29489): java.lang.NoClassDefFoundError: com.bartat.android.ui.task.AsyncTaskExt This problem couldn't be solved by reinstalling the app. If I rename the AsyncTaskExt to AsyncTaskExt2 for example then it works again for long. But after a few weeks/months it started to get this error again. What does it mean? Why it is thrown and how to avoid it without renaming the class? Please help me, Tamás -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera.ACTION_NEW_PICTURE
Hi, I would like to listen to Camera.ACTION_NEW_PICTURE broadcast but I can't. I have tried with and without the data scheme and both in emulator and physical device (ICS) IntentFilter filter = new IntentFilter(Camera.ACTION_NEW_PICTURE); filter.addDataScheme(content); Why doesn't it work? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Camera.ACTION_NEW_PICTURE
Hi, It is a broadcast action: http://developer.android.com/reference/android/hardware/Camera.html#ACTION_NEW_PICTURE Tamas On Monday, August 13, 2012 1:07:05 PM UTC+2, Mark Murphy (a Commons Guy) wrote: That is not a broadcast Intent. It is an activity Intent, to be used with startActivity(). -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Camera.ACTION_NEW_PICTURE
I checked what you wrote (the old intent) so I can use this filter now. It works well on emulator but it seems that my HTC doesn't send this broadcast. This is the way of usage on ICS: IntentFilter filter = new IntentFilter(); filter.addAction(Camera.ACTION_NEW_PICTURE); filter.addDataType(image/*); Thanks, Tamas On Monday, August 13, 2012 2:04:37 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Mon, Aug 13, 2012 at 7:58 AM, Tamás Barta bart...@gmail.comjavascript: wrote: No. As I mentioned, the broadcast seems to be sent with only an action string, nothing else. With an uri: (com.android.camera.Util.java) public static void broadcastNewPicture(Context context, Uri uri) { context.sendBroadcast(new Intent(android.hardware.Camera.ACTION_NEW_PICTURE, uri)); // Keep compatibility context.sendBroadcast(new Intent(com.android.camera.NEW_PICTURE, uri)); } Clearly, I am insufficiently awake. My apologies for screwing up yet again. You'll need to trace down who calls that to see whether that is a content:// Uri or a file:// Uri. I doubt that it would be anything else from a scheme standpoint. You might also hunt for apps that implemented receivers for the old undocumented com.android.camera.NEW_PICTURE broadcast and, if you find some, see how they did it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.0 Available! -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it a launcher problem or I do something wrong.
Hi, I create an 4x4 appwidget with minWidth and minHeight set to 250dp as it is suggested in App Widget Design Guidelines: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html It is ok on every phones and phone-sized emulator I have tried but if I test it on a tablet (Xoom or Nexus 7) or on an emulator (resolution: 1280x752 with dpi 160) then the launcher detects it as 3x3 widget. What am I doing wrong? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Volume setting problem
Ping. Nobody can help? On Wednesday, July 18, 2012 9:33:35 PM UTC+2, bt wrote: Hi, I have BroadcastReceiver which listens for PHONE_STATE_CHANGED actions. In my test if phone state is RINGING then I set notification volume to 1 else I set it to 5. I have an observer that listens to changes in Settings.System.VOLUME_SETTINGS[NOTIFICATION]. The following happens. When it is ringing then sets stream volume to 1 (it is ok): 07-18 21:24:56.886: Broadcast received: android.intent.action.PHONE_STATE 07-18 21:24:56.886: Phone state: RINGING 07-18 21:24:56.916: setStreamVolume(5, 1, false) When it is idle then sets stream volume to 5 (it is still ok): 07-18 21:24:59.956: Broadcast received: android.intent.action.PHONE_STATE 07-18 21:24:59.956: Phone state: IDLE 07-18 21:25:00.016: setStreamVolume(5, 5, false) The volume changes well to 1 when phone is ringing but this second change doesn't happen. The volume setting changes only seconds later (the observer will receive this event): 07-18 21:25:03.546: Settings changed: content://settings/system/, refresh: VOLUME And If I get stream value for notification than it will be 1 instead of 5. Do somebody understand why the second call of setStreamVolume doesn't have effect. How can I set volume to work well? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Volume setting problem
Hi, I have BroadcastReceiver which listens for PHONE_STATE_CHANGED actions. In my test if phone state is RINGING then I set notification volume to 1 else I set it to 5. I have an observer that listens to changes in Settings.System.VOLUME_SETTINGS[NOTIFICATION]. The following happens. When it is ringing then sets stream volume to 1 (it is ok): 07-18 21:24:56.886: Broadcast received: android.intent.action.PHONE_STATE 07-18 21:24:56.886: Phone state: RINGING 07-18 21:24:56.916: setStreamVolume(5, 1, false) When it is idle then sets stream volume to 5 (it is still ok): 07-18 21:24:59.956: Broadcast received: android.intent.action.PHONE_STATE 07-18 21:24:59.956: Phone state: IDLE 07-18 21:25:00.016: setStreamVolume(5, 5, false) The volume changes well to 1 when phone is ringing but this second change doesn't happen. The volume setting changes only seconds later (the observer will receive this event): 07-18 21:25:03.546: Settings changed: content://settings/system/, refresh: VOLUME And If I get stream value for notification than it will be 1 instead of 5. Do somebody understand why the second call of setStreamVolume doesn't have effect. How can I set volume to work well? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Notification area remains open on ICS
Nothing happens if I set AUTO_CANCEL. Sorry for the very late answer. On febr. 29, 20:04, TreKing treking...@gmail.com wrote: On Wed, Feb 29, 2012 at 7:52 AM, bt barta...@gmail.com wrote: Is there any solution to close it automatically after click? You have this flag set?http://developer.android.com/reference/android/app/Notification.html#... --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Image on external storage
Nobody can help me? On Mar 5, 12:39 pm, bt barta...@gmail.com wrote: Hi, I would like to display an image from external storage which is 72x72 px. My device has high density. The image view height and width are wrap_content. I got different results if I load the image or use an URL. If I use an URL like this then the result will be about 48x48px. imageView.setImageURI(Uri.fromFile(file)); If I load the bitmap the result is 72x72 px as expected: InputStream is = context.getContentResolver().openInputStream(Uri.fromFile(file)); Bitmap b = BitmapFactory.decodeStream(is, null, null); is.close(); iv2.setImageBitmap(b); You can see the results here: http://dl.dropbox.com/u/51679071/share/facebook.png It would be better if I could use the setImageURI and not to preload the image and I would like to display the image in appwidgets too. Can you tell me what cause the difference and how can I avoid it? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Image on external storage
Hi, I would like to display an image from external storage which is 72x72 px. My device has high density. The image view height and width are wrap_content. I got different results if I load the image or use an URL. If I use an URL like this then the result will be about 48x48px. imageView.setImageURI(Uri.fromFile(file)); If I load the bitmap the result is 72x72 px as expected: InputStream is = context.getContentResolver().openInputStream(Uri.fromFile(file)); Bitmap b = BitmapFactory.decodeStream(is, null, null); is.close(); iv2.setImageBitmap(b); You can see the results here: http://dl.dropbox.com/u/51679071/share/facebook.png It would be better if I could use the setImageURI and not to preload the image and I would like to display the image in appwidgets too. Can you tell me what cause the difference and how can I avoid it? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Notification area remains open on ICS
Hi, My app creates an ONGOING notification and when I click on it an intent is executed which opens an application. On ICS the notification area remains open and must be closed manually. Is there any solution to close it automatically after click? Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multiple APKs installed to the same location
I'd still be skeptical from a security perspective Multiple jurisdictal authorities have approved our file authentication technology. What kind of code do you need? It's game display logic -- take commands from the game server display appropriately. There are hundreds of games and they will not all fit on a cell phone. Players must be able to selectively download them. An individual game consists of code (Game.so) and assets, all contained within a .zip file. It's not something you could encode into some bytecode like instruction language or dsl? It doesn't matter that it's C++ code because it's running in a walled- off sandbox anyway. The worst-case scenario is someone else's app tries to load run our game code, but that will fail because they cannot authenticate with our servers. That doesn't mean Google will let me do it, just that it's not the problem many think it is. -BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Multiple APKs installed to the same location
Can I create multiple .apk's that install ADDITIVELY to the same /data/ apps/MyApp location? In my particular case I have add-on modules that are built as C++ NDK share objects: Feature1.so, Feature2.so, Feature3.so, etc. I don't know what these will be ahead of time and the user must be able to selectively install only those features they want. I'm pretty sure iOS does this with in-app purchases, but not sure how to do it on Android? Thanks, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multiple APKs installed to the same location
Thanks, John. That's unfortunate. How about downloading FeatureX.so to the Downloads directory, calling dlopen(featurex.so), then calling the additional library functions? Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multiple APKs installed to the same location
Good point about security, but this isn't a general consumer application. The additional libraries can only be downloaded from our internal servers and only over our internal wi-fi, plus they're hashed verified with our internal security server prior to execution. We have to run on iOS too, which I believe is even more restrictive, so we'll probably need to consider more alternatives. But the ideal solution would've been some way for us to incrementally add shared libraries to our app's install directory. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can I have multiple .apk files?
Hello. I would like my application (video game) to have downloadable levels. So the user would download the application and select which levels they'd like to play from within the app, which would download them to the device and then play. Basically I want one level's resources (bitmaps, sounds, etc.) per .apk, so the game is infinitely expandable. I currently load all resources by looking into my .apk with libzip and libpng, so it'd be great if I could just point at a different .apk to load other levels. Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I have multiple .apk files?
Thanks, Kris! This is a vertical application which doesn't go through the Android Market. Levels will be downloaded over local wi-fi and yes, there are a lot of them and they're huge. People won't want more than a few at a time taking up space on smaller devices. So do I just need to have common company info, etc in the .apks so Android will let me access them? Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I have multiple .apk files?
Since I access bitmaps, etc. within the .apk from native C++ code (NDK) using libzip, all I really need is a path to the downloaded .apk so I can pull those resources out on-demand. The .apk doesn't even need to be installed AFAIK, I just need to have read privileges. Is there an SDK call that'll give me the device's Downloads directory? Or better yet, can I specify a filename and ask Android to locate it and return the full path? Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I have multiple .apk files?
They could certainly be .zip files as far as my app is concerned, but as I understand it, in order to be device-agnostic I cannot assume they have an SD card and cannot assume any particular download directory (i.e. the default Android Market location). I don't even think I can assume I'll have the ability to create a download directory in any particular location (write access assumption). So the only safe option I've heard about is asking the OS where its Downloads folder is located and assuming my levels are contained within. As mentioned, this is a vertical-market application, which also means they will not have Internet access while the devices are in use (it's a security/regulatory thing). They will either need to browser our internal file server to find the .apk/.zip they want download it, or we'll need to write a small app that lets them choose what to download. I'm thinking either way the files wind up in the default Downloads folder -- I just need to programatically determine where that is and ensure I have read access to the files therein. Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I have multiple .apk files?
So if it's just a regular .zip file that's downloaded, can I have access to it? I don't need write access to the file, just read access to pull the bitmaps out. Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I have multiple .apk files?
Download it yourself, using DownloadManager (API Level 9) or HttpClient. Thanks, Mark. What if the user downloaded it with their browser or another application within our company (not my game) downloaded it? Do I still have read access then? And how do I ask Android for the path to the file so I can open it? Thx, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Home screen icon dimensions
Hi, I would like to display application icons in my app with the same dimension as they are visible on the home screen. Is there any way to get that information. I mean it would be fine if there were an attribute or style I could use, for example: ImageView layout_width=?android:attr/preferredIconWidth layout_height=?android:attr/preferredIconHeight/ Thanks, Tamas -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activities
Thank you TreKing. This is exactly what I was looking for. It solved an other problem of mine too. All I have to do is set an empty taskAffinity for activity D. Tamás On Jan 10, 4:45 pm, TreKing treking...@gmail.com wrote: On Tue, Jan 10, 2012 at 9:01 AM, bt barta...@gmail.com wrote: It is not good, because if A exists in the task and I launch D then A remains on the stack, so the result is A, D. This is why I mentioned the task affinities. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Activities
Hi, I have a problem I can't solve, please help me. My application has an Activity A for example. I have an activity D with dialog theme. This activity starts an other activity with startActivityForResult. I would like to open this activity D from an appwidget from the home screen. If I click on the widget then it is possible that D opens on the top of A. I would like to avoid it but I can't find a way to do that. FLAG_ACTIVITY_CLEAR_TASK cannot be used because it needs API 11. launchMode=singleInstance doesn't work because it doesn't enable to call startActivityForResult. Is there any way to launch D with a clear stack and to call startActivityForResult from it? Thanks, Tamás -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activities
It is not good, because if A exists in the task and I launch D then A remains on the stack, so the result is A, D. On Jan 10, 3:07 pm, TreKing treking...@gmail.com wrote: On Tue, Jan 10, 2012 at 4:48 AM, bt barta...@gmail.com wrote: Is there any way to launch D with a clear stack and to call startActivityForResult from it? http://developer.android.com/reference/android/content/Intent.html#FL... ? Also look into task affinity. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL out of memory
Hello. My game is starting to run out of OpenGL memory and I can't seem to detect GL_OUT_OF_MEMORY at LOAD time -- only at RUN/RENDER time. I'm simply calling glGetError() after glTexImage2D() when Loading and after glBindTexture() when rendering. Unfortunately when I detect the error in my RenderNextFrame() function, it's already too late and (apparently) unrecoverable -- the system locks up (don't know why) and Android forces it closed. Is there a way to check OpenGL memory as I load/create textures rather than waiting until trying to render them to fail? Thanks, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Pause/Resume vs. Stop/Start
Hello. I'm hoping to get a better handle on these callbacks in the Activity life-cycle. One would think that Pause/Resume is one thing and Stop/ Start is another, but on Android it seems there is no instance of Pause without Stop, and no instance of Resume without Start. Or is there some use case where Pause/Resume can occur outside of Stop/ Start? If the two pairs do always occur together then the only difference is *when* they occur. In what scenarios would one need to distinguish Activity.Pause from Activity.Stop, since they both always happen? Thanks, BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gesture help
Hi, I would like to switch screens by swiping left and right. I have a ScrollView inside a GestureOverlayView and everything is OK until I use a SeekBar. But there are SeekBars inside the scroll view and if I change the seekbar value with my finger by moving it to the left or right then the gesture view also detects swiping gestures and changes screens. How can I stop delegating ontouch events when seekbar is changing? Or are there any other solution? Please help me, Thanks, Tamás -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Notification question
Hi, Can somebody explain me something? When I create a Notification I set a contentView with buttons. I have set onClickPendingIntent for every buttons and I have to set contentIntent for the notification too. It seems that this feature works differently on different devices: - on some devices the contentIntent action is executed when I click on a button (my Desire with Android 2.3.7) - on some devices the button intent I click on is executed (my Xoom with Android 3.1) - on some devices both the contentIntent and button intent are executed What cause this differences? Can I do something If I would like that only button intents be executed? Thanks, Tamás -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom header in dialog themed activity
Sorry, the links of images were bad: https://picasaweb.google.com/109616049711402953088/Dev?authuser=0feat=directlink On Nov 2, 1:16 pm, bt barta...@gmail.com wrote: Hi, I try to create custom header for my activity but I have problems with it. My activity has a Theme.Dialog theme so normally looks like it: https://picasaweb.google.com/lh/photo/Q4RtmPYjkVEL2NXzV9lC8Q?feat=dir... When I call requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); on the onCreate method of my activity (before setContentView) then it changes header but it makes a padding around the content of my activity. The activity background is white so I don't know what is this black padding, why it is shown when I would like to set custom header and how to remove it: https://picasaweb.google.com/lh/photo/aPD_vygbcUioZNMoTkhOKQ?feat=dir... It doesn't matter if I set a layout for the header or not. Thanks, Tamás -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom header in dialog themed activity
Hi, I try to create custom header for my activity but I have problems with it. My activity has a Theme.Dialog theme so normally looks like it: https://picasaweb.google.com/lh/photo/Q4RtmPYjkVEL2NXzV9lC8Q?feat=directlink When I call requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); on the onCreate method of my activity (before setContentView) then it changes header but it makes a padding around the content of my activity. The activity background is white so I don't know what is this black padding, why it is shown when I would like to set custom header and how to remove it: https://picasaweb.google.com/lh/photo/aPD_vygbcUioZNMoTkhOKQ?feat=directlink It doesn't matter if I set a layout for the header or not. Thanks, Tamás -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth HID profile in 3.1
Hi, Does anyone know if it is possible to use bluetooth HID profile in android 3.1? Android claims HID support is there for both USB and Bluetooth, but I can't really see how to use it in the API. The device connects properly as a HID device when paired, but how do I get a handle to it in the API? /BT -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] abd shell USB debugging
Hello, I have one question, I'm testing android devices, and is it possible abd command Enable or Disable USB debugging mode ? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en