Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
Funny, today I tried it again and it only showed its own logs. Yesterday, it showed all logs which I verified by starting another app's Activity. There is probably a bug somewhere where the permission is still granted somehow. On Friday, July 13, 2012 3:46:58 PM UTC+8, BoD wrote: It is supposed to only show its *own* logs. And I confirm this behavior with CatLog on my own JB device. If you have a different behavior well I guess it's a bug ;) -- B.LUBEK On 07/13/2012 02:39 AM, Zsolt Vasvari wrote: What are we talking about this in this thread? I just tried the CatLog app on my official build (JRO03C) build on my Galaxy Nexus and it shows the logcat as it always has. On Friday, July 13, 2012 8:09:50 AM UTC+8, Mark Murphy (a Commons Guy) wrote: On Thu, Jul 12, 2012 at 8:02 PM, Peter Sinnott psinn...@gmail.com wrote: 3 devices with ICS ( HTC Desire / HTC One X / Asus Transformer ) and none of them seem to do it. Probably something obvious I'm doing wrong. Either that, or it's not universal. I just gave it a few tries on a Samsung Galaxy Tab 2 7.0, also running ICS, and could not seem to get it to trigger. Which is why we need some other trigger mechanism that isn't a button-ish form of the game Twister. The concept (let the user send system logs to who they wish) is sound, but it has to be something reasonable for users to accomplish. -- 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 3.8 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 -- BoD -- 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] Twitter callback URL is not working properly
On Sat, Jul 14, 2012 at 12:04 AM, Rahul Radhakrishnanunnithan K rahu...@whiteovaltechnologies.com wrote: Iam trying to create android app integrated with twiiter,and i registered my application with twitter and i got consumer key and consumer secret and call back URL is http://twitter.com when i run the application affter successful authentication it will not redirect to my application it redirect to the mobile twitter site .if solution for this thanks in advance Ask a group or forum dedicated to Twitter. - 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
Re: [android-developers] Android CheckBox
On Fri, Jul 13, 2012 at 11:57 PM, Deepa M deepam8...@gmail.com wrote: How to delete the data from database depending on Checkbox status of respective data!!! http://www.catb.org/~esr/faqs/smart-questions.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
Re: [android-developers] track notification of facebook and twitter
On Fri, Jul 13, 2012 at 6:42 AM, Aashish kumar testchetu...@gmail.comwrote: how to track the notification of the facebook and twitter in android? http://www.catb.org/~esr/faqs/smart-questions.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
Re: [android-developers] Android ADT r20 Bug with Eclipse
It's fixed in ADT 20.0.1 which should be out soon. On Jul 13, 2012 6:41 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Its clearly a bug on last ADT update. You can safely remove those error messages either from the Problems view, or clicking on one with right button and selecting Clear lint messages. It is a bit annoying, but a reasonable workaround while they release a fixed version. On Jul 13, 2012 2:28 AM, Rafael Timmerberg raf...@googlemail.com wrote: Since the latest ADT update I have issues with Errors raised from Eclipse, although they are fixed and saved like this: Syntax error, insert ; to complete Statement. Usually I have to clean the Project or Cut the whole function to paste it again to get that error resolved. Has someone an idea, what is causing this issue? -- 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 -- 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 -- 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] Android CheckBox
here is the the code to delete all sms contact calender on the selection of checkbox might be you get some idea . http://code.google.com/p/deleteall/source/search?q=origq=btnG=Search+Trunk -- 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: Eclipse Android Virtual Device on the retina MacBook Pro
There is a bug open for this. http://code.google.com/p/android/issues/detail?id=33383 Seb -- 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] ADT hangs on eclipse
eclipse hangs if i switch to the logcat view. i hope this is same problem https://groups.google.com/forum/#!topic/android-developers/PCg83KFK-cE. so i should wait for ADT 20.0.1 and hope they have fixed it. -- 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] Re: adjustPan and adjustResize
https://lh6.googleusercontent.com/-vnw8Mj5o6YE/UAEu6ErA20I/AHo/UY2DHj53Mnc/s1600/device-2012-07-14-113249.png https://lh6.googleusercontent.com/-WUaK3nEKrHo/UAExbo5m-qI/AHw/kTi0alSPuLs/s1600/device-2012-07-14-113331.png need to make something like this, i need to resize views and extend edittext when enter text ... -- 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] using the contact picker with multi-selection
i want know if we can use the contact picker with multi-selection? using Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI) allows me to only select one contact, is there any way to solve this without doing my own checklist with my own cursor? thanks in advance -- 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: Application not visible in 'complete action using ...' after the update. Can not be reverted.
Unfortunately, that is not the case. 'Open dialog' shows up but my application is missing there. On Friday, July 13, 2012 6:51:02 PM UTC+2, Nobu Games wrote: Since not everybody is affected by that, my guess is that these people accidentally checked the remember my decision checkbox. Ask them whether an open with dialog pops up at all or whether a specific PDF viewer immediately shows up. If the latter is the case, you can tell them how to undo that open with default setting. -- 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] Goolge play! store crashes when showing GoodNews page
Hi, at least two of my users have reported that the Google play! store on their Jelly Bean installation is force closing when bringing up the page of my app (https://play.google.com/store/apps/details?id=com.gettingmobile.goodnews). Now I fear that this is a general Jelly Bean problem which may turn down revenues. Any ideas what could be the cause here? Thanks and regards Sven -- 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] Does it make sense to recycle views in a pager with not scrollable grid views?
I'm wondering if it makes any sense to use recycling functionality in this case: ViewPager, where each page is a fragment with a GridView, which fits in the page (all items are visible, no scrolling). The reason of the question is that I would like to switch between 2 different (similar) XMLs to inflate the items in the grid view. And, using recycling, it's probably not possible. But I think recycling is not necessary in this case. -- 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] Showing Action Bar ONLY on tablet?
I have a kids painting app that I would like to do full screen. The app itself has minSdk of 7 and targetSdk of 13, and this allowed the menu icon to show in navigation bar (below) for Android 4 devices if I switch off Action Bar. * * http://android-developers.blogspot.sg/2012/01/say-goodbye-to-menu-button.html Unfortunately, this only works in phone and not tablets! So when in full screen mode, the menu is shown for phones but not tablets - unless I am able to switch off Action Bar for phones but switch on for tablets! Is there a way to do so? Note that I need to support minSdk 7 so there is no ActionBar class. Thanks for any help! -- 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] Different item types in Gallery?
I need 2 different item types in a Gallery. They are quite similar, but have a different background and different font in one textview. How do I do it? I tried inflating with different XML, and also changing the view programmatically, and in both cases, it works, but after scrolling a while, all items get the same layout. Thanks in advance. -- 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] Different item types in Gallery?
On Sat, Jul 14, 2012 at 10:41 AM, user123 ivanschu...@gmail.com wrote: I need 2 different item types in a Gallery. They are quite similar, but have a different background and different font in one textview. How do I do it? I tried inflating with different XML, and also changing the view programmatically, and in both cases, it works, but after scrolling a while, all items get the same layout. You probably forgot to override getViewTypeCount() and getItemViewType() on your Adapter. -- 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 3.8 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
Re: [android-developers] Showing Action Bar ONLY on tablet?
On Sat, Jul 14, 2012 at 9:48 AM, limtc thyech...@gmail.com wrote: I have a kids painting app that I would like to do full screen. The app itself has minSdk of 7 and targetSdk of 13, and this allowed the menu icon to show in navigation bar (below) for Android 4 devices if I switch off Action Bar. * If you have a kids painting app, please put your menu inside the actual app's UI itself, as many games do. -- 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 3.8 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
Re: [android-developers] Does it make sense to recycle views in a pager with not scrollable grid views?
The built-in implementations of PagerAdapter do not recycle AFAIK. On Sat, Jul 14, 2012 at 8:51 AM, user123 ivanschu...@gmail.com wrote: I'm wondering if it makes any sense to use recycling functionality in this case: ViewPager, where each page is a fragment with a GridView, which fits in the page (all items are visible, no scrolling). The reason of the question is that I would like to switch between 2 different (similar) XMLs to inflate the items in the grid view. And, using recycling, it's probably not possible. But I think recycling is not necessary in this case. -- 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 -- 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 3.8 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] Re: Problem installing the ADT Plugin for Eclipse
yh just disable your firewall in the control panel and in your ANTI-VIRUS -- 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] Showing Action Bar ONLY on tablet?
Hi, You don't understand. This is for very young kids - all the menus are for parents (save pictures, etc). The canvas needs to be full screen. In the past this works perfectly as the menu is in a hard button. On Saturday, July 14, 2012 11:31:23 PM UTC+8, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 9:48 AM, limtc thyech...@gmail.com wrote: I have a kids painting app that I would like to do full screen. The app itself has minSdk of 7 and targetSdk of 13, and this allowed the menu icon to show in navigation bar (below) for Android 4 devices if I switch off Action Bar. * If you have a kids painting app, please put your menu inside the actual app's UI itself, as many games do. -- 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 3.8 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
Re: [android-developers] ADT hangs on eclipse
That is an entirely different issue, so please do file a bug: http://code.google.com/p/android/issues/entry?template=Tools%20bug%20report On Sat, Jul 14, 2012 at 1:38 AM, BeEnder philipp.bender...@googlemail.comwrote: eclipse hangs if i switch to the logcat view. i hope this is same problem https://groups.google.com/forum/#!topic/android-developers/PCg83KFK-cE. so i should wait for ADT 20.0.1 and hope they have fixed it. -- 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 -- 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] Showing Action Bar ONLY on tablet?
On Sat, Jul 14, 2012 at 11:45 AM, limtc thyech...@gmail.com wrote: You don't understand. I believe that I understand far more than you give me credit for. all the menus are for parents (save pictures, etc). If you do not want the very young kids pressing on a menu on the screen, then do not have a menu on the screen, regardless of where it would be on the screen. You somehow think that very young kids will somehow not press a menu button in the system bar -- IMHO, you are mistaken. The canvas needs to be full screen. That does not preclude having some sort of menu button in a corner. It also does not preclude bringing up a menu based on some other trigger (certain tap sequence in a corner, certain gesture, etc.). -- 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 3.8 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] Re: Forcing lower resolution drawables on phones with big screens and small RAM
How many items are in your animation list? If it is really, really huge I'd add some streaming logic to your animation player, so older frames get recycled while future frames are loaded in the background. That way you have absolute control over a moving window of frames and you could size that window according to the available amount of free memory. You wouldn't risk OOM crashes on any device with that technique. Alternatively you could create a video based on your frames and play that one back instead. On Friday, July 13, 2012 10:54:46 PM UTC-5, Matt Schoen wrote: Hey there, I've tried to find info on this, but it seems like a pretty esoteric case. I'll admit that I'm probably completely off-base to start, but the app is 99% done, so I'd rather not change my implementation from it's current state. I have an animation that I'm using a big list of drawables to display, and while it works fine on phones with enough RAM, I get VM out of memory crashes on devices with basically 512 MB RAM and below. I've found the getMemoryClass() function, which seems to report 32 for a device with 512MB. I tried overriding the density value, which successfully avoided the crash, but also resized my whole view! All I want is to be able to programmatically tell the view framework to default to the low-res images. Is this possible? -- 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] Showing Action Bar ONLY on tablet?
If you do not want the very young kids pressing on a menu on the screen, then do not have a menu on the screen, regardless of where it would be on the screen. You somehow think that very young kids will somehow not press a menu button in the system bar -- IMHO, you are mistaken. I know they will - but what can we do? The navigation bar is already there. Not having a menu is another option (our iPhone version use shake to show menu), as other options you mentioned...we have tried. The canvas needs to be full screen. That does not preclude having some sort of menu button in a corner. It also does not preclude bringing up a menu based on some other trigger (certain tap sequence in a corner, certain gesture, etc.). 1st option still take up space in canvas. The trigger part is interesting. Tried shake but user does not like. Gesture will interfere with the painting as the kids constantly use their fingers to draw stuffs, so you can't be sure whether it is a dot or long press, a multitouch gestures (to draw lines) or trying to execute a command. Anyway, do you know whether it is possible to show Action Bar only on tablet? That's the solution I am currently looking for. -- 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: Add a progressbar to notification without a layout file for RemoteViews ?
i've been trying to find out how to do a progressbar programmatically for months. no help on stack overview, all the answers involve a layout file. my game uses no layout files, in fact i deleted the folder. i tried creating an xml file just to declair the bar, but android erases the file on compilation, probobly because my app doesn't reference it. -- 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] Maybe I am going about this all wrong.
Let me put an idea out there that I am thinking about in my head, What are the odds of an app running all the time in the foreground only minimized rather then as a service. Kinda like a clock or antivirus. I know for a fact that these things can be done since you need to look no further then (almost) any screen on your android to see the clock ticking away. Still there is a physical app behind it. Something you can go to and view in a bigger scale. That is all I am trying to accomplish. -- 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] Showing Action Bar ONLY on tablet?
On Sat, Jul 14, 2012 at 12:34 PM, limtc thyech...@gmail.com wrote: That does not preclude having some sort of menu button in a corner. It also does not preclude bringing up a menu based on some other trigger (certain tap sequence in a corner, certain gesture, etc.). 1st option still take up space in canvas. Put it there anyway. Anyway, do you know whether it is possible to show Action Bar only on tablet? That's the solution I am currently looking for. Your solution is unsuitable for production apps. It may not work reliably today. It will not work reliably in the future. You were already told, personally, by a Google engineer, not to do this -- quoting Ms. Hackborn: The menu at the bottom is for compatibility with old applications. You should not be relying on it with new applications. Put an affordance somewhere in your UI to invoke this thing. The menu button is no longer a guaranteed affordance. You even claim to have read what she wrote, as you replied to her message. Many well-rated finger paint applications for Android, specifically for use by very young kids, use on-screen controls, as you can tell if you research your competition. -- 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 3.8 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
Re: [android-developers] Maybe I am going about this all wrong.
On Sat, Jul 14, 2012 at 12:45 PM, Cythes cytheshic...@gmail.com wrote: What are the odds of an app running all the time in the foreground only minimized rather then as a service. That will not work reliably. Kinda like a clock or antivirus. I know for a fact that these things can be done since you need to look no further then (almost) any screen on your android to see the clock ticking away. That is part of the firmware. You are certainly welcome to create your own modded Android ROM. -- 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 3.8 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] creating a progressbar programmatically
i'd like to create a progressbar programmatically, that is not using a layout file. my app uses no layout files and runs with the layout folder deleted. all the progressbar examples i've seen involve a layout file, including responces to this question by others on stack overflow? i don't think the answerers knew what programatically meant. it means no layout files. -- 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] Maybe I am going about this all wrong.
What about just writing a patch for the OS and including it in the package? Or is that next to unheard of? On Saturday, July 14, 2012 12:50:17 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 12:45 PM, Cythes cytheshic...@gmail.com wrote: What are the odds of an app running all the time in the foreground only minimized rather then as a service. That will not work reliably. Kinda like a clock or antivirus. I know for a fact that these things can be done since you need to look no further then (almost) any screen on your android to see the clock ticking away. That is part of the firmware. You are certainly welcome to create your own modded Android ROM. -- 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 3.8 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
Re: [android-developers] Maybe I am going about this all wrong.
That's right... good luck getting Google to accept your patch you might try one of the common mods, who are more likely to accept changes On Jul 14, 2012 1:05 PM, Cythes cytheshic...@gmail.com wrote: What about just writing a patch for the OS and including it in the package? Or is that next to unheard of? On Saturday, July 14, 2012 12:50:17 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 12:45 PM, Cythes cytheshic...@gmail.com wrote: What are the odds of an app running all the time in the foreground only minimized rather then as a service. That will not work reliably. Kinda like a clock or antivirus. I know for a fact that these things can be done since you need to look no further then (almost) any screen on your android to see the clock ticking away. That is part of the firmware. You are certainly welcome to create your own modded Android ROM. -- 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 3.8 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 -- 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] Maybe I am going about this all wrong.
On Sat, Jul 14, 2012 at 1:04 PM, Cythes cytheshic...@gmail.com wrote: What about just writing a patch for the OS and including it in the package? Or is that next to unheard of? If by the package you mean your APK, that is not supported. -- 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 3.8 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
Re: [android-developers] creating a progressbar programmatically
On Sat, Jul 14, 2012 at 12:55 PM, firebreather michaelirvingbr...@gmail.com wrote: i'd like to create a progressbar programmatically, that is not using a layout file. new ProgressBar(this) my app uses no layout files That is not a good idea, but you are welcome to do so. Just do not expect much help, because that is a very unusual development technique, one that I imagine less than 0.1% of Android developers use for much of their UI. -- 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 3.8 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
Re: [android-developers] connectivity of android appliacation with sqllite
Though for future mods / more modularity, it might not be a wholesale bad idea. On Jul 13, 2012 2:29 PM, Justin Anderson magouyaw...@gmail.com wrote: You only really need a content provider if you are wanting to provide data between different applications... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 12, 2012 at 10:32 PM, ashok chakravarthy ashoki...@gmail.comwrote: go through the content provider http://developer.android.com/guide/topics/providers/content-providers.html On Thu, Jul 12, 2012 at 1:18 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: On 02/07/12 13:34, Ashu wrote: can we connect a android application to sqlite database just like a connectivity of mysql to java code,, No plz help me ,i am new to android -- 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 -- 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 -- 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 -- 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] Showing Action Bar ONLY on tablet?
On Sat, Jul 14, 2012 at 6:48 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 14, 2012 at 12:34 PM, limtc thyech...@gmail.com wrote: That does not preclude having some sort of menu button in a corner. It also does not preclude bringing up a menu based on some other trigger (certain tap sequence in a corner, certain gesture, etc.). 1st option still take up space in canvas. Put it there anyway. Mark, with all due respect, don't go this way. Don't succumb to the arrogance of thinking you can design limtc's app for him. I have experience with a broadly similar type of app as his. I can tell you you can't always stuff controls to the screen, just because someone somewhere at Google made an arbitrary decision to exclude off-screen controls. Sometimes on-screen controls get in the way, sometimes they break immersion, sometimes there is no good way left to bring them up if you hide them (this probably happens more often than you think) sometimes there are other reasons neither you nor I have ever thought of. There are work-arounds but they are just that - work-arounds. Bringing up UI is a fundamental concept, especially on mobile platforms where screens aren't big enough for keeping UI displayed all the time. It serves nobody if one app has an on-screen button to bring up UI, another does it via a shake and yet another uses an obscure gesture because it uses every other possible option for something else. The Menu button was a uniform way to do something that 90% of apps have or want to do. Now everybody has been left to their own devices. As I haven't ever heard pretty much *any* reason for that, good or bad, I tend to think dumping it was rather a boneheaded idea. Your solution is unsuitable for production apps. It may not work reliably today. It will not work reliably in the future. The final call on this hasn't been done for us yet, but I'm telling you - if need be, I'd rather have an app that works (and sells) great for a year on a current Android version and possibly deteriorates afterwards, than something that's clumsy and counterintuitive from the get-go but can keep up its clumsiness unchanged to Android 38.3 or whatever the current version will be in 2035. I'd hate to have this decision pushed onto me but that's what I'd prefer in that case. -- 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] Starting New Activities
I am a first time developer. I am trying to make an app but so far, I cannot start another activity that I need. The way my apps should work is that when a button is clicked it starts a new activity. However, my app is not doing that even though the code is based off of a tutorial's code. Can someone please help me?! -- 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] Digest for android-developers@googlegroups.com - 25 Messages in 15 Topics
Sent from my Verizon Wireless 4G LTE Smartphone android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - Safe to add Fragment into ListView? [2 Updates] http://groups.google.com/group/android-developers/t/66690ba3b9719bd9 - create Config file - URGENT please [2 Updates] http://groups.google.com/group/android-developers/t/d977e17106110978 - Associate app with Email attachement [1 Update] http://groups.google.com/group/android-developers/t/3b3d12c51f9b0b14 - Receiver [2 Updates] http://groups.google.com/group/android-developers/t/dcf3a1413cc3ed04 - Ads on my game, Where to start learning? [2 Updates] http://groups.google.com/group/android-developers/t/d889c24f37c875ba - Conditional PreferenceScreen [1 Update] http://groups.google.com/group/android-developers/t/6dac1c595476e7fd - Map API : getMaxZoomLevel and satellite mode [6 Updates] http://groups.google.com/group/android-developers/t/96829fa039265ae9 - sync adapter [1 Update] http://groups.google.com/group/android-developers/t/380bc0d4682fac40 - NullPointerException android.graphics.Bitmap.createBitmap(Bitmap.java:468) [1 Update] http://groups.google.com/group/android-developers/t/ae63937de845da5f - How to know the request is from Android 4.0 phone or Android 4.0 Tablet? [1 Update] http://groups.google.com/group/android-developers/t/1d6c06b1edee6508 - Need help for thread cancelable queue pattern. [1 Update] http://groups.google.com/group/android-developers/t/6277b701817eeaff - how to know that headset is plugged in? [1 Update] http://groups.google.com/group/android-developers/t/22cc8e19ad734045 - convert Byte value to Image [1 Update] http://groups.google.com/group/android-developers/t/d16978b02f4544d5 - Image scaled, scroll, zoom, without margin [2 Updates] http://groups.google.com/group/android-developers/t/45acc01c434ac0f5 - unable to resolve static method while generating jasper report suggestion needed... ? [1 Update] http://groups.google.com/group/android-developers/t/b36959654b88a03c = Topic: Safe to add Fragment into ListView? Url: http://groups.google.com/group/android-developers/t/66690ba3b9719bd9 = -- 1 of 2 -- From: spotleo l...@spotleo.com Date: May 14 06:15AM -0700 -- 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=enattachment: index_3kb.jpeg
[android-developers] org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG {http://schemas.xmlsoap.org/wsdl/}wsdl:definiti
I get this error at this line ; androidHttpTransport.call(SOAP_ACTION, soapEnvelope); while consuming a web service connection to sapserver. code doesnt give error but it dont return anything, but it should be return test string. please help. thanks. M.T. public class RealConnectionTrialActivity extends Activity implements OnClickListener { final static String METHOD = ZpcisMuratkWs01; final static String NAMESPACE = urn:sap-com:document:sap:soap:functions:mc-style; private String SOAP_ACTION = NAMESPACE+METHOD; // NAMESPACE + method name final static String SERVICEURL = http://pcissp09.pcis.com.tr:8090/sap/bc/srt/wsdl/sdef_ZPCIS_MURATK_TICKET/wsdl11/ws_policy/document?sap-client=900 ; private static final String USERNAME = ; private static final String PASSWORD = ; SoapObject request = new SoapObject(NAMESPACE, METHOD); request.addProperty(Param1, param1.getText().toString()); request.addProperty(Param2, param2.getText().toString()); SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); soapEnvelope.setOutputSoapObject(request); AuthTransportSE androidHttpTransport = new AuthTransportSE(SERVICEURL, USERNAME, PASSWORD); androidHttpTransport.debug = true; soapEnvelope.dotNet = true; //HttpTransportSE aht = new HttpTransportSE(SERVICEURL); try { androidHttpTransport.call(SOAP_ACTION, soapEnvelope); //SoapObject response = (SoapObject) soapEnvelope.getResponse(); SoapPrimitive response = (SoapPrimitive) soapEnvelope.bodyIn; returntext.setText(response.toString()); } catch (IOException e) { e.printStackTrace(); } catch (XmlPullParserException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } AuthTransportSEclass is ; package com.realconnection; import java.io.IOException; import org.ksoap2.transport.HttpTransportSE; import org.ksoap2.transport.ServiceConnection; import org.ksoap2.transport.ServiceConnectionSE; public class AuthTransportSE extends HttpTransportSE{ private String username; private String password; public AuthTransportSE(String url, String username, String password) { super(url); this.username = username; this.password = password; } protected ServiceConnection getServiceConnection() throws IOException { ServiceConnection midpConnection = new ServiceConnectionSE(url); addBasicAuthentication(midpConnection); return midpConnection; } protected void addBasicAuthentication(ServiceConnection midpConnection) throws IOException { if (username != null password != null) { StringBuffer buf = new StringBuffer(username); buf.append(':').append(password); byte[] raw = buf.toString().getBytes(); buf.setLength(0); buf.append(Basic ); org.kobjects.base64.Base64.encode(raw, 0, raw.length, buf); midpConnection.setRequestProperty(Authorization, buf.toString()); } } } -- 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] Bluetooth sniffing
Here's what I did with my Samsung Galaxy S3: adb shell shell@android:/ $ hcidump /system/bin/sh: hcidump: not found On Wednesday, July 11, 2012 3:41:57 AM UTC-5, the_edge123 wrote: On 10/07/2012 17:38, bob wrote: I'm seeing some Bluetooth weirdness with Android. Anyone know if there is a practical way to sniff Bluetooth packets? Or are there any other good tools for debugging Android Bluetooth? You may try to use the HCI commands (hcidump and so on) under the ADB shell if they are available. - Fabien -- 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] Tokens
Hi, I have to make an app where i send my device token to a server. The server is a Push server that will push notifications to the mobile device later. My question is; What are tokens and how do you create them? Does the server create my token or who? I know that for the Facebook API Facebook makes the token for you. So does every token creation work like that? -- 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] How to prevent resizing and relayout the window when soft keyboard displaying
I show an edit dialog in an activity, when the soft keyboard displaying, the window of the activity will be resized to too samll which looks awful. I don't want the window of the activity be resized and layout. I just want the keyboard can cover on the activity window and the dialog move to the top so that soft keyboard have room to show. I have tried to use *android:windowSoftInputMode=x* in the manifest, but there are no one mode which fit my situation. I also found the similar questionhttp://stackoverflow.com/questions/5180789/android-how-to-prevent-resizing-the-window-when-displaying-the-virtual-keyboar, but it did't solve my problem. *EDIT:* I have tried setImeOptions and also getWindown().setFlags but it still did't worked, Any advice will be very appreciated -- 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] backend for app?
is there a better backend for apps? i know php and mysql. should i just go with what i know? -- 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: newbie question
Hi, thanks for your reply. I've tried this already. I read somewhere else to clean it and rebuild it. I can clean it, it doesn't hep, but I cannot rebuild it (it is grey and cannot be clicked). Daniel On Thursday, July 12, 2012 10:30:44 AM UTC+3, Ali Chousein wrote: Try cleaning your project (Project-Clean) and see if it fixes the errors. If you're getting errors right after you create a project, cleaning it helps in most of the cases. - Ali Chousein https://play.google.com/store/apps/details?id=com.apps.social_nav https://play.google.com/store/apps/details?id=com.apps.weather_buddy http://www.paygol.com/android/implementation -- 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] swf file not playing in androide 4.0.3 on HCL ME U1 device.
simply open a swf file on browser it not showing swf file. and also trying to open swf file through webview also not working. -- 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] AudioGroup and STREAM_MUSIC stream
I have implemented a kind of VoIP application using the AudioGroup and AudioStrem classes. It is working fint. My problem is that all the received audio is routed to the STREAM_VOICE_CALL speaker. I want to route the audio from some calls to the STREAM_MUSIC speaker. I have tryed to set the AudioManager mode and the Speakerphone on and off without obatining my goal. Any suggestion how I can do this ? Thanks -- 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] newbie question
Hi, thanks for your reply. I know you are right and R class should be autogenerated, but it doesn't. The gen folder is empty. Daniel On Thursday, July 12, 2012 10:46:49 AM UTC+3, Fran wrote: R is an autogenerated class. You should have a gen folder inmediatly below your project, and an R.java file there below your project's package name. If the file is not being generated, may be there is some other problem with your installation. Google for R cannot be resolved into a variable, there is a lot of answers on stackoverflow from people with similar issues. Maybe someone can fit your problem. Regards, On 11/07/12 13:43, ideaman wrote: Hi, I have installed Eclipse Juno 4.2 the Android SDK the Eclipse plugin and have Java 7 update 3 and Java 6 update 30 Everything seems ok, besides one small problem, it doesn't work. I create a new Android project and then I have the following errors: on the Android Manifest.xml I have 2 of these errors: com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Users\Daniel\workspace\Talk1\AndroidManifest.xml: The markup in the document following the root element must be well-formed. on the mainActivity .java I have the following error: in this line = setContentView(R.layout.activity_main); I see on the side R cannot be resolved into a variable. This happens immediately after the wizard finishes, I didn't have the chance to make any changes or write a line of code and I already have errors that I don't know how to solve. Please HELP!! Daniel -- 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] Wifi Only tablet missing NetworkProvider
I bought this wifi-only inexpensive tablet (see the build.props below). It has a fully operational wifi to get on the network and do what one would expect. I wrote a bit of code to explore what location providers were available on the tablet. According to the responses, the only available was GPS_PROVIDER. However, I have never gotten a GPS fix. The tablet is Android 4.0.3. I ran the same code on my cell phone (Android latest 2.3) and it worked as expected when the cell service was disabled. It showed location and gps. I turned off gps and it just showed location. Why is there no network_provider available on this tablet? Is there a plugin/driver that is missing? I thought network_provider worked via the network only (Wifi - i.e.: firefox on laptops). Since it is an inexpensive tablet, why would it come with an additional radio for GPS and not support a feature for the radio it advertises (Wifi)? Is there something I am missing with regards to Wifi-Only tablets? Is it the ROM? This tablet is from China (HK) perhaps it's disabled for export? I bought this thing specifically to write a location based app without using my phone. Thanks, E (Build.props are attached) -- 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 build.prop.zh_CN Description: Binary data
[android-developers] Different Screen Sizes and Resolutions
Hey guys! I am a new developer, and I have been working on my app the past week or so. So far I have it looking good and working fine, but my employer wants me to make it run on screen sizes from normal to xlarge and densities from medium to xhigh. I found a document on the developer's website about this, but it said that I should have different pictures and layouts if I want to do it right. I know it said that the phone will scale it up or down depending on what it can support, but it didn't suggest that because of artifacts forming, which I don't know what those are. So, I was wondering if you all could help me out a bit, and lead me in the right direction. I want to do some of the work, just so I can learn, but a little help is nice every now and then. Thanks! - Brad -- 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] Re: Hwo to use getLineCount method in TextView? what is the internal Layout?
I see Sent from my BlackBerry® smartphone provided by Airtel Nigeria. -Original Message- From: skink psk...@gmail.com Sender: android-developers@googlegroups.com Date: Fri, 13 Jul 2012 02:13:52 To: Android Developersandroid-developers@googlegroups.com Reply-To: android-developers@googlegroups.com Subject: [android-developers] Re: Hwo to use getLineCount method in TextView? what is the internal Layout? Alfa wrote: than how to get the line count of textview. i already use TextView.getLayout() .getLineCount() but i have error. you have to call it after internal layout has been built - you can for example post runnable after calling setText() - doing so you make sure the internal layout is built pskink -- 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 -- 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] Before I start, a question regarding google maps traffic
I hope someone can help here. I have an app idea, but want to know if it's possible before I spend lots of time learning how to make apps. Is it possible to 'plug-in' to google maps traffic based on a specific map point? e.g. If I want to check what the current traffic is at an exact point along a road? (using code, not looking at the map manually). So it would simply tell me if it was green/yellow/red etc right now based on the position I gave it to look up. Or is the traffic information literally just an 'overlay' that I can't interact with with code? If nobody knows, where would I find this information? Google doesn't seem to have the answer. Thanks! -- 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: debugging on Vodafone Smart II
i can't find anything unfortunately... thi ii why im asking.. Τη Τρίτη, 10 Ιουλίου 2012 9:36:12 μ.μ. UTC+3, ο χρήστης Ma Nik έγραψε: I want to test my android app on Vodafone Smart II but I'm not able to connect the device..Do I need a OEM Driver? and which driver is the appropriate one for that 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@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] Tokens
Hi, I'm not really familiar with tokens in general. I searched and couldnt find any definitions nor explanations. So what are tokens exactly, and how do you create them, and for what are they? Im trying to make an app where i will send my Android device token to a notification push server. The server later pushes some notifications to the user with the device token. How do i get this token? -- 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: gingerbread... man!
Ooops… I meant createInsecureRfcommSocketToServiceRecord. On Wednesday, July 4, 2012 1:18:05 PM UTC-5, bob wrote: So, I tried running the function listenUsingInsecureRfcommWithServiceRecord on an Android 2.3.5 device. It popped up a dialog asking to accept some 5 or 6 digit pin. It's not supposed to do that, right? It just works on my Ice Cream Sandwich. Has anyone seen this on Android 2.3.5? -- 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: newbie question
Problem solved I uninstalled Eclipse and SDK and reinstalled it, and now it works. Thanks, Daniel On Wednesday, July 11, 2012 2:43:29 PM UTC+3, ideaman wrote: Hi, I have installed Eclipse Juno 4.2 the Android SDK the Eclipse plugin and have Java 7 update 3 and Java 6 update 30 Everything seems ok, besides one small problem, it doesn't work. I create a new Android project and then I have the following errors: on the Android Manifest.xml I have 2 of these errors: com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Users\Daniel\workspace\Talk1\AndroidManifest.xml: The markup in the document following the root element must be well-formed. on the mainActivity .java I have the following error: in this line = setContentView(R.layout.activity_main); I see on the side R cannot be resolved into a variable. This happens immediately after the wizard finishes, I didn't have the chance to make any changes or write a line of code and I already have errors that I don't know how to solve. Please HELP!! Daniel -- 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] Cheapo Chinese tablet missing NetworkProvider
I wrote some code to discover the location providers available. I ran the code on my phone (with cell off, gps off, and wifi on). It found the NetworkProvider. Turning on GPS it found them both. (cell is v2.3.3) So I thought that NetworkProvider would be valid for anything that has WiFi or network connections. However, I noticed that the cheapo $100 tablet (from China based on the build.props file) doesn't have NetworkProvider. I understand if NetworkProvider is there, all we need is a network connection. However, it reports that the GPS exists, but it's never reported a fix. I understand that GPS requires a different radio, and if they're as cheapo as they say, why include a GPS chip and not enable NetworkProvider considering that they already have wifi built in. (tablet is v.4.0.3) Here's the build.props file: # begin build properties # autogenerated by buildinfo.sh ro.build.id=IML74K ro.build.display.id=A710-0.5.3-r498-eng .eng.A710.20120320.213516 ro.build.version.incremental=20120320 ro.build.version.sdk=15 ro.build.version.codename=REL ro.build.version.release=4.0.3 ro.build.date=Tue Mar 20 21:54:28 CST 2012 ro.build.date.utc=1332251668 ro.build.type=eng ro.build.user=shen ro.build.host=compiler ro.build.tags=test-keys ro.product.model=A710 ro.product.brand=BRONCHO ro.product.name=crane_a710 ro.product.device=crane-a710 ro.product.board=crane ro.product.cpu.abi=armeabi-v7a ro.product.cpu.abi2=armeabi ro.product.manufacturer=unknown ro.wifi.channels= ro.board.platform=exDroid # ro.build.product is obsolete; use ro.product.device ro.build.product=crane-a710 # Do not try to parse ro.build.description or .fingerprint ro.build.description=crane_a710-eng 4.0.3 IML74K 20120320 test-keys ro.build.fingerprint=BRONCHO/crane_a710/crane-a710:4.0.3/IML74K/20120320:eng/test-keys ro.build.characteristics=tablet # end build properties # # ADDITIONAL_BUILD_PROPERTIES # ro.com.android.dateformat=MM-dd- ro.config.ringtone=Ring_Synth_04.ogg ro.config.notification_sound=pixiedust.ogg ro.config.alarm_alert=Alarm_Classic.ogg dalvik.vm.heapstartsize=5m dalvik.vm.heapgrowthlimit=48m dalvik.vm.heapsize=256m ro.kernel.android.checkjni=0 ro.product.locale.language=zh ro.product.locale.region=CN wifi.interface=wlan0 wifi.supplicant_scan_interval=15 debug.egl.hw=1 ro.display.switch=1 ro.opengles.version=131072 persist.sys.strictmode.visual=0 persist.sys.strictmode.disable=1 hwui.render_dirty_regions=false persist.sampling_profiler=1 persist.sys.usb.config=mass_storage ro.setupwizard.mode=OPTIONAL net.bt.name=Android dalvik.vm.stack-trace-file=/data/anr/traces.txt ro.broncho.version=A710-0.5.3-r498-eng .eng.A710.20120320.213516 -- 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] TabHost not work in android 2.1 what's the reason have u a answer plz.
My project is writing for the 2.1 version -- 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] Wifi-Only tablet missing NETWORK_PROVIDER!?
I bought this wifi-only inexpensive tablet (see the build.props below). It has a fully operational wifi to get on the network and do what one would expect. I wrote a bit of code to explore what location providers were available on the tablet. According to the responses, the only available was GPS_PROVIDER. However, I have never gotten a GPS fix. The tablet is Android 4.0.3. I ran the same code on my cell phone (Android latest 2.3) and it worked as expected when the cell service was disabled. It showed location and gps. I turned off gps and it just showed location. Why is there no network_provider available on this tablet? Is there a plugin/driver that is missing? I thought network_provider worked via the network only (Wifi - i.e.: firefox on laptops). Since it is an inexpensive tablet, why would it come with an additional radio for GPS and not support a feature for the radio it advertises (Wifi)? Is there something I am missing with regards to Wifi-Only tablets? Is it the ROM? This tablet is from China (HK) perhaps it's disabled for export? I bought this thing specifically to write a location based app without using my phone. Thanks, E Build.props: # begin build properties # autogenerated by buildinfo.sh ro.build.id=IML74K ro.build.display.id=A710-0.5.3-r498-eng .eng.A710.20120320.213516 ro.build.version.incremental=20120320 ro.build.version.sdk=15 ro.build.version.codename=REL ro.build.version.release=4.0.3 ro.build.date=Tue Mar 20 21:54:28 CST 2012 ro.build.date.utc=1332251668 ro.build.type=eng ro.build.user=shen ro.build.host=compiler ro.build.tags=test-keys ro.product.model=A710 -- 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: adk 2012 / usb accessory not connecting
Joe, Well, the first thing that irked me was the fact that the board needs a USB driver installed, or OSX won't even recognize the board's presence. This was documented nowhere. I had to hunt it down myself. No problems with Java here. The IDE launches fine and I can load source files into it. It just couldn't compile the clock sample out of the box. It could never find the first ADK include. It's been a while, so I don't remember those details off the top of my head. I did have the board selected in the menu, but I can't imagine that would make much of a difference because the IDE is special for that board. On the ADK web site there is installation step which made no sense to me: Copy the adk-source-download/adk2012/board/library/ADK2 directory and its contents into your sketchbook/libraries/ directory, so that you create a sketchbook/libraries/ADK2 directory. I didn't see anything at all about a sketchbook/libraries directory in the real world. I'm assuming this step was meant to get the ADK libs into a place where they will be used by the clock demo or whatever program you're writing. I tried to make up a bunch of possible locations to put these files, but no dice. Maybe they are assuming the reader has prior Arduino experience, which I do not. I was eventually able to get the clock demo to compile, but after deployment it locked up the hardware. I think it wasn't actually building the ADK libs with the sample code. So I switched to the command line tools. On the command line (using the git source repo), when trying to build and deploy it told me I needed bossac and gave me a url to find it. So I went and got it, but the OSX exe never once recognized the board. The bossac exe that comes with the IDE does work, however, so I wedged that one into the command line build process. The command line build still had troubles finding the ADK headers and sourced needed to build, so I had to copy all those manually into the clock demo source tree, then I was finally able to build and deploy. I'm on OSX Lion on a Mac Mini if that makes any difference. Doug On Tuesday, July 10, 2012 12:07:00 PM UTC-7, Joe wrote: Hey Doug, What problems did you run into using the Mac IDE for the ADK2? I just finished installing the ADK IDE and managed to upload the clock sketch. I'm using a Mac Air with OS X v10.6.8. Couple of things I found that were a little tricky: 1. For some reason, my Mac's Java installation got hosed recently and I had to update to Java 1.6.0_33. After the update my Arduino IDEs (along with the ADK 2012 IDE) started working again. Prior to that update, I couldn't even get the IDE to run, error: No compatible version of Java 1.5* 2. Make sure to you plug into the Computer micro USB port (not the Phone port) 3. Choose the correct serial port in the IDE, *Tools Serial Port* (my Mac Air gave me 6 options) the correct port was /dev/tty.usbserial-XXX 4. Choose the board *Tools Board Google ADK2*, otherwise the sketch won't even compile. On Wednesday, July 4, 2012 11:39:29 PM UTC-7, Doug wrote: This isn't the right place for ADK discussion, but as far as I can tell, there is no place set aside for it! I killed a lot of today trying to get the 2012 ADK to work and was mostly frustrated. I'm on a Mac and I found the IDE installation instructions very much do not work and I could not manipulate it into building and flashing a working image at all. On the command line, I had to jump through hurdles to get the clock demo to build and deploy. In the end, I could not get recommended bossac downloaded from sourceforge to work at all. Eventually I had to bypass the given scripts and reached into the Mac IDE app package to use its bossac to deploy a working image. All things considered, I'm very disappointed in the usability of the tools that were provided for the 2012 ADK (at least for macosx) and I wish I knew where to go to remedy this. Otherwise I pretty much give up now. Doug On Saturday, June 30, 2012 12:28:31 PM UTC-7, michael wrote: Testing the new adk2012 and having a few issues. I have uploaded the usbaccessory sketch, and installed the adk2012 app to the nexus 7. Then I connect the adk nexus with usb, expecting the adk2012 app to be recognized as an appropriate usbaccessory, but it doesn't and nexus reports Connected as a media device USB debugging connected Connected to a USB accessory Another question, how can I run adb from my android device while it is simultaneously connected to my arduino kit? I was optimistic that it would channel through the arduino and proxy to my pc, but that clearly isn't happening :) ... ADB over bluetooth? Thanks, Michael -- 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
Re: [android-developers] Maybe I am going about this all wrong.
That would be interesting... On Jul 14, 2012 1:10 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 14, 2012 at 1:04 PM, Cythes cytheshic...@gmail.com wrote: What about just writing a patch for the OS and including it in the package? Or is that next to unheard of? If by the package you mean your APK, that is not supported. -- 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 3.8 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 -- 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] Maybe I am going about this all wrong.
Which part? On Saturday, July 14, 2012 2:19:52 PM UTC-4, Kristopher Micinski wrote: That would be interesting... On Jul 14, 2012 1:10 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 14, 2012 at 1:04 PM, Cythes cytheshic...@gmail.com wrote: What about just writing a patch for the OS and including it in the package? Or is that next to unheard of? If by the package you mean your APK, that is not supported. -- 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 3.8 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 -- 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: Android library as a single jar file
You can create an Android library project which contains both resources and code. They have been improving this capability with each update it seems. To see what you can currently do with a library project check out the appropriate section on this page: http://developer.android.com/tools/projects/index.html On Thursday, July 12, 2012 4:31:43 PM UTC-7, Ericsen wrote: According to this posthttp://android-developers.blogspot.com.br/2011/10/changes-to-library-projects-in-android.htmlwe cannot distribute an Android library and its resources as a single jar file because of The nature of Android resources, with their compiled IDs Are there any plans to allow this? -- 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: Programatically setting Linear Layout parameters i.e. Wrap_content and match parent
Didn't realise that you can simply replace WRAP_CONTENT with a fixed width. Problem solved. On Wednesday, 11 July 2012 20:24:31 UTC+1, marcpolo wrote: Hi, I'd like to have two views within a horizontal linear layout and programatically align them as follows. View A should be of fixed width on the left hand side and View B should fill the remainder of the space. I tried setting the following layout parameters ViewA.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT, 0)); ViewB.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 1)); Whenever I set the weight of ViewA to 0, only ViewA is displayed. I expected a value of 0 to mean that ViewA doesn't get stretched. When I set ViewA::Weight = 4, and ViewB::Weight = 1, ViewA is a quarter of the size of ViewB. I expected the reverse. WRAP_CONTENT seems to have no effect. This seems straightforward when using the manifest file, however I am modifying existing code that requires me to set these values programatically. Could someone help me. Thanks in advance. -- 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] Installing ADT on Eclipse Juno
Hi. I´m receiving this error while trying to install ADT Plugin for Eclipse Juno. Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) Missing requirement: Android Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found What should I do? -- 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: Android 4.1, HLS streaming and HTML5
Hi, try to use the video.webkitEnterFullscreen(). morehttp://developer.apple.com/library/safari/#documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html On Wednesday, July 11, 2012 4:12:31 PM UTC+4, Ben wrote: I am looking for a way to deliver live streaming through the android browser for 4.1. I currently use flash however as I understand flash will not be supported in 4.1 and above. I have tried using the html5 video tag and a HLS stream however I have only been successful with getting the sound and no video. I was wondering if anyone has had any luck? I am testing this on the android emulator Ben -- 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] Jelly Bean Crash with Bitmap Recycle Sorry, an error has occurred: bitmap is recycled
Hi Google, My app that has been running for over 2 years without an update, finally broke with Jelly Bean. The error: Sorry, an error has occurred: bitmap is recycled. The problem was with calling recycle on a bitmap: Bitmap bitmapOld = bitmap; bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false); bitmapOld.recycle(); Note: I never referenced bitmapOld again. The fix was easy, I just don't recycle any more. However, it seems odd that this would have broken. Maybe creating the scaled bitmap shares memory with the unscaled bitmap? Anyway, hopefully this information is useful to someone. Cheers, and keep up the excellent 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 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] Re: static vs non-static inner classes
But what about a Handler.Callback interface which can be passed to the Handler's constructor. According to the source code it is stored in the Handler class as a strong reference, so if the Message lives in the queue for a long time, the callback will not be gc'ed. And the callback may be an Activity or an inner class of an activity. But I can't see any checks in the source code and any recommendations in the documentation. As far as I understand, there isn't any right way to use the Handler.Callback with the Handler, is there? On Saturday, April 4, 2009 9:52:06 PM UTC+4, Romain Guy wrote: I wrote that debugging code because of a couple of memory leaks I found in the Android codebase. Like you said, a Message has a reference to the Handler which, when it's inner and non-static, has a reference to the outer this (an Activity for instance.) If the Message lives in the queue for a long time, which happens fairly easily when posting a delayed message for instance, you keep a reference to the Activity and leak all the views and resources. It gets even worse when you obtain a Message and don't post it right away but keep it somewhere (for instance in a static structure) for later use. If you want to use the equivalent of an inner-class but not risk a leak, here's a simple pattern: class OuterClass { class InnerClass { private final WeakReferenceOuterClass mTarget; InnerClass(OuterClass target) { mTarget = new WeakReferenceOuterClass(target); } void doSomething() { OuterClass target = mTarget.get(); if (target != null) target.do(); } } } On Sat, Apr 4, 2009 at 12:15 AM, Greg Krimer gkri...@gmail.com wrote: Thank you very much for the reply! After reading what Fadden said weeks ago, I happily converted my static inner handler classes to non- static ones. Just recently, I was browsing the source code of Handler and came across this bit of internal Android debugging: /* * Set this flag to true to detect anonymous, local or member classes * that extend this Handler class and that are not static. These kind * of classes can potentially create leaks. */ private static final boolean FIND_POTENTIAL_LEAKS = false; There is some code further down that uses reflection to locate such subclasses if this flag is true. My handlers fall into the category of non-static member classes, so I am curious how such classes could cause a memory leak. My initial thinking was that handlers could perhaps accumulate in a collection associated with the MessageQueue. But handlers are never placed into collections, as far as I can tell. The reference to the handler is in the message. Clever! (And in any case if the memory leak is due to an ever-growing collection of handlers somewhere then that has nothing to do with whether or not the handler class is static or not.) Just wondering if someone can shed some light on this comment in the Android source code. Thanks, Greg On Mar 10, 4:08 pm, fadden fad...@android.com wrote: On Mar 9, 7:17 pm, Greg Krimer gkri...@gmail.com wrote: I have been finding it convenient to extend Handler in many of my activities to handle messages specific to the activity. The handler sublass is an inner class of the activity and needs to access its state. I am wondering if there is any performance difference between making the handler subclassstaticand passing in the activity explicitly in its constructor or making the subclass an instance class and letting the vm worry about my accessing members of the containing activity. There's no real difference between explicitly and implicitly passing the outer-class reference around. Your example above is essentially doing what javac does automatically. Staticinner classes have some useful properties, e.g. you know they're not modifying state in the parent, and you can use Class.newInstance() with them. There's no performance magic though. If you're really curious, write it both ways in trivial source files, compile them, then view them with javap -private -verbose Class or dx --dump Class.class. They should look about the same. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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: SDK 4, if I select WXGA resolution, emulator doesn't start.
Bug is still present in R16 WXGA emulator does not work, even changing device ram site to 512MB. Is there someone who found right workaround/fix? Il giorno mercoledì 19 ottobre 2011 17:52:42 UTC+2, sblantipodi ha scritto: Am I the only one experiencing this problem? The only way to launch a simulator is using another resolution or a manual 720x1280, why? -- 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: WebView / JavaScriptInterface / String []
in webview you can try this code webView.getSettings().setJavaScriptEnabled(true); -- 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] A thread has a RuntimeException in run() method
In my android, if I create a thread new Runnable() { public void run() { doSomething(); } } If the method doSomething(), throws a Runtime Exception and I don't catch it in my run() method, will that crashes my whole application? Thank you. -- 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] SAP web service consuming by android
Hi everyone, I try to consume SAP web service by android with ksoap2 but ı did not achieve it, since this error, WARN/System.err(1229): org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope(position:START_TAG { http://schemas.xmlsoap.org/wsdl/}wsdl:definitionstargetNamespace='urn:sap-com:document:sap:soap:functions:mc-style'@1:686 in java.io.InputStreamReader@4052bc78) I investigated and almost 95% of people, that try to access SAP web service, have this error but there is not a succesfull answer. please help me. are there any other way to access SAP web service by android without KSOAP2. Thanks. Mert -- 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] having a problem with pitch and roll android sensors
Forgive me for not re writing the whole post, but i have this post on stackOverFlow and i was hoping i could post the link and see if any of you have insight. I appreciate your help http://stackoverflow.com/questions/11476316/determining-angle-of-device-with-horizon-as-axis-android/11476926#11476926 -- 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] video problem
Hello, I am making an application in the language html5 for android. But the videos are not working. See what happens: The audio plays but the video frames are not displayed. Can anyone help me? -- Ola, estou fazendo uma aplicaçao na linguagem html5 para android. Porém os vídeos nao estao funcionando. Veja o que acontece: O audio toca, porém os frames do video nao sao exibidos. Alguem pode me ajudar? - video style=cursor: pointer; id=video poster=images/default_video_player.jpg tabindex=0 controls source src=http://clientes.lapisraro.com.br/mobile-teste/eduardo.mp4;/source source type=video/webm src=http://clientes.lapisraro.com.br/mobile-teste/eduardo.webm;/source source type=video/3pg src=http://clientes.lapisraro.com.br/mobile-teste/eduardo.3pg;/source Seu leitor nao suporta o vídeo. /video -- 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] Handler.sendEmptyMessageDelayed() unreliable on some versions of OS?
I have a thread (guts implemented as a subclass of Runnable) whose job is to perform an operation on demand from other threads or automatically every two minutes if no other thread invokes the operation. The run() method of this Runnable calls Looper.prepare(), creates a Handler object in a member variable, uses that to call sendEmptyMessageDelayed(1, 3000), then calls Looper.loop(). Other threads use a method in this thread's public API to invoke its operation. That method just calls the handler's sendEmptyMessage(0) method to invoke it. When the handler's handleMessage(Message) method is called, it acquires a lock (ReentrantLock), calls the handler's removeCallbacksAndMessages(null) method and performs its operation (within a try/catch block). The finally section of that block calls the handler's sendEmptyMessageDelayed(1, 12) method then releases the lock. This works fine on every device I have tested it on, and by everything I know, it is a valid way to do this that ought to work on every version of Android OS. Recently, however, somebody claimed it wasn't running every two minutes as it should, and gave me the log file it produces to prove it (which it does). That log shows that sendEmptyMessageDelayed(1, 12) was called, and then 11 minutes later, the handleMessage(Message) method was called. I know this invocation of handleMessage() was in response to that sendEmptyMessageDelayed(1, 12) call because Message.what was 1 (a value used only by the sendEmptyMessageDelayed() call). How is this possible? I could understand the timing being off by a few seconds, but 11 minutes? In subsequent attempts to reproduce this, I have seen that timing being off by 45 minutes and more. This problem has been observed on an HTC One X running Android 4.0.3 and a Samsung Galaxy SII running OS 2.3.6. Has anybody else seen this issue? Does anybody have a suggestion for what might be causing this? My current position is that this is an OS bug, but I am loathe to just accept that and call it a day. BTW - just for kicks, I temporarily re-implemented this using a Timer object instead, and observed exactly the same problem (using Handler is a better solution anyway). Thanks, Mark Peters -- 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: Please native 3G-324M videocall support!
Please do it ... it is basic feature for a smart phone .. it is unbelievable that it does not there in android and why there is so much delay in implementing it On Thursday, April 5, 2012 8:55:49 PM UTC+5:30, roslogiac wrote: Hello, I'm struggling to find an android device supporting 3G-324M protocol for videocall. But, beside Samsung galaxy s/2, there is nothing around. It's a weird choice the one to do not support natively this protocol, because 3g videocall is very common around the globe, except USA. Since the world is not made by USA only, why not to implement this protocol widely used from europe to asia? Unless we have to pay respect to skype, there is no reason to trash the 3G-324M videocall. Skype needs internet coverage, an included data plan, and basically needs the internet access on the receiper side who has to be online... too many coincidences to make it an elegible choice of videocall. You need to agree before the videocall, e.g.: hello, how are you? I''ve got internet coverage and I can pay for it for a while, are you on internet with your device? Can you login on skype? Are you logged in? Ok I'm videocalling!.. OMG, no way! With 3G-324M you can just videocall and that's it!!! So, plz implement this protocol natively in Android. -- 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] Upload image from Android to ASP.Net
Hi, What is the best approach to upload files(video,images) from Android apps to asp.net server? Can some sone, give your idea/references or share your idea? -- * With Regards ** Jacob Michael +60169925650 * http://jacobsome.blogspot.com/ -- 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] Android inapp purchase failed for first time
Hi, I integrated inapp billing in my app. My customers often getting problem for the very first time they are adding their credit card and purchasing. 2nd time purchase is good. Any one experienced this issue? Thanks. -- 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] Run application with system / root permissions.
Hi, I've been searching about this topic but I haven't found a clear solution yet. As far as I know, you can specify different *protectionLevel* in your * AndroidManifest.xml*, those permissions allow other applications to interact with the one you are developing. As an example, imagine that I want to kill a processes, that is not mine (from another package) or that I want to install a driver I've developed. In both cases the problem is the same, those things need to be run as a system / root. How can I develop programs that require system / root permissions, do I need an special license? *Note:* Please, note that granting the permission: *uses-permission android:name=android.permission.KILL_BACKGROUND_PROCESSES/* Using *android:sharedUserId=android.uid.system* does not work either. Also, consider that I cannot ask the users to have their mobiles rooted. Thanks in advance. Jordi. -- 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] Creation of 'native' objects on the other end of the binder proxy
Hello, I am going through multimedia framework, and while most things seem fairly clear to me, the creation of the 'native' objects (or BnXxxx objects of binder framework) seem perplexing to me. I just can't find where those are created!! The proxy objects are created with a hard to find new Bp##INTERFACE macro, but that's not the case with the objects on the server. For e.g., I can't find the instantiation of BnMediaPlayerService on MediaServer. Lxr http://androidxref.com/4.0.4/search?q=defs=BnMediaPlayerServicerefs=path=hist=project=abiproject=bionicproject=bootableproject=buildproject=ctsproject=dalvikproject=developmentproject=deviceproject=docsproject=externalproject=frameworksproject=hardwareproject=libcoreproject=ndkproject=packagesproject=prebuiltproject=sdkproject=systemthrows me just the declaration. Unfortunately I don't have a full setup to view the full call stack and find out myself. Could any one point me where such objects are created? Is there some code that is not part of the SDK that could be instantiating them? Thanks in advance, Regards, Chethan -- 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] Why android does not support native video calling
What i don't understand is this Why android do not support Video call (*3G-324M Circuit-Switched Video Calls*) just because it is not available in the US ? It is really disappointing as it is widely used in Europe and Asia ? -- 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
There's no documented, approved way to read the log entries. Having said that, if you just exec() logcat, as you did before, you'll automatically get your own log entries. You don't need to do anything special. The log system knows which log entries belong to you, and which log entries belong to others, and will only give you your log entries. -- Nick On Jul 12, 10:24 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote: however every app can read the logs containing only the lines *they* have written, without needing any permission. OK, I'll bite: how do you do this? Most of the read-the-logs code that I have seen uses logcat via Runtime#exec(), and I don't see a command-line switch on logcat to limit output to just your own process' lines. (BTW, count me as one of the fans of this decision, despite the very loud grumblings I expect you will receive from various quarters) Thanks! -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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] Where to start?
Hi guys, I'm trying to put together a fairly simple application, but I'm getting a little overwhelmed at the moment. I've read through most of the Google tutorials, and a heap of stackoverflow threads, but I just seem to be going around in circles. Basically I have a Java application running on a server, which sends out and responds to JSON messages over sockets. The app needs to be able to send messages to the server, and also be listening for update messages to update the gui accordingly. Would the best way to do this to make a Service which handles a socket to the server? I assume the server would need a separate thread for reading from the socket. If someone could point me in the right direction, that would be awesome. Cheers, Mitch -- 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] help !!
what i need to do for add other divice to my account ? -- 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] How to stop terminate the Android application when using the native code
Hello every body I have this problem which can not resolve it. I'm calling the native code(*C code*) from the android application. But in the native code, they call function *exit(0)* so it makes the app on Android terminate. Could any one know how to stop this one, because after i called one method from native code , after it finished, it will terminate the Android application. I found a way is disable the method *exit(0)*, so it will not terminate the Android app, but it meet error when i called the native method second time, some error kind like this: *Invalid heap address in internal_realloc*. I think that came from the re allocation the memory. So if any one know how to free all memory of native call, please let me know. Thanks for any comments Thanks Clark -- 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: Need help on supporting IGMP protocol on android
Hi, @Justin, I have an Samsung Galaxy version 4.0.2. I wrote an app that receives multicast packets. But it doesn't receive any. My router doesn't filter multicast packet. I have added the necessary permissions and acquire a multicast lock. It seems the main reason is that the phone doesn't send out an IGMP message to join the multicast group. Is there any thing that I need to do on the phone.is IGMP implemented in Samsung Galaxy Nexus Version 4.0.2. Any ideas what might have gone wrong. At this point my main problem is that why no IGMP message coming out of my phone. You help would be very much appreciated. Thanks -- 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] why is the account managed by AccountManager is delete automatically ?
Some of my users are experiencing the same issue. My suspicion is that the default install location changed from internal to external on 4.1.1. At least one user reported things are working with android:installLocation=internalOnly set in the manifest. This should be default behavior according to API-doc, but it seems like it isn't on 4.1.1. For more discussion, take a look at my related issue tickethttps://redmine.limun.org/issues/153 . Cheers, Mathias On Thursday, July 12, 2012 11:14:28 PM UTC+2, marten wrote: Am Mittwoch, 23. März 2011 07:50:56 UTC+1 schrieb Dianne Hackborn: Because when the SD card is unmounted the apps on it disappear, so things that have state associated with those apps will clean it up. This is why the documentation says you should not allow these kinds of apps to be placed on the SD card. Ok, but this also happens on the Galaxy Nexus (which doesn't feature a SD card slot). Afaik it didn't happen with Android 4.0.4, but it happens for users who upgraded to Jelly bean. What can I do to prevent this. Marten On Mon, Mar 21, 2011 at 8:22 PM, 琅琅 wuxiaojun2...@gmail.com wrote: My little App creates an account in AccountManager. But if i move the App from internal storage to SD card, the account is automatically delete by AccountManagerService if i unmounted the SD card or reboot the machine. does anyone have any idea about this ? does this mean we cannot move the App to SD card or is it because i am missing some config attributes in the config xml ? D/AccountManagerService( 245): deleting account XXX because type com.XXX no longer has a registered authenticator D/ ContactsProvider( 945): removing data for removed account Account {name=, type=com.XXX} -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] sdk version Compatibility
Hi.. I have created an android application in sdk 2.3.3.It is working in 4.0.3 also. But it is crashing in samsung galaxy s3.The os version of that device is 4.0.4.Is there any particular reason for that crashing in s3?It is working fine in s2. Thanks and regards Reshmy. -- 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: In App Billing Limits
I can't find the answer in any documentation. Do you know the reason for the limit? Other apps circumvent the limit. Its quite common in games to buy credits. If thats ok then it would be simple to get around. On Jul 12, 9:25 am, Anton Kaiser i...@anton-kaiser.de wrote: I can't tell you about the limit (must be documented in the API reference or some developer tutorial on In App Billing). If there is a good reason for the limit, Google won't hesitate to remove your app from Google Play if you try to circumvent that limit. Am Mittwoch, 11. Juli 2012 15:05:09 UTC+2 schrieb sam: I would like to know what the maximum number of items that can be placed in In App billing for both Android. I seem to remember reading around 3000 but I cannot find the reference. Also if 3000 is the maximum what are the legitimate way to get around this. My app will sell content and I thought a possible way around the problem would be to have a central app that shows the content, then a number of different libraries where you can purchase the content. Would that be a viable work around? -- 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] Downloading apk from our site is unsuccessful
Hi, I am not able to download apk from our site on Samsung Nexus(not tried on other handset).Where as through almost same code i am able to download(jar and jad) on compatible handset. Handset downloads the apk and after 100% complete it says *download unsuccessful*.Previously same code is used to download apk and able to installed. Here is the code: if(categoryTypeFinal.trim().equals(apk)) { response.setContentType(application/vnd.android.package-archive); response.setHeader(Content-Disposition, attachment; filename=\ + gameName + downLoadFileType + \); FileInputStream in = new FileInputStream(file);//file is the name of apk file byte[] byteArray = new byte[in.available()]; in.read(byteArray); response.setContentLength(byteArray.length); op.write(byteArray); in.close(); -- Another question is what is criteria of successful download? Please let me know the reason for it. Thanks and Regards Rakesh -- 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] Android mediaplayer cannot play long mp3 http streaming.
I developed an audio player using mediaplayer API. This audio player can play mp3 http streaming from webserver. It play pretty well with small mp3 file, but with long mp3 file ( 30 minutes long and 30Mb size), it only play about 5 minutes then hang. I tested in my Samsung Galaxy Gio ( Android 2.2.1, api level 8). Is there anyone tell me how can I play long mp3 file. Thanks -- 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] Showing Action Bar ONLY on tablet?
On Sat, Jul 14, 2012 at 1:47 PM, Latimerius l4t1m3r...@googlemail.com wrote: As I haven't ever heard pretty much *any* reason for that, good or bad, I tend to think dumping it was rather a boneheaded idea. I can't speak to why they elected to grant device manufacturers the freedom to skip off-screen controls. For all I know, it is YAAP (Yet Another Apple Patent). However, that does not change the fact that they *did* give device manufacturers the freedom to skip off-screen controls. Now, if all finger paint apps for children on Android got low ratings and had on-screen controls, I would at least entertain the notion that correlation might indicate causality, and the on-screen controls were the source of the low ratings. However, a quick glance at the search results and examining the screenshots indicate that there are several finger paint apps for children with on-screen controls *and* 4-star ratings (and on 1000+ ratings, not just a handful). To claim that on-screen controls are somehow impractical for finger paint applications for children, therefore, seems to be inaccurate, and creating an intentionally future-resistant finger paint application for children just to avoid on-screen controls is not wise. Furthermore, it is ludicrous to think that a child will somehow tap on some on-screen control, yet not tap on a menu affordance in the system bar nor click on a dedicated off-screen MENU button. If anything, a well-designed on-screen control could be *less likely* to be accidentally invoked than would legacy menu affordances, by making it slightly more challenging to trigger than just a tap (e.g., physically smaller, tap-and-hold, tap-and-slide). While it is impossible to prevent a child from doing any of these things, you actually have control over an on-screen mechanism that you do not have for anything else and therefore can take steps to reduce the odds. If the issue is aesthetics, make the on-screen control invisible, perhaps appearing after a period of inactivity or after the screen has turned off and back on. You could even make the on-screen control simply be not there except after inactivity or a screen off/on cycle, so that a parent can readily get to the control after retrieving the device from the child. Or find other ways of solving the problems formerly handled by an in-app menu (e.g., auto-save after inactivity, so the parent does not need to explicitly save from the paint activity but can go into a separate activity to review saved pictures and remove them). And so on. Now, I cannot speak for your app, because I don't know what it is. Perhaps you could consider submitting it for the developer relations Friday App Review thing, specifically asking for ideas for how to address your variant on this issue, and try to get Googly input on the matter that way. -- 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 3.8 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
Re: [android-developers] sdk version Compatibility
On Thu, Jul 12, 2012 at 9:37 AM, reshmy anup reshmyanu...@gmail.com wrote: I have created an android application in sdk 2.3.3.It is working in 4.0.3 also. But it is crashing in samsung galaxy s3.The os version of that device is 4.0.4.Is there any particular reason for that crashing in s3? It is crashing either due to a bug in your app or due to a bug in the device. However, since you did not provide any details (e.g., stack traces, code listings), it is difficult for anyone to say specifically what may be going on. -- 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 3.8 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
Re: [android-developers] Where to start?
On Fri, Jul 13, 2012 at 12:55 AM, Mitchell Just mitch.j...@gmail.com wrote: Would the best way to do this to make a Service which handles a socket to the server? Possibly. That is difficult to answer in the abstract. However, if your objective is to deliver these messages at any time, without the user necessarily being in your app, please try to switch to Google Cloud Messaging. Otherwise, you would need to try to have a service running 24x7 with an open socket connection, and that will be difficult to write and easy for users to detest. -- 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 3.8 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
Re: [android-developers] Why android does not support native video calling
This list is for developing applications with the Android SDK -- your questions are off-topic here. On Thu, Jul 12, 2012 at 7:29 AM, mihir mehta mihirpme...@gmail.com wrote: What i don't understand is this Why android do not support Video call (3G-324M Circuit-Switched Video Calls) just because it is not available in the US ? It is really disappointing as it is widely used in Europe and Asia ? -- 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 -- 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 3.8 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
Re: [android-developers] Re: SDK 4, if I select WXGA resolution, emulator doesn't start.
On Fri, Jul 13, 2012 at 3:20 AM, urbock23 francesco.orla...@gmail.com wrote: Bug is still present in R16 WXGA emulator does not work, even changing device ram site to 512MB. The WXGA800 and WXGA720 emulators definitely work on R16. I personally run these emulator AVDs with 1GB of device RAM. Note, though, that the current version of the tools is R20. -- 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 3.8 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
Re: [android-developers] Wifi-Only tablet missing NETWORK_PROVIDER!?
On Fri, Jul 13, 2012 at 10:53 PM, E. Recio ere...@polywog.org wrote: Why is there no network_provider available on this tablet? You would have to ask the device manufacturer. Is there something I am missing with regards to Wifi-Only tablets? The so-called network provider uses either WiFi hotspot proximity or cell tower triangulation. The latter is definitely not possible if you lack the chips to talk to cell towers. The former assumes that there is a back-end service provider with location data for hotspots, such as Google or Skyhook Wireless. Perhaps your device manufacturer does not have deals with such a service provider. -- 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 3.8 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] custom layout on ListLayout can't be browsed using d-pad
Hello: I am checking my app is accessible. In the course of doing this, I am using a d-pad to browse the app. I have a custom row on a List Layout. Each row follows the attached layout. When I browse the layout using the d-pad I can only highlight the more_button_layout layout. I cannot click on any button or layout. I've played with the focus labels, but they don't have any effect. I am using eye-free keyboard as the d-pad Thanks for any help. -- 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 row_layout.xml Description: XML document
Re: [android-developers] Maybe I am going about this all wrong.
If you could modify the system with an apk... this would be extremely dangerous and would almost certainly never never even considered... On Jul 14, 2012 2:30 PM, Cythes cytheshic...@gmail.com wrote: Which part? On Saturday, July 14, 2012 2:19:52 PM UTC-4, Kristopher Micinski wrote: That would be interesting... On Jul 14, 2012 1:10 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 14, 2012 at 1:04 PM, Cythes cytheshic...@gmail.com wrote: What about just writing a patch for the OS and including it in the package? Or is that next to unheard of? If by the package you mean your APK, that is not supported. -- 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 3.8 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- 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 -- 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] Showing Action Bar ONLY on tablet?
On Sat, Jul 14, 2012 at 8:51 PM, Mark Murphy mmur...@commonsware.com wrote: Now, if all finger paint apps for children on Android got low ratings and had on-screen controls, I would at least entertain the notion that correlation might indicate causality, and the on-screen controls were the source of the low ratings. However, a quick glance at the search results and examining the screenshots indicate that there are several finger paint apps for children with on-screen controls *and* 4-star ratings (and on 1000+ ratings, not just a handful). To claim that on-screen controls are somehow impractical for finger paint applications for children, therefore, seems to be inaccurate Who's to say how many 4-star ratings / downloads would a finger paint app have that didn't have to clutter the screen? Sadly, Android has a reputation for low-quality apps. People will sometimes give a good rating just because an app to do such and such exists, no matter how badly it does it. Giving the user a good feeling about using a device/app is a very tricky area. I worked for the official games industry for 7 years and I saw the attention these guys tend to give controls. While not every little Android app has to be as fine tuned as a twitch shooter, every app should feel good - something Apple is famous for understanding. You can't say that a painting app is good enough just because there are still a bunch of pixels left for the actual painting after we've rendered our UIs. and creating an intentionally future-resistant finger paint application for children just to avoid on-screen controls is not wise. Again, that's for people who design/make a particular app to decide. Very very few apps released this month will still get new downloads a year from now, at least in entertainment which is what I'm interested in, so risking that an OS version 3 years from now will break the app might be a very sound business decision if the risk brings in substantial benefits during the projected life cycle of the app. Furthermore, it is ludicrous to think that a child will somehow tap on some on-screen control, yet not tap on a menu affordance in the system bar nor click on a dedicated off-screen MENU button. If anything, a well-designed on-screen control could be *less likely* to be accidentally invoked than would legacy menu affordances, by making it slightly more challenging to trigger than just a tap (e.g., physically smaller, tap-and-hold, tap-and-slide). While it is impossible to prevent a child from doing any of these things, you actually have control over an on-screen mechanism that you do not have for anything else and therefore can take steps to reduce the odds. You might well be right on this, however the decision to leave out the Menu button is of a much much broader consequence than just finger paint apps for children. There are apps for which an off-screen button is just *the* simple and natural solution, everything else is kludgy work-around. If there were no such apps at the moment, they would appear in the future. Saying no Menu button should be enough for everyone reminds a similar well-known statement that concerned 640kB of memory - supporting such claims you run an acute risk of getting on the wrong side of history. :-) If the issue is aesthetics, make the on-screen control invisible, perhaps appearing after a period of inactivity or after the screen has turned off and back on. You could even make the on-screen control simply be not there except after inactivity or a screen off/on cycle, so that a parent can readily get to the control after retrieving the device from the child. Or find other ways of solving the problems formerly handled by an in-app menu (e.g., auto-save after inactivity, so the parent does not need to explicitly save from the paint activity but can go into a separate activity to review saved pictures and remove them). This all depends strongly on the actual application. Based on my experience, you can't make any blanket statements like this. As stated above, this is not just about kids' paint apps - it's not even just about paint apps in general, although if you consider something like a simplified Photoshop in your phone, you start seeing immediately that none of what you propose would work. Although I'm no artist by profession, I took drawing/painting classes for couple of years and I can draw, sort of - and my bro is an artist. I can tell you a painting app that kept UI stuck on-screen all the time would likely be a no-go. The canvas belongs to the artist, it's just ridiculous to make people paint around your UI. Also, when you're looking at what you've done so far, any UI would be annoying as hell. (I sat for some weeks next to concept artists a while ago (oh the joys of open-space offices :-( ) and these guys even go to full-screen all the time to gauge their work, often several times a minute, although switching back and forth between windowed and
Re: [android-developers] Jelly Bean Crash with Bitmap Recycle Sorry, an error has occurred: bitmap is recycled
Ah, this is an interesting bug that we ran into ourselves. createScaledBitmap() can return the *same* bitmap if the scaled copy would have the same dimensions as the original image. The proper way to do this is to write: bitmap = Bitmap.createdScaledBitmap(oldBitmap, etc...); if (bitmap != oldBitmap) oldBitmap.recycle(); On Fri, Jul 13, 2012 at 6:42 AM, Craigo m...@craig-mitchell.com wrote: Hi Google, My app that has been running for over 2 years without an update, finally broke with Jelly Bean. The error: Sorry, an error has occurred: bitmap is recycled. The problem was with calling recycle on a bitmap: Bitmap bitmapOld = bitmap; bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false); bitmapOld.recycle(); Note: I never referenced bitmapOld again. The fix was easy, I just don't recycle any more. However, it seems odd that this would have broken. Maybe creating the scaled bitmap shares memory with the unscaled bitmap? Anyway, hopefully this information is useful to someone. Cheers, and keep up the excellent 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 email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- 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] Keeping it fresh, back to service...
Alright here I am after a good 8 hours of editing (Yeah I'm new..so sue me...) I'm working on this service that starts on start up. Keep in mind I am on my live phone so I DONT have logcat. On top of this it is a Rooted phone so if that changes anything then I guess I will burn that bridge after I cross it. Till then I could use a hand. Here is the service code..once again: import android.app.Service; import android.content.Intent; import android.net.Uri; import android.os.IBinder; import android.os.Vibrator; import android.util.Log; import android.view.KeyEvent; import android.widget.Toast; public class Monitor extends Service { private static final String LOG_TAG = ::Monitor; @Override public void onCreate() { super.onCreate(); Log.e(LOG_TAG, Service created.); } public void onStartCommand() { Log.e(LOG_TAG, Service started.); Toast.makeText(this, Test launch started, 600).show(); } boolean dispatchKeyEventTake2(KeyEvent event) { int action = event.getAction(); int keyCode = event.getKeyCode(); int ticker = event.getRepeatCount(); final Vibrator vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE); switch (keyCode) { case KeyEvent.KEYCODE_VOLUME_DOWN: if (action == KeyEvent.ACTION_DOWN ticker == 50) { Intent MainIntent = new Intent(help.me.please.MainActivity); MainIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(MainIntent); } return true; default: return this.dispatchKeyEventTake2(event); } } @Override public IBinder onBind(Intent intent) { Log.e(LOG_TAG, Service bind.); return null; } } As well as the manifest: manifest xmlns:android=http://schemas.android.com/apk/res/android; installlocation=internalOnly package=help.me.please android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=9 android:targetSdkVersion=15 / uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / uses-permission android:name=android.permission.VIBRATE / uses-permission android:name=android.permission.CALL_PHONE / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme service android:name=.Monitor intent-filter action android:name=help.me.please.Monitor /action /intent-filter /service activity android:name=.MainActivity android:label=@string/title_activity_main intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.DEFAULT / /intent-filter /activity receiver android:name=autoBot intent-filter action android:name=android.intent.action.BOOT_COMPLETED /action /intent-filter /receiver /application /manifest Basically the program runs starts the service but wont start the intent in the service. Any ideas? -- 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