[android-developers] Re: Alarm Wake Lock and Services
Thanks, that clears things up. I guess I was somehow lucky that this worked for me, maybe the device wasn't going back to sleep quickly enough in my case. I'll implement the broadcast receiver and wakelock to ensure this always works. On Dec 18, 4:25 pm, Dianne Hackborn wrote: > A wake lock is not currently held for services; you will need to wrap it > with a broadcast receiver. (Actually it is held, but because services are > async the power manager is immediately told that the pending intent has been > sent, and releases its wake lock.) -- 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] parsing a *string* of XML with SAX.
use xmlpullparser much easier On Fri, Dec 18, 2009 at 5:50 PM, redders wrote: > Okay, so I know that the parse() method takes an inputsource, and > normally it'd be better to parse the xml at the source (where it's a > stream), but in this case I want to be parsing it on a different > thread to the thread it's being received on. > > My question is basically a "why won't this work" question... > As far as I can tell, the startElement method is never being called > (no "startelement" entries in logcat after "trying to parse..") > .. any help appreciated. > > Here's the code. > > public class NWCommsXMLParser extends DefaultHandler{ >public void startElement(String uri, String name, String qName, > Attributes atts){ >Log.i("NWXML","startelement: " + uri + "." + name + "." + > qName + > "/" + atts.toString()); >} >public void endElement(String uri, String name, String qName){ > >} >public void characters(char ch[], int start, int length) { > >} >public void parseMessage(String xmlMessage){ > >Log.i("NWXML","Trying to parse: " + xmlMessage); >try{ >SAXParserFactory parseFactory = > SAXParserFactory.newInstance(); >SAXParser parser = parseFactory.newSAXParser(); >XMLReader xmlReader = parser.getXMLReader(); >xmlReader.setContentHandler(this); >StringReader sr = new StringReader(xmlMessage); >InputSource is = new InputSource(sr); >xmlReader.parse(is); >} >catch(Exception e){ >Log.e("NanoWarsXML","SAX error:" + e); >} >} > } > > > Logcat line before the try{} : > 12-19 01:31:38.763: INFO/NWXML(3218): > Trying to parse: > 12344787645 NWR> > > -- > 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: OpenGL: How to test for VBO support?
Could it have something to do with how vertex buffer objects are now mandatory in OpenGL ES 1.1? On Dec 18, 8:24 pm, Robert Green wrote: > I'm working with the Droid right now and what's funny about it is that > it's the only device I have that doesn't report a VBO extension but > the VBOs work perfectly on it so it clearly supports them. Hmm... > > Normally I check the extensions for one that ends in > "vertex_buffer_object" but that's not going to work here. Is there a > better way of knowing? -- 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: Portrait vs landscape using sensor
The link is to the web interface to the official public repository. You can use it to browse through all of the source there. It starts here with a list of all of the projects: http://android.git.kernel.org/ Most of the Android-specific Java frameworks are in the "frameworks/base" project: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary On Fri, Dec 18, 2009 at 6:43 PM, Brion Emde wrote: > Hi Dianne, > > You give a link to Android source code here. I'm still pretty new and > haven't found a central resource to look at source code. > > Now it seems that there must be such, as you have just "given some > away". > > I'm on Windows, which apparently makes me unable to actually clone the > Git tree and look at it directly. > > Is there something I'm missing that you could point me to that would > let me examine the source and tests? > > Thank you > > On Dec 18, 5:24 pm, Dianne Hackborn wrote: > > You might want to use this: > > > > http://developer.android.com/reference/android/view/OrientationEventL... > > > > If it doesn't exactly serve your needs, just copy the code into your own > app > > and tweak as desired: > > > > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... > > > > For example there is a much more specialized version of this that the > window > > manager uses for rotating the screen: > > > > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... > > > > On Fri, Dec 18, 2009 at 10:50 AM, Mark Wyszomierski >wrote: > > > > > > > > > > > > > Hi, > > > > > I'm trying to detect landscape vs portrait orientation with the > > > following: > > > > > public void onSensorChanged(SensorEvent event) { > > > float pitch = event.values[2]; > > > if (pitch <= 45 && pitch >= -45) { > > > // portrait > > > } > > > else if (pitch < -45) { > > > // landscape > > > } > > > else if (pitch > 45) { > > > // landscape > > > } > > > } > > > > > anyone have something more robust? It works pretty well, except if the > > > phone is in a landscape orientation, and the user starts to 'flatten' > > > it out, starts thinking it's in the portrait orientation again, > > > > > 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 cr...@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. > -- 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
Re: [android-developers] Re: How to use the dpad button to pause and play audio while the device is locked
Tell them "Android sux and doesn't support this." Note that the HTC app could of course do something like this because, it is HTC's phone, and they can hack it however they want. Heck they could modify the lock screen to look for the key press and poke their media player app. On Fri, Dec 18, 2009 at 7:32 PM, skyhigh wrote: > I am still getting requests from people to make my application pause > and resume audio playback when they press a button while the screen is > locked. > > One of the people requesting this feature assures me that the HTC > Sense UI media player is doing this, so there must be a way to do it. > > Is there some type of non-published API that they are using to get > this functionality? > > -- > 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] Video Playback freezes on 1.6 donut with opencore2
It looks like there is something wrong with the player (opencore), at times, video playback will get stuck on one frame, and will stay there for a long time. If you look at the log, you can see that player started playing at 17:59:48, at that time it has already buffered 6 seconds of video. Then at 17:59:53 the video and sound got stuck, while buffering kept going on in the background After 25 seconds (18:00:19) it resumed playing and buffer was already at 36 seconds, and all this time the api report that it is playing, meaning in the code, i don't know that video is stuck... Any thoughts or suggestions? This started to happen in donut (1.6) with the introduction of opencore2. I have never seen this problem in with previous version of opencore (android versions <= 1.5) Legend: the integers next to "current" and "buffer" are in seconds of video. while "playerDriver buffering" are in percentages. 12-18 17:59:48.529 D/dalvikvm(19121): GC freed 4446 objects / 813696 bytes in 294ms 12-18 17:59:48.589 V/UpdatedMediaPlayerActivity(19121): update progress, current: 0 buffer: 4 playing?true 12-18 17:59:49.109 V/UpdatedMediaPlayerActivity(19121): update progress, current: 0 buffer: 4 playing?true 12-18 17:59:49.269 D/PlayerDriver(18730): buffering (5) 12-18 17:59:49.619 V/UpdatedMediaPlayerActivity(19121): update progress, current: 1 buffer: 5 playing?true 12-18 17:59:50.119 V/UpdatedMediaPlayerActivity(19121): update progress, current: 1 buffer: 5 playing?true 12-18 17:59:50.279 D/PlayerDriver(18730): buffering (6) 12-18 17:59:50.619 V/UpdatedMediaPlayerActivity(19121): update progress, current: 2 buffer: 6 playing?true 12-18 17:59:51.119 V/RhythmClipBrowser(19121): channels count: 20 12-18 17:59:51.249 V/UpdatedMediaPlayerActivity(19121): update progress, current: 3 buffer: 6 playing?true 12-18 17:59:51.619 D/PlayerDriver(18730): buffering (7) 12-18 17:59:51.759 V/UpdatedMediaPlayerActivity(19121): update progress, current: 3 buffer: 7 playing?true 12-18 17:59:52.269 V/UpdatedMediaPlayerActivity(19121): update progress, current: 4 buffer: 7 playing?true 12-18 17:59:52.719 D/PlayerDriver(18730): buffering (7) 12-18 17:59:52.779 V/UpdatedMediaPlayerActivity(19121): update progress, current: 4 buffer: 7 playing?true 12-18 17:59:52.939 D/PlayerDriver(18730): buffering (8) ->> VIDEO FREEZES HERE, 12-18 17:59:53.289 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 8 playing?true 12-18 17:59:53.794 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 8 playing?true 12-18 17:59:54.301 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 8 playing?true 12-18 17:59:54.724 D/PlayerDriver(18730): buffering (8) 12-18 17:59:54.809 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 8 playing?true 12-18 17:59:55.314 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 8 playing?true 12-18 17:59:55.621 D/PlayerDriver(18730): buffering (9) 12-18 17:59:55.819 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:56.325 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:56.719 D/PlayerDriver(18730): buffering (9) 12-18 17:59:56.829 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:57.340 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:57.849 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:58.353 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:58.730 D/PlayerDriver(18730): buffering (9) 12-18 17:59:58.859 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:59.363 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 9 playing?true 12-18 17:59:59.849 D/PlayerDriver(18730): buffering (10) 12-18 17:59:59.869 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 10 playing?true 12-18 18:00:00.371 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 10 playing?true 12-18 18:00:00.879 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 10 playing?true 12-18 18:00:01.119 D/PlayerDriver(18730): buffering (11) 12-18 18:00:01.349 I/ActivityManager( 73): Start proc com.android.calendar for broadcast com.android.providers.calendar/.CalendarAppWidgetProvider: pid=19211 uid=10021 gids={3003} 12-18 18:00:01.379 V/UpdatedMediaPlayerActivity(19121): update progress, current: 5 buffer: 11 playing?true 12-18 18:00:01.679 I/dalvikvm(19211): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 12-18 18:00:01.729 I/dalvikvm(19211): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=44) 12-18 18:00:01.749 I/ActivityThread(19211): Publishing provider calendar: com.android.providers.calendar.Ca
[android-developers] Re: button Click event inside custom listview.... Help!
Hi Abhishek, You can to through the below example for creating custom view. Follow the below link. http://www.anddev.org/basic_drag_and_drop-t3095.html I hope you will get the something from the above example. Best Luck. Thanks. On Dec 18, 7:47 am, Abhi wrote: > Hi guys, > > I have my own custom adapter to create a custom listview with > checkbox, textview and button in each row. I want to implement onClick > on Button and take different action based on which row button is > pressed. How can I use onClickListener in this case? Define it inside > getView? If so how? > > Thanks > > Abhishek -- 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: How to use the dpad button to pause and play audio while the device is locked
I am still getting requests from people to make my application pause and resume audio playback when they press a button while the screen is locked. One of the people requesting this feature assures me that the HTC Sense UI media player is doing this, so there must be a way to do it. Is there some type of non-published API that they are using to get this functionality? -- 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: Why RIL.java implements CommandInterface twice
Maybe I should post it to porting group. -- 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: parsing a *string* of XML with SAX.
Worth stating, that try/catch doesn't catch any exceptions, so it isn't arguing with me. On Dec 19, 1:50 am, redders wrote: > Okay, so I know that the parse() method takes an inputsource, and > normally it'd be better to parse the xml at the source (where it's a > stream), but in this case I want to be parsing it on a different > thread to the thread it's being received on. > > My question is basically a "why won't this work" question... > As far as I can tell, the startElement method is never being called > (no "startelement" entries in logcat after "trying to parse..") > .. any help appreciated. > > Here's the code. > > public class NWCommsXMLParser extends DefaultHandler{ > public void startElement(String uri, String name, String qName, > Attributes atts){ > Log.i("NWXML","startelement: " + uri + "." + name + "." + > qName + > "/" + atts.toString()); > } > public void endElement(String uri, String name, String qName){ > > } > public void characters(char ch[], int start, int length) { > > } > public void parseMessage(String xmlMessage){ > > Log.i("NWXML","Trying to parse: " + xmlMessage); > try{ > SAXParserFactory parseFactory = > SAXParserFactory.newInstance(); > SAXParser parser = parseFactory.newSAXParser(); > XMLReader xmlReader = parser.getXMLReader(); > xmlReader.setContentHandler(this); > StringReader sr = new StringReader(xmlMessage); > InputSource is = new InputSource(sr); > xmlReader.parse(is); > } > catch(Exception e){ > Log.e("NanoWarsXML","SAX error:" + e); > } > } > > } > > Logcat line before the try{} : > 12-19 01:31:38.763: INFO/NWXML(3218): > Trying to parse: > 12344787645 NWR> -- 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] parsing a *string* of XML with SAX.
Okay, so I know that the parse() method takes an inputsource, and normally it'd be better to parse the xml at the source (where it's a stream), but in this case I want to be parsing it on a different thread to the thread it's being received on. My question is basically a "why won't this work" question... As far as I can tell, the startElement method is never being called (no "startelement" entries in logcat after "trying to parse..") .. any help appreciated. Here's the code. public class NWCommsXMLParser extends DefaultHandler{ public void startElement(String uri, String name, String qName, Attributes atts){ Log.i("NWXML","startelement: " + uri + "." + name + "." + qName + "/" + atts.toString()); } public void endElement(String uri, String name, String qName){ } public void characters(char ch[], int start, int length) { } public void parseMessage(String xmlMessage){ Log.i("NWXML","Trying to parse: " + xmlMessage); try{ SAXParserFactory parseFactory = SAXParserFactory.newInstance(); SAXParser parser = parseFactory.newSAXParser(); XMLReader xmlReader = parser.getXMLReader(); xmlReader.setContentHandler(this); StringReader sr = new StringReader(xmlMessage); InputSource is = new InputSource(sr); xmlReader.parse(is); } catch(Exception e){ Log.e("NanoWarsXML","SAX error:" + e); } } } Logcat line before the try{} : 12-19 01:31:38.763: INFO/NWXML(3218): Trying to parse: 12344787645 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL: How to test for VBO support?
I'm working with the Droid right now and what's funny about it is that it's the only device I have that doesn't report a VBO extension but the VBOs work perfectly on it so it clearly supports them. Hmm... Normally I check the extensions for one that ends in "vertex_buffer_object" but that's not going to work here. Is there a better way of knowing? -- 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: this is just too much
Have you contacted law enforcement? You might have a hard time getting their attention for something "small" but it is their job to investigate and prosecute these things. When someone downloads something they don't have the rights to, that is wrong, but it gets much more serious when someone is profiting from their copyright infringement. On Dec 18, 5:01 pm, David Overcash wrote: > Send him a C&D for fun. Then tell Paypal he's selling illegally pirated > goods, they'll probably freeze his account. At the least you can stop him > for a while. > > On Fri, Dec 18, 2009 at 12:28 PM, Andrei wrote: > > Somebody on Craigslist selling our apps half price > > >http://knoxville.craigslist.org/mob/1515792578.html > > > -- > > 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] Alarm Wake Lock and Services
A wake lock is not currently held for services; you will need to wrap it with a broadcast receiver. (Actually it is held, but because services are async the power manager is immediately told that the pending intent has been sent, and releases its wake lock.) On Fri, Dec 18, 2009 at 4:23 PM, Alberto wrote: > Hello, I have a question about alarms used with services with regards > to wake locks. The documentation explains the behavior using > BroadcastReceivers, a wakelock is held during onReceive(), but doesn't > describe the behavior for alarms starting services with the RTC_WAKEUP > flag. What is the behavior in this case? > > I have an app implementing this, an alarm is created with the > RTC_WAKEUP flag that starts a service. The service onCreate() then > starts a thread to do some network activity. It seems to work just > fine but I just want to make sure that I don't need to explicity hold > a wakelock myself. > > -- > 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
Re: [android-developers] Portrait vs landscape using sensor
You might want to use this: http://developer.android.com/reference/android/view/OrientationEventListener.html If it doesn't exactly serve your needs, just copy the code into your own app and tweak as desired: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/OrientationEventListener.java For example there is a much more specialized version of this that the window manager uses for rotating the screen: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/WindowOrientationListener.java On Fri, Dec 18, 2009 at 10:50 AM, Mark Wyszomierski wrote: > Hi, > > I'm trying to detect landscape vs portrait orientation with the > following: > > public void onSensorChanged(SensorEvent event) { > float pitch = event.values[2]; > if (pitch <= 45 && pitch >= -45) { > // portrait > } > else if (pitch < -45) { > // landscape > } > else if (pitch > 45) { > // landscape > } > } > > anyone have something more robust? It works pretty well, except if the > phone is in a landscape orientation, and the user starts to 'flatten' > it out, starts thinking it's in the portrait orientation again, > > 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 > -- 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] Alarm Wake Lock and Services
Hello, I have a question about alarms used with services with regards to wake locks. The documentation explains the behavior using BroadcastReceivers, a wakelock is held during onReceive(), but doesn't describe the behavior for alarms starting services with the RTC_WAKEUP flag. What is the behavior in this case? I have an app implementing this, an alarm is created with the RTC_WAKEUP flag that starts a service. The service onCreate() then starts a thread to do some network activity. It seems to work just fine but I just want to make sure that I don't need to explicity hold a wakelock myself. -- 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] streaming issue with mediaplayer on android 2.0
I have an app that streams mp3's from a server, works fine on 1.5 and lower. But on the droid, for certain songs the mediaplayer buffers to like over 50% but onPrepared() is never called. These same songs work fine on 1.5 or on a 2.0 emulator but for some reason they just hang on the actual droid phone. No mediaplayer errors are thrown but if i call stop or reset it while it is hanging like this, it throws this, 12-18 19:14:05.230: ERROR/MediaPlayer(15718): stop called in state 4 12-18 19:14:05.230: ERROR/MediaPlayer(15718): error (-38, 0) 12-18 19:14:05.238: ERROR/PlayerDriver(987): Command (6) was cancelled it is only for certain files (yes they are all mp3s) and only on the droid. Anyone have any ideas why these songs would hang? I already checked the http headers and they are correct. Thanks for any help, it will be greatly 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] Re: Portrait vs landscape using sensor
Hi Fabio, This is for a camera app, and the activity is set to remain in landscape mode all the time. So if I want to find out which way the phone is oriented, I need to use the sensors, as the configuration will always report that I'm in landscape mode, Thanks On Dec 18, 6:51 pm, Fabio wrote: > Is there any reason why you cannot use the following code ? > > if (getResources().getConfiguration().orientation == > Configuration.ORIENTATION_PORTRAIT) { > //portrait > > } > > On Dec 18, 7:50 pm, Mark Wyszomierski wrote: > > > > > Hi, > > > I'm trying to detect landscape vs portrait orientation with the > > following: > > > public void onSensorChanged(SensorEvent event) { > > float pitch = event.values[2]; > > if (pitch <= 45 && pitch >= -45) { > > // portrait > > } > > else if (pitch < -45) { > > // landscape > > } > > else if (pitch > 45) { > > // landscape > > } > > } > > > anyone have something more robust? It works pretty well, except if the > > phone is in a landscape orientation, and the user starts to 'flatten' > > it out, starts thinking it's in the portrait orientation again, > > > 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: Portrait vs landscape using sensor
Is there any reason why you cannot use the following code ? if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { //portrait } On Dec 18, 7:50 pm, Mark Wyszomierski wrote: > Hi, > > I'm trying to detect landscape vs portrait orientation with the > following: > > public void onSensorChanged(SensorEvent event) { > float pitch = event.values[2]; > if (pitch <= 45 && pitch >= -45) { > // portrait > } > else if (pitch < -45) { > // landscape > } > else if (pitch > 45) { > // landscape > } > } > > anyone have something more robust? It works pretty well, except if the > phone is in a landscape orientation, and the user starts to 'flatten' > it out, starts thinking it's in the portrait orientation again, > > 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] How to run unit tests for samples.
Sorry for this basic question. How do I run the unit tests for the samples? Most of the samples have a subdirectory called tests with some source in them. However, I haven't been able to If I create a New Android Test project, it wants to create it from scratch. If I try to give it the tests subdirectory, it tells me that "C:\android-sdk-windows \platforms\android-1.6\samples\LunarLander\tests overlaps the location of another project". What is the proper way to set this up. Also, are there some tutorials that walk through creating tests? I thought I had seen some, but couldn't find them just now. Thanks. Nathan -- 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 Market - SharedPreferences
Answer: Yes. -John Coryat "Radar Now!" "What Zip Code?" -- 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 Market - SharedPreferences
Rafael Martins wrote: > If a user installs an update of an app using the Android Market, the > SharedPreferences persists? Yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.2 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] Android Market - SharedPreferences
If a user installs an update of an app using the Android Market, the SharedPreferences persists? -- 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] this is just too much
Send him a C&D for fun. Then tell Paypal he's selling illegally pirated goods, they'll probably freeze his account. At the least you can stop him for a while. On Fri, Dec 18, 2009 at 12:28 PM, Andrei wrote: > Somebody on Craigslist selling our apps half price > > http://knoxville.craigslist.org/mob/1515792578.html > > -- > 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] SDK running OK with Linux/Eclipse 64 bits ?
Hi, I just have upgraded to Mandriva 64bits. I have installed the lasted Eclipse. But it seems it has problems loading 32bits SDK libs : Failed to parse the out of 'adb version' tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file ... Can you help me ? I'd really like to stay in Linux 64 bits... -- 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 highlight the number and URL in page displayed
Hi, In the app i have displayed, i would be displaying the address of a DEALER and PHONE NUMBER and home page URL. When the user click on number the application should iniate the call and when the user click on the URL it should open up in a new browser. I want to know how to make the number and URL as hyperlink in the page -Sandeep -- 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: How can i stop a thread in a Activity?
Calling interrupt() only works if your thread is interruptable and if your thread handles interruptions appropriately. Your thread only is interrupted if the thread is doing I/O or is in a wait-state (having called wait() on Object). If you want to have background threads that do one-shot jobs and then wait, use AsyncTask or the java.util.concurrent's ExecutorService . And, you'd better read up on concurrent programming a little :-) It can be tricky. On Dec 16, 11:26 pm, Matt wrote: > Try storing the newly spawned thread as a field or collection in the > appropriate class. Then when you need to kill the thread, retrieve it > and call Thread.interrupt(). > > Matt > > On Dec 9, 6:15 pm, Richard Zhao wrote: > > > > > My problem is: > > Activity A called Activity B, and in Activity B, it start a background > > thread to do some client-server work. But it maybe takes too much > > time. So i add a cancel button to call the stop() method to stop the > > thread, and call finish() to finish the Activity B and go back to > > Activity A. Although it is back to Activity A, the thread isn't stop > > immediately. > > > Can i just call the finish() to go back to Activity A, and leave the > > thread to exit by itself? > > If it is not the right way, which is? > > > Thanks for any help.- Hide quoted text - > > - Show quoted 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] Re: OpenGL hardware requirements specification
Shaun, Most "effects" are things that you program so to enable/disable them, you have to do it in your own code. Most other primitive features like fog, lights and texture filtering are all controllable in GL, so you wouldn't need any additional configuration options for your GPU. I'm comfortable saying that all we need is a relative class of GPUs that basically indicates how much raw power they have. I'm trying to make my new game scale across all phones but I'm having a problem on the ones with software renderer. No matter how far I drop the res of my textures or how basic I make things, I can't get over 10 fps on it. That's where I'd like to draw the line and say that my game just can't be installed on it. I know I can never provide a good experience on it, and thus the basic class system. On Dec 18, 2:15 pm, shaun wrote: > And to be able to access the device's setting for GPU class (or > whatever it ends up being) programmatically at runtime if we want to > disable/enable features/effects based upon its value. > > On Dec 18, 3:12 pm, shaun wrote: > > > I think Robert Green is on the right track. We need something like > > this now! > > > On Dec 18, 2:34 pm, Robert Green wrote: > > > > I'd really like to see a GPU Class enumeration starting with the > > > software renderer. > > > > android:gpuClass="integer" > > > > class 0 = software renderer > > > class 1 = MSM7200 series > > > class 2 = PowerVR SGX series > > > class 3 = Some faster, more powerful GPU > > > etc... > > > > This way, we could specify that a game only works on class-2 and above > > > hardware. It would make it MUCH easier for us to build high-quality > > > games targeted at "gamer" phones. > > > > This in conjunction with a GL ES version would be perfect, however I > > > believe there will be some overlap. My gut says that using the > > > proposed class system, one would expect class 2 and above GPUs to > > > support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will > > > support 2.1 or 3.0 or whatever comes down the pipeline. > > > > On Dec 18, 4:05 am, Hexage wrote: > > > > > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > > > > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > > > > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > > > > will not feature GPU. However many games rely on a hardware > > > > accelerated OpenGL for lag-free rendering. > > > > > Currently, we can use: > > > > > > > > > > to specify the GLES version needed by the application. I assume that > > > > this requirement will be satisfied with the Android PixelFlinger (the > > > > software renderer) which is not what we want. Is there any way to > > > > specify a hardware accelerated OpenGL as a requirement in the > > > > manifest? > > > > > Something like this would be great: > > > > > > > > > > Thanks, > > > > David- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted 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
Re: [android-developers] Trackball Highlight for Header in ListView
droid_does wrote: > I have a ListView with a header and I am able to click the header as > if it was a list item however there is no highlighting if it receives > focus from the trackball/D-Pad. Basically I want the header view to > operate exactly as if it were just another list item in the ListView. > Is there a way to do this? Don't make it a header -- just put it in the list. All rows in the list do not have to be the same. You could use my MergeAdapter for this: http://github.com/commonsguy/cwac-merge -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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: Reminder: IRC office hours tomorrow
Check out the answers to questions from the 12/15 office hours here: http://moderator.appspot.com/#15/e=120951&t=11fd95 2009/12/17 Megha Joshi > We are still considering whether to provide transcripts depending on its > demand. > > There is a list of questions asked during office hours here.We will be > updating it with answers soon:. > http://moderator.appspot.com/#15/e=120951&t=11fd95 > > For today's office hours at 5pm PST you could post your questions at: > http://moderator.appspot.com/#15/e=120951&t=121ce5&f=121ce6 > > Thanks, > Megha > > 2009/12/16 theSmith > > Megha, >> >> Is there a transcript of previous office hours (just one I believe) / >> future office hours? >> >> By transcript I mean exactly what was said during the session, >> available for those who were unable to actually be on IRC at that >> time. >> >> Thanks, >> >> Chris >> >> On Dec 14, 7:02 pm, Megha Joshi wrote: >> > Hi Everyone, >> > >> > Just a quick reminder that our IRC office hour session is taking place >> > tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your >> technical >> > questions at: >> > >> > irc://irc.freenode.net#android-dev < >> http://irc.freenode.net/#android-dev> >> > >> > Thanks, >> > Megha >> >> -- >> 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] Re: Explanation about different UI meansuring...
jotobjects wrote: > On Dec 18, 12:17 pm, Mark Murphy wrote: >> http://developer.android.com/guide/topics/resources/available-resourc... > > Where is the setting for user desired font-size mentioned in that > link? Yeah, well, that seems to be missing, AFAICT. > Here it is recommended that you use 'sp' but I'm wondering if > there are places where that would not be the best practice (as in the > text of a button since the user setting might then make buttons > unreadable). Until there is a way for users to set their desired font size, I'd consider skipping sp, if for no other reason than you can't test it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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: How to create a closed (circular) ListView
I did this by creating my own list-adapter (subclassed from BaseAdapter). I coded my own list-adapter in such a way that its getCount() method returns a HGE number. And if item 'x' is selected, then this item corresponds to adapter position='adapter.getCount()/2+x' And for my adapter's method getItem(int position), i look in my array that backs up the adapter and fetch the item on index: (position-getCount()/2) % myDataItems.length You need to do some more 'special' stuff to make it all work correctly, but you get the idea. In principle, it is still possible to reach the end or the beginning of the list, but if you set getCount() to around a million or so, this is hard to do :-) On Dec 17, 5:46 am, Mart wrote: > Hi, I want to create a customized ListView (or similar) which will > behave like a closed (circular) one: > > 1. scrolling down - after the last item was reached the first > begins (.., n-1, n, 1, 2, ..) > 2. scrolling upward - after the first item was reached the last > begins (.., 2, 1, n, n-1, ..) > > It sounds simple conceptually but, apparently, there is no > straightforward approach to do this. > Can anyone point me to the right solution ? > 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] Re: OpenGL Error 1281 loading textures on Droid in native resolution
Solved. It's a scaling problem. My textures were being density- scaled on load and thus were no longer power-of-two when I tried to use them. On Dec 18, 4:15 pm, Robert Green wrote: > Just started testing my games on the Droid in native res (any density > enabled). I've been using (scaled density) compatibility mode up > until now. Everything works except for the textures. > > OpenGL throws error 1281 (Invalid Value) when loading in that mode > (480x854). Everything loads fine when I go back to compatibility > (320x597). > > I'm trying to use GLUtils.texImage2D(GL10.GL_TEXTURE_2D, level, > bitmap, 0). That's it. I used a GLSurfaceView to configure GL so all > settings should be standard/default. > > This is working on every device except the Droid and it even works on > it when I don't have "any density" enabled. Is this a bug or am I > actually doing something wrong? -- 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: Explanation about different UI meansuring...
On Dec 18, 12:17 pm, Mark Murphy wrote: > > http://developer.android.com/guide/topics/resources/available-resourc... Where is the setting for user desired font-size mentioned in that link? Here it is recommended that you use 'sp' but I'm wondering if there are places where that would not be the best practice (as in the text of a button since the user setting might then make buttons unreadable). -- 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] Trackball Highlight for Header in ListView
I have a ListView with a header and I am able to click the header as if it was a list item however there is no highlighting if it receives focus from the trackball/D-Pad. Basically I want the header view to operate exactly as if it were just another list item in the ListView. Is there a way to do 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: How to add a third-party jar into apk?
On Dec 14, 7:38 pm, bear tung wrote: > but javax.xml.transform is already included in xmlsec-1.4.3.jar which is > not work. T_T > That means you cannot use use xmlsec-1.4.3.jar. Welcome to the world of limited resources on smartphone devices! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Email Styles
This is essentially a stupid question but in case anyone was wondering to achieve this you would need two different TextViews with a horizontal orientation so they are aligned (TextView1 TextView2). Then set the textColor to the colors you want and split the string adding split[0] to TextView1 and split[1] to TextView2. I used this with email addresses in a ListView using black and android:color/ darker_gray and it looks really good. On Dec 3, 7:30 pm, droid_does wrote: > I have noticed that in some android applications the email is > displayed in two colors. The username is black and the domain is gray > (blackco...@graycolor.com). Is there a way within android to use this > display style or if not what is the simplest way to achieve this > effect? > > 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: JDBC Driver for SQLiteDatabase
On Dec 15, 8:46 am, kristianlm wrote: > I understand that the driver doesn't have to be > documented if you're not supposed to be using > it since it's going "low-level". That's right. There is nothing useful you can do with the driver anyway. That's what the JDBC API is for. > > But the driver does not seem to register itself, > without Class.forName("SQLite.JDBCDriver"), > I get "no suitable driver found". > Class.forName() is the convention for registering a JDBC driver. > So that means we're not supposed to be using > the sqlite back-end through JDBC at all? I'm > not happy! Why is the JDBC built-in if no one is > allowed to use it? > No it means call Class.forName(). Just get a Connection object as in the examples in this thread and you can use JDBC with SQLite. This is way JDBC always works -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL Error 1281 loading textures on Droid in native resolution
Just started testing my games on the Droid in native res (any density enabled). I've been using (scaled density) compatibility mode up until now. Everything works except for the textures. OpenGL throws error 1281 (Invalid Value) when loading in that mode (480x854). Everything loads fine when I go back to compatibility (320x597). I'm trying to use GLUtils.texImage2D(GL10.GL_TEXTURE_2D, level, bitmap, 0). That's it. I used a GLSurfaceView to configure GL so all settings should be standard/default. This is working on every device except the Droid and it even works on it when I don't have "any density" enabled. Is this a bug or am I actually doing something wrong? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth Developers Guide and Bluetooth Sample Code
Hi Bluetooth Developers, We have just published an Android Bluetooth Developers Guide, and a Sample Application. See links below. http://developer.android.com/guide/topics/wireless/bluetooth.html http://developer.android.com/resources/samples/BluetoothChat/index.html I hope these become a useful resource, Happy Holidays, Nick Pelly Android Bluetooth Project Lead -- 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] MobiForms Developer Tool Now Supports Google Android Smartphones
The latest version of the revolutionary mobile development tool MobiForms 5.0 now offers support for Google Android smartphones. MobiForms is the first rapid application development tool in the world specifically designed for Google Android. Up until now developing for Android required in depth professional programming skills with mandatory learning of Java, the Eclipse IDE (Integrated Development Environment) and the Google Android SDK (Software Development Kit). MobiForms replaces all of these tools with one simple, intuitive, drag and drop interface. No Java or XML programming is required. MobiForms now makes it possible for novice or experienced programmers alike to quickly create mobile business application for Android Google smartphones. MobiForms for Google Android supports JDBC database connectivity to a range industrial standard databases including Oracle and SQL Server. MobiForms also includes a free copy of the JDBC compliant HSQLDB database engine for off-line mobile database storage. MobiForms offers all the tools in one "box" for the creation and deployment of any type of mobile application - from surveys to field service, from signature capture to bar coding. One MobiForms application supports multiple device types including Tablet PC, Pocket PC, Windows CE, Windows Mobile, Symbian and now Google Android. One MobiForms licence includes an unlimited runtime licence for any number of mobile devices. MobiForms for Google Android can be downloaded from the MobiForms web site at: http://www.mobiforms.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] Re: Drag and Drop
Thanks Mark On Dec 18, 4:37 pm, Mark Murphy wrote: > Business Talk wrote: > > is there any drag and drop support in android? Couldn't find any > > Nothing really built in, though with touch events and such you could > create something that works for your app. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training in US: 11-15 January 2010:http://onlc.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
Re: [android-developers] I am a newbie...
To run on a phone, install the USB driver. For development in Eclipse, just use the Debug perspective - it will automatically create the .apk, download to the phone, and run it. On Dec 18, 2009 11:24 AM, "Jae Chang" wrote: I just followed the direction on google code page to set up java IDE, eclipse and android sdk and i tried all the steps to go hello world app. now i want to try to run other sample codes provided by google android team. i downloaded zip file from http://android-developers.blogspot.com/?hl=en and i took out a folder out of it, but how do i run it in eclipse then execute in android sdk? and how do i repackage the file to apk to run it in a phone? i want to be able to try samples and how they run so that i can start it by using sample codes to write my own code (i have an electrical engineeering degree from college and i did c and c++ coding though it was very basic, but i can say i can learn what is explained with proper steps) tell me where i can find the steps to run or just tell me how to do 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] Re: Updating a pre-installed application
Sorry, I don't believe there is a way to do that. Market is not intended to deliver applications tied to a particular device; it is for applications that are developed for the regular platform. One possible trick you can use is to also require that the OEM include a shared library of yours, if you put a for this in your app's manifest, then (some day in the future) Market will only show the app for devices that have this library. (Market doesn't do this right now, but hopefully will soon.) Actually, if your app needs some functionality from the device that is not part of the platform, the proper way to do this is to put it in a shared library like this that the application uses (and the OEM implements). This may just be what you want to do anyway. On Fri, Dec 18, 2009 at 12:57 PM, John Seghers wrote: > One more question about this. > > Our application is one that requires OEM integration to provide its > full functionality and thus if someone downloaded it from the Market > to a phone on which it is not normally pre-installed, it would not > function properly for them. > > Is there a way to place the update on the marketplace such that it > will only be available to phones on which it was originally preloaded? > > -- > 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] Re: TTS TalkBack doesn't read AlertDialog titles or messages?
I tried the updated TTS app from that thread. The new version reads AlertDialog titles and messages now, although it still does not read other non-focusable text on the screen. Perhaps I'm not aware of an input function that will prompt TTS to read the entire screen. I'll take my follow-up questions to that group. Thanks for the info and link. On Dec 18, 1:13 pm, blindfold wrote: > You might wish to check if the following recent update addresses your > problem > > http://groups.google.com/group/tts-for-android/browse_thread/thread/2... > > or else bring up your problem on that list. > > Regards > > On Dec 18, 5:55 pm, RNekic wrote: > > > > > So I tried turning on TalkBack to see how well my application works > > with the feature and I was surprised to discover that TalkBack does > > not speak the title or text of an AlertDialog. It's only speaking the > > text from the buttons I add to the dialog. Am I doing something wrong > > when I define my AlertDialogs or is this intended behavior? > > > Do I need to code specifically against the AccessibilityManager to > > have AlertDialog text (or any other non-focusable text) spoken by > > TalkBack? > > > I'm currently using 1.5 (SDK 3) in my manifest's minSdkVersion. As I > > understand it, I'd have to bump the setting to 1.6 (SDK 4) if i want > > to use the AccessibilityManager. Am I mistaken? I'm reluctant to > > change my minSdkVersion to 4 after seeing how large the v1.5 slice of > > the OS pie still is according to > > Google:http://developer.android.com/intl/fr/resources/dashboard/platform-ver... > > > Is there another solution? -- 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] Drag and Drop
Business Talk wrote: > is there any drag and drop support in android? Couldn't find any Nothing really built in, though with touch events and such you could create something that works for your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 11-15 January 2010: http://onlc.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] Drag and Drop
is there any drag and drop support in android? Couldn't find any -- 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: Updating a pre-installed application
One more question about this. Our application is one that requires OEM integration to provide its full functionality and thus if someone downloaded it from the Market to a phone on which it is not normally pre-installed, it would not function properly for them. Is there a way to place the update on the marketplace such that it will only be available to phones on which it was originally preloaded? -- 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: using soundPool but sound plays after a delay, sound is lagging
I have had similar issues using wav and mp3 files. I haven't profiled the delays, but I did decide to pre-load all of the settings that I could pre-load. Even retrieving all settings from the context and storing them. Then, just call playSound. This doesn't diagnose the problem, but it should reduce a little overhead. Matt On Dec 18, 12:37 pm, Robert Green wrote: > Can you quantify the lag? How much is it lagging? Lately I've been > seeing my footstep sounds, which are individually triggered right and > left steps, take 2-50ms to trigger for some reason. I'm not sure if > it has something to do with the way the OGG is encoded, but I feel > like it could. Perhaps the SoundPool author would like to chime in > and give us some hints? > > On Dec 18, 3:45 am, rukiman wrote: > > > I am using the SoundPool as follows: > > > Caching my sounds: > > // load sound effects > > soundPool = new SoundPool(2, > > AudioManager.STREAM_MUSIC, 0); > > soundPoolMap = new HashMap(); > > AssetFileDescriptor afd; > > try { > > afd = > > context.getAssets().openFd("sounds/piecemove.ogg"); > > soundPoolMap.put(SOUND_PIECEMOVE, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/piecestop.ogg"); > > soundPoolMap.put(SOUND_PIECESTOP, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/pieceattack.ogg"); > > soundPoolMap.put(SOUND_PIECEATTACK, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/pieceselect.ogg"); > > soundPoolMap.put(SOUND_PIECESELECT, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/selection.ogg"); > > soundPoolMap.put(SOUND_MENUSELECTION, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/pageturn.ogg"); > > soundPoolMap.put(SOUND_PAGETURN, > > soundPool.load(afd, 1)); > > } catch (IOException e) { > > e.printStackTrace(); > > } > > > Function to play sounds: > > > public static int playSound(Context context, int sound) { > > > AudioManager mgr = (AudioManager) context > > .getSystemService(Context.AUDIO_SERVICE); > > float streamVolumeCurrent = mgr > > .getStreamVolume(AudioManager.STREAM_MUSIC); > > float streamVolumeMax = mgr > > > > .getStreamMaxVolume(AudioManager.STREAM_MUSIC); > > float volume = streamVolumeCurrent / streamVolumeMax; > > /* Play the sound with the correct volume */ > > return soundPool > > .play(soundPoolMap.get(sound), volume, > > volume, 1, 0, 1f); > > } > > > Playing a sound effect i.e when button is clicked: > > > Resources.playSound(context, Resources.SOUND_PIECESELECT); > > > However as I said the sound is lagging. What can I do to improve this? > > All my sounds are OGG file format. -- 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: Localized to: unknown even though I have localized strings
Same issue here. Tempted to ignore, but want to make sure not missing something. Anyone with an update on this? On Dec 10, 1:09 pm, Beth wrote: > Hey! I also see the unknown message in my localized application. The > first time I loaded a localized app on the Android Market, it read the > folders right. Since the (SDK 1.6) Market upgrade I have gotten the > unknown message. It looks like a bug should be filed on the Market. > > Sandscorpio, do you want to take that step? > > Thanks and regards, > Beth > > On Dec 9, 4:19 pm, tassie wrote: > > > > > I have the same issue. I've been ignoring it, inasmuch as my > > localizations obviously work on the device. > > > Even so, I am wondering what is going on here. Did you ever get a > > resolution? > > > On Nov 8, 3:46 pm, sandscorpio wrote: > > > > I have default strings under res/values/strings.xml andlocalized > > > strings at res/values-de/strings.xml and res/values-es/strings.xml . > > > But when I upload the app to the Market, it shows 'Localizedto:unknown'! > > > > If I run the app in the simulator using the German or Spanish locale, > > > thelocalizedstrings show up correctly. > > > > 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: Program unique identifier
@Watcher That's why the ANDROID_ID is meant to be used I believe, it is phone even on phone-less devices. Though some phone-less devices redirect the getDeviceId() call to return the ANDROID_ID too. @Iphpc Watcher is correct, there is no unique program specific identifier outside of the package name. You could simply concatenate that with the ANDROID_ID though for program specific uniqueness. This would returned you a new value for each device that is running you app. You could even add a version to this to differentiate across versions since you package stays the same... -Tim Strazzere On Dec 18, 3:07 pm, Watcher wrote: > If your software is running on a phone-less tablet, chances are you > won't even get an instance of TelephonyManager so getDeviceId() won't > work > > Unique program identifer is the package identifier although anyone > could use the same id as yours... > > On Dec 18, 4:49 am, lphpc wrote: > > > Hi All, > > As known, we can get devcie unique ID using > > TelephonyManager#getDeviceId() . So, does a program have an unique > > identifier? How can I get it? I googled it but got nothing. > > > Br > > -- 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: Hebrew font on Android!
If you have a rooted phone and you want to add Hebrew fonts, you can follow the instructions in this link: http://iandroid.co.il/archives/485 In case you're using CyanogenMod ROM, you can update to version 4.2.9 which, as the change-log states, has Hebrew fonts. http://www.cyanogenmod.com/home/cyanogenmod-4-2-9 Once you have the Hebrew fonts installed, and you want a Hebrew virtual keyboard, you can download 'AnySoftKeyboard' http://code.google.com/p/softkeyboard/ Lior Gonnen UltimateFavesPRO developer. http://ultimatefaves.wordpress.com/ On Dec 18, 8:07 pm, Do it wrote: > When we see Hebrew languages that are available in the Android Mobile? -- 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] Unable to start an activity, load the home screen, or show a notification during calls on Droid
Hi All, Has anyone been successful showing a notification, starting an activity, or loading the home screen *during* a call on the Droid? All three of these actions can be done with the emulator running 2.0, but will not run from the Droid. I don't receive any type of notification that these actions fail on the Droid. Although, every action works when a call is *not* active. Missed calls during a call *do* show up in the notification bar, so I am hoping there is a way. I understand that the notification bar can not be accessed by users during calls, but it would be nice if a notification could at least be delivered. I also understand the security and usability concerns of displaying a window or action during phone calls. Although, there are a lot of users who would like actionable functionality based on calls. Thanks for any input, Matt -- 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] Explanation about different UI meansuring...
Abdul Mateen wrote: > Can any body explain about , or give any refernce to different measuring > quantities in Android like dip, dp, inch. http://developer.android.com/guide/topics/resources/available-resources.html#dimension -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year -- 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: ClassLoader leaking memory?
Um, you are making this way too hard. You should load code with this: http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String, int) And please please note, there are major security and functional issues with loading code like this. If this isn't all code you have written that is only running in your own app, you really need to seriously rethink what you are doing. Security -- you are allowing someone else's code to run in your process, with your identity, with your permissions. They can do everything you can, as you, so any problems in their code are effectively -your- problem. Functionality -- the code is loading and running with your uid, so it can not request its own permissions, and can only read and write files under your data directory. if multiple applications load it, all of its data is isolated in each of those apps, and it ends up running with different permissions depending on the app. On Fri, Dec 18, 2009 at 12:12 PM, B++ wrote: > After some further analysis, I noticed that memory resources are > released if the loaded class belongs to the same apk as the app. The > problem seems to be apparent if a loaded class belongs to a different > apk. It looks like the resources about the class extraction are not > getting released properly. > > fadden, I create a new class loader onCreate(), so that I will always > ensure that a new apk is loaded everytime the app is launched. > Ideally, I would like to clean these resources onDestroy, but > supposedly, this should be handled by gc. > > By the way, the loaded apk represents a plugin (A simple class, and > some plugin specific resources), and onCreate, I need to check if > plugin has changed, but this is not possible without loading the class > from the apk first :) > > > > > > > > > > > > -- > 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] Re: androidplayground.net
The site uses Paypal for subscriptions too, not just donations. And paypal has clear polices on infringement. Report here https://cms.paypal.com/be/cgi-bin/?&cmd=_render-content&content_ID=ua/InfringementRpt_full On Dec 17, 8:43 pm, "Guess Who, You Probably have my Number" wrote: > Hi Scott, > Figured I would let you in on something. I have nothing to do with > that site anymore. > I haven't in a while. If Tony is still on it then fine. But please > don't put my name into anything. > > Me and you had a long discussion and touched many topics not to long > ago and from what I can > recall, I told you I am done with that site. > > I couldn't if I wanted to. I don't have access to the domain > name anymore. So for all developers trying to find out about their > applications look elsewhere. > Honestly, when the site was going on it wasn't much money anyways. > > But like I said leave my name out of it. I am currently developing an > application and have no time for websites. > > Have a good day, > > On Dec 17, 2:20 am, "SoftwareForMe.com" > wrote: > > > We found this site some time ago; it's operated by Nick Narbone and > > someone named Tony, both in Florida. > > > We requested that they remove our software, and as far as we could > > tell, they did so. > > > However, they used to have a complete list of their available apps, > > but have now redone their site and taken the list off, saying "We > > cannot give a list because of issues with some developers." > > > SoftwareForMe.com > > Makers of PhoneMyPC > > & Imagine Multi-touch -- 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: OpenGL hardware requirements specification
And to be able to access the device's setting for GPU class (or whatever it ends up being) programmatically at runtime if we want to disable/enable features/effects based upon its value. On Dec 18, 3:12 pm, shaun wrote: > I think Robert Green is on the right track. We need something like > this now! > > On Dec 18, 2:34 pm, Robert Green wrote: > > > > > I'd really like to see a GPU Class enumeration starting with the > > software renderer. > > > android:gpuClass="integer" > > > class 0 = software renderer > > class 1 = MSM7200 series > > class 2 = PowerVR SGX series > > class 3 = Some faster, more powerful GPU > > etc... > > > This way, we could specify that a game only works on class-2 and above > > hardware. It would make it MUCH easier for us to build high-quality > > games targeted at "gamer" phones. > > > This in conjunction with a GL ES version would be perfect, however I > > believe there will be some overlap. My gut says that using the > > proposed class system, one would expect class 2 and above GPUs to > > support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will > > support 2.1 or 3.0 or whatever comes down the pipeline. > > > On Dec 18, 4:05 am, Hexage wrote: > > > > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > > > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > > > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > > > will not feature GPU. However many games rely on a hardware > > > accelerated OpenGL for lag-free rendering. > > > > Currently, we can use: > > > > > > > > to specify the GLES version needed by the application. I assume that > > > this requirement will be satisfied with the Android PixelFlinger (the > > > software renderer) which is not what we want. Is there any way to > > > specify a hardware accelerated OpenGL as a requirement in the > > > manifest? > > > > Something like this would be great: > > > > > > > > Thanks, > > > David- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted 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] Explanation about different UI meansuring...
Hi, Can any body explain about , or give any refernce to different measuring quantities in Android like dip, dp, inch. 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] Re: OpenGL hardware requirements specification
I think Robert Green is on the right track. We need something like this now! On Dec 18, 2:34 pm, Robert Green wrote: > I'd really like to see a GPU Class enumeration starting with the > software renderer. > > android:gpuClass="integer" > > class 0 = software renderer > class 1 = MSM7200 series > class 2 = PowerVR SGX series > class 3 = Some faster, more powerful GPU > etc... > > This way, we could specify that a game only works on class-2 and above > hardware. It would make it MUCH easier for us to build high-quality > games targeted at "gamer" phones. > > This in conjunction with a GL ES version would be perfect, however I > believe there will be some overlap. My gut says that using the > proposed class system, one would expect class 2 and above GPUs to > support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will > support 2.1 or 3.0 or whatever comes down the pipeline. > > On Dec 18, 4:05 am, Hexage wrote: > > > > > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > > will not feature GPU. However many games rely on a hardware > > accelerated OpenGL for lag-free rendering. > > > Currently, we can use: > > > > > > to specify the GLES version needed by the application. I assume that > > this requirement will be satisfied with the Android PixelFlinger (the > > software renderer) which is not what we want. Is there any way to > > specify a hardware accelerated OpenGL as a requirement in the > > manifest? > > > Something like this would be great: > > > > > > Thanks, > > David- Hide quoted text - > > - Show quoted 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] Re: ClassLoader leaking memory?
After some further analysis, I noticed that memory resources are released if the loaded class belongs to the same apk as the app. The problem seems to be apparent if a loaded class belongs to a different apk. It looks like the resources about the class extraction are not getting released properly. fadden, I create a new class loader onCreate(), so that I will always ensure that a new apk is loaded everytime the app is launched. Ideally, I would like to clean these resources onDestroy, but supposedly, this should be handled by gc. By the way, the loaded apk represents a plugin (A simple class, and some plugin specific resources), and onCreate, I need to check if plugin has changed, but this is not possible without loading the class from the apk first :) -- 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: Program unique identifier
If your software is running on a phone-less tablet, chances are you won't even get an instance of TelephonyManager so getDeviceId() won't work Unique program identifer is the package identifier although anyone could use the same id as yours... On Dec 18, 4:49 am, lphpc wrote: > Hi All, > As known, we can get devcie unique ID using > TelephonyManager#getDeviceId() . So, does a program have an unique > identifier? How can I get it? I googled it but got nothing. > > Br -- 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: } catch (OutOfMemoryError E) {
As a followup this had no impact. Also it wasn't an OutOfMemoryError when it it got bubbled up to my activity, it was an InflateException. Catching the exception seemed to have no impact, it still crashed. I tried this: //not having much luck fixing our OutOfMemoryErrors, so lets see what happens if we just catch and log it. Might be nicer to the user. try { setContentView(R.layout.arl_start); } catch (OutOfMemoryError e) { GlobalUtils.outOfMemoryCount++; Log.e(getClass().getCanonicalName(),"GlobalUtils.outOfMemoryCount "+GlobalUtils.outOfMemoryCount); e.printStackTrace(); finish(); } catch (InflateException e) { GlobalUtils.outOfMemoryCount++; Log.e(getClass().getCanonicalName(),"GlobalUtils.outOfMemoryCount "+GlobalUtils.outOfMemoryCount); e.printStackTrace(); finish(); } On Dec 11, 11:19 am, Matt Kanninen wrote: > Can I ask what Android does with un caught OutOfMemoryErrors that it > wouldn't do if I caught them? It's really tempting for me to do this: > > try { > setContentView(R.layout.result);} catch (OutOfMemoryError E) { > > outOfMemoryCount++; > e.printStackTrace(); > finish(); > > } > > If I don't catch the OutOfMemory my activity crashes, but then the > user just clicks the button again and it loads great the second time. > So something happens resulting in the rightmemorybeing cleared. -- 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] Enumerate activity history stack
"adb shell dumpsys activity" prints the current activity stacks, plus other core state in the activity manager. On Thu, Dec 17, 2009 at 4:11 PM, rich wrote: > When debugging I've sometimes wanted a tool that would list running > tasks and show which activities are on the history stack for each > task. I can get a list of tasks by calling > ActivityManager.getRunningTasks(). Each > ActivityManager.RunningTaskInfo object in the list gives me > interesting information such as the base activity, top activity, and > number of activities in the task. I haven't found a way to actually > enumerate all the activities in the task's history stack. Is there a > way to get at such information? > > -- > 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] Re: How to test if app is shown on Market for all screensizes
The problem of some Milestone devices not seeing copy protected apps is one we continue to work on addressing. We are working with the OEM to resolve the root cause. > You guys are funny. Android Market on HTC Tattoo does not show > applications that do not implicitly declare that they support its > screen. It definitely has nothing to do with CAMERA permission or > whatsoever This is false. As previously stated, *if* the app requires the android.permission.CAMERA manifest, it *must* state that it does not require autofocus in in order to show on Tattoo. This is because the camera permission, if granted, implies access to an autofocus camera. The request must be modified to not require autofocus with . Admittedly this is not as developer- friendly as it could be, its the result of a lack of foresight in our original design. A separate issue is that apps that do not explicitly support sdkVersion 4 or above will not be shown to Tattoo because it contains a "small" screen. "small" screen devices did not exist before Android 1.6 (sdkVersion 4) and apps may break when shrunk to fit the smaller screen. Apps declaring support for sdkVersion 4 or above will be assumed to support small screens, unless stated otherwise in the element. Regards, Justin Android Team @ Google On Dec 9, 3:38 pm, Paul Turchenko wrote: > You guys are funny. AndroidMarketon HTC Tattoo does not show > applications that do not implicitly declare that they support its > screen. It definitely has nothing to do with CAMERA permission or > whatsoever. I do agree that Google could post some clear explanations > what exactly AndroidMarkettakes into account when he decides that > application should not show up (I'm pretty sure that it's a server > side of AndroidMarketwho makes these decisions). And it has nothing > to do with device vendor since it just includes AndroidMarketin > their firmwares. > > Please stop blaming phone vendors. Google is the only one to blame for > Android Market behavior. > > On Nov 18, 11:58 am, blindfold wrote: > > > Same thing with me, I have copy protection turned off in Android > >Market. > > > It would be good now to get some feedback from Google or HTC on > > whether it is a bug. > > > On Nov 18, 9:54 am, Klaus Kartou wrote: > > > > We haven't turned copy protection on for ourapp, and it is still not > > > visible on HTC Tattoo/HTC Dragon. > > > Please, Google is this a known issue? > > > > On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff wrote: > > > > I noticed this problem when the new Droid Eris came out. At first, i > > > > started messing with minsdk and even lowered it to "2" but that didnt > > > > fix it, the apps didnt show up in themarket. I ran through Verizon > > > > and Sprint stores for days to try to get this to work. > > > > > I dont think Google people even know the problem exist. I am surprised > > > > that this problem hasnt been fixed for such a long time now. Anyway, > > > > the reason why you can 't see yourappon HTC Hero/Eris or any other > > > > 1.5 phones is because you have copy protection set to "On". You can > > > > turn this off in your developer console when logged in to your Android > > > >Marketaccount and editing your application description/title > > > > > cheers! > > > > > On Nov 17, 1:19 am, Klaus Kartou wrote: > > > > > Is there any Google people that can shed some light on this issue? > > > > > > On Mon, Nov 16, 2009 at 4:42 PM, blindfold > > > >wrote: > > > > > > > Thanks Phil! > > > > > > > Indeed this is very strange. As I understand it,allAndroid 1.6 apps > > > > > > should by default be visible to HTC Tattoo on the AndroidMarket, and > > > > > > use of the camera should not matter. I had even tested myappto show > > > > > > OK on a 240x320 screen using the emulator, and cannot think of > > > > > > anything else to correct. I was thinking of trying an empty > > > > > > > > > > > screens> element in case documentation is ambiguous, but even so it > > > > > > would not seem to make sense to have the CAMERA dependency. > > > > > > Hopefully > > > > > > HTC or Android developers (Romain?) will figure it out soon, because > > > > > > this kind ofmarketfragmentation seems unnecessary. > > > > > > > On Nov 16, 9:55 am, phil wrote: > > > > > > > Hi Blindfold, > > > > > > > > We were not able to find The vOICE for Android in theMarketon the > > > > > > > Tattoo. But we found it on the HTC Magic in theMarket. > > > > > > > > Hope there will be a solution for this issue soon. > > > > > > > > On Nov 15, 8:21 am, blindfold wrote: > > > > > > > > > OK, I didn't know that. My curiosity was triggered by Phil with > > > > > > > > the > > > > > > > > suggested role of the CAMERA permission in having apps be > > > > > > > > visible > > > > on > > > > > > > > theMarket, which AFAIK should not have made any difference. > > > > > > > > Also, > > > > > > > > android:minSdkVersion="4" (Android 1.6) according to > > > > > > > > documentation > > > > > > > > implies thatallscreensizesa
[android-developers] Re: using soundPool but sound plays after a delay, sound is lagging
Can you quantify the lag? How much is it lagging? Lately I've been seeing my footstep sounds, which are individually triggered right and left steps, take 2-50ms to trigger for some reason. I'm not sure if it has something to do with the way the OGG is encoded, but I feel like it could. Perhaps the SoundPool author would like to chime in and give us some hints? On Dec 18, 3:45 am, rukiman wrote: > I am using the SoundPool as follows: > > Caching my sounds: > // load sound effects > soundPool = new SoundPool(2, > AudioManager.STREAM_MUSIC, 0); > soundPoolMap = new HashMap(); > AssetFileDescriptor afd; > try { > afd = > context.getAssets().openFd("sounds/piecemove.ogg"); > soundPoolMap.put(SOUND_PIECEMOVE, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/piecestop.ogg"); > soundPoolMap.put(SOUND_PIECESTOP, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/pieceattack.ogg"); > soundPoolMap.put(SOUND_PIECEATTACK, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/pieceselect.ogg"); > soundPoolMap.put(SOUND_PIECESELECT, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/selection.ogg"); > soundPoolMap.put(SOUND_MENUSELECTION, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/pageturn.ogg"); > soundPoolMap.put(SOUND_PAGETURN, > soundPool.load(afd, 1)); > } catch (IOException e) { > e.printStackTrace(); > } > > Function to play sounds: > > public static int playSound(Context context, int sound) { > > AudioManager mgr = (AudioManager) context > .getSystemService(Context.AUDIO_SERVICE); > float streamVolumeCurrent = mgr > .getStreamVolume(AudioManager.STREAM_MUSIC); > float streamVolumeMax = mgr > > .getStreamMaxVolume(AudioManager.STREAM_MUSIC); > float volume = streamVolumeCurrent / streamVolumeMax; > /* Play the sound with the correct volume */ > return soundPool > .play(soundPoolMap.get(sound), volume, > volume, 1, 0, 1f); > } > > Playing a sound effect i.e when button is clicked: > > Resources.playSound(context, Resources.SOUND_PIECESELECT); > > However as I said the sound is lagging. What can I do to improve this? > All my sounds are OGG file format. -- 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: OpenGL hardware requirements specification
I'd really like to see a GPU Class enumeration starting with the software renderer. android:gpuClass="integer" class 0 = software renderer class 1 = MSM7200 series class 2 = PowerVR SGX series class 3 = Some faster, more powerful GPU etc... This way, we could specify that a game only works on class-2 and above hardware. It would make it MUCH easier for us to build high-quality games targeted at "gamer" phones. This in conjunction with a GL ES version would be perfect, however I believe there will be some overlap. My gut says that using the proposed class system, one would expect class 2 and above GPUs to support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will support 2.1 or 3.0 or whatever comes down the pipeline. On Dec 18, 4:05 am, Hexage wrote: > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > will not feature GPU. However many games rely on a hardware > accelerated OpenGL for lag-free rendering. > > Currently, we can use: > > > > to specify the GLES version needed by the application. I assume that > this requirement will be satisfied with the Android PixelFlinger (the > software renderer) which is not what we want. Is there any way to > specify a hardware accelerated OpenGL as a requirement in the > manifest? > > Something like this would be great: > > > > Thanks, > David -- 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] this is just too much
Somebody on Craigslist selling our apps half price http://knoxville.craigslist.org/mob/1515792578.html -- 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: androidplayground.net
Hi Scott, Figured I would let you in on something. I have nothing to do with that site anymore. I haven't in a while. If Tony is still on it then fine. But please don't put my name into anything. Me and you had a long discussion and touched many topics not to long ago and from what I can recall, I told you I am done with that site. I couldn't if I wanted to. I don't have access to the domain name anymore. So for all developers trying to find out about their applications look elsewhere. Honestly, when the site was going on it wasn't much money anyways. But like I said leave my name out of it. I am currently developing an application and have no time for websites. Have a good day, On Dec 17, 2:20 am, "SoftwareForMe.com" wrote: > We found this site some time ago; it's operated by Nick Narbone and > someone named Tony, both in Florida. > > We requested that they remove our software, and as far as we could > tell, they did so. > > However, they used to have a complete list of their available apps, > but have now redone their site and taken the list off, saying "We > cannot give a list because of issues with some developers." > > SoftwareForMe.com > Makers of PhoneMyPC > & Imagine Multi-touch -- 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] Hebrew font on Android!
When we see Hebrew languages that are available in the Android Mobile? -- 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: OutofMemoryError: bitmap size exceeds VM budget.....
how ? On Dec 18, 6:11 pm, Abhi wrote: > Resolved!!! > > On Dec 18, 9:25 am, Abhi wrote: > > > Anyone? > > > On Dec 18, 12:11 am, Abhi wrote: > > > > Hi, > > > > I am doing the following in my app, which at times results in the > > > above error. > > > > Action 1: Button on Main activity calls all pictures using ACTION_PICK > > > (results in a thumbnail view of all pictures on my phone). User picked > > > image (URI) is then passed over to next activity where the image is > > > displayed (ImageView) full screen. When I hit back, I go back to the > > > main activity. If I try to open all pictures and pick a picture again, > > > I get a FORCE CLOSE and the logCat data says "OutofMemoryError: bitmap > > > size exceeds VM budget. > > > > Action 2: I get the same error and FORCE CLOSE when I try to rotate > > > the full-sized picture by changing phone orientation back and forth. > > > > What am I supposed to do to save memory? I can't change the use case > > > of my app... the user has to follow the above steps. How can I free up > > > memory without having to change anything in my app. > > > > Thanks, > > > > Abhi- Hide quoted text - > > > - Show quoted 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
Re: [android-developers] Re: just another android rtp stack question
maxsap wrote: > Anyone? > > On Dec 1, 3:34 pm, maxsap wrote: >> Hello all, I am new in android developer and I would like to make a >> sip based application for this platform. In the signaling part I have >> found about jain-sip (used it) and sipdroid( any good tutorial? ) the >> problem starts when I want to stream data from a phone to a server. So >> the question is: Is there any stack for RTP? does the new SDK support >> this? I have found this:http://www.hsc.com/tabid/87/ItemId/20/Default.aspx >> have anyone used this stack? also I found this video on >> youtube :http://www.youtube.com/watch?v=g1NHEsXFEnswhich demonstrates >> the use of rtp to stream video/audio is this fake does any one know >> how? also I have read somewhere on the net that sipdroid has support >> for rtp is this correct? Sipdroid implements its own RTP stack which would confirm that there is no RTP stack in the Android platform. You can reuse their code if you do not mind having your code been distributed under a GPL license. -- 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] WebView Help
Hi, I was wondering if there is a way to select or highlight or focus at text from a webview's content. Or even select and copy text to the clipboard? (just like the default browser) Or even access the emulateShiftHeld() function? I'm working on an browser and am trying to add accelerators but I can really only focus on links and buttons. 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] Contacts App crashes when switching between Dialer to Call log
I've altered the contact app so that in Dialer the soft keypad always stays and it hides when other tab activity resumes, We've given different look for the contacts app, but when using the same, a crash occurs when we rapidly change from dialer to call log. And the App crashes without the standard crash dialog. I have copied the log and the error seems to be happening in a deeper section.. 01-01 06:25:37.401: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.464: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.472: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.081: DEBUG/(1350): The INPUT TYPE OF MDIGITS onPause 1 01-01 06:25:39.097: WARN/InputManagerService(1082): Ignoring hideInputMethod of token: null 01-01 06:25:39.222: DEBUG/dalvikvm(1404): GC freed 70 objects / 5424 bytes in 143ms 01-01 06:25:39.573: DEBUG/dalvikvm(1350): GC freed 41355 objects / 1657488 bytes in 214ms 01-01 06:25:39.589: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.589: INFO/dalvikvm(1350): Uncaught exception thrown by finalizer (will be discarded): 01-01 06:25:39.589: INFO/dalvikvm(1350): Ljava/lang/ IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@45c8b2b0 on calls that has not been deactivated or closed 01-01 06:25:39.589: INFO/dalvikvm(1350): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 01-01 06:25:39.589: INFO/dalvikvm(1350): at dalvik.system.NativeStart.run(Native Method) 01-01 06:25:39.620: WARN/IInputConnectionWrapper(1350): finishComposingText on inactive InputConnection 01-01 06:25:39.698: INFO/DEBUG(1008): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-01 06:25:39.698: INFO/DEBUG(1008): Build fingerprint: 'zoom/ldp1/ ldp1/ldp1:Donut/Donut/eng.vishal.20091203.130315:eng/test-keys' 01-01 06:25:39.698: INFO/DEBUG(1008): pid: 1350, tid: 1355 >>> android.process.acore <<< 01-01 06:25:39.698: INFO/DEBUG(1008): signal 11 (SIGSEGV), fault addr 0004 01-01 06:25:39.698: INFO/DEBUG(1008): r0 0004 r1 40023778 r2 0004 r3 ad32d629 01-01 06:25:39.698: INFO/DEBUG(1008): r4 r5 r6 ad34e495 r7 4203afb8 01-01 06:25:39.698: INFO/DEBUG(1008): r8 100ffd00 r9 4203afb0 10 4203afa0 fp 0001 01-01 06:25:39.698: INFO/DEBUG(1008): ip ad372c80 sp 100ffce8 lr ad32d633 pc afb04408 cpsr 0010 01-01 06:25:39.776: INFO/DEBUG(1008): #00 pc 4408 / system/lib/libcutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): #01 lr ad32d633 / system/lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): stack: 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffca8 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcac ad371820 /system/ lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb0 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb4 afd00949 /system/ lib/libstdc++.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb8 0028c820 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcbc 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc0 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc4 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc8 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffccc a9d222bf /system/ lib/libutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd0 a000 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd4 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd8 100ffd30 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcdc 000d 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce0 df002777 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce4 e3a070ad 01-01 06:25:39.800: INFO/DEBUG(1008): #00 100ffce8 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcec ad32d633 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf0 100ffd20 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf4 ad34e4a5 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf8 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcfc ad00e438 /system/ lib/libdvm.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd00 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd04 0010e8a0 [heap] 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd08 ad34e495 /system/ lib/libandroid_runtime.so 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd0c 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd10 1071 01-01 06:25:39.808: INFO
[android-developers] Program unique identifier
Hi All, As known, we can get devcie unique ID using TelephonyManager#getDeviceId() . So, does a program have an unique identifier? How can I get it? I googled it but got nothing. Br -- 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: How To apply our settings to selected text instead of all text in Edit text View
It is easy to do it for user selected text, just use getSelectionStart () and getSelectionEnd() and use Spannable to set the styles. On Nov 17, 10:49 am, Ram wrote: > Hi Androids, > I have a problem as follows: > > In my project i am havingrichtexteditoroptions to apply for the > edittextview. > In that i applied font color,font names,font size options for user.But > these options will apply for wholetextavailable in edittext. > But my problem is i want to apply user selected settings (like font > color,size,font) for user selectedtextinstead of Wholetext. > i want to apply the user selected font/color/size to the user > selectedtext.How? > > How to implement this . > If any body knows answer please let me know that thing. -- 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] Enumerate activity history stack
When debugging I've sometimes wanted a tool that would list running tasks and show which activities are on the history stack for each task. I can get a list of tasks by calling ActivityManager.getRunningTasks(). Each ActivityManager.RunningTaskInfo object in the list gives me interesting information such as the base activity, top activity, and number of activities in the task. I haven't found a way to actually enumerate all the activities in the task's history stack. Is there a way to get at such information? -- 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: Uninstalling TTS Data from the G1 / Dream
Hi! I found a solution: use adb tool to remove the app TtsService.apk: open the console with cmd navigate to tools dir inn your sdk: get rights and remove app: adb root adb shell cd system cd app rm TtsService.apk here you are. On 16 Dez., 06:22, Desu Vinod Kumar wrote: > HI > > while installing this tts jar file it showing some exception > not instatalling > can u help me regarding that. > > On Sat, Oct 17, 2009 at 11:38 PM, Thomas Riley > wrote: > > > > > > > As per subject I would like to uninstall the text to speech data app > > from my G1 so I can set out some TTS code I'm working on. > > > Is it possible? > > > 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 > > -~--~~~~--~~--~--~--- > > -- > Regards > --- > D Vinod Kumar > Software Engineer - Android Platform > 09916009493 -- 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] Connect via USB and consume web service
I need to connect my phone via the USB cable to my development machine and consume a web service that is running there. What do I need to do to get my Android to see the web service? 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: Divert a call by sending the USSD command
Please start an activity as below: String encodedHash = Uri.encode("#"); startActivity(new Intent(Intent.ACTION_CALL,Uri.parse ("tel:*122*123456789"+encodedHash))); Thanks. Regards Prashanth D On Dec 17, 7:05 am, Mohammad Siddiqui wrote: > Hi > > can any one tell me how to programmaticaly divert a call on particular > number by > > sending the USSD command.eg, to divert a call on the number-123456789 > we dial > > *122*123456789#. it divert the call on to the 123456789, > > Thanks in advance > > Thanks & Regards > > Mohammad Azhar -- 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: Motorola Milestone not showing up in ddms / adb on Mac OS X Snow Leopard
I don't know what did it, but trying it out today worked fine. I definitely had "None" selected back then, since I used it on Windows as well, but severall reboots obviously have restarted adb since. :) Nice one, I'll try that if it happens again, cheers. On Dec 15, 11:03 pm, TJ wrote: > If it's the same problem I've experienced, it can be fixed by pulling > down the notification bar, pressing the "USB connection" notification, > and selecting the option "None". If the adb service is running, kill > the server and restart it. > > On Dec 1, 3:02 pm, Oliver wrote: > > > I have the same problem. On a MacBook Pro running Leopard (10.5.8). > > > On Nov 25, 1:11 pm, 24z wrote: > > > > I've connected my (new) Motorola Milestone running Android 2.0 to an > > > Intel iMac running the latest version of Snow Leopard. > > > > USB Debugging is enabled on the device. However, ddms doesn't see the > > > device. Running adb devices returns an empty list. > > > > Any ideas how to troubleshoot? -- 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] Obtain Point of Interest data based on current location.
Hi, I am developing a GPS application in Android using Location/ Location Manager package. I am able to get the current latitude and longitude data correctly. My doubt is, do we have any means by which we can obtain the nearest "Point of Interest" based on the current location using Android/google API? If so then please let me know the steps for obtaining the same. Also let me know whether the type of POI can also be obtained using the current location. Regards, - Ruppin -- 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] I am a newbie...
I just followed the direction on google code page to set up java IDE, eclipse and android sdk and i tried all the steps to go hello world app. now i want to try to run other sample codes provided by google android team. i downloaded zip file from http://android-developers.blogspot.com/?hl=en and i took out a folder out of it, but how do i run it in eclipse then execute in android sdk? and how do i repackage the file to apk to run it in a phone? i want to be able to try samples and how they run so that i can start it by using sample codes to write my own code (i have an electrical engineeering degree from college and i did c and c++ coding though it was very basic, but i can say i can learn what is explained with proper steps) tell me where i can find the steps to run or just tell me how to do 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] Re: ClassLoader leaking memory?
On Dec 17, 2:45 pm, "B++" wrote: > PathClassLoader classLoader = new PathClassLoader("/path/to/apk.apk", > getClassLoader()); > classLoader.loadClass("path.to.class"); > classLoader = null; > > } > > Only these three lines will cause a "leak" if you keep on creating > this activity and destroying it with the back button. So if I understand this correctly, you're creating a new class loader each time, and re-loading one or more classes in the new class loader. So if you start this 10 times you'll have 10 copies of class Foo, each from a different class loader. Why not just load the class(es) once? What is it you're trying to do? What APK are you opening? The Dalvik VM doesn't presently unload classes. Given the nature of Android applications, the feature is not likely to percolate to the top of the "to do" list any time soon. -- 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] BETA Tester Wanted
We are looking for people to help BETA test the FunMail app coming to the Android Market soon! Get a sneak peak at our app and help us find some bugz! Download the BETA at: http://funmail.com/android FunMail is a next-generation visual messaging platform. FunMail finds contextual relevant visual content for any text, tweet or status update. Users simply enter a message, and the FunMail Media Brain analyzes the text and offers entertaining, relevant choices. Find some bugz and send us feedback on the app, go to: http://funmail.com/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] Re: this is just too much
i flagged it as prohibited, as should others. hth -- jason.vp.engineering.particle -- 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: this is just too much
i contacted them to remove it, but this is whet is says on craigslist --- Android Apps Date: 2009-12-18, 11:51AM EST Reply to: see below Android Apps Advanced Task Manager $0.50 BitTorrent Client |aBTC $2.50 Album Art Grabber $1.00 Better Keyboard $1.50 PoliceStream $0.75 Beautiful Widgets $1.00 Pic Say Pro $1.00 Root Explorer $0.75 WhitePages with Caller ID $3.50 JetFlicks TV $4.50 PhoneMyPC $5.00 Weather Widget-Donate $0.75 All apps are half the price from the android market. If you have any app requests let me know How to Buy: I will deliver apps thru email so just pay me thru paypal at smalltownsouthernma...@yahoo.com be sure to let me know which app or apps your paying me for How To Install: 1: Transfer the app to your phone and place in a folder you will remember placing it in on your SDCard (Skip this step if using you Android to download) 2. Go to the Market (on your Android) and search for Astro 3. Download Astro File Manager (its free) 4. Once installed open Astro 5. Go to the folder you put the application in (if you downloaded from you Android it will be the folder call "download" or "downloads") 6. Click the app once (a PopUp should appear) and choose open app manager (or words to that effect) 7. Click install once (you may get a PopUp saying its blocked from installing just go to the settings and check the "Unknown Applications") If you have any questions or need any help just email me smalltownsouthernma...@yahoo.com * it's NOT ok to contact this poster with services or other commercial interests PostingID: 1515792578 No contact info? if the poster didn't include a phone number, email, or other contact info, craigslist can notify them via email. * Copyright © 2009 craigslist, inc. * terms of use * privacy policy * feedback forum -- 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] this is just too much
Somebody on craigslist reseling our apps half price http://knoxville.craigslist.org/mob/1515792578.html -- 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] Portrait vs landscape using sensor
Hi, I'm trying to detect landscape vs portrait orientation with the following: public void onSensorChanged(SensorEvent event) { float pitch = event.values[2]; if (pitch <= 45 && pitch >= -45) { // portrait } else if (pitch < -45) { // landscape } else if (pitch > 45) { // landscape } } anyone have something more robust? It works pretty well, except if the phone is in a landscape orientation, and the user starts to 'flatten' it out, starts thinking it's in the portrait orientation again, 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] Re: Upload multiple versions for single android application for different SDK levels 1.5, 1.6, 2.0
Matt Kanninen wrote: > Mind you, I don't want to use reflection, it frightens me a bit, and > it's annoyed me and made my app harder to debug every time I've used > it. Eventually though we'll really want to use a feature not in 1.5. FYI, reflection is an option here, but it is not the only solution. You can also: -- Implement an interface/abstract class representing your wrapper around the APIs you're concerned about -- Create two implementations, one using the long-term API, one using whatever you're getting by with (e.g., for 1.5) -- Create a singleton of the appropriate implementation based on the SDK level reported by the device, and use that singleton (via the interface/abstract class) On a 1.5 device, it will never load the implementation of the new-API class, and so it will never complain with a VerifyError and such. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.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] Re: Camera intent - what's safe to use?
On Dec 11, 4:37 pm, Vytautas Vaitukaitis wrote: > @Matt > > Yes, you're absolutely right - I'm trying to do what works on Hero - > if that fails, I do what works on all the other phones. > > I'm not quite sure about which of the Camera API issues you're talking > about: the failure to retrieve images with resolution greater than > 512x384 or lack of single method to obtain images of 512x384 > resolution? I was having out memory leak issues, so I was trying to cleanup my whole application. Taking a picture, then manipulating, then uploading an image takes a lot of memory, so I was looking for the best practices for this sort of thing. I hoped a good practice was to call the default camera activity, and that there would be a standardized response. That's what I was talking about. -- 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: Upload multiple versions for single android application for different SDK levels 1.5, 1.6, 2.0
An Android developer has to develop the habit of untraining management that is used to J2ME. If you release multiple different APKs you technically can fork your codebase, into different packages, to target different firmware. But you don't want to compete with yourself for market listings, you don't want to fork your code, you don't want to have to maintain different branches. Mind you, I don't want to use reflection, it frightens me a bit, and it's annoyed me and made my app harder to debug every time I've used it. Eventually though we'll really want to use a feature not in 1.5. I'm curious, what happens if you release an application that requires Android 1.5 or higher on the market, and then you update it with a version that requires 1.6 or higher? Will 1.5 users simply no longer be able to download the application? What is their user experience? Thanks, -MK On Dec 18, 2:42 am, lk wrote: > hi TreKing > > Thanks for your reply. I was not aware of reflection.Now I am > learning about reflection.I will seriously follow your > recommendations. > > thanks > Alok > > On Dec 17, 12:20 am, TreKing wrote: > > > > I've three different .apk files for all three SDK. > > > You should probably be using the latest SDK with your minSDK set to 3 (for > > 1.5) and using reflection to do things that are different across the API > > levels. > > > How can i upload three different .apk files on Android Market Place for > > > > single application? > > > They all have to have a different package name, which means you would have > > to make (and maintain) 3 copies of your source code. You probably don't want > > to do this. > > > > I would like to have all 3 versions available under one application name. > > > is this possible ? > > > Technically, yes. They can all have the same name via the "label" attribute > > in your manifest, and they can appear with the same name in the Market (you > > set this in the Developer Console). But, again, they have to have different > > package names. > > > I would highly recommend you look through the blog posts for the one about > > targeting different platform versions and seriously rethink publishing and > > maintaining 3 different versions of the same app for each SDK. > > > What happens when 2.1 comes out? 2.2? 3.0? 43.67? Are you going to keep > > making a new version of your app for each new version that comes out? > > > - > > TreKing - Chicago transit tracking app for Android-powered > > deviceshttp://sites.google.com/site/rezmobileapps/treking > > > On Wed, Dec 16, 2009 at 2:11 AM, lk wrote: > > > Hi, > > > > I'm developing one android application which needs to support Android > > > OS 1.5, 1.6, and 2.0. > > > > I've three different .apk files for all three SDK. > > > > How can i upload three different .apk files on Android Market Place > > > for single application? > > > I would like to have all 3 versions available under one application > > > name. is this possible ? > > > > So, users with any SDK can use my application. > > > > 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 > > -- 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: Automatic market updates
> > So how do I get my users up to the current published version when my app > was deployed without the check-this-web-file-version-by-hand-code and I > don't even know who my users are? Is it absolutely crucial that your users have the most recent update the second it's put out? If not, don't worry about this. Put your update out and let the users discover it on their own, either if the Market actually works and notifies them or if they go check for updates manually. Otherwise you'll have to suck it up and write some version checking code. This can't be that hard. Check a file on a web server, do a compare with the current version, notify the user with an alert that a new version is available and start the Market with your app when the user clicks the notification. Why even bother with the manifest? Because without a higher version number the Market won't know there's an update available. And you won't even be allowed to publish via the Market unless the version code is higher than what's already there. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Fri, Dec 18, 2009 at 9:16 AM, stanlick wrote: > Wow! So the messages on this forum from over a year ago are still > applicable today? It is incomprehensible to expect every app > developer to write this code and that to notify users about updates? > So how do I get my users up to the current published version when my > app was deployed without the check-this-web-file-version-by-hand-code > and I don't even know who my users are? Why even bother with the > manifest? Very sad. > > Peace, > Scott > > On Dec 18, 8:58 am, TreKing wrote: > > I wouldn't rely on those Market update notifications. Personally, I never > > get them when they should kick in. Instead I usually check My Downloads > > manually and, AFTER I've checked, the notification will kick in. And, not > > only is it ridiculously late, it usually tells me the wrong number of > > updates are available (usually twice as many as there actually are). > > > > If you need your users to know when new updates are available, best bet > is > > to add this as a feature in your app. > > > > > - > > TreKing - Chicago transit tracking app for Android-powered deviceshttp:// > sites.google.com/site/rezmobileapps/treking > > > > On Fri, Dec 18, 2009 at 8:07 AM, stanlick wrote: > > > Thanks Vytautas -- > > > > > I was careful to update both android:versionCode and > > > android:versionName before I uploaded my new apk. However, none of my > > > beta testers have received an update notification and it has been over > > > a week now. I have read myriad comments about users not receiving > > > update notifications and many more about custom code developers are > > > having to place n their apps as a workaround. Are you saying these > > > are problems of the past and don't exist any longer? > > > > > Peace, > > > Scott > > > > > -- > > > 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
[android-developers] Re: ClassLoader leaking memory?
If you have a small sample that demonstrates the problem that seems perfect for b.android.com. On Dec 17, 6:01 pm, "B++" wrote: > After some further analysis, it seems that the problem lies on the > DexFile. The PathClassLoader internally invokes the DexFile which > apparently unzips the package to retrieve the class. However, these > resources don't seem to be released. > > B. > > On Dec 17, 3:45 pm, "B++" wrote: > > > Thanks for the response. > > > I have already run it using hprof and mat, and located the issue, and > > the problem lies in here: > > onCreate(..) { > > ... > > PathClassLoader classLoader = new PathClassLoader("/path/to/apk.apk", > > getClassLoader()); > > classLoader.loadClass("path.to.class"); > > classLoader = null; > > > } > > > Only these three lines will cause a "leak" if you keep on creating > > this activity and destroying it with the back button. > > The class is getting loaded successfully, but the resources are never > > released. As you can see, I set the reference of the classLoader to > > null, and I never instantiate any object using the loaded class, but > > the problem still persists. > > > I have isolated the code as above, and you can clearly see that the > > memory is growing. > > > Can the getClassLoader() reference create a problem here? > > > Thanks > > > B. > > > On Dec 17, 2:57 pm, fadden wrote: > > > > On Dec 17, 7:45 am, "B++" wrote: > > > > > The problem is that this happens even if no objects are instantiated > > > > using the loaded class. There seems a problem with garbage collector, > > > > which doesn't seem to release resources about the loaded class on > > > > Destroy even if there are no references to it. > > > > It usually turns out that something is holding a reference to whatever > > > it is that isn't getting thrown away. The best way to figure this out > > > is to get the HPROF output and run it through jhat or MAT. > > > > See also: > > > http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks > > > http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d... > > > http://kohlerm.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] Re: HTC Tattoo Market - New issues after 1.6 upgrade
See kids, that's why you always double check your code before posting questions. My mistake, thanks for pointing it out (feelin pretty dumb right about now) On Dec 18, 11:49 am, G wrote: > Wait, really?! I must've missed something in the latest update, will > double check. > > On Dec 18, 11:20 am, moneytoo wrote: > > > > > In your application (AppAllarm v1.1.3) manifest file, the supports- > > screens tag is empty (""). Are > > you building your project using 1.6 SDK or later? > > > On Dec 18, 3:43 pm, G wrote: > > > > Ok, so I have an app that WAS showing up on the HTC Tattoo's Android > > > Market, but users are reporting that it is now gone after they have > > > upgraded to Android 1.6 from 1.5. > > > > Copy protection is OFF > > > There is no Camera permission at all > > > All screen sizes are supported in the manifest > > > -android:smallScreens = true > > > -android:normalScreens = true > > > -android:largeScreens = true > > > -android:anyDensity = true > > > > Is anyone else seeing this same behavior? Can anyone with an HTC > > > Tattoo w/Android 1.6 confirm? The app I'm referring to is called > > > AppAlarm and should be available from this linkhttp://episode6.com/aa > > > (click it from your phone to goto the market, otherwise just search > > > the market for AppAlarm) > > > > I'd really appreciate any feedback here, cause I have no idea how to > > > proceed. > > > > Thanks in advance, > > > Geoff -- 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: OutofMemoryError: bitmap size exceeds VM budget.....
How did you resolve it? I think we do need a list of ways one can cause this, how you figure out what caused it, and what to do to fix it. On Dec 18, 8:11 am, Abhi wrote: > Resolved!!! > > On Dec 18, 9:25 am, Abhi wrote: > > > Anyone? > > > On Dec 18, 12:11 am, Abhi wrote: > > > > Hi, > > > > I am doing the following in my app, which at times results in the > > > above error. > > > > Action 1: Button on Main activity calls all pictures using ACTION_PICK > > > (results in a thumbnail view of all pictures on my phone). User picked > > > image (URI) is then passed over to next activity where the image is > > > displayed (ImageView) full screen. When I hit back, I go back to the > > > main activity. If I try to open all pictures and pick a picture again, > > > I get a FORCE CLOSE and the logCat data says "OutofMemoryError: bitmap > > > size exceeds VM budget. > > > > Action 2: I get the same error and FORCE CLOSE when I try to rotate > > > the full-sized picture by changing phone orientation back and forth. > > > > What am I supposed to do to save memory? I can't change the use case > > > of my app... the user has to follow the above steps. How can I free up > > > memory without having to change anything in my app. > > > > Thanks, > > > > Abhi- Hide quoted text - > > > - Show quoted 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] Re: TTS TalkBack doesn't read AlertDialog titles or messages?
You might wish to check if the following recent update addresses your problem http://groups.google.com/group/tts-for-android/browse_thread/thread/291c47b0992d37f or else bring up your problem on that list. Regards On Dec 18, 5:55 pm, RNekic wrote: > So I tried turning on TalkBack to see how well my application works > with the feature and I was surprised to discover that TalkBack does > not speak the title or text of an AlertDialog. It's only speaking the > text from the buttons I add to the dialog. Am I doing something wrong > when I define my AlertDialogs or is this intended behavior? > > Do I need to code specifically against the AccessibilityManager to > have AlertDialog text (or any other non-focusable text) spoken by > TalkBack? > > I'm currently using 1.5 (SDK 3) in my manifest's minSdkVersion. As I > understand it, I'd have to bump the setting to 1.6 (SDK 4) if i want > to use the AccessibilityManager. Am I mistaken? I'm reluctant to > change my minSdkVersion to 4 after seeing how large the v1.5 slice of > the OS pie still is according to > Google:http://developer.android.com/intl/fr/resources/dashboard/platform-ver... > > Is there another solution? -- 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] PVMFErrResourceConfiguration error on preparing MediaPlayer
I have a very brief video that I would like to include as a raw resource in my app. The video plays correctly when loaded from the SD card in the ApiDemos MediaPlayerDemo_Video example. However, if I attempt to load it as a raw resource, I get the following error after calling MediaPlayer.prepare: 12-18 15:23:08.190: ERROR/PlayerDriver(554): Command PLAYER_PREPARE completed with an error or info PVMFErrResourceConfiguration 12-18 15:23:08.190: ERROR/MediaPlayer(1242): error (1, -16) The (simplified) code: AssetFileDescriptor afd = this.getResources().openRawResourceFd (R.raw.thevideo); MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); afd.close(); mp.prepare(); } catch (Exception e) {} What can I be doing wrong? Thank you 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] DEV Phone 2 or Nexus One
I am thinking about getting a DEV Phone 2, but there's new about Google's Nexus One phone that seems to have higher spec. Is there any advantage of getting DEV Phone 2 ? Any news about DEV Phone 3 (if any) ? -- 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] TTS TalkBack doesn't read AlertDialog titles or messages?
So I tried turning on TalkBack to see how well my application works with the feature and I was surprised to discover that TalkBack does not speak the title or text of an AlertDialog. It's only speaking the text from the buttons I add to the dialog. Am I doing something wrong when I define my AlertDialogs or is this intended behavior? Do I need to code specifically against the AccessibilityManager to have AlertDialog text (or any other non-focusable text) spoken by TalkBack? I'm currently using 1.5 (SDK 3) in my manifest's minSdkVersion. As I understand it, I'd have to bump the setting to 1.6 (SDK 4) if i want to use the AccessibilityManager. Am I mistaken? I'm reluctant to change my minSdkVersion to 4 after seeing how large the v1.5 slice of the OS pie still is according to Google: http://developer.android.com/intl/fr/resources/dashboard/platform-versions.html Is there another solution? -- 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: HTC Tattoo Market - New issues after 1.6 upgrade
Wait, really?! I must've missed something in the latest update, will double check. On Dec 18, 11:20 am, moneytoo wrote: > In your application (AppAllarm v1.1.3) manifest file, the supports- > screens tag is empty (""). Are > you building your project using 1.6 SDK or later? > > On Dec 18, 3:43 pm, G wrote: > > > > > Ok, so I have an app that WAS showing up on the HTC Tattoo's Android > > Market, but users are reporting that it is now gone after they have > > upgraded to Android 1.6 from 1.5. > > > Copy protection is OFF > > There is no Camera permission at all > > All screen sizes are supported in the manifest > > -android:smallScreens = true > > -android:normalScreens = true > > -android:largeScreens = true > > -android:anyDensity = true > > > Is anyone else seeing this same behavior? Can anyone with an HTC > > Tattoo w/Android 1.6 confirm? The app I'm referring to is called > > AppAlarm and should be available from this linkhttp://episode6.com/aa > > (click it from your phone to goto the market, otherwise just search > > the market for AppAlarm) > > > I'd really appreciate any feedback here, cause I have no idea how to > > proceed. > > > Thanks in advance, > > Geoff -- 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