[android-developers] How to Disable GPS Provider from Application
Hi All, In Android settings, Enable GPS Satellite menu is provided to enable / disable GPS. How to enable/disable GPS from Any android java application ? I understood that there is no api expose to do that. Any workaround or 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: Android Market app suspended. What do I do?
Have a look at passing off - http://en.wikipedia.org/wiki/Passing_off . It's part of UK law (it's in the UK Tradmarks Act 1994). I'm guessing Google did the moron in a hurry test which although has been shown to not be legally enforceable, it's Googles market and their TCs say they can basically pull you app at any time for any reason. As for contacting you, well, that would have been nice, but Google are doing the distribution here so they're the ones in the firing line. My advice; Change the name of the app and move on. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of bryan Sent: 30 April 2009 22:23 To: Android Developers Subject: [android-developers] Android Market app suspended. What do I do? I received notice that my application was suspended yesterday around lunch. I've contacted support via email and the publisher support form with no answer as of yet. What can I do to resolve this issue? The violation was that after paid app support hit the UK, a UK company (non-software) with the same name as my app yelled at Google. The result? Suspended my application entirely, not just for the UK. I love that the company didn't merely email me, in which case I'd have happily resolved the issue. So here I sit, waiting and powerless. A lot of people have purchased the app and expect updates. I have an apk with a new name, but can't do anything with it. The developers console has no clickable options. Is this how the market works? One social inept company can shut down your app permanently under shady pretexts? I didn't know that they exist. It was in error. The news is surprising to me given that they deal in the non-software realm. I'd like to make everyone happy and resolve this issue. What can I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to call the phone programmatically ?
Hi all, I am wondering if it is possible for a program to call the device at a defined hour. If you have any hint on this, please let me know. Regards, Olivier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When is a good time to require 1.5?
There was a recent blog post describing how you can use 1.5 APIs while remaining compatible with 1.1. On Thu, Apr 30, 2009 at 8:54 PM, EboMike ebom...@gmail.com wrote: Yeah, I did that, and I had to make minor changes to a TableLayout so it looked right in an 1.5 environment. The real thing is widget support - I really want to add that soon. I don't want to wait too long, at the same time I don't want to make the app inaccessible to users with 1.1. I considered hosting the 1.5 version on my own server, but that's plain whack. And adding two versions of the app sounds a bit backwards too... then again, some people add two versions of their apps. On Apr 30, 8:34 pm, JP joachim.pfeif...@gmail.com wrote: My approach exactly. Plus I recommend you install your 1.1-based apk on the 1.5 emulator (or device) to see how it performs. Based on test results, I am preparing to release an 1.1-based update that disables access to a couple of features that I found crashing or hanging when running on 1.5 (BTW regardless whether the apk is a 1.1 or 1.5 build). On Apr 30, 8:00 pm, EboMike ebom...@gmail.com wrote: I'd like to add widget support to my app, but I suppose that it'll take quite a while until 1.5 is globally rolled out. I assume that widget support means that I need to compile against 1.5 and set up the minSdkVersion to 3, so I'll effectively lock out anybody with 1.1. Other than adding a second version of the same app for 1.5, what's the best way to approach this? Wait a couple of months until 1.5 is globally spread? (Assuming that all carriers even decide to roll it out in the first place.) -- 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: surprise, No process called surfaceflinger listed by ps
It's because it doesn't live in its own process, and this question belongs in android-porting. On Thu, Apr 30, 2009 at 9:35 PM, wen yi wen...@gmail.com wrote: After I did a 'ps' I am surprised not to be able to see surfaceflinger process listed even though I saw the binary /system/ bin/surfaceflinger. I didn't find any scripts that starts surfaceflinger and I couldn't figure it out from the code. Can someone explain how native services such as surfaceflinger get started? Thanks. - Wen -- 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: design Q: persisting activity state
It is perfectly fine to persist state in storage (via SharedPreferences, flat files, databases, etc). There are some things you will almost certainly want to store in onSaveInstanceState() (such as the current position in the list... well the framework does that for you already), and some things always go in persistent storage (such as the current preferences set by the user), and then a big gray area of things that you may handle one or the other way, depending on the behavior you want (either associated with that instance of the activity, or retained across launches). On Thu, Apr 30, 2009 at 11:02 AM, Eric Hackborn EH hackb...@gmail.comwrote: I have a simple app that has three windows, each with a corresponding activity. It's very common to switch back and forth between activities, but of course state gets wiped out of the top-most activity when the user has finished with it, and I want that state to persist. So I have two questions: 1. Currently, I'm persisting the state by saving it to the MODE_PRIVATE SharedPreferences in onStop(), then restoring it in onCreate(). Is this acceptable, or is there a better way to handle it? 2. If it is acceptable, a side effect is that the state now persists between app invocations. Personally I like this, but I haven't seen any guidelines for Android on whether minor settings should persist past the life of the app. Is this a good practice for Android or not? thanks, eric -- 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] StreeView
Hi all, I am currently trying to use StreetView in my application, but I does not work. I use an AVD based on the Google API which has Maps (display a simple map works well). My activity extends MapActivity and tries to call streetview: String temp=google.streetview:cbll=31.335198,-86.287204; try { startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(temp))); } catch( Exception e) { ... } The problem is that I always catch an exception: No Activity found to handle Intent { action=android.intent.action.VIEW data=google.streetview:cbll=2.26,46.287204 } Any idea idea about what is wrong ? Regards, Olivier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Changin view on Activity
Hi there, I have 1 activity class as entry point to application. There have 2 View (extends from SurfaceView) and I have problem with showing second view. First view is showed correctly but when I call setContentView(secondView) I getting exception W/System.err( 1241): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Anyone can help me how I can change view on activity ? many thx r^ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change RadioButton size?
How to change RadioButton size? It's too large. I want a small radioButton... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GridView and BaseAdapter position bug
I have frame animation on each cell. On 30 апр, 18:24, Romain Guy romain...@google.com wrote: Why don't you just use a LayoutAnimation? That's what it's for. 2009/4/30 Illidane illid...@gmail.com: I did that ( write somewhere in getView ) : if(position == mGameModel.getCount() - 1) (new Timer(false)).schedule(new AnimationTimer(), 10); AnimationTimer() just run my animation. Without this timer when I was trying to write if(position == mGameModel.getCount() - 1) my animation was running without last cell. It's because of position. When it's 99, GridView just haven't time to set last cell ( under 99-position number). Timer in 10 ms helps it. To Siva Rajaraman: You must use position value ( even if it works not correctly :) ). Than do as I wrote upper. On 29 апр, 18:27, Streets Of Boston flyingdutc...@gmail.com wrote: Good to hear! I'm curious: what did you do to get around this problem? (yarik may want to know as well :-)) On Apr 29, 11:13 am, Illidane illid...@gmail.com wrote: No matter.. it's all working now with the GridView, I have fixed that bug by the hand. Thank you for your help) On 29 апр, 17:07, Streets Of Boston flyingdutc...@gmail.com wrote: If you have all 100 cells visible at once at all time, the GridView does not add much functionality (no scrolling necessary), except for selecting cells. I'm not familiar with your app, but i think it would be 'easier' than wrestling with GridView to subclass 'View' (or 'ViewGroup' if you need additional child-views) and have this sub-class handle the 100 cells (implement onDraw, dispatchDraw) and draw your cells using Drawables. This also removes the need of having 100 child-views (1 for each cells), which could become more problematic for the Cupcake release (see its note about how it is more finnicky about the depth and width of view-hierarchies). Instead, you have just one view with 100 small bitmaps/drawables. On Apr 29, 3:03 am, Illidane illid...@gmail.com wrote: Extend the GridView or write my own class which will manipulating 100 cells as drawables? On 29 апр, 00:27, Streets Of Boston flyingdutc...@gmail.com wrote: I have to defend Romain here. The gridview and/or listview is just not designed to do this. You're trying to put a round peg in a square hole. Maybe the decision to use a GridView for your purposes is not a good idea, because of its design that does not fit what you need. If all 100 cells are visible at the same time (then there's no scrolling needed), why do you need a gridview? Maybe you should subclass your own view and draw the 100 cells as 100 drawables (which you can animate) yourself in its onDraw or dispatchDraw method. On Apr 28, 2:53 pm, Illidane illid...@gmail.com wrote: Ok-ok, I gotcha what you mean. But with such position to developers you will never make android lead platform. Sory, if I speak the truth boldly. On 28 апр, 19:44, Romain Guy romain...@google.com wrote: No, you are just making assumptions about how it should work. Nowhere does it say that it should work the way you want it to work, that's not how it works and that's not how it will work. 2009/4/28 Illidane illid...@gmail.com: To Romain Guy: Ok, I understood that you think that it's NOT a bug and that you implement it how you want it be. But I need to say you, that in such situation is very hard, or sometimes is impossible to write good, stable, beauty, useful and competitive apps for Android, not only for me, but for all Android programmers. And I think you know that. On 28 апр, 18:53, Romain Guy romain...@google.com wrote: I am from the Google team (and I did implement a lot of GridView and ListView) and it is NOT a bug. GridView and ListView can call getView() out of order and more times than the number of views that will fit on screen, depending how the Grid/ListView is measured/laid out. 2009/4/28 yarik...@gmail.com yarik...@gmail.com: I have exactly same problem. Why do we have 102 values of position when there is only 100 cells displayed on screen? position is changed like: 0, 0, 1, 2, 3... 99, 0 - what is the cause of that? Can someone from google team answer? That seems to be a bug, very annoying bug. Answer It's not a bug is not answer! How do you generate position? On Apr 27, 9:40 pm, Illidane illid...@gmail.com wrote: There is a way to make GridView without Adapter ( e.g.
[android-developers] Changes to the rendering of widgets overlayed onto VideoView in 1.5
In updating an application to ensure its compatible with 1.5 I've observed some changes in the way that widgets are rendered when they are overlayed on video. I use a RelativeLayout to place various information boxes over a VideoView. Some boxes are translucent, some are invisible until they become relevant and some have rounded corners. In all three cases, the widgets seem to be composited with the surface behind the VideoView and not the VideoView surface itself. In the case of the invisible component the result is a square hole punched through the VideoView showing the background beyond. This worked in 1.1. Is this a bug or a new and intentional limitation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps Intent in CupCake
JP wrote: Also, map tiles are not displayed with a 1.5-based build of the app. The 1.1-based build using identical source code base runs on an id=3 AVD just fine. Except for the Street View issue, of course. Don't know if this helps, but in a related thread, somebody wrote: I had to generate a new Google maps key using the new keystore in my project before the tiles would show. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.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: How to call the phone programmatically ?
Olivier Tournaire wrote: I am wondering if it is possible for a program to call the device at a defined hour. If you have any hint on this, please let me know. If by call you mean place a voice call, then a program running on the device cannot call itself, since the line will busy. If by call you mean you want some piece of code to execute every hour, look at AlarmManager. If you mean something else, could you be more specific? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.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: android 1.5: How do we use the AudioTrack class?
Should I file a bug report for Cupcake's onMarkerReached() in AudioTrack playback? The only workaround I currently have for onMarkerReached() never getting invoked is to explicitly poll getPlaybackHeadPosition(), while taking into account extra margins for sample rates 11025 and 22050 because there the getPlaybackHeadPosition () does not quite reach the expected end values - as described in my previous post. Regards On Apr 30, 10:02 pm, blindfold seeingwithso...@gmail.com wrote: Has anybody had any success with OnPlaybackPositionUpdateListener? I'm successfully playing one-second PCM sound clips with AudioTrack in MODE_STATIC mode (although the playback often appears truncated), but no matter what I do, onMarkerReached() is never called. I set setNotificationMarkerPosition() to a position a bit less than my sample count. I do not have any such problems with its MediaPlayer counterpart setOnCompletionListener(). I simply want onMarkerReached() to run when my AudioTrack instance has finished playing, but the getPlayState() remains PLAYSTATE_PLAYING after my AudioTrack has finished sounding. What might be wrong? What does it take to get AudioTrack to run onMarkerReached() at the end of the data? Any concrete sample code for this that works? Another strange thing is that at the end of a one second sound at sample rate 16000, getPlaybackHeadPosition() returns 16000 as expected, but for a sample rate of 22050 getPlaybackHeadPosition() becomes consistently 22016, for a sample rate of 11025 getPlaybackHeadPosition() becomes 11008, while for a sample rate of 8000 the getPlaybackHeadPosition() returns consistently 8000 again. Are the discrepancies for sample rates of 11025 and 22050 due to rounding inaccuracies in the AudioTrack sample rate divider? 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: Tabhost Disappearing List view
cre wrote: I got to see the error condition with hierarchyviewer. The ListView is visible but the TextViews that contain the lines of text are missing from the diagram. That is why the list of items does not appear. That suggests that the adapter for that list thinks it has no contents at that point. In your code from a previous post, you have: ListView list3 = (ListView) findViewById(R.id.tab3); list3.setAdapter(ArrayAdapter.createFromResource( this, R.array.letters, R.layout.tab_row)); Do you ever: -- Call setAdapter() on list3 again, perhaps with an empty ArrayAdapter? -- Have multiple definitions of R.array.letters (e.g., landscape versus portrait), with one being empty? -- Manually manipulate the contents of list3's adapter? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.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: AnimationDrawable class recompile error
error on super(orig, owner); it's jump a little) On 1 май, 14:07, Illidane illid...@gmail.com wrote: Hi all :) I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors: private final static class AnimationState extends DrawableContainerState { private int[] mDurations; private boolean mOneShot; AnimationState(AnimationState orig, AnimationDrawable owner) { super(orig, owner); -- error here if (orig != null) { mDurations = orig.mDurations; mOneShot = orig.mOneShot; } else { mDurations = new int[getChildren().length]; mOneShot = true; } } ... It says The constructor DrawableContainer.DrawableContainerState (AnimationDrawable.AnimationState, AnimationDrawable) is undefined. Any ideas how to fix 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] AnimationDrawable class recompile error
Hi all :) I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors: private final static class AnimationState extends DrawableContainerState { private int[] mDurations; private boolean mOneShot; AnimationState(AnimationState orig, AnimationDrawable owner) { super(orig, owner); -- error here if (orig != null) { mDurations = orig.mDurations; mOneShot = orig.mOneShot; } else { mDurations = new int[getChildren().length]; mOneShot = true; } } ... It says The constructor DrawableContainer.DrawableContainerState (AnimationDrawable.AnimationState, AnimationDrawable) is undefined. Any ideas how to fix 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: SQLite Pre-populated Database
hivebrain wrote: Do you know if after the resource has been moved to the SD card, whether it can be deleted from the package to free up main memory for the user? No, APKs cannot be modified once installed. Hence, there are no ways to delete or modify resources or assets in installed APKs. I am enjoying your book, by the way. Glad you like it! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.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: URGENT!!!!! Can't update apps in android market!!!
We found the same problem this morning, and worked round it by moving the uses-sdk element to be the first child of the manifest element. Thanks, Richard On Apr 28, 6:26 pm, Raphael r...@android.com wrote: Actually the element order makes a difference. It's a bug in the current Market parser which is going to be fixed real soon. R/ On Tue, Apr 28, 2009 at 6:54 AM,jsdfjasons...@gmail.com wrote: I was finally able to solve this, but the solution made no sense at all. 1.) I upgraded to the ADT 0.9 SDK 1.5 (released yesterday), and used the 1.1 target within. 2.) I changed my AndroidManifest.xml to be the following. ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.my.package android:versionName=1.071 android:versionCode=20 uses-sdk android:minSdkVersion=1 / uses-permission android:name=android.permission.VIBRATE/ uses- permission uses-permission android:name=android.permission.INTERNET/ uses- permission application android:icon=@drawable/icon android:label=@string/ app_name android:name=com.my.package.MyApplication uses-library android:name=com.google.android.maps / activity android:name=.MyAppActivity android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=RouteChooser/activity activity android:name=DirChooser/activity activity android:name=StopChooser/activity activity android:name=UserRouteNameActivity/ activity activity android:name=PreferencesActivity/ activity activity android:name=com.my.package.map.MapViewActivity/ activity /application /manifest Note the two changes from the previous version I posted earlier in the thread: - All the uses-permission lines moved to the top, which I do not think made any difference. - The uses-library line moved to the top of application, which finally fixed this problem. I hope this helps others who are still having this problem. I will post a bug report now. Jason On Apr 27, 9:03 pm, aleung leoli...@gmail.com wrote: I was using 1.1 SDK and failed to publish. I haven't tried 1.5 SDK yet. On Apr 27, 10:25 pm,jsdfjasons...@gmail.com wrote: aleung, you are correct. It seems the line uses-library android:name=com.google.android.maps / is preventing the AndroidManifest.xml from being parsed correctly. Unfortunately, I have Maps in my application and cannot simply remove this line. Were you (and others) using the 1.5 SDK package with a 1.1 target to build your application? Or were you using 1.1 SDK release 1 with 1.1 target to build your application? (This question is somewhat replicated here:http://groups.google.com/group/android-developers/browse_thread/threa...) Thanks, Jason On Apr 26, 2:16 am, aleung leoli...@gmail.com wrote: Perhaps it's because of this line: uses-library android:name=com.google.android.maps / The Android blog said that Google Maps API is a plugin in the 1.5 SDK. I'm now downloading the 1.5 SDK early look to have a try. On Apr 26, 12:05 pm,jsdfjasons...@gmail.com wrote: Even with 1 this does not work. I still get The server could not process your apk. Try again. I've pasted the relevant AndroidManifest.xml code below. Is there anything else that is wrong? Perhaps use of the custom Application (vs. the default Application) is throwing the XML parser for a loop? (I hope not; I've been using this structure for AndroidManifest for over a month now!) ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.my.package android:versionName=1.071 android:versionCode=20 uses-sdk android:minSdkVersion=1 / application android:icon=@drawable/icon android:label=@string/ app_name android:name=com.my.package.MyApplication activity android:name=.MyAppActivity android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=RouteChooser/activity activity android:name=DirChooser/activity activity
[android-developers] images on my list view mess when i scroll down to bottom
Hi Experts, i have a list view which renders some images on it. it words alryt untill there is no scroll but mess when i scroll down till bottom. if i restart my app again it works ok. any 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] 1.5 SDK export unsigned application - no files inside
Hi all i really need some help this issue is driving me nuts. I have got my application that i had working on 1.1 sdk. I transfered the workspace to a new computer running ubuntu 8.1 install eclipse, the adt, and downloaded the new 1.5 sdk. I updated my application, and ive tested it in the emulator (after creating some avd's). So the application works. BUT i cant export it! when i export the application i get an apk which contains the following layout in my apk (signed and unsigned) AndroidManifest.xml classes.dex resources.arsc ./res/drawable: folder.png goroot.png icon.png td48.png uponelevel.png ./res/layout: engine_addform.xml manualsearch.xml settingstester.xml ..etc... So as you can see ive got no classes, or files that actually do anything! please help! Alec --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 1.5 SDK export unsigned application - no files inside
Alec wrote: Hi all i really need some help this issue is driving me nuts. I have got my application that i had working on 1.1 sdk. I transfered the workspace to a new computer running ubuntu 8.1 install eclipse, the adt, and downloaded the new 1.5 sdk. I updated my application, and ive tested it in the emulator (after creating some avd's). So the application works. BUT i cant export it! when i export the application i get an apk which contains the following layout in my apk (signed and unsigned) AndroidManifest.xml classes.dex resources.arsc ./res/drawable: folder.png goroot.png icon.png td48.png uponelevel.png ./res/layout: engine_addform.xml manualsearch.xml settingstester.xml ..etc... So as you can see ive got no classes, or files that actually do anything! please help! classes.dex are your classes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problems with 1.5 r1 on 64 bit Ubuntu 9.04?
Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a An SWT Error has occurred... message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed Anyone else getting this? I tried to do a reinstall of the sdk and eclipse and I have the same issue. Everything worked great with SDK 1.1 R1 Any help would be greatly appreciated! Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?
Here is what I am getting in my .log file: !ENTRY com.android.ide.eclipse.adt 4 0 2009-05-01 07:28:32.470 !MESSAGE pingUsageServer failed !STACK 0 org.eclipse.swt.SWTError: Not implemented [multiple displays] at org.eclipse.swt.SWT.error(SWT.java:3803) at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712) at org.eclipse.swt.widgets.Display.create(Display.java:842) at org.eclipse.swt.graphics.Device.init(Device.java:154) at org.eclipse.swt.widgets.Display.init(Display.java:471) at org.eclipse.swt.widgets.Display.init(Display.java:462) at com.android.sdkstats.SdkStatsService.getUserPermission (SdkStatsService.java:278) at com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java: 126) at com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer (Unknown Source) at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) On May 1, 7:03 am, csyperski csyper...@gmail.com wrote: Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a An SWT Error has occurred... message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed Anyone else getting this? I tried to do a reinstall of the sdk and eclipse and I have the same issue. Everything worked great with SDK 1.1 R1 Any help would be greatly appreciated! Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?
I fixed the problem by restart Eclipse and set the Auto update, may be you should try to fix the project too. Best Regards Eric Chen On Fri, May 1, 2009 at 8:33 PM, csyperski csyper...@gmail.com wrote: Here is what I am getting in my .log file: !ENTRY com.android.ide.eclipse.adt 4 0 2009-05-01 07:28:32.470 !MESSAGE pingUsageServer failed !STACK 0 org.eclipse.swt.SWTError: Not implemented [multiple displays] at org.eclipse.swt.SWT.error(SWT.java:3803) at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712) at org.eclipse.swt.widgets.Display.create(Display.java:842) at org.eclipse.swt.graphics.Device.init(Device.java:154) at org.eclipse.swt.widgets.Display.init(Display.java:471) at org.eclipse.swt.widgets.Display.init(Display.java:462) at com.android.sdkstats.SdkStatsService.getUserPermission (SdkStatsService.java:278) at com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java: 126) at com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer (Unknown Source) at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) On May 1, 7:03 am, csyperski csyper...@gmail.com wrote: Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a An SWT Error has occurred... message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed Anyone else getting this? I tried to do a reinstall of the sdk and eclipse and I have the same issue. Everything worked great with SDK 1.1 R1 Any help would be greatly appreciated! Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Trying to fetch the Events from Calendar Provider doesnt return proper result
I am trying to get the Events of today and later dates from the Provider using the below code, but not getting the desired result. It returns some events in the Calendar but doesnt list all the events Secondly doesnt satisfy the where clause of today and later dated events. It returns events at random. Intent intent = getIntent(); Uri mUri = Uri.parse(content://calendar/events); ContentResolver cr = getContentResolver(); Cursor mEventCursor = managedQuery(mUri, null, dtStart = + System.currentTimeMillis(), null,dtStart); Please let me know if I'm wrong in the above code. 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: Tabhost Disappearing List view
Mark, I never call setAdapter() anywhere but in onCreate. There is only a single definition in array.xml. I do not manually manipulate the content of list3's adapter. What happened to List3 happens to List1 and List2 at random and on occasion more than one list will disappear. Is there a way to test for this condition and manually update the list adapters? On May 1, 6:45 am, Mark Murphy mmur...@commonsware.com wrote: cre wrote: I got to see the error condition with hierarchyviewer. The ListView is visible but the TextViews that contain the lines of text are missing from the diagram. That is why the list of items does not appear. That suggests that the adapter for that list thinks it has no contents at that point. In your code from a previous post, you have: ListView list3 = (ListView) findViewById(R.id.tab3); list3.setAdapter(ArrayAdapter.createFromResource( this, R.array.letters, R.layout.tab_row)); Do you ever: -- Call setAdapter() on list3 again, perhaps with an empty ArrayAdapter? -- Have multiple definitions of R.array.letters (e.g., landscape versus portrait), with one being empty? -- Manually manipulate the contents of list3's adapter? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training.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: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?
I tried to set auto update and it didn't seem to help. I even created a new empty workspace. I happens most when I go to Window - Prefences - android That is when the message pops up, I doesn't allow me to set the sdk path! On May 1, 7:44 am, Eric Chen jude...@gmail.com wrote: I fixed the problem by restart Eclipse and set the Auto update, may be you should try to fix the project too. Best Regards Eric Chen On Fri, May 1, 2009 at 8:33 PM, csyperski csyper...@gmail.com wrote: Here is what I am getting in my .log file: !ENTRY com.android.ide.eclipse.adt 4 0 2009-05-01 07:28:32.470 !MESSAGE pingUsageServer failed !STACK 0 org.eclipse.swt.SWTError: Not implemented [multiple displays] at org.eclipse.swt.SWT.error(SWT.java:3803) at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712) at org.eclipse.swt.widgets.Display.create(Display.java:842) at org.eclipse.swt.graphics.Device.init(Device.java:154) at org.eclipse.swt.widgets.Display.init(Display.java:471) at org.eclipse.swt.widgets.Display.init(Display.java:462) at com.android.sdkstats.SdkStatsService.getUserPermission (SdkStatsService.java:278) at com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java: 126) at com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer (Unknown Source) at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) On May 1, 7:03 am, csyperski csyper...@gmail.com wrote: Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a An SWT Error has occurred... message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed Anyone else getting this? I tried to do a reinstall of the sdk and eclipse and I have the same issue. Everything worked great with SDK 1.1 R1 Any help would be greatly appreciated! Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 call the phone programmatically ?
Thank you Mark, On Fri, May 1, 2009 at 12:35 PM, Mark Murphy mmur...@commonsware.comwrote: Olivier Tournaire wrote: I am wondering if it is possible for a program to call the device at a defined hour. If you have any hint on this, please let me know. If by call you mean place a voice call, then a program running on the device cannot call itself, since the line will busy. If by call you mean you want some piece of code to execute every hour, look at AlarmManager. If you mean something else, could you be more specific? My intent is to make the phone ring. I would also like to be able able to choose the ring type. Regards, Olivier -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.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: CheckedTextView - Changed?
OK, well I give up then. I have done some testing in various scenarios and have found that this is simply inconsistent. My view hierarchy is not incredibly complex, nor is it particularly deep. What I do see is that some times my checkmarks display properly, then after displaying properly once in the application, they then display correctly elsewhere, but sometimes they even display where they shouldn't, specifically where I replaced some CheckedTextViews with my own implementation of Checkable based on RelativeLayout since I had to display other elements too. Sometimes, even though the checkmark displays properly on normal view, when pressing the item in a list, the checkmark expands to fill the list item. Even in an extremely simple layout I found that includes a CheckedTextView or derived class does not play nice in LinearLayout, particularly when a ListView is also in the Layout. In RelativeLayout, the CheckedTextView only plays nice when included before the other elements. So, it turns out I will be completely dumping the CheckedTextView in favor of my own custom drawn checkable and rewriting my application to avoid the inconsistency of the CheckedTextView. Note all of this worked perfectly fine until 1.5 so, apparently, something has gone haywire in this iteration. On Apr 29, 10:47 pm, nEx.Software justin.shapc...@gmail.com wrote: Anybody? Now that T-Mobile appears to be releasing 1.5 OTA, this will begin to become an issue quickly I think. My users won't be able to see what they have selected. On Apr 29, 12:47 pm, nEx.Software justin.shapc...@gmail.com wrote: No worries. Any idea why my checkmarks disappear in 1.5? In my XML I have the following attribute: android:checkMark=@drawable/btn_check btn_check is a stateful drawable but it seems maybe the states have changed or something because if I just set the checkmark to a static drawable it displays the checkmark fine. Obviously, I want to be able to continue using the stateful drawable. Any ideas? On Apr 29, 11:45 am, Romain Guy romain...@google.com wrote: Doh! Apparently LayoutInflater lets you inflate abstract classes. I'll fixed CheckedTextView to not be abstract anymore. Sorry for that. On Wed, Apr 29, 2009 at 11:41 AM, Romain Guy romain...@google.com wrote: CheckedTextView has always been abstract. You cannot and could not instantiate it from code but you can use it from XML yes. This has not changed from 1.1 to 1.5. On Wed, Apr 29, 2009 at 11:10 AM, nEx.Software justin.shapc...@gmail.com wrote: I was able to include it in my XML Layout file in 1.1. So to continue using it, I'll have to extend it? And reimplement the functions that were already provided to me in the last SDK? It is incredibly frustrating when, per instructions from the Android engineers, I followed what was in the SDK and now it no longer works. Thanks for the info, guess I'll Just extend it and go from there. On Apr 29, 10:57 am, Romain Guy romain...@google.com wrote: CheckedTextView is an abstract class, just as it was in Android 1.1. This means you cannot instantiate it directly. On Wed, Apr 29, 2009 at 10:52 AM, nEx.Software justin.shapc...@gmail.com wrote: So I tried to test CheckedTextView in a new project based on 1.5 and it doesn't even show as an option. tried to create in code via CheckedTextView CTV = new CheckedTextView(this); but it cannot be instantiated, so how do we use CheckedTextView in the new SDK? What gives? On Apr 28, 7:15 pm, nEx.Software justin.shapc...@gmail.com wrote: Seems 1.5 has changed CheckedTextView where the android:checkmark xml no longer works? Also, the documentation appears to say indicate the checkmarkdrawable only is drawn when checked but does this mean there is no uncheckeddrawable?I'm not able to check in my project at the moment but it certainly seems this is the case. My UI broke, I know that much. Any thoughts? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you
[android-developers] undocumented for recording audio
some where I read it. the undocumented intent for recording audio Intent intent = new Intent(MediaStoreAudio.Media.RECORD_SOUND_SCTION); is this true, I tested but it is not working. one more undocumented intent for capturing picture it is working fine Intent i = new Intent(android.media.action.IMAGE_CAPTURE); whats the stuff with recording intent, plz guide 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] Apps built with 1.5 get a black-backgound icon in the Market
We've rebuilt a couple of our apps with the 1.5 SDK (but targeting 1.1). The Market seems to have a bit of trouble with the background of the icons. They appear correctly (with transparent backgrounds) on the desktop, and they appear correctly when the app is downloaded from the Market and installed on the device. However, they appear on black (not transparent) backgrounds in the Market uploader web page, and in the Market application on the device. It looks to me as though the Market has a problem when it extracts the icon from the .apk at upload time, with .apks built by the 1.5 SDK. Has anyone else seen this ? Any workarounds ? Thanks, Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Camera still regularly hangs with Cupcake, requiring power cycle
I found that the old bug reported in http://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake firmware on my ADP. When it happens - and I've encountered it several times in a few days now - no camera application can access the camera. A power cycle is needed to recover from this locked camera state. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Porting 1.0 to 1.5, map tiles stopped displaying
Thanks Ron, I stopped short of that, I'll give it a try. On Apr 30, 3:48 pm, Ron ry...@mac.com wrote: I had to generate a new Google maps key using the new keystore in my project before the tiles would show. On Apr 29, 8:44 pm, JP joachim.pfeif...@gmail.com wrote: I started porting a functioning 1.0 app to 1.5 last night. It uses MapView and associated classes and everything checks out on 1.0. No such luck after taking it to 1.5. I've included maps API, the usual touch points (API key, Internet permission) are in place of course (coming from 1.0). I've created an id=3 AVD (Google Maps app works), and followed the porting instructions I found posted, but map tiles do not display after porting. Everything else, i.e. the overlaying functionality, is there. Nothing terrible shows in LogCat, so I am scratching my head what might be missing. Pointers welcome, THX in advance! JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 call the phone programmatically ?
Olivier Tournaire wrote: My intent is to make the phone ring. If by ring you mean you want to play a sound, use MediaPlayer or SoundPool (or perhaps AudioTrack -- I have not looked into that class), and use AlarmManager to schedule it. Also, be sure to use a WakeLock to ensure the device is awake long enough for your ring to be completed. If by ring you mean actually have a call come into the device, you would have to initiate the call from someplace other than the device itself, which means this is no longer an Android issue. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Maps Intent in CupCake
Thanks Mark, I've seen it and I'll give it a shot. After a couple of days testing on Cupcake my list grows... Can you confirm the problem I found calling Street View form any app, including the built-in Maps app? On May 1, 3:31 am, Mark Murphy mmur...@commonsware.com wrote: JP wrote: Also, map tiles are not displayed with a 1.5-based build of the app. The 1.1-based build using identical source code base runs on an id=3 AVD just fine. Except for the Street View issue, of course. Don't know if this helps, but in a related thread, somebody wrote: I had to generate a new Google maps key using the new keystore in my project before the tiles would show. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training.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: CheckedTextView - Changed?
nEx.Software wrote: OK, well I give up then. I have done some testing in various scenarios and have found that this is simply inconsistent. My view hierarchy is not incredibly complex, nor is it particularly deep. What I do see is that some times my checkmarks display properly, then after displaying properly once in the application, they then display correctly elsewhere, but sometimes they even display where they shouldn't, specifically where I replaced some CheckedTextViews with my own implementation of Checkable based on RelativeLayout since I had to display other elements too. Sometimes, even though the checkmark displays properly on normal view, when pressing the item in a list, the checkmark expands to fill the list item. Even in an extremely simple layout I found that includes a CheckedTextView or derived class does not play nice in LinearLayout, particularly when a ListView is also in the Layout. In RelativeLayout, the CheckedTextView only plays nice when included before the other elements. So, it turns out I will be completely dumping the CheckedTextView in favor of my own custom drawn checkable and rewriting my application to avoid the inconsistency of the CheckedTextView. Note all of this worked perfectly fine until 1.5 so, apparently, something has gone haywire in this iteration. If you can reproduce the problem in code you are willing to publish, post the sample code along with the description of the problem to http://b.android.com. If there is indeed a bug, that will be one way to help it get fixed. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: SlidingDrawer issue #1?
I tkink I have the same issue. For handle I have ImageView and for content I am using LinearLayout with some views inside of it. There is probably problem with eclipse plugin because in runtime it works fine. On May 1, 7:01 am, Sheepz eladk...@gmail.com wrote: anyone else found something here? On Apr 30, 5:43 pm, Sheepz eladk...@gmail.com wrote: okay, that didnt work :( SlidingDrawer android:id=@+id/SlidingDrawer01 android:layout_width=wrap_content android:layout_height=wrap_content android:handle=@+id/ImageView01 android:content=@+id/ImageView02 ImageView android:id=@id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/back2/ ImageView ImageView android:id=@id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/ahh/ ImageView /SlidingDrawer still getting the same message in the ADT only now when launching the app, it simply stalls half drawn instead of giving an error message saying the application threw an exception... On Apr 30, 5:40 pm, Romain Guy romain...@google.com wrote: You must use different views, it doesn't make sense to have the same view, it's going to confuse SlidingDrawer :) On Thu, Apr 30, 2009 at 2:38 PM, Sheepz eladk...@gmail.com wrote: yeah, i figured that might be it, but even after this fix: SlidingDrawer android:id=@+id/SlidingDrawer01 android:layout_width=wrap_content android:layout_height=wrap_content android:handle=@+id/ImageView01 android:content=@+id/ImageView01 ImageView android:id=@id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/ahh/ ImageView /SlidingDrawer i still get the same error - i'm gonna try using diffrent views for the content and the handle brb :) On Apr 30, 5:32 pm, Romain Guy romain...@google.com wrote: There is a bug indeed, the exception message says the handle is missing, but the content is missing. Check out the javadoc. I'll fix the exception message. On Thu, Apr 30, 2009 at 2:26 PM, Sheepz eladk...@gmail.com wrote: okay, i might be missing something, the reason i think that this is a bug is that if you use the supplied tool, and cannot avoid getting an exception - it's a bug... i don't see any way around it - the way to create this widget is: a) create widget b) get exception c) fix error d) populate it with the values you want by the way, i still havent gotten it to work on my app - here's the code: TableLayout LinearLayout ... /LinearLayout SlidingDrawer android:id=@+id/SlidingDrawer01 android:layout_width=wrap_content android:layout_height=wrap_content android:handle=@+id/ ImageView01 ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/ahh/ ImageView /SlidingDrawer /TableLayout I guess i'm doing something wrong here - but i'm used to the whole hierarchical way of things - why is this different in it's implementation? Thanks for the quick answers btw! Sh. (p.s. if you want to see the rest of the layout, it's available at: http://code.google.com/p/bestcardgameever-android/) On Apr 30, 5:21 pm, Romain Guy romain...@google.com wrote: It *needs* a handle. It's not a bug, it's a requirement to make the widget work. On Thu, Apr 30, 2009 at 2:16 PM, Sheepz eladk...@gmail.com wrote: so you mean i have to put some content in it and only then it will be visilble? even if this is true, it's still a bug - albeit with a much lower severity... i'll check it out and report back in a few. On Apr 30, 5:10 pm, Romain Guy romain...@google.com wrote: Do what the exception says: java.lang.IllegalArgumentException: The handle attribute is required and must refer to a valid child. You need to define the widget to use as the handle of the drawer. On Thu, Apr 30, 2009 at 2:02 PM, Sheepz eladk...@gmail.com wrote: when adding a slidingDrawer object to my application, i got this error when trying to display it on the main.xml layout view i used that view to create it as the bottommost component, and immediatly got this message in the console window and the layout stopped showing. here is the exception: java.lang.IllegalArgumentException: The handle attribute is required and must refer to a valid child. at android.widget.SlidingDrawer.init(SlidingDrawer.java:203) at android.widget.SlidingDrawer.init(SlidingDrawer.java:180) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Weird bug when saving picture to file system!?
I was also wondering how the insertImage() mehtod works. Is there source code for this method available, so I can write my own method? Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps Intent in CupCake
JP wrote: Thanks Mark, I've seen it and I'll give it a shot. After a couple of days testing on Cupcake my list grows... Can you confirm the problem I found calling Street View form any app, including the built-in Maps app? I am still recovering from back-to-back trips and have not yet begun my 1.5 experimentation. That process begins in a few hours. However, I've never used the Street View intent, so I do not know if or when I will get a chance to try it -- I have plenty of existing code to test on 1.5 first. Ask me again in a week or two, if this hasn't been resolved by then. Sorry! -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote: Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote: Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Quality of paid applications on the Market...
On Apr 30, 6:18 pm, Rob Franz rob.fr...@gmail.com wrote: Nothing, but when he's charging $5 for an app with info that you could google easily, you really kind of see what he's after. If you look at the feedback for his other apps, there's a recurring theme - he's almost a scam artist... Sounds like Market needs a reputation system for the developers and for the commenters. Eventually, developers like this would wind up ignored. And the signal-to-noise ratio in the comments would improve too. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Weird bug when saving picture to file system!?
A few people have come across this. It is a known bug and will be fixed in Cupcake. On May 1, 2:33 pm, L'\\tty adver...@hotmail.com wrote: I was also wondering how the insertImage() mehtod works. Is there source code for this method available, so I can write my own method? Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 avoid out of memery exception
Hi all! As mentioned in an earlier post, I am working on a image processing application for android. I encountered an issue regarding the memory contingent of the VMware. In other posts I read that it is not possible to import pictures in full size, they are automatically scaled to the display dimensions, right? If I am applying filters to a picture and I repeat this procedure for more than one pictures the VMware runs out of memory. Is there a chance of avoiding this problem? Can I free some ressources manually or can I change something in architecture to avoid my application from crashing? Regards, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Weird bug when saving picture to file system!?
Okay, thank you so much. I am glad to hear that this is a bug which going to be fixed :-) On 1 Mai, 15:43, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: A few people have come across this. It is a known bug and will be fixed in Cupcake. On May 1, 2:33 pm, L'\\tty adver...@hotmail.com wrote: I was also wondering how the insertImage() mehtod works. Is there source code for this method available, so I can write my own method? Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Weird bug when saving picture to file system!?
I had the same problem. You can fix it yourself (for now), by running the MediaScanner over the file you just saved. Get the DATA column of your image-uri. The DATA (_data) column holds the physical file-path of your image. Use this file-path in the MediaScanner (and MediaScannerConnection) to scan your image. When this is done, you no longer get the exception. On May 1, 9:48 am, L'\\tty adver...@hotmail.com wrote: Okay, thank you so much. I am glad to hear that this is a bug which going to be fixed :-) On 1 Mai, 15:43, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: A few people have come across this. It is a known bug and will be fixed in Cupcake. On May 1, 2:33 pm, L'\\tty adver...@hotmail.com wrote: I was also wondering how the insertImage() mehtod works. Is there source code for this method available, so I can write my own method? Best regards- 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] I got problem with running app on SDK 1.5
Hi friends, I have written an application which runs perfectly fine on SDK 1.0. Basically my app shows some data in list view. To day I downloaded the SDK 1.5 and tried to run the same application on SDK 1.5 emulator. The app crased when I tried to fling the list. The below is the log: E/AndroidRuntime( 774): java.lang.StackOverflowError E/AndroidRuntime( 774):at android.text.Styled.measureText (Styled.java:371) E/AndroidRuntime( 774):at android.text.Layout.measureText (Layout.java:1600) E/AndroidRuntime( 774):at android.text.Layout.getLineMax (Layout.java:654) E/AndroidRuntime( 774):at android.text.Layout.draw(Layout.java:310) E/AndroidRuntime( 774):at android.text.BoringLayout.draw (BoringLayout.java:356) E/AndroidRuntime( 774):at android.widget.TextView.onDraw (TextView.java:3921) E/AndroidRuntime( 774):at android.view.View.draw(View.java:5838) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.View.buildDrawingCache (View.java:5615) E/AndroidRuntime( 774):at android.view.View.getDrawingCache (View.java:5458) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1422) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.widget.AbsListView.dispatchDraw (AbsListView.java:1319) E/AndroidRuntime( 774):at android.widget.ListView.dispatchDraw (ListView.java:2820) E/AndroidRuntime( 774):at android.view.View.draw(View.java:5944) E/AndroidRuntime( 774):at android.widget.AbsListView.draw (AbsListView.java:2121) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.View.draw(View.java:5944) E/AndroidRuntime( 774):at android.widget.FrameLayout.draw (FrameLayout.java:352) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.View.draw(View.java:5841) E/AndroidRuntime( 774):at android.widget.FrameLayout.draw (FrameLayout.java:352) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.View.draw(View.java:5841) E/AndroidRuntime( 774):at android.widget.FrameLayout.draw (FrameLayout.java:352) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 774):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 774):at android.view.View.draw(View.java:5841) E/AndroidRuntime( 774):at android.widget.FrameLayout.draw (FrameLayout.java:352) E/AndroidRuntime( 774):at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1847) E/AndroidRuntime( 774):at android.view.ViewRoot.draw(ViewRoot.java: 1217) E/AndroidRuntime( 774):at android.view.ViewRoot.performTraversals (ViewRoot.java:1030) E/AndroidRuntime( 774):at android.view.ViewRoot.handleMessage (ViewRoot.java:1482) E/AndroidRuntime( 774):at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime(
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote: Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SlidingDrawer issue #1?
I tkink I have the same issue. For handle I have ImageView and for content I am using LinearLayout with some views inside of it. There is probably problem with eclipse plugin because in runtime it works fine. On May 1, 7:01 am, Sheepz eladk...@gmail.com wrote: anyone else found something here? On Apr 30, 5:43 pm, Sheepz eladk...@gmail.com wrote: okay, that didnt work :( SlidingDrawer android:id=@+id/SlidingDrawer01 android:layout_width=wrap_content android:layout_height=wrap_content android:handle=@+id/ImageView01 android:content=@+id/ImageView02 ImageView android:id=@id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/back2/ ImageView ImageView android:id=@id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/ahh/ ImageView /SlidingDrawer still getting the same message in the ADT only now when launching the app, it simply stalls half drawn instead of giving an error message saying the application threw an exception... On Apr 30, 5:40 pm, Romain Guy romain...@google.com wrote: You must use different views, it doesn't make sense to have the same view, it's going to confuse SlidingDrawer :) On Thu, Apr 30, 2009 at 2:38 PM, Sheepz eladk...@gmail.com wrote: yeah, i figured that might be it, but even after this fix: SlidingDrawer android:id=@+id/SlidingDrawer01 android:layout_width=wrap_content android:layout_height=wrap_content android:handle=@+id/ImageView01 android:content=@+id/ImageView01 ImageView android:id=@id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/ahh/ ImageView /SlidingDrawer i still get the same error - i'm gonna try using diffrent views for the content and the handle brb :) On Apr 30, 5:32 pm, Romain Guy romain...@google.com wrote: There is a bug indeed, the exception message says the handle is missing, but the content is missing. Check out the javadoc. I'll fix the exception message. On Thu, Apr 30, 2009 at 2:26 PM, Sheepz eladk...@gmail.com wrote: okay, i might be missing something, the reason i think that this is a bug is that if you use the supplied tool, and cannot avoid getting an exception - it's a bug... i don't see any way around it - the way to create this widget is: a) create widget b) get exception c) fix error d) populate it with the values you want by the way, i still havent gotten it to work on my app - here's the code: TableLayout LinearLayout ... /LinearLayout SlidingDrawer android:id=@+id/SlidingDrawer01 android:layout_width=wrap_content android:layout_height=wrap_content android:handle=@+id/ ImageView01 ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/ahh/ ImageView /SlidingDrawer /TableLayout I guess i'm doing something wrong here - but i'm used to the whole hierarchical way of things - why is this different in it's implementation? Thanks for the quick answers btw! Sh. (p.s. if you want to see the rest of the layout, it's available at: http://code.google.com/p/bestcardgameever-android/) On Apr 30, 5:21 pm, Romain Guy romain...@google.com wrote: It *needs* a handle. It's not a bug, it's a requirement to make the widget work. On Thu, Apr 30, 2009 at 2:16 PM, Sheepz eladk...@gmail.com wrote: so you mean i have to put some content in it and only then it will be visilble? even if this is true, it's still a bug - albeit with a much lower severity... i'll check it out and report back in a few. On Apr 30, 5:10 pm, Romain Guy romain...@google.com wrote: Do what the exception says: java.lang.IllegalArgumentException: The handle attribute is required and must refer to a valid child. You need to define the widget to use as the handle of the drawer. On Thu, Apr 30, 2009 at 2:02 PM, Sheepz eladk...@gmail.com wrote: when adding a slidingDrawer object to my application, i got this error when trying to display it on the main.xml layout view i used that view to create it as the bottommost component, and immediatly got this message in the console window and the layout stopped showing. here is the exception: java.lang.IllegalArgumentException: The handle attribute is required and must refer to a valid child. at android.widget.SlidingDrawer.init(SlidingDrawer.java:203) at android.widget.SlidingDrawer.init(SlidingDrawer.java:180) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native
[android-developers] Re: How to avoid out of memery exception
You can load full-size pics with restrictions. I found out, i can load a full-sized pic (3MPixels) in RGB_565 mode. But trying to load it in ARGB_ fails (OOM exception) and i need to load it in a smaller size. Still, in my app i dilligently try to clean up bitmap memory (call recycle and set references to null) if i really don't need them when i load a full-sized pic. I clean up any bitmap-caches i have; I call setImageBitmap(null) (or similar calls) on Views that are not in use; etc., etc. And, avoid caching stuff in collections/maps that are referenced by static variables, especially when caching bitmap in BitmapDrawables. If you do, however, be sure to clean out these 'global' variables/ structures when you're done... if not, you may get OOM after re- starting your app a few times. On May 1, 9:46 am, L'\\tty adver...@hotmail.com wrote: Hi all! As mentioned in an earlier post, I am working on a image processing application for android. I encountered an issue regarding the memory contingent of the VMware. In other posts I read that it is not possible to import pictures in full size, they are automatically scaled to the display dimensions, right? If I am applying filters to a picture and I repeat this procedure for more than one pictures the VMware runs out of memory. Is there a chance of avoiding this problem? Can I free some ressources manually or can I change something in architecture to avoid my application from crashing? Regards, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CheckedTextView - Changed?
Thanks Mark for the suggestion, I will recreate in a non-production app and submit a bug report. I kind of forgot about the bug tracker. On May 1, 6:30 am, Mark Murphy mmur...@commonsware.com wrote: nEx.Software wrote: OK, well I give up then. I have done some testing in various scenarios and have found that this is simply inconsistent. My view hierarchy is not incredibly complex, nor is it particularly deep. What I do see is that some times my checkmarks display properly, then after displaying properly once in the application, they then display correctly elsewhere, but sometimes they even display where they shouldn't, specifically where I replaced some CheckedTextViews with my own implementation of Checkable based on RelativeLayout since I had to display other elements too. Sometimes, even though the checkmark displays properly on normal view, when pressing the item in a list, the checkmark expands to fill the list item. Even in an extremely simple layout I found that includes a CheckedTextView or derived class does not play nice in LinearLayout, particularly when a ListView is also in the Layout. In RelativeLayout, the CheckedTextView only plays nice when included before the other elements. So, it turns out I will be completely dumping the CheckedTextView in favor of my own custom drawn checkable and rewriting my application to avoid the inconsistency of the CheckedTextView. Note all of this worked perfectly fine until 1.5 so, apparently, something has gone haywire in this iteration. If you can reproduce the problem in code you are willing to publish, post the sample code along with the description of the problem tohttp://b.android.com. If there is indeed a bug, that will be one way to help it get fixed. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: E-books on Android?
Troglodad wrote: Is there an open source reader program/application I can use to encode a book to a specific format then upload it to the Market? There is FBReader/J, and perhaps others. How does Android ensure that there isn't a copyright violation going on? DMCA notices, and probably not much else. It is not up to Google to determine copyright violations, only to deal with them if they are reported. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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: undocumented for recording audio
On Fri, May 1, 2009 at 6:20 AM, jj jagtap...@gmail.com wrote: some where I read it. the undocumented intent for recording audio Intent intent = new Intent(MediaStoreAudio.Media.RECORD_SOUND_SCTION); is this true, I tested but it is not working. Well, what you typed above won't compile. Try: Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); And it's not undocumented, it's documented in MediaStore. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] E-books on Android?
Just wondering how folks are publishing to the Market. Is there an open source reader program/application I can use to encode a book to a specific format then upload it to the Market? How does Android ensure that there isn't a copyright violation going on? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Download Service in 1.5?
Hi! For some reason, I got the impression that there was gonna be a new API or Service in 1.5 to easily ask the system to download a file (instead of having to do everything manually with HttpClient or URL.openConnection, and so on). But I can't find anything in the API docs to that matter. Does anybody know if that was added somewhere (or i it is even planned?). Thanks a lot! BoD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] OutOfMemoryError from BitmapFactory
At 2:35 PM -0700 4/30/09, fadden wrote: The hprof dump can help with that. I added a quick writeup: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD Thanks -- I used hprof with a previous layout leakage problem, and I think it is a huge turd on toast -- at least the default HTML output anyway. Lot's of noise and very little insight. Maybe there are better viewers for that data. In fact, that experience tells me that leaking view trees makes a noticeable dent in the regular object heap that is easily seen in ddms. Since this problem is causing none of that, it has to be something else. Hopefully I'll get to run some more experiments today. -- Ward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 still regularly hangs with Cupcake, requiring power cycle
Can you repro this with the camera application? On May 1, 6:22 am, blindfold seeingwithso...@gmail.com wrote: I found that the old bug reported inhttp://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake firmware on my ADP. When it happens - and I've encountered it several times in a few days now - no camera application can access the camera. A power cycle is needed to recover from this locked camera state. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] what is the maximum size of an app?
Hi, what is the max heap size of an android app? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AnimationDrawable class recompile error
anybody? On 1 май, 14:11, Illidane illid...@gmail.com wrote: error on super(orig, owner); it's jump a little) On 1 май, 14:07, Illidane illid...@gmail.com wrote: Hi all :) I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors: private final static class AnimationState extends DrawableContainerState { private int[] mDurations; private boolean mOneShot; AnimationState(AnimationState orig, AnimationDrawable owner) { super(orig, owner); -- error here if (orig != null) { mDurations = orig.mDurations; mOneShot = orig.mOneShot; } else { mDurations = new int[getChildren().length]; mOneShot = true; } } ... It says The constructor DrawableContainer.DrawableContainerState (AnimationDrawable.AnimationState, AnimationDrawable) is undefined. Any ideas how to fix 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] viewing logcat from phone not possible in Android 1.5?
Hi, After installing Android 1.5 on my ADP I can't check logcat directly from the phone. When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives permission denied /dev/log/main. If I get an exception/force close in any of my apps I'd like to be able to check the stack trace/logs without having to connect it to a computer. I guess it could be possible to check any created traces.txt files later. I know I can check logcat with adb logcat, or adb root shell, logcat. Is there a way of checking logcat directly from the phone? 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: what is the maximum size of an app?
manoj wrote: what is the max heap size of an android app? 16MB, IIRC. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Tabhost Disappearing List view
cre wrote: Is there a way to test for this condition and manually update the list adapters? If I am correct, and the adapters think they have no contents, they will return 0 to a call to getCount(). You may want to check this, in part to confirm my adapter-thinks-it-is-empty theory. Do adapters other than ArrayAdapter.createFromResource() exhibit the same behavior? For example, does an ArrayAdapter created via the constructor have its contents vanish? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Ho to deteck key press on soft keyboard
Hi, I have an EditText control on a preference screen and I run some logic when the user enters a character. I've been using View.OnKeyListener but it does not work with the soft (virtual) keyboard (V1.5). What should I use instead? Thanks, Yossi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?
If anyone else has the issue it can be resolved by: Window - Preferences - Click Arrow next to android, not text itself or it will crash - Usage Stats - Send usage stats to google set to checked. I have no idea why this worked, but it fixed my problem. On May 1, 7:50 am, csyperski csyper...@gmail.com wrote: I tried to set auto update and it didn't seem to help. I even created a new empty workspace. I happens most when I go to Window - Prefences - android That is when the message pops up, I doesn't allow me to set the sdk path! On May 1, 7:44 am, Eric Chen jude...@gmail.com wrote: I fixed the problem by restart Eclipse and set the Auto update, may be you should try to fix the project too. Best Regards Eric Chen On Fri, May 1, 2009 at 8:33 PM, csyperski csyper...@gmail.com wrote: Here is what I am getting in my .log file: !ENTRY com.android.ide.eclipse.adt 4 0 2009-05-01 07:28:32.470 !MESSAGE pingUsageServer failed !STACK 0 org.eclipse.swt.SWTError: Not implemented [multiple displays] at org.eclipse.swt.SWT.error(SWT.java:3803) at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712) at org.eclipse.swt.widgets.Display.create(Display.java:842) at org.eclipse.swt.graphics.Device.init(Device.java:154) at org.eclipse.swt.widgets.Display.init(Display.java:471) at org.eclipse.swt.widgets.Display.init(Display.java:462) at com.android.sdkstats.SdkStatsService.getUserPermission (SdkStatsService.java:278) at com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java: 126) at com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer (Unknown Source) at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) On May 1, 7:03 am, csyperski csyper...@gmail.com wrote: Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a An SWT Error has occurred... message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed Anyone else getting this? I tried to do a reinstall of the sdk and eclipse and I have the same issue. Everything worked great with SDK 1.1 R1 Any help would be greatly appreciated! Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SurfaceFlinger and permitions
On Apr 30, 2:09 pm, Guian guiandou...@gmail.com wrote: The error is a little bit different since I moved from OpenGL ES 1.1 to OpenGL ES 1.0, but still here on the GPU surface request : E/SurfaceFlinger( 65): HW3D_REVOKE_GPU failed (Invalid argument), mFD=146, base=0x499f8000 but only on the G1, it works fine on the emulator Have you tried stepping through your code (particularly your OpenGL initialization stuff) to see which line is causing the process to die? I expect that the HW3D_REVOKE_GPU error is just a symptom of the sudden process death rather than the cause. -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps Intent in CupCake
On May 1, 6:34 am, Mark Murphy mmur...@commonsware.com wrote: JP wrote: However, I've never used the Street View intent, so I do not know if or when I will get a chance to try it -- I have plenty of existing code to test on 1.5 first. No need to review/create code. The built-in Maps app calls Street View through the same method. I found that when the built-in map app crashed alike as soon as I click on the address bubble. JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 1.5 performance profiling
One of the new features mentioned in the 1.5 SDK is Easier application performance profiling. Can somebody shed some light on what new profiling features are available in the new SDK? Are those enhancements to TraceView, DDMS, or new profiling APIs ? Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 call the phone programmatically ?
To access the ringtones, I recommend android.media.RingtoneManager: http://developer.android.com/reference/android/media/RingtoneManager.html To show a ringtone picker to the user, use the android.intent.action.RINGTONE_PICKER intent to launch the picker as a subactivity. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 1, 6:24 am, Mark Murphy mmur...@commonsware.com wrote: Olivier Tournaire wrote: My intent is to make the phone ring. If by ring you mean you want to play a sound, use MediaPlayer or SoundPool (or perhaps AudioTrack -- I have not looked into that class), and use AlarmManager to schedule it. Also, be sure to use a WakeLock to ensure the device is awake long enough for your ring to be completed. If by ring you mean actually have a call come into the device, you would have to initiate the call from someplace other than the device itself, which means this is no longer an Android issue. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle
Probably not as it may be load dependent, but once it happens with my own app the built-in camera application also no longer works. It's like the camera lock is no longer available to any app at that point, including the one that last used it. Regards On May 1, 5:00 pm, Dave Sparks davidspa...@android.com wrote: Can you repro this with the camera application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: viewing logcat from phone not possible in Android 1.5?
On May 1, 8:06 am, mathias axelsson mathias.axels...@gmail.com wrote: When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives permission denied /dev/log/main. To avoid creating a situation where an app could run su and do dastardly deeds, an explicit userid check was added to su. You need to be in an adb shell. If this is inconvenient, you can create an unrestricted su replacement. One approach is to make a copy of the shell and chmod/ chown it to setuid root. This creates a security hole -- something could scan your phone for setuid binaries and speculatively execute them looking for root shells -- but it's no worse than the previous su binary. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 from BitmapFactory
On May 1, 7:55 am, Ward Willats goo...@wardco.com wrote: Thanks -- I used hprof with a previous layout leakage problem, and I think it is a huge turd on toast -- at least the default HTML output anyway. Lot's of noise and very little insight. Maybe there are better viewers for that data. If you can get it installed and running, Eclipse MAT might be useful: http://kohlerm.blogspot.com/ hat/jhat are useful if you're trying to answer a fairly focused question. For things like where'd all my memory go the generated HTML is a bit awkward to wade through. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: viewing logcat from phone not possible in Android 1.5?
You could also use Log Collector, which is available on the Android Market. On May 1, 1:26 pm, fadden fad...@android.com wrote: On May 1, 8:06 am, mathias axelsson mathias.axels...@gmail.com wrote: When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives permission denied /dev/log/main. To avoid creating a situation where an app could run su and do dastardly deeds, an explicit userid check was added to su. You need to be in an adb shell. If this is inconvenient, you can create an unrestricted su replacement. One approach is to make a copy of the shell and chmod/ chown it to setuid root. This creates a security hole -- something could scan your phone for setuid binaries and speculatively execute them looking for root shells -- but it's no worse than the previous su binary. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create a Toast from a background operation?
Hi, what is a good way to signal an error from a thread that is not the UI thread and you don't know which activity/handler is currently active? Can I somehow get eleto the current UI thread? Can I somehow use the MainLooper from the application context? I use notification for serious events where the user needs to take action, e.g. a login failed, but here I am looking for a transient notification with a toast and it would be ok if the toast is not seen in some cases. Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Tap Outside Listener for Dialog
That should do the trick, thanks for your help! On Apr 30, 4:24 pm, Jeff Sharkey jshar...@android.com wrote: So Theme.Dialog Activities still receive onTouchEvent() calls, even outside of their floating window area. If you can grab the exact window size, you could do the math to figure out if touches are outside the window. j On Thu, Apr 30, 2009 at 11:46 AM, UBZack zferv...@gmail.com wrote: Hi all, I was wondering if anyone knew of an event listener that receives tap outside events, that is, taps that happen outside the widget's physical boundaries, and could this listener be assigned to a dialog box (or for that matter, any visual window). Here's what the code MIGHT look like to construct a Dialog with this functionality: AlertDialog.Builder(this) .setTitle(My dialog) .setMessage(This is my dialog) .setOnOutsideClickListener(new MyOnClickListener()) // - does something like this exist? .create(); Any help or insight anyone can give would be great. I know that the menu currently supports taps outside of its boundaries, so I think this may be possible. Thank you! -UBZack -- Jeff Sharkey jshar...@google.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: How to create a Toast from a background operation?
Mariano Kamp wrote: what is a good way to signal an error from a thread that is not the UI thread and you don't know which activity/handler is currently active? Does it matter? I have not tried to have a background thread use a Handler or runOnUiThread() of an Activity that might not be active. It is entirely possible it just works, and so you can use whatever Activity you have handy. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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: How to create a Toast from a background operation?
Hey Mark, well, if just sending a toast from any thread I get this: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.init(Handler.java:121) at android.widget.Toast.init(Toast.java:397) at android.widget.Toast.makeText(Toast.java:230) When asking the original initiator of the background operation to pass in a handler, it might happen, that the activity that created the handler is no longer active when the operation finished. I also believe to remember that this will bring out an exception too. All that looks very ugly, which often means that I don't get what the proper way of doing things around here is. But if the above mentioned way (passing in a handler from the original activity) is the best way, then I will just do that. Cheers, Mariano On Fri, May 1, 2009 at 7:44 PM, Mark Murphy mmur...@commonsware.com wrote: Mariano Kamp wrote: what is a good way to signal an error from a thread that is not the UI thread and you don't know which activity/handler is currently active? Does it matter? I have not tried to have a background thread use a Handler or runOnUiThread() of an Activity that might not be active. It is entirely possible it just works, and so you can use whatever Activity you have handy. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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: How to create a Toast from a background operation?
Mariano Kamp wrote: well, if just sending a toast from any thread I get this: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.init(Handler.java:121) at android.widget.Toast.init(Toast.java:397) at android.widget.Toast.makeText(Toast.java:230) It looks like you are trying to manually instantiate a Handler, or possibly an Activity, in the background thread. If so, that is not the proper way to use a Handler. This is one of the reasons I dislike Handler, preferring runOnUiThread() (and hopefully the new AsyncTask). When asking the original initiator of the background operation to pass in a handler, it might happen, that the activity that created the handler is no longer active when the operation finished. I also believe to remember that this will bring out an exception too. Doubtful. Otherwise, AsyncTask couldn't work. All that looks very ugly, which often means that I don't get what the proper way of doing things around here is. But if the above mentioned way (passing in a handler from the original activity) is the best way, then I will just do that. Can you use AsyncTask for this? The result of your background work would be passed to onPostExecute(), which could then display an error on the UI thread if something failed in the background thread. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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] 1.5 upgrade issue
I am upgrading my project using Eclipse. I faced a problem to upgrade Update your Eclipse SDK Preferences. When I point to the new SDK directory, I got an error message Could not find C:\Documents and Settings\apu\M...s-1.5_r1\platforms \android-1.5\tools\adb.exe. Does anyone facing the same issue? Thanks! Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 1.5 SDK export unsigned application - no files inside
Thank you Mark I was being a bit silly. The actual issue was the corruption of files transfered onto the sdcard. I worked around it. Thank you for helping me diagnose the issue. Alec On May 1, 12:39 pm, Mark Murphy mmur...@commonsware.com wrote: Alec wrote: Hi all i really need some help this issue is driving me nuts. I have got my application that i had working on 1.1 sdk. I transfered the workspace to a new computer running ubuntu 8.1 install eclipse, the adt, and downloaded the new 1.5 sdk. I updated my application, and ive tested it in the emulator (after creating some avd's). So the application works. BUT i cant export it! when i export the application i get an apk which contains the following layout in my apk (signed and unsigned) AndroidManifest.xml classes.dex resources.arsc ./res/drawable: folder.png goroot.png icon.png td48.png uponelevel.png ./res/layout: engine_addform.xml manualsearch.xml settingstester.xml ..etc... So as you can see ive got no classes, or files that actually do anything! please help! classes.dex are your classes. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to call the phone programmatically ?
Thank you Yusuf, On Fri, May 1, 2009 at 6:44 PM, Yusuf T. Mobile yusuf.s...@t-mobile.comwrote: To access the ringtones, I recommend android.media.RingtoneManager: http://developer.android.com/reference/android/media/RingtoneManager.html Right ! This is exactly what I need ! To show a ringtone picker to the user, use the android.intent.action.RINGTONE_PICKER intent to launch the picker as a subactivity. I am sorry, but it is not clear to me how to show a ringtone picker. Can you help me ? Regards, Olivier Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 1, 6:24 am, Mark Murphy mmur...@commonsware.com wrote: Olivier Tournaire wrote: My intent is to make the phone ring. If by ring you mean you want to play a sound, use MediaPlayer or SoundPool (or perhaps AudioTrack -- I have not looked into that class), and use AlarmManager to schedule it. Also, be sure to use a WakeLock to ensure the device is awake long enough for your ring to be completed. If by ring you mean actually have a call come into the device, you would have to initiate the call from someplace other than the device itself, which means this is no longer an Android issue. -- 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 -~--~~~~--~~--~--~---
[android-developers] Google voice recognition on Emulator
HI, does any one know How to turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test voice recognition application? I would appreciate if you can reply. thanks Yash Patel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] test post
guys, if you're going to filter *all* my posts, you might as well give me some idea as to why. -- jason.software.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] SQLiteDatabase, rawQuery(), and attempt to acquire a reference on a close SQLiteClosable
I am beginning the long, slow process of updating my books to Android 1.5. In one of my code samples, I have the following method: static Cursor getAll(SQLiteDatabase db, String orderBy) { return(db.rawQuery(SELECT * FROM restaurants +orderBy, null)); } When I run it, sporadically, I get this: 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): java.lang.IllegalStateException: attempt to acquire a reference on a close SQLiteClosable 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:31) 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at android.database.sqlite.SQLiteProgram.init(SQLiteProgram.java:56) 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:49) 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49) 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118) 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1092) 05-01 14:45:05.849: ERROR/AndroidRuntime(1145): at apt.tutorial.Restaurant.getAll(Restaurant.java:14) This makes no sense to me. The database is definitely open. The SQLiteClosable is the SQLiteQuery created by SQLiteQueryDriver, and I see no evidence that there is an object pool or something going on here that might explain how a new SQLiteClosable is already closed. The fact that it is sporadic (meaning the same UI operations sometimes trigger the exception, but not always) suggests some sort of pool, race condition, or something...but I'm not sure where. I've looked at the source code via Google Code Search, but Google Code Search is out of sync with 1.5, so the code does not completely line up. For example, SQLiteProgram's line 56 in Code Search calls acquireReference() on the database, but my stack trace shows it calling acquireReference() on the SQLiteProgram instance itself, and SQLiteDatabase does not appear to have an acquireReference() method. Does this ring any bells for anyone? Thanks in advance! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.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: How to Snap a picture of a Layouts contents?
Romain : however the drawing cache (or the code snippet i pasted before) will not work if the View has SurfaceView as its child On Thu, Apr 30, 2009 at 3:48 PM, Romain Guy romain...@google.com wrote: You can also use the View's drawing cache API. On Thu, Apr 30, 2009 at 3:38 PM, dan raaka danra...@gmail.com wrote: Bitmap b = Bitmap.create( ); Canvas c = new Canvas(b); your_view.draw(c); use b to in setDrawable else where there are missing lines, but you should get the idea Dan On Thu, Apr 30, 2009 at 2:23 PM, Moto medicalsou...@gmail.com wrote: Hi, I need to somehow get a drawable of the contents of a Layout, once I get that drawable I want to set it as a background on an empty layout How can I go about doing this? Thanks! Moto! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle
Once the camera is in this state, Cupcake's built-in camera app gives in LogCat 05-01 21:48:03.941: DEBUG/CameraService(35): Connect E from ICameraClient 0x46290 05-01 21:48:03.951: DEBUG/CameraService(35): new client (0x46290) attempting to connect - rejected 05-01 21:48:03.951: WARN/dalvikvm(1480): threadid=15: thread exiting with uncaught exception (group=0x4000fe70) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): Uncaught handler: thread Thread-8 exiting due to uncaught exception 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): java.lang.RuntimeException: Out of memory 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at android.hardware.Camera.native_setup(Native Method) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at android.hardware.Camera.init(Camera.java:82) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at android.hardware.Camera.open(Camera.java:64) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at com.android.camera.Camera$2.run(Camera.java:659) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at java.lang.Thread.run(Thread.java:1058) My own app in this state also gives 05-01 21:51:57.051: DEBUG/CameraService(35): Connect E from ICameraClient 0x467e8 05-01 21:51:57.051: DEBUG/CameraService(35): new client (0x467e8) attempting to connect - rejected but without the java.lang.RuntimeException: Out of memory I must then reboot the phone to get the camera back. I'm currently investigating if my use of Proguard perhaps has anything to do with it, because things seem stable until I prepare a release APK. Regards On May 1, 5:00 pm, Dave Sparks davidspa...@android.com wrote: Can you repro this with the camera application? On May 1, 6:22 am, blindfold seeingwithso...@gmail.com wrote: I found that the old bug reported inhttp://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake firmware on my ADP. When it happens - and I've encountered it several times in a few days now - no camera application can access the camera. A power cycle is needed to recover from this locked camera state. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 call the phone programmatically ?
Hi, On Fri, May 1, 2009 at 8:13 PM, Olivier Tournaire olit...@gmail.com wrote: Thank you Yusuf, On Fri, May 1, 2009 at 6:44 PM, Yusuf T. Mobile yusuf.s...@t-mobile.comwrote: To access the ringtones, I recommend android.media.RingtoneManager: http://developer.android.com/reference/android/media/RingtoneManager.html Right ! This is exactly what I need ! To show a ringtone picker to the user, use the android.intent.action.RINGTONE_PICKER intent to launch the picker as a subactivity. I am sorry, but it is not clear to me how to show a ringtone picker. Can you help me ? I found a code sample, however, it does not seem to work. Here it is: private void startRingPick() { Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 1l); // Don't show 'Silent' intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, true); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, uri); startActivityForResult(intent, ACTIVITY_SET_RINGTONE); } It does not work: I simply have a black screen, with nothing ... It returns weel when I press escape. Another thing: RingtoneManager rtm = new RingtoneManager(this); rtm.getCursor().getCount(); gives 0. What am I doing wrong ? Regards, Olivier Regards, Olivier Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 1, 6:24 am, Mark Murphy mmur...@commonsware.com wrote: Olivier Tournaire wrote: My intent is to make the phone ring. If by ring you mean you want to play a sound, use MediaPlayer or SoundPool (or perhaps AudioTrack -- I have not looked into that class), and use AlarmManager to schedule it. Also, be sure to use a WakeLock to ensure the device is awake long enough for your ring to be completed. If by ring you mean actually have a call come into the device, you would have to initiate the call from someplace other than the device itself, which means this is no longer an Android issue. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Will 2009 Google I/O Android sessions be on YouTube?
I hope so. Even if one attends one is unlikely to be able to attend all the sessions one wishes. On Apr 29, 12:26 pm, geoff.stromberg geoff.stromb...@gmail.com wrote: The 2008 Google I/O Android videos were a great resource. The 2009 Android sessions sound like they'll be great too. Can someone who is in the know say whether this year's sessions will be posted on YouTube as well? 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] WebView + soft keyboard + forms == usability problem
Hiya, The soft keyboard in 1.5 has the same behavior as the hard keyboard with respect to the enter key submitting forms. That's pretty reasonable for the hard keyboard as you can easily see that there are more fields to fill out, and can just tap the next field once to go there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 + soft keyboard + forms == usability problem
Hiya, The soft keyboard in 1.5 has the same behavior as the hard keyboard with respect to the enter key submitting forms, that is, it submits the form. That's pretty reasonable for the hard keyboard as you can easily see that there are more fields to fill out, and can just tap the next field once to go there. It's also consistent with desktop web browsers where you have to hit tab to move to the next field. I think it's pretty confusing with the soft keyboard. In landscape mode you can't see anything else whilst typing, and the enter key is nice and big. This makes it VERY easy to accidentally submit a half finished form, which for forms which do server-side validation is a big problem as the validation will occur async in the background, slowly, thus if the user does press enter to dismiss the keyboard then move onto the next field their work will be wiped out when the page reloads with an error message. This is not theoretical, it happens in my app. The right way to use the android soft keyboard, apparently, is to type then press the back button. Not intuitive to me. I think the enter key for the soft keyboard should just dismiss the soft keyboard. I know it's too late to fix this in the OS now, but does anybody know of an easy way to implement this in my apps embedded WebView? thanks -mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is there a way to listen for the completion of AnimationDrawable animation?
I have tried to recompile AnimationDrawable class, but it's impossible :( Any thoughts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is there a way to listen for the completion of AnimationDrawable animation?
Create your own AnimationDrawable. On Fri, May 1, 2009 at 1:35 PM, Illidane illid...@gmail.com wrote: I have tried to recompile AnimationDrawable class, but it's impossible :( Any thoughts? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle
Are you using the camera unlock() method? There is a known issue where if the application calls unlock() and then exits for any reason, it can leave the camera service in a state where it will reject any subsequent attempts to reconnect. On May 1, 12:57 pm, blindfold seeingwithso...@gmail.com wrote: Once the camera is in this state, Cupcake's built-in camera app gives in LogCat 05-01 21:48:03.941: DEBUG/CameraService(35): Connect E from ICameraClient 0x46290 05-01 21:48:03.951: DEBUG/CameraService(35): new client (0x46290) attempting to connect - rejected 05-01 21:48:03.951: WARN/dalvikvm(1480): threadid=15: thread exiting with uncaught exception (group=0x4000fe70) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): Uncaught handler: thread Thread-8 exiting due to uncaught exception 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): java.lang.RuntimeException: Out of memory 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at android.hardware.Camera.native_setup(Native Method) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at android.hardware.Camera.init(Camera.java:82) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at android.hardware.Camera.open(Camera.java:64) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at com.android.camera.Camera$2.run(Camera.java:659) 05-01 21:48:03.951: ERROR/AndroidRuntime(1480): at java.lang.Thread.run(Thread.java:1058) My own app in this state also gives 05-01 21:51:57.051: DEBUG/CameraService(35): Connect E from ICameraClient 0x467e8 05-01 21:51:57.051: DEBUG/CameraService(35): new client (0x467e8) attempting to connect - rejected but without the java.lang.RuntimeException: Out of memory I must then reboot the phone to get the camera back. I'm currently investigating if my use of Proguard perhaps has anything to do with it, because things seem stable until I prepare a release APK. Regards On May 1, 5:00 pm, Dave Sparks davidspa...@android.com wrote: Can you repro this with the camera application? On May 1, 6:22 am, blindfold seeingwithso...@gmail.com wrote: I found that the old bug reported inhttp://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake firmware on my ADP. When it happens - and I've encountered it several times in a few days now - no camera application can access the camera. A power cycle is needed to recover from this locked camera state. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google voice recognition on Emulator
Voice recognition is a technology. You need an application to make use of it, for example the voice dialer. On May 1, 11:17 am, Yash Patel yashjpa...@gmail.com wrote: HI, does any one know How to turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test voice recognition application? I would appreciate if you can reply. thanks Yash Patel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 still regularly hangs with Cupcake, requiring power cycle
On May 1, 9:57 pm, blindfold seeingwithso...@gmail.com wrote: OK, moving from Proguard 4.1 to 4.3 seems to bring much improved stability as far my current testing goes, although I still managed to get the dreaded camera lock once after a stressful transition (quitting my app while it was resetting its state). Apparently Cupcake does not have some independent daemon running that checks if the camera is still locked when no camera app is running, in order to remove the floating lock? That might offer a solution to the G1 camera (or its firmware) not being quite stress proof. Regards I must then reboot the phone to get the camera back. I'm currently investigating if my use of Proguard perhaps has anything to do with it, because things seem stable until I prepare a release APK. Regards On May 1, 5:00 pm, Dave Sparks davidspa...@android.com wrote: Can you repro this with the camera application? On May 1, 6:22 am, blindfold seeingwithso...@gmail.com wrote: I found that the old bug reported inhttp://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake firmware on my ADP. When it happens - and I've encountered it several times in a few days now - no camera application can access the camera. A power cycle is needed to recover from this locked camera state. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: camCorder not working well in emulator
It is not working, there is no camera emulation at the moment in the Android emulator. On Thu, Apr 30, 2009 at 11:15 PM, Sheepz eladk...@gmail.com wrote: hi all, just installed myself a new AVD and set the camera to true, however the camcorder is very unresponsive and seems like it's not working... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ho to deteck key press on soft keyboard
The InputConnection interface is the API the IME has to your text editor. TextView provides a default implementation, returned by View.onCreateInputConnection. On Fri, May 1, 2009 at 8:27 AM, Yossi yossi@gmail.com wrote: Hi, I have an EditText control on a preference screen and I run some logic when the user enters a character. I've been using View.OnKeyListener but it does not work with the soft (virtual) keyboard (V1.5). What should I use instead? Thanks, Yossi -- 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: Download Service in 1.5?
There's nothing new, sorry. On Fri, May 1, 2009 at 7:56 AM, BoD bodl...@gmail.com wrote: Hi! For some reason, I got the impression that there was gonna be a new API or Service in 1.5 to easily ask the system to download a file (instead of having to do everything manually with HttpClient or URL.openConnection, and so on). But I can't find anything in the API docs to that matter. Does anybody know if that was added somewhere (or i it is even planned?). Thanks a lot! BoD -- 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: 1.5 upgrade issue
I think you also need to download the SDK separately. http://developer.android.com/sdk/1.5_r1/index.html Or do you have a directory with the mentioned name? On Fri, May 1, 2009 at 8:10 PM, cindy ypu01...@yahoo.com wrote: I am upgrading my project using Eclipse. I faced a problem to upgrade Update your Eclipse SDK Preferences. When I point to the new SDK directory, I got an error message Could not find C:\Documents and Settings\apu\M...s-1.5_r1\platforms \android-1.5\tools\adb.exe. Does anyone facing the same issue? Thanks! Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---