Re: [android-developers] Animate to new position - impossible?
Got it - but ... Its not obvious what the: something to adjust your layout to cause your View to stick in the new spot. is. I am already using the AnimationListener to trigger post animation code - but I am stuck on how to make this actually happen. It would be great to have a snippet that shows how this might be done in code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Animate to new position - impossible?
I am trying to roll my own sliding drawer that can be opened 5%, 25% and 100%. When I animate my view to the new position, the animation moves, but when the animation is finished the view jumps back to its original location. Is it possible to animate a view to a new position or am I attempting to do something it is not meant to do? j -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How i can control the Screen On/Off Lock/Unlock in Donut( SDK 1.6)
I am facing the same issue. Did you or does anyone else know the answer? J On Sun, Jan 3, 2010 at 9:43 PM, krekar swbon...@gmail.com wrote: hi, all( happy new year~! :D) I making an Alarm App. In my Alarm App, if user set the alarm, the alarm Dialog will be shown at the set alarm time. but if device(phone) was in lock and screen off, I can't see the alarm dialog. I need to write code to the alarm dialog will be shown automatically although the device(phone) is screen off(and locked). I see the source code about AlarmClock in Donut SDK. It is use the code like below: getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); but the FLAG_TURN_SCREEN_ON is only available in SDK 2.0 or later. I just only use Donut(SDK 1.6). How can i Screen on unlock in Donut(SDK 1.6)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MediaRecorder Output Padded - How to Fix?
Does anyone else have this issue when recording using MediaRecorder? I would like to understand if it might be something I am doing. thx On Wed, Oct 27, 2010 at 8:51 PM, Jason Van Anden jason.van.an...@gmail.comwrote: When I record audio with the MediaRecorder, I am consistently getting .65 seconds of dead space before the recording starts. It appears as if the file gets passed for some reason. Does anyone know why and better yet, how to eliminate this? j -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MediaRecorder Output Padded - How to Fix?
When I record audio with the MediaRecorder, I am consistently getting .65 seconds of dead space before the recording starts. It appears as if the file gets passed for some reason. Does anyone know why and better yet, how to eliminate this? j -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed
I have seen the same issue - and I suspect a memory leak. What would be best way to track something like this down? j On Tue, Sep 7, 2010 at 3:08 PM, Romain Guy romain...@android.com wrote: It could also be a memory leak in your application. On Tue, Sep 7, 2010 at 12:06 PM, blahblah...@gmail.com blahblah...@gmail.com wrote: It's happening on the emulator when running 2.0 or 2.2. No compatibility mode AFAIK. I just did some testing and we are still getting OutOfMemoryError after changing screen orientation 3 times - it always gives the error the third time even though I added gc(); runFinalization(); gc() just before the createBitmap. I'm thinking it must be either a memory leak in Android or heap fragmentation. So far I don't have any workaround. On Sep 3, 2:40 pm, Matt Kanninen mathias...@gmail.com wrote: I found OutOfMemory Bitmap errors happened more frequently when I had a compatibility mode set. Although that was just on the Moto Droid, on Android 2.1, back in December. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem Loading Images via Adapter on Zero Index
Hi All, I am attempting to load a series of images into a 3x3 gridview. When the user refreshes the screen I want images to load into each imageview randomly. All of the images load properly - except index zero (topmost leftmost). In testing, this will work the first time I load if zero happens to be the first index randomly picked - but thereafter - nothing. I suspect the trouble is in how I am dealing with getView within the BaseAdapter. Here is what I have: public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView = (ImageView)convertView; if (convertView == null) { imageView = new ImageView(context); imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setPadding(1, 1, 1, 1); imageView.setOnClickListener(ShowArtistSummary); imageView.setAnimation(anim_fade_in); } else { imageView = (ImageView) convertView; } imageViews[position] = imageView; return imageView; } The imageViews array is used later to load the bitmaps randmly. Help appreciated. j -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem Loading Images via Adapter on Zero Index
Okay - I figured out something. Hope this helps someone else. This post had a similar issue: http://groups.google.com/group/android-developers/browse_thread/thread/8d3f9c450d00d8a6/ffd344b52f707f57 But I need to target 1.5 so setTag won't work. Instead I adjusted the if statement to check to see if the image had already been instantiated a la: if ((convertView == null) (imageViews[position] == null)) { Jason Van Anden http://www.bubblebeats.com On Mon, Jul 19, 2010 at 9:45 AM, Jason Van Anden jason.van.an...@gmail.comwrote: Hi All, I am attempting to load a series of images into a 3x3 gridview. When the user refreshes the screen I want images to load into each imageview randomly. All of the images load properly - except index zero (topmost leftmost). In testing, this will work the first time I load if zero happens to be the first index randomly picked - but thereafter - nothing. I suspect the trouble is in how I am dealing with getView within the BaseAdapter. Here is what I have: public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView = (ImageView)convertView; if (convertView == null) { imageView = new ImageView(context); imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setPadding(1, 1, 1, 1); imageView.setOnClickListener(ShowArtistSummary); imageView.setAnimation(anim_fade_in); } else { imageView = (ImageView) convertView; } imageViews[position] = imageView; return imageView; } The imageViews array is used later to load the bitmaps randmly. Help appreciated. j -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application Menu
I have the same question. If you were able to come up with a solution, please share! If not - does anyone else know the answer to this? j On Mon, Jul 27, 2009 at 1:19 PM, par parg...@gmail.com wrote: Hi, Is it possible to attach Menu to an application rather than each activity in the application? I have 20-23 activities in my application and it doesn't make sense me to add same menu to all the activities. any ideas??? -Par --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Application Menu
yes. tried. the weird thing is that the menu gets called and appears fine. I get this response when an item is clicked via logcat: InputManagerService Window already focused thx, j On Mon, Jun 21, 2010 at 9:17 AM, greg sep...@eduneer.com wrote: Have you tried putting your commonly shared menu in a class that is super to your activities that need the menu? (I haven't done this for menus, but I've done it for other Activity UI components that I wanted to share among many activities.) - greg On Jun 21, 8:51 am, Jason Van Anden jason.van.an...@gmail.com wrote: I have the same question. If you were able to come up with a solution, please share! If not - does anyone else know the answer to this? j On Mon, Jul 27, 2009 at 1:19 PM, par parg...@gmail.com wrote: Hi, Is it possible to attach Menu to an application rather than each activity in the application? I have 20-23 activities in my application and it doesn't make sense me to add same menu to all the activities. any ideas??? -Par --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Application Menu
this may have been a red herring - wrong method may have been used. let's hold this thought for a moment. j On Mon, Jun 21, 2010 at 9:38 AM, Jason Van Anden jason.van.an...@gmail.comwrote: yes. tried. the weird thing is that the menu gets called and appears fine. I get this response when an item is clicked via logcat: InputManagerService Window already focused thx, j On Mon, Jun 21, 2010 at 9:17 AM, greg sep...@eduneer.com wrote: Have you tried putting your commonly shared menu in a class that is super to your activities that need the menu? (I haven't done this for menus, but I've done it for other Activity UI components that I wanted to share among many activities.) - greg On Jun 21, 8:51 am, Jason Van Anden jason.van.an...@gmail.com wrote: I have the same question. If you were able to come up with a solution, please share! If not - does anyone else know the answer to this? j On Mon, Jul 27, 2009 at 1:19 PM, par parg...@gmail.com wrote: Hi, Is it possible to attach Menu to an application rather than each activity in the application? I have 20-23 activities in my application and it doesn't make sense me to add same menu to all the activities. any ideas??? -Par --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Experience with GoAPK.com
I received an email from goapk.com - offering to translate my apps for Chinese market. Has anyone here have an experience with this? I am curious about your experience. Thanks, Jason Van Anden http://www.BubbleBeats.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Market Anti-Piracy
On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software email.nex.softw...@gmail.com wrote: If I don't believe an application should require Internet, I don't install it. I hope that there are others who do the same. To require internet permissions (with the current generic internet permission) on an app which really does not need it, such as aiFlashlight, gives me reason to question the motives of that developer. I ask myself Now, why the heck would a flashlight app require internet permissions? ... Here's an answer: Maybe its a good way to understand if the application works in the field, like ... to get error messages and such? Or perhaps its a good way to understand how and if users actually use the app or prefer particular features? I have some paranoid user who regularly updates a comment on my apps Market listing with something like Why would a music app that plays local files need internet access? Spying? Um ... so if I had a streaming music app ... uh, then what? There would be no suspicion of spying? :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adjusting Dialog Size Question (ie: ColorPal)
I just took a look at my app with a Droid - it works/looks super ... except for my color dialog - which is tiny compared to my G1. I want to update the ColorPal code to accommodate different screen dimensions. One way to do this would be to access the DisplayMetrics from the dialog ie: DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); This does not seem to work from a dialog though - or I am missing something. Can someone point me in the right direction? j -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Make two buttons the same width?
true that. j On Mon, Nov 9, 2009 at 3:15 AM, ko5tik kpriblo...@yahoo.com wrote: What about placing them into table layout? then you shall be fine with fill_parent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Make two buttons the same width?
You want to avoid setting specific pixel dimensions especially because of the various screen dimensions you may encounter. I think this layout will help get you where you need to go. It is a preliminary layout for a listview with three equally spaced buttons at the bottom (plugits for a soon to be released new feature of BubbleBeats/plug). It was somewhat painful getting this sorted out - hopefully this will save you the some ... This example was very helpful to me: http://www.connorgarvey.com/blog/?p=1 ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent TableLayout android:id=@+id/button_table android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:layout_alignParentBottom=true android:layout_alignParentLeft=true android:visibility = gone TableRow android:layout_weight=1 Button android:id=@+id/select_bubble_toggle android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=select / Button android:id=@+id/bubble_preview android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=preview / Button android:id=@+id/add_bubble android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=add / /TableRow /TableLayout ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:layout_above=@id/button_table android:drawSelectorOnTop=false / /RelativeLayout Jason Van Anden http://www.BubbleBeats.com On Sun, Nov 8, 2009 at 11:27 AM, Mark Murphy mmur...@commonsware.comwrote: Mark Wyszomierski wrote: Is there any style I can set which will make a set of buttons the same width (without specifying an explicit size in pixels)? For example: Layout Button EditText Button /Layout is there a way to make the two buttons the same width, even though they may have different text? Right now I'm measuring the larger one via a measure call and setting the other one to that explicit width, LinearLayout Button with weight=1 and width=0px EditText Button with weight=1 and width=0px With this, though, you have to be comfortable that there will be sufficient space to hold everything. For example, QVGA has only 240px horizontally, so you need short captions to the buttons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Make two buttons the same width?
Followup from last post! I set the TableLayout visibility to gone because I toggle it on/off depending on how this layout is used. You will DEFINITELY want to set it to visible to see what is going on! I was just imagining the frustration I might encounter trying this example and over looking this. Jason On Sun, Nov 8, 2009 at 5:28 PM, Jason Van Anden jason.van.an...@gmail.comwrote: You want to avoid setting specific pixel dimensions especially because of the various screen dimensions you may encounter. I think this layout will help get you where you need to go. It is a preliminary layout for a listview with three equally spaced buttons at the bottom (plugits for a soon to be released new feature of BubbleBeats/plug). It was somewhat painful getting this sorted out - hopefully this will save you the some ... This example was very helpful to me: http://www.connorgarvey.com/blog/?p=1 ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent TableLayout android:id=@+id/button_table android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:layout_alignParentBottom=true android:layout_alignParentLeft=true android:visibility = gone TableRow android:layout_weight=1 Button android:id=@+id/select_bubble_toggle android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=select / Button android:id=@+id/bubble_preview android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=preview / Button android:id=@+id/add_bubble android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=add / /TableRow /TableLayout ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:layout_above=@id/button_table android:drawSelectorOnTop=false / /RelativeLayout Jason Van Anden http://www.BubbleBeats.com On Sun, Nov 8, 2009 at 11:27 AM, Mark Murphy mmur...@commonsware.comwrote: Mark Wyszomierski wrote: Is there any style I can set which will make a set of buttons the same width (without specifying an explicit size in pixels)? For example: Layout Button EditText Button /Layout is there a way to make the two buttons the same width, even though they may have different text? Right now I'm measuring the larger one via a measure call and setting the other one to that explicit width, LinearLayout Button with weight=1 and width=0px EditText Button with weight=1 and width=0px With this, though, you have to be comfortable that there will be sufficient space to hold everything. For example, QVGA has only 240px horizontally, so you need short captions to the buttons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Make two buttons the same width?
One last thing ... just in case someone stumbles upon this and wants to use it as an example because of the listview ... You will need to remove the layout_above attribute in the listview element and use this instead: android:layout_alignParentTop=true Otherwise, if you have a short list it will look funny (no harm in trying it if you want to see what happens). Super glad this was helpful. j On Sun, Nov 8, 2009 at 6:57 PM, Mark Wyszomierski mar...@gmail.com wrote: Excellent, thanks guys! On Nov 8, 5:33 pm, Jason Van Anden jason.van.an...@gmail.com wrote: Followup from last post! I set the TableLayout visibility to gone because I toggle it on/off depending on how this layout is used. You will DEFINITELY want to set it to visible to see what is going on! I was just imagining the frustration I might encounter trying this example and over looking this. Jason On Sun, Nov 8, 2009 at 5:28 PM, Jason Van Anden jason.van.an...@gmail.comwrote: You want to avoid setting specific pixel dimensions especially because of the various screen dimensions you may encounter. I think this layout will help get you where you need to go. It is a preliminary layout for a listview with three equally spaced buttons at the bottom (plugits for a soon to be released new feature of BubbleBeats/plug). It was somewhat painful getting this sorted out - hopefully this will save you the some ... This example was very helpful to me: http://www.connorgarvey.com/blog/?p=1 ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent TableLayout android:id=@+id/button_table android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:layout_alignParentBottom=true android:layout_alignParentLeft=true android:visibility = gone TableRow android:layout_weight=1 Button android:id=@+id/select_bubble_toggle android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=select / Button android:id=@+id/bubble_preview android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=preview / Button android:id=@+id/add_bubble android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=1 android:text=add / /TableRow /TableLayout ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 android:layout_above=@id/button_table android:drawSelectorOnTop=false / /RelativeLayout Jason Van Anden http://www.BubbleBeats.com On Sun, Nov 8, 2009 at 11:27 AM, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: Is there any style I can set which will make a set of buttons the same width (without specifying an explicit size in pixels)? For example: Layout Button EditText Button /Layout is there a way to make the two buttons the same width, even though they may have different text? Right now I'm measuring the larger one via a measure call and setting the other one to that explicit width, LinearLayout Button with weight=1 and width=0px EditText Button with weight=1 and width=0px With this, though, you have to be comfortable that there will be sufficient space to hold everything. For example, QVGA has only 240px horizontally, so you need short captions to the buttons. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received
Re: [android-developers] Mystery Null Pointer Error - Seeking Opinions
Mark, Doh? How did I miss this? I was testing the state of an object within a service that had not yet been restarted (resurrected?) after dying. I think I was stuck on the onPrepareOptionsMenu part for some reason and did not look at #377. Thank so much for the second set of eyes! Jason On Sat, Oct 31, 2009 at 1:33 PM, Mark Murphy mmur...@commonsware.comwrote: Jason Van Anden wrote: 10-31 14:12:03.667: ERROR/AndroidRuntime(7369): Uncaught handler: thread main exiting due to uncaught exception 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): java.lang.NullPointerException 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.bubblebeats.free.Peeps.onPrepareOptionsMenu(Peeps.java:377) So...what's on line 377 of Peeps.java? Personally, I'm hoping for a sugar-coated marshmallow confection, mostly because Peeps are made by a local firm... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mystery Null Pointer Error - Seeking Opinions
OK - for the record ... I think I have fixed this based upon what was going on in line 377 (testing here that service is alive and passing false back if not). Thing is ... I am still perplexed as to why onPrepareOptionsMenu is getting called in the first place. All that is occurring here is that the Activity is coming back into the foreground. The menu button does not appear to have been called. Jason On Sun, Nov 1, 2009 at 11:25 AM, Jason Van Anden jason.van.an...@gmail.comwrote: Mark, Doh? How did I miss this? I was testing the state of an object within a service that had not yet been restarted (resurrected?) after dying. I think I was stuck on the onPrepareOptionsMenu part for some reason and did not look at #377. Thank so much for the second set of eyes! Jason On Sat, Oct 31, 2009 at 1:33 PM, Mark Murphy mmur...@commonsware.comwrote: Jason Van Anden wrote: 10-31 14:12:03.667: ERROR/AndroidRuntime(7369): Uncaught handler: thread main exiting due to uncaught exception 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): java.lang.NullPointerException 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.bubblebeats.free.Peeps.onPrepareOptionsMenu(Peeps.java:377) So...what's on line 377 of Peeps.java? Personally, I'm hoping for a sugar-coated marshmallow confection, mostly because Peeps are made by a local firm... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Mystery Null Pointer Error - Seeking Opinions
*, An error that appeared in my Flurry logs but seemed impossible to reproduce otherwise just occured! That's the good news. The bad news is that the LogCat info is not telling me enough. I would appreciate a second set of eyes taking a look and offering wisdom. The lead up is that I was playing with my app, and put it away for a while. I did a lot of other things with my phone since, like making phone calls, etc ... I hooked up my phone to the computer to make another attempt to find the mystery bug, and decided to see if anything weird appeared in the logs from earlier. I then brought my app to the foreground using the Home/Hold technique and whamo! the bug appeared before my eyes in LogCat. I got a Force Close message. When the app died, it did not get resurrected. What is particularly odd is the onPrepareOptionsMenu being called (at all). So here is what LogCat coughed up: This is not my app but may provide a clue ... --- 10-31 14:12:02.047: INFO/WindowManager(74): onOrientationChanged, rotation changed to 0 10-31 14:12:02.117: WARN/InputManagerService(74): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@43422388 7369 is my app: - 10-31 14:12:02.127: DEBUG/dalvikvm(7369): Trying to load lib /system/lib/libsoundpool.so 0x0 10-31 14:12:02.677: DEBUG/dalvikvm(7369): Added shared lib /system/lib/libsoundpool.so 0x0 10-31 14:12:03.277: DEBUG/FlurryAgent(7369): Starting new session 10-31 14:12:03.657: DEBUG/AndroidRuntime(7369): Shutting down VM 10-31 14:12:03.657: WARN/dalvikvm(7369): threadid=3: thread exiting with uncaught exception (group=0x4001da28) 10-31 14:12:03.657: DEBUG/FlurryAgent(7369): Ending session 10-31 14:12:03.667: ERROR/AndroidRuntime(7369): Uncaught handler: thread main exiting due to uncaught exception 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): java.lang.NullPointerException 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.bubblebeats.free.Peeps.onPrepareOptionsMenu(Peeps.java:377) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.app.Activity.onPreparePanel(Activity.java:2065) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:429) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.openPanel(PhoneWindow.java:517) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.openPanelsAfterRestore(PhoneWindow.java:1590) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow.access$1500(PhoneWindow.java:86) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.policy.impl.PhoneWindow$DecorView.onAttachedToWindow(PhoneWindow.java:2043) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.View.dispatchAttachedToWindow(View.java:5567) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:1032) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.ViewRoot.performTraversals(ViewRoot.java:676) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.view.ViewRoot.handleMessage(ViewRoot.java:1613) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.os.Handler.dispatchMessage(Handler.java:99) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.os.Looper.loop(Looper.java:123) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at android.app.ActivityThread.main(ActivityThread.java:4203) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at java.lang.reflect.Method.invokeNative(Native Method) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at java.lang.reflect.Method.invoke(Method.java:521) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 10-31 14:12:04.077: ERROR/AndroidRuntime(7369): at dalvik.system.NativeStart.main(Native Method) 10-31 14:12:04.517: DEBUG/dalvikvm(7369): GC freed 1736 objects / 111624 bytes in 248ms Thanks for the feedback in advance. Jason Van Anden http://www.BubbleBeats.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: Anyone else notice more frequent GC in 1.6?
Before 1.6 I forced GC at times when it would not impact the user experience. I did this because I noticed bigger dumps happening infrequently, sometimes at times that were not so cool, like during a redraw. It was sort of a preemptive dump. (ie: my app eases to a stop when the background is scolled/flinged - so I would force the dump after the easing stopped). Since 1.6 - Logcat reports more frequent GC - but with much smaller amounts of memory. This sort of threw off my scheduling trick - but for whatever reason the overall experience seems better, so it goes. I am guessing from this thread that there is more going on here so my assumptions may be wrong. At any rate - I am happy things are running better. Thanks for the improvement! Jason Van Anden http://www.bubblebeats.com On Mon, Oct 19, 2009 at 12:46 AM, Dianne Hackborn hack...@android.comwrote: Yeah, I don't know about GC optimizations, but background threads now get placed in a scheduling class that together can't use more than 5-10% of the CPU; this helps a lot in keeping the foreground responsive. On Sun, Oct 18, 2009 at 4:06 PM, CraigsRace craig...@gmail.com wrote: My games run smoother too. 1.6 is a great improvement! I seem to remember talk of background processes getting a lower priority in 1.6, which might also be helping. On Oct 19, 7:33 am, Nikolay Ananiev devuni...@gmail.com wrote: My game's animations are way more smoother in Android 1.6. Google did a great job optimizing 1.6 On Sun, Oct 18, 2009 at 7:32 PM, Jason Van Anden jason.van.an...@gmail.comwrote: I am unsure if this is something I am noticing because my app is released or not, but it seems to me that 1.6 GC's smaller amounts a lot more frequently. It seems to make for a lot less stuttering when graphics are drawn. (Then again, maybe I changed something in my code). Curious ... anyone else notice this? Jason Van Anden http://www.bubblebeats.com -- 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: Disable context menu not working ... bug?
Wasn't sure if it when this occurred - just noticed it yesterday when I was doing something else. It seems to me that it should not allow a click - matching the behavior of the main menu. From a user's perspective, they may think they clicked on something that should do something ... so it may confuse the user. Jason Van Anden http://www.bubblebeats.com http://www.twitter.com/bubblebeats On Sat, Oct 17, 2009 at 6:45 PM, Mark Murphy mmur...@commonsware.comwrote: Jason Van Anden wrote: I am setting setEnabled = false for a Context Menu item. The item appears grayed out ... but I can still click on it. When I do, the menu closes. This does not seem to like the correct behavior to me. Is this a bug or a misunderstood feature? Anyone else experiencing this? I can tell you that I see the same behavior in 1.5 and 1.6. I hadn't tried a disabled context menu item before. I can see arguments either way as to whether it is correct behavior, so I do not know whether it is a bug or not. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Anyone else notice more frequent GC in 1.6?
I am unsure if this is something I am noticing because my app is released or not, but it seems to me that 1.6 GC's smaller amounts a lot more frequently. It seems to make for a lot less stuttering when graphics are drawn. (Then again, maybe I changed something in my code). Curious ... anyone else notice this? Jason Van Anden http://www.bubblebeats.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: Anyone else notice more frequent GC in 1.6?
Cool ... in this particular case I am glad its not me ... otherwise I might not touch any of the code again! Jason On Sun, Oct 18, 2009 at 4:33 PM, Nikolay Ananiev devuni...@gmail.comwrote: My game's animations are way more smoother in Android 1.6. Google did a great job optimizing 1.6 On Sun, Oct 18, 2009 at 7:32 PM, Jason Van Anden jason.van.an...@gmail.com wrote: I am unsure if this is something I am noticing because my app is released or not, but it seems to me that 1.6 GC's smaller amounts a lot more frequently. It seems to make for a lot less stuttering when graphics are drawn. (Then again, maybe I changed something in my code). Curious ... anyone else notice this? Jason Van Anden http://www.bubblebeats.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] Disable context menu not working ... bug?
I am setting setEnabled = false for a Context Menu item. The item appears grayed out ... but I can still click on it. When I do, the menu closes. This does not seem to like the correct behavior to me. Is this a bug or a misunderstood feature? Anyone else experiencing this? Using 1.6 Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 did you localize your app?
Wouldn't these words apply to any app? Is this resource available to the public? Jason Van Anden http://www.bubblebeats.com On Mon, Oct 12, 2009 at 3:51 PM, Brian Conrad brianjto...@gmail.com wrote: I haven't noticed if Android has done this but at least one other non-phone platform I develop for has furnished a file of common device used words and their translations. Noting it took a few years for that platform to do this I wouldn't hold my breathe for Android to do so but it would be helpful. These are words like File, Open, etc that we often use in applications. Brian Conrad JyotishTools.com Yusuf Saib (T-Mobile USA) wrote: Machine translation quality varies from good to humorous. A few extra strings in your code, and the logic to handle them, shouldn't add much to the download. 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 Oct 12, 6:39 am, Jason Van Anden jason.van.an...@gmail.com wrote: How have non-multilingual indy devs gone about translating their apps for different languages? I don't mean how do you localize ... I mean, how did you get translation done (paid, bartered, online translator, ...)? Did you notice an impact on downloads? Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 did you localize your app?
Super idea. Thanks, j On Tue, Oct 13, 2009 at 11:00 AM, Steve steveoliv...@gmail.com wrote: Look in the RES folder under platforms in the SDK. There's all of the localized strings to support the default apps, so you can get things like, yes, no, cancel, etc. On Oct 13, 5:54 am, Jason Van Anden jason.van.an...@gmail.com wrote: Wouldn't these words apply to any app? Is this resource available to the public? Jason Van Andenhttp://www.bubblebeats.com On Mon, Oct 12, 2009 at 3:51 PM, Brian Conrad brianjto...@gmail.com wrote: I haven't noticed if Android has done this but at least one other non-phone platform I develop for has furnished a file of common device used words and their translations. Noting it took a few years for that platform to do this I wouldn't hold my breathe for Android to do so but it would be helpful. These are words like File, Open, etc that we often use in applications. Brian Conrad JyotishTools.com Yusuf Saib (T-Mobile USA) wrote: Machine translation quality varies from good to humorous. A few extra strings in your code, and the logic to handle them, shouldn't add much to the download. 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 Oct 12, 6:39 am, Jason Van Anden jason.van.an...@gmail.com wrote: How have non-multilingual indy devs gone about translating their apps for different languages? I don't mean how do you localize ... I mean, how did you get translation done (paid, bartered, online translator, ...)? Did you notice an impact on downloads? Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 did you localize your app?
How have non-multilingual indy devs gone about translating their apps for different languages? I don't mean how do you localize ... I mean, how did you get translation done (paid, bartered, online translator, ...)? Did you notice an impact on downloads? Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 did you localize your app?
Thanks... I meant ... did the number of downloads increase noticeably after doing a translation? Basically, trying to do a cost/benefit on localization. Analytics tells me that 40% of my users are from Europe, mostly from UK, but also from Germany and Italy. So the question becomes ... which language should I translate to? If my app was localized in Spanish would I get more downloads from Spain and Central America? If German would the German numbers look more like the UK numbers? Mostly asking this to see if anyone else can shed some light. Jason On Mon, Oct 12, 2009 at 12:45 PM, Charlie power...@gmail.com wrote: Hi, I'm relying on volunteers to translate my app (Thinking Space) via email. Managing the translations this way is difficult and slow, many people offer to translate, however get scared off once they get the XML files. I would like to use something like launchpad (https://launchpad.net/ ) to provide an online portal for people to submit their translations to. This would be ideal! However, since my app isn't open source, I would need a $$$ commercial launchpad license to do this with :-/ Another option that could work is to set up a Pootle server (http:// translate.sourceforge.net/wiki/pootle/index) If your question on 'Impact on downloads' refers to the number of downloads increasing, then no.. If it refers to the overall size of the download, I've just done a very quick test, APK size with just english: 398KB, APK size with english + 5 translations: 474KB. (For reference, the size of my english/default 'values' folder is 45KB) Hope this helps! Charlie On Oct 12, 2:39 pm, Jason Van Anden jason.van.an...@gmail.com wrote: How have non-multilingual indy devs gone about translating their apps for different languages? I don't mean how do you localize ... I mean, how did you get translation done (paid, bartered, online translator, ...)? Did you notice an impact on downloads? Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADC2 Submission List
+1 On Wed, Oct 7, 2009 at 4:40 AM, Michael push0...@gmail.com wrote: Hi Tom, i received the following error: There were problems with the following fields: * Url is too long (maximum is 75 characters) But there's no URL input field visible. (Using Firefox 3.5.3 on WinXP) On 6 Okt., 06:12, Tom tkhamil...@gmail.com wrote: Hello, Every since I submitted my app to the ADC I've been curious what other apps were submitted and what the competition looked like. Slogging through a bunch of apps through the judging application didn't seem like the most efficient way to do that. I've created a little app to add, view and comment on ADC2 submissions. I'm hoping this will be useful for all us ADC2 developers that are interested in what else is out there. Check it out and add your app if you haven't already! Also, if you want to chip in and add any apps you judge, that would be great! http://www.cakeforcerberus.com Thanks Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 1.6
Of course the other problem is that there are clearly devs gaming the system. In entertainment this is particularly a bummer. I wish I could switch categories BubbleBeats is surrounded by sexy girls and 'soundboards' ... both of which contain collections of content that seems to violate copyright laws. Some version of this seems to always be on top of 'just in'. Despite getting a few really nice reviews the biggest bump I get in terms of downloads is when my app is at the top of the 'just in' list. On Oct 4, 2009 8:54 AM, Wenwei Cai stanley.w@gmail.com wrote: I do not really understand the sorting criteria in Just In list of Android Market. I saw some apps floats to the top of this category, but obviously they are not just in apps. Best regards, -stanley On Wed, Sep 16, 2009 at 2:07 AM, Robert Green rbgrn@gmail.com wrote: 2 Things that could ... --~--~-~--~~~---~--~~ You received this message because you are subs... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: zipalign : could be done at distribution or installation time ?
I just attempted to upgrade my app from Eclipse (Export Signed Application) and got a message that said: The zlipalign tool was not found in the SDK. Please update to the latest SDK and re-export your Application or run zipalign manually. blah, blah, blah ... attached. This ran fine last week! I have 1.5 setup under Eclipse, did not deal with 1.6 yet. Advice appreciated. Thank You, Jason Van Anden www.bubblebeats.com On Mon, Sep 28, 2009 at 2:15 PM, Xavier Ducrohet x...@android.com wrote: On Mon, Sep 28, 2009 at 9:00 AM, Sheridan Hutchinson sheri...@shezza.org wrote: I just cannot undestand why the compiler doesn't zipalign automatically every final APK produced. Zip align has to be done after the APK is signed. If you use ADT to create your final, signed, release apk then it'll be aligned too. But if you sign your APKs outside of Eclipse/Ant, there's nothing we can do. Xav -- 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] Error generating final archive ... post Apple Software Update
Today, when I try to run my app from Eclipse, I get Error generating final archive: Debug certificate expired on 9/21/2009 6:11pm. I ran Software Update on my Mac a few days ago (probably around 9/21/2009 at 6:11pm). I mention this because its the only thing that has changed with my machine since I last worked on my app. I tried a few of the suggestions on the board - deleted debug.keystore and tried opening Eclipse using sudo. Neither did the trick. Anyone else? Suggestions super welcome. Thank You, Jason Van Anden www.bubblebeats.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: Error generating final archive ... post Apple Software Update
Nevermind. I thought I had deleted debug.keystore. I had not. I did delete the debug.keystore and it worked. On the mac, this can be found at ~/.android/debug.keystore. Also ... for the record ... I have no idea why this worked or if this had anything to do with Software Update. I was simply trying things I found mentioned here in the forum. j On Sat, Sep 26, 2009 at 1:30 PM, Jason Van Anden jason.van.an...@gmail.com wrote: Today, when I try to run my app from Eclipse, I get Error generating final archive: Debug certificate expired on 9/21/2009 6:11pm. I ran Software Update on my Mac a few days ago (probably around 9/21/2009 at 6:11pm). I mention this because its the only thing that has changed with my machine since I last worked on my app. I tried a few of the suggestions on the board - deleted debug.keystore and tried opening Eclipse using sudo. Neither did the trick. Anyone else? Suggestions super welcome. Thank You, Jason Van Anden www.bubblebeats.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: Android Toast Duration
I was hoping I could simply apply the theme in xml rather than have to create an Activity and apply it in onCreate. Thanks for clearing that up. Jason On Sat, Sep 19, 2009 at 3:08 PM, Dianne Hackborn hack...@android.com wrote: (Btw, Api demos has one or two examples of creating custom themed dialogs, I believe in the app section.) On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.com wrote: You are making a theme, which is a kind of style that applies to an entire context, but just a UI element. You need to use it as the theme for an activity take or the second argument to the Dialog constructor, however you are creating the window. On Sat, Sep 19, 2009 at 11:26 AM, Jason Van Anden jason.van.an...@gmail.com wrote: Dear Dianne et al, My feedback was meant as constructive criticism in general - definitely not as a dis directed at you. I believe that an example is worth a thousand words - it works or it don't. I appreciate the time you spend with the board. I make it a point to star pretty much anything you write here so I can review it later. This particular thread was recalled exactly because of this. Your suggestion of altering the style of a dialog seems perfect for a step by step walk through of an app - which is what I am working on. Clearly we need more generous experts like yourself helping Android along. That being said ... I thought I had figured it out - but I am still stumped. If someone out there could help, it will help save at least one Android developer's weekend ... Here is my code: Within my theme.xml I have: resources style name=ToastyDialog parent=android:Theme item name=android:windowBackground@android:drawable/toast_frame/item item name=android:windowAnimationStyle@android:style/Animation.Toast/item /style resources Within my dialog layout I have: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical style=@style/ToastyDialog TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/hello_world /TextView /LinearLayout NOTE: The Eclipse interface gives you a choice to pick a theme, and my theme does appear. Thing is, it does not write it in the XML. I added the style tag based upon this post: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ I sincerely hope that I am making a stupid, obvious mistake. Thank You, Jason On Sat, Sep 19, 2009 at 1:25 PM, Dianne Hackborn hack...@android.com wrote: On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden jason.van.an...@gmail.com wrote: There are a few threads on this topic that offer advice where an example would be more useful (IMHO). I post to this list in my (oh so copious) spare time; I can either post answers that I can do quickly, or just not post at all if it is going to take me time to put together and test an example. Your choice. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: Android Toast Duration
On Thu, Jul 23, 2009 at 6:34 PM, Dianne Hackborn hack...@android.com wrote: It sounds like you are abusing toasts. How about just showing your own dialog that is set up to not get focus or be touchable? You can use this background to make it look like a toast: http://developer.android.com/reference/android/R.drawable.html#toast_frame And this animation style for the same fade effect: http://developer.android.com/reference/android/R.style.html#Animation_Toast I am trying to do this and confused about the syntax for accessing the toast_frame via theme xml. Would appreciate example. Thank You, Jason On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir mohamed.a...@gmail.com wrote: Is there a way to make the Toast last for longer time? I have tried this code Toast t = new Toast(this); View v = View.inflate(this, R.toast_layout, null); t.setView(v); t.setDuration(Toast.LENGTH_LONG); t.show(); t.show(); t.show(); By calling show() method more than once, I hoped this would give a similar effect to lasting for longer time with some flickering, but I didn't see any difference. Is there some limit to the number of times that show() method can be called on the same Toast? e.g. just once per toast instance and further calling has no effect? Any ideas to increase that duration? Thank you. -- 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: Android Toast Duration
I am close to sorting this out ... I will post my code when I know I got it. There are a few threads on this topic that offer advice where an example would be more useful (IMHO). j On Sat, Sep 19, 2009 at 12:11 PM, Jason Van Anden jason.van.an...@gmail.com wrote: On Thu, Jul 23, 2009 at 6:34 PM, Dianne Hackborn hack...@android.com wrote: It sounds like you are abusing toasts. How about just showing your own dialog that is set up to not get focus or be touchable? You can use this background to make it look like a toast: http://developer.android.com/reference/android/R.drawable.html#toast_frame And this animation style for the same fade effect: http://developer.android.com/reference/android/R.style.html#Animation_Toast I am trying to do this and confused about the syntax for accessing the toast_frame via theme xml. Would appreciate example. Thank You, Jason On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir mohamed.a...@gmail.com wrote: Is there a way to make the Toast last for longer time? I have tried this code Toast t = new Toast(this); View v = View.inflate(this, R.toast_layout, null); t.setView(v); t.setDuration(Toast.LENGTH_LONG); t.show(); t.show(); t.show(); By calling show() method more than once, I hoped this would give a similar effect to lasting for longer time with some flickering, but I didn't see any difference. Is there some limit to the number of times that show() method can be called on the same Toast? e.g. just once per toast instance and further calling has no effect? Any ideas to increase that duration? Thank you. -- 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: Android Toast Duration
Dear Dianne et al, My feedback was meant as constructive criticism in general - definitely not as a dis directed at you. I believe that an example is worth a thousand words - it works or it don't. I appreciate the time you spend with the board. I make it a point to star pretty much anything you write here so I can review it later. This particular thread was recalled exactly because of this. Your suggestion of altering the style of a dialog seems perfect for a step by step walk through of an app - which is what I am working on. Clearly we need more generous experts like yourself helping Android along. That being said ... I thought I had figured it out - but I am still stumped. If someone out there could help, it will help save at least one Android developer's weekend ... Here is my code: Within my theme.xml I have: resources style name=ToastyDialog parent=android:Theme item name=android:windowBackground@android:drawable/toast_frame/item item name=android:windowAnimationStyle@android:style/Animation.Toast/item /style resources Within my dialog layout I have: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical style=@style/ToastyDialog TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/hello_world /TextView /LinearLayout NOTE: The Eclipse interface gives you a choice to pick a theme, and my theme does appear. Thing is, it does not write it in the XML. I added the style tag based upon this post: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ I sincerely hope that I am making a stupid, obvious mistake. Thank You, Jason On Sat, Sep 19, 2009 at 1:25 PM, Dianne Hackborn hack...@android.com wrote: On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden jason.van.an...@gmail.com wrote: There are a few threads on this topic that offer advice where an example would be more useful (IMHO). I post to this list in my (oh so copious) spare time; I can either post answers that I can do quickly, or just not post at all if it is going to take me time to put together and test an example. Your choice. -- 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: ADC2 entries so far...
You forgot BubbleBeats (in Entertainment)! http://www.bubblebeats.com Jason Van Anden On Sun, Sep 13, 2009 at 1:12 PM, Mobidev android.mobi...@gmail.com wrote: Its mid September and ADC team will soon launch the ADC 2 judging application. So far its been a great job by the ADC team with sticking to the submission deadline and swift uploads(leaving aside package name confusion among the participants). Meanwhile, below are about 105 ADC2 entries posted on forum. In case of new additions or corrections please reply to this discussion with category app name links. ADC1 saw about 1788 apps and my guess is ADC2 will see a tleast 2500 apps considering the tight deadline (could have been much higher(4K+) otherwise). From the trend it seems that the Miscellaneous category has far less entries than Prod/Tools and Games(both) categories. Possibly, 21st ranking entry under Prod/Tools could be much better than 3rd ranking entry under Misc category. Unlike ADC1, this time Category will be a key factor in winning; along with Originality, Effective Platform Use, Polish and Indispensability. - Education/Reference Librarium II http://steveoliverc.squarespace.com/ Math Jungle Mystic Maggie http://www.phdgaming.com/general_media/mm/ Vivify picture: math http://vivifypicture.com/ Entertainment Daisy Garden http://www.tomgibara.com/android/daisy/garden/ Taps Of Fire http://code.google.com/p/tapsoffire Games: Arcade/Action CowPotato 3D http://www.froogloid.com/cowpotato FRG http://www.woogames.com/ Galactic Guardian: Zap GPS http://sites.google.com/site/mysticlakesoftware/ Graviturn http://www.cyrket.com/package/com.fheft.graviturn Head To Head Racing http://headtoheadracing.appspot.com/ Light Racer 3D Trial ProjectINF http://www.chickenbrickstudios.com/ UrbanGolf X-Disc http://www.youtube.com/watch?v=3EkH-b15fPY Zepto Wars - RTS Games: Casual/Puzzle Furdiburb http://www.sheado.net/ Goobers Vs. Boogers http://goobersvsboogers.blogspot.com/ ongPay http://www.yakloingames.com/ Relativia http://www.polyclefsoftware.com/relativia.html Splat!: Bugs II http://dkdroid.com What the Doodle!? Lifestyle Beer Cloud http://greatbrewers.com/story/beercloud-mobile-app Bottle Buzz DoIt http://curvefish.com/apps/doit.htm FoxyRing http://www.levelupstudio.fr/foxyring Gigbox http://www.mygigbox.com/ NetDroid NotiMe! http://www.youtube.com/watch?v=wFjoZmrj40k ReaderScope http://www.altcanvas.com/android/readerscope Rhythmatics Alpha http://www.twitter.com/brownbaggames SpecTrek Media Gallery Map geoPaste http://www.geopaste.com/ Mediafly Mobile Audio Podcast Client MicroJam MicroJam MyPOD http://www.my-pod.org/ PackRat http://packrat.unwesen.de/ Time-Lapse http://www.sheado.net/ Uloops http://www.uloops.net/ Misc Local Agents http://local-agents.appspot.com/ picjiggles lite http://www.yakloingames.com/ Productivity/Tools Alarmoid http://www.youtube.com/watch?v=yNcVkP_vK08 aList http://androidalist.blogspot.com AppManager http://curvefish.com/apps/appmanager.htm GeoAlert http://sites.google.com/site/appyoursmobile/geoalert Hoccer http://www.hoccer.com/ MobileWrite Mobisle Notes http://www.facebook.com/pages/MobisleApps/127994296229 MyPages http://www.youtube.com/watch?v=75lR4zLy_LQ OpenLoopz http://sites.iode.co.uk/openloopz/ Personalytics http://personalytics.net/ Skiba PDF Reader http://www.anddev.org/skiba_pdf_reader-t6122.html Smart Lock http://www.youtube.com/watch?v=ipue9Yhi5VA Talking Calendar http://www.pwnwithyourphone.com/ Tasker http://tasker.dinglisch.net/ Thinking Space http://homepages.nildram.co.uk/~bakachu/screenshot.png Tracklet http://tracklet.appspot.com txeet http://txeet.com Voice Caller ID http://www.pwnwithyourphone.com/ WebReader http://webreader.vamsee.in/ What Zip? http://www.usnaviguide.com/zip.htm Xeeku Search Social Networking A-GLOBAL-MIND http://a-global-mind.blogspot.com/ Cartoon Gang http://www.cartoongang.net/ ClapCard SocialMuse http://www.mixzing.com/ Swift Twitter App http://www.swift-app.com/ TweetsAloud http://www.pwnwithyourphone.com/ Travel AugSatNav http://www.phyora.com/ BabelSnap http://babelsnap.com/ Location Scout http://getlocationscout.com/ Radar Now! http://maps.huge.info/blog/2009/09/new_android_app_radar_now.html Transport Finder http://www.dka
[android-developers] Re: Linking Directly To An App In The Market?
Was this ever resolved. I am looking to link to the Market from my webpage - ie: someone visits my webpage, I tell them to download from the market ... how exactly? Do I tell them to just do a search when they get there? Jason Van Anden http://www.bubblebeats.com On Tue, Feb 24, 2009 at 3:17 AM, Jon Colverson jjc1...@gmail.com wrote: On Feb 24, 5:26 am, Peter Sankauskas pas...@gmail.com wrote: I have been researching the same thing and have not yet found an answer. Has anyone else discovered how to write a link that goes to an app in the android market? If you do a link like this: market://search?q=pname:com.example.package then it doesn't take you straight to the app listing, but it shows you a search list with just one result. -- 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience
I submitted BubbleBeats to the ADC2 - published to the market this morning under entertainment. This is my first Android app. Thanks to everyone who offered me help, or anyone else help that answered a question I didn't even know I had! This community has been amazing. More: http://www.bubblebeats.com Here is a (unofficial - geeked out) press release ... BubbleBeats is a visual way to manage your music that is ideally suited for mobile devices. Rather than using lists of song titles to represent playlists, BubbleBeats uses colorful ... bubbles. This was originally devised as a way to program complex improvisational behavior for a pair of emotive interactive robots named Neil and Iona (http://www.smileproject.com). Users associate songs to colorful bubbles which when interconnected will subsequently play in a reasonable yet unpredictable way. Best to check out my website first - there is a slight paradigm shift involved. Feedback appreciated. Thank You, Jason Van Anden http://www.bubblebeats.com On Tue, Sep 8, 2009 at 6:31 AM, Leelee.wil...@googlemail.com wrote: I posted earlier in this thread about my app Tasker. I've since had a chance to put up some material about it: http://tasker.dinglisch.net/ And yes, it's in the Productivity/Tools category. Lee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Publishing Upgrades on Android Market ... Still Relevant?
A developer's time is a terrible thing to waste. This really ought to be revised. :( On Sun, Aug 30, 2009 at 8:56 PM, Streets Of Bostonflyingdutc...@gmail.com wrote: This documentation is old. Users of Android phones with the Market installed get a notification (in the top bar) that one or more applications have been updated by their developer. Then, when the user opens this notification and clicks on it, it brings the user to the Market app showing which app(s) have been updated. On Aug 30, 1:28 pm, jonna rjo...@gmail.com wrote: Could someone answer this question please? On Aug 29, 8:46 am, Jason Van Anden jason.van.an...@gmail.com wrote: Are the docs on the Developer site regarding Publishing out of date? In other words, is the Market still considered Beta and do users actually need a web service to compare their versions with so they can query the Market for updates? This is what is on the Android Developer site: http://developer.android.com/guide/publishing/publishing.html j- 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] Publishing Upgrades on Android Market ... Still Relevant?
Are the docs on the Developer site regarding Publishing out of date? In other words, is the Market still considered Beta and do users actually need a web service to compare their versions with so they can query the Market for updates? This is what is on the Android Developer site: http://developer.android.com/guide/publishing/publishing.html j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Please, some layout help.
I recommend using DroidDraw ...compare how it does what you are trying to do OR paste your code into it and try tweaking. http://www.droiddraw.org/ Jason Van Anden BubbleBeats, LLC http://www.bubblebeats.com On Tue, Aug 25, 2009 at 6:17 AM, Jiri jiriheitla...@googlemail.com wrote: Hello list, i think i need some help with a layout issue. I have three views, two TextViews (header and footer) and in between a ListView. They are rendered good, in portait mode. When i go into landscape mode, the ViewList is gone. Switching back to portait mode and the ViewList is still goneHere is my xml. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content TextView android:id=@+id/header android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=top android:text=HEADER / LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:layout_below=@+id/header android:layout_above=@+id/footer ListView android:id=@+id/ListView01 android:layout_width=wrap_content android:layout_height=fill_parent android:divider=@null android:fadingEdge=none /ListView /LinearLayout TextView android:id=@+id/footer android:layout_alignParentBottom=true android:layout_width=fill_parent android:layout_height=wrap_content android:text=FOOTER / /RelativeLayout Any ideas why this is happening? Thnx Jiri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Tracking Pointer Events in Android Browser
I am developing an application that should work on a mobile phone and a browser. I thought, why not use Canvas and have everything occur in the browser. Thing is, mouse events get intercepted by the browser app to do things like move the screen. Has anyone out there encountered this and found a work around (or determined that this was impossible and gave up)? Thank You, Jason Van Anden http://www.smileproject.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: Unicode characters via resource element
Is no one biting because I used no avail twice? On Mon, Jul 27, 2009 at 1:21 PM, Jason Van Anden jason.van.an...@gmail.comwrote: I posted this in beginner to no avail. Perhaps this is one for developers ... I want to use unicode characters in a toast. I can do this via code. I am not having any luck associating this as a resource element. Is this impossible or am I using the wrong syntax? This is what I have tried to no avail: string name=title_no_titleNo Title \u2639/string If you know the answer - pls correct! Thank You, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Unicode characters via resource element
I posted this in beginner to no avail. Perhaps this is one for developers ... I want to use unicode characters in a toast. I can do this via code. I am not having any luck associating this as a resource element. Is this impossible or am I using the wrong syntax? This is what I have tried to no avail: string name=title_no_titleNo Title \u2639/string If you know the answer - pls correct! Thank You, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SurfaceView speed optimization suggestions (or just kick it up to openGL)?
I am trying to optimize my graphics app. I have read the best practices and have employed these and they have helped but, I am still getting hiccups. I get the hiccups when more of the screen is drawn upon. I am looking for either strategies on how to speed things up or a convincing that employing openGL is the best solution. My app draws graphics directly on a SurfaceView. My workspace is larger than the screen. I am using translate. My draw loop determines time passed between draws and adjusts update calls accordingly. More updates are required in subsequent passes when more of the screen area is drawn upon (in other words, a big circle the diameter of the screen width will take longer than a small circle 1/10 of the screen width). It seems to me that the graphics processor is the bottleneck (no?). I have an easing routine when the app scrolls (triggered via onFling ... kind of like the way lists work but in 2D). This speed issue is most visually apparent here. If openGL is the solution, I can put this aside for now and upgrade later when I have time to ramp up on openGL. If there are other solutions, I would like to hear them. One thought I have is to draw to a bitmap before engaging my scrolling/easing and move the bitmap instead of adjusting the graphics. Feedback super appreciated. Thank You, Jason Van Anden http://www.smileproject.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: SurfaceView speed optimization suggestions (or just kick it up to openGL)?
It is not b/c of the GC. Garbage does accumulate ... but I am triggering the GC to clear after the easing finishes. Jason On Thu, Jul 23, 2009 at 2:58 PM, MrChaz mrchazmob...@googlemail.com wrote: Are your hiccups being caused by the GC firing? A quick look at Logcat should tell you if it is. On Jul 23, 2:16 pm, Jason Van Anden jason.van.an...@gmail.com wrote: I am trying to optimize my graphics app. I have read the best practices and have employed these and they have helped but, I am still getting hiccups. I get the hiccups when more of the screen is drawn upon. I am looking for either strategies on how to speed things up or a convincing that employing openGL is the best solution. My app draws graphics directly on a SurfaceView. My workspace is larger than the screen. I am using translate. My draw loop determines time passed between draws and adjusts update calls accordingly. More updates are required in subsequent passes when more of the screen area is drawn upon (in other words, a big circle the diameter of the screen width will take longer than a small circle 1/10 of the screen width). It seems to me that the graphics processor is the bottleneck (no?). I have an easing routine when the app scrolls (triggered via onFling ... kind of like the way lists work but in 2D). This speed issue is most visually apparent here. If openGL is the solution, I can put this aside for now and upgrade later when I have time to ramp up on openGL. If there are other solutions, I would like to hear them. One thought I have is to draw to a bitmap before engaging my scrolling/easing and move the bitmap instead of adjusting the graphics. Feedback super appreciated. Thank You, Jason Van Andenhttp://www.smileproject.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 Speed up Animation
I found the presentation super helpful as well ... after you watch it tho, refer to this ... http://developer.android.com/guide/practices/design/performance.html It covers most of the important points he makes. Jason Van Anden http://www.smileproject.com On Wed, Jul 22, 2009 at 12:03 PM, Roman roman.baumgaert...@t-mobile.comwrote: You can find some useful information in the following presentation. http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html You can skip the first 10-15 min -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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 Jul 21, 9:57 pm, peeyush varshney varshney.peey...@gmail.com wrote: Hi, How to free the memory created by Animation. On Tue, Jul 21, 2009 at 10:25 PM, doubleslash doublesl...@gmail.com wrote: I have a static background image, and a foreground that needs to be animated. I tried a couple different approaches but the animation seemed choppy. One thing I did was having 2 different views, constantly calling invalidate() on the foreground view. Another was to have only 1 surfaceview, redrawing the background image and the foreground on each step of the animation. While a surfaceview offers an optimal way to do heavy-duty animation, having to redraw the background every time kills the performance. Neither produced a smooth animation. What is the best way to perform this kind of animation--static background and animated foreground? Many thanks. -- Thank Regards Peeyush Varshney --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Alternatives to Multitouch
Thanks for the feedback. Jason On Sat, Jul 18, 2009 at 9:40 PM, John Smith deltafoxtrot...@gmail.comwrote: 2009/7/19 Jason Van Anden jason.van.an...@gmail.com I need to zoom-in/zoom-out for my app. Multitouch would be the most obvious way to go about this *sigh*. No it's not the most obvious, it's the most annoying. Have a look at the default dialer app in contacts, it uses a semi-transparent slider that shrinks/grows to minimise it's screen realestate when you do/don't need to use it and then you can scroll up/down the list quickly when you do, that is MUCH more obvious and a slider type zoom is used every day on a lot of things. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Alternatives to Multitouch
I need to zoom-in/zoom-out for my app. Multitouch would be the most obvious way to go about this *sigh*. I would prefer not to use the zoom-in/out widget. I have been trying a number of other techniques but am not satisfied with the feel. Looking for suggestions from the community on alternative approaches. A one fingered zoom? Thanks, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Attempting to pass data via NotificationManager - Seeking Help/Advice
If I understand you correctly, you just need to call Activity.getIntent () within Activity.onCreate(). Thing is that onCreate does not get called. That activity starts, resume gets called. At the point when resume gets called the intent has changed from my intent with extras to the MAIN/LAUNCHER intent. I have a more detailed description of what is going on in the beginner group - here ... http://groups.google.com/group/android-beginners/browse_thread/thread/363ef9d6a59670 I am really stuck - and may be trying to do something that Android is not meant to do. I have spent way too much time trying to solve this riddle. Thanks, j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Attempting to pass data via NotificationManager - Seeking Help/Advice
some additional details in case someone here does not go there ...from logcat ... Starting activity: Intent { comp={com.blah.blahs/com.blah.blahs.Blahs} (has extras) } *** notice ... this is my intent called from the status bar *** startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { comp={com.blah.blahs/com.blah.blahs.Blahs} (has extras) } *** does this message mean my intent has been overridden? *** RESUMED CALLED Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.blah.blahs/com.blah.blahs.Blahs} } ** this is what appears when I call getIntent() under onResume, no more extras ... looks like intent got changed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Attempting to pass data via NotificationManager - Seeking Help/Advice
Hi Dianne, This worked! You rock. My forehead and desktop thank you for the break. Not to sound too defensive but ... I have read the documentation thoroughly and repeatedly. I have also watched any and all videos from the conference, etc. I have been developing with Android since November. I am a professional software engineer with around 20 years of experience. I was still stumped! A cookbook of examples using different launchModes may have helped me out in this case. Thank You, Jason Van Anden http://www.smileproject.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 can I give my paid app away for free to some users?
+1 On Thu, Jun 18, 2009 at 1:52 PM, Anna PSannapowellsm...@googlemail.com wrote: Ah - that's a shame. Discount coupons would definitely be a nice feature to have on the Market... On Jun 18, 12:06 am, Yuri Ammosov - Sadko Mobile y...@sadko.mobi wrote: DO NOT REFUND. Refund UNINSTALLS the program. YA On Jun 17, 2:17 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all So I'm about to put a paid app on the Market, but I'd like to give it free to a few users who helped to test it. Is there any way that I can give them a token or something else so that they can get it free? Or can I refund them once they've paid if I know their details? I guess the alternative would be to give them a direct download, but then they won't get updates through the Market. It'd be nice to know how to do this, and how to give discount codes as well. Any ideas anyone? Thanks! Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Attempting to pass data via NotificationManager - Seeking Help/Advice
I am stuck - or perhaps I am trying to do something that can't be done. I would like to send an intent to the NotificationManager with data so that if it is clicked, the Activity that is called will do something with that data. I have tried a variety of things, the Activity does get called - but no sign of data (and I am frankly a little unclear as to where to retrieve it). If someone out there can either suggest something or tell me I am headed down a dead end I would be grateful. Thank You, Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Attempting to pass data via NotificationManager - Seeking Help/Advice
Giving this a little more thought ... of course this must be possible - when an email appears in the NotificationManager it knows to open and show the email that is announced. So, can someone please give me a clue as to how this flows? Here is my code from the Service: public void show_notification(String title){ String svcname = Context.NOTIFICATION_SERVICE; NotificationManager notificationManager; notificationManager = (NotificationManager)getSystemService(svcname); Context context = getApplicationContext(); String expandedText = title; String expandedTitle = pp; //Intent startActivityIntent = new Intent(Intent.ACTION_VIEW); Intent startActivityIntent = new Intent(this, MyActivity.class); startActivityIntent.putExtra(news, goto pp 1); PendingIntent launchIntent = PendingIntent.getActivity(context, 0, startActivityIntent, 0); ppNotification.setLatestEventInfo(context, expandedTitle, expandedText, launchIntent); ppNotification.tickerText = title; notificationManager.cancel(NOTIFICATION_ID); notificationManager.notify(NOTIFICATION_ID, ppNotification); } Like I said before, the Activity gets called - fine - thing is that I want to have to get focus and then change based upon the info in extra. I cannot figure out where to receive the intent data in this situation. Thanks On Wed, Jun 17, 2009 at 9:18 PM, Jason Van Andenjason.van.an...@gmail.com wrote: I am stuck - or perhaps I am trying to do something that can't be done. I would like to send an intent to the NotificationManager with data so that if it is clicked, the Activity that is called will do something with that data. I have tried a variety of things, the Activity does get called - but no sign of data (and I am frankly a little unclear as to where to retrieve it). If someone out there can either suggest something or tell me I am headed down a dead end I would be grateful. Thank You, Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 upgrade to 1.5 safe???
Just updated to it. So far so good. Jason Van Anden http://www.bubblebeats.com On Wed, Jun 3, 2009 at 11:29 AM, Mike Wolfson mwolf...@gmail.com wrote: You will need to recompile your applications (make sure to switch the project properties to target 1.5 release) before redeploying them to an updated device. As far as other applications (ie. ones you downloaded, or didn't custom code) they will work for the most part. There are some subtle changes to the cupcake release (see the release notes for specifics: http://source.android.com/roadmap/cupcake), but for the most part, 1.5 is backwards compatible. Otherwise, it is definitely stable, and is a major improvement (both functionality-wise, and performance-wise), so it is a recommended update. On Jun 3, 2:09 am, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: will the applications developed for 1.0 r2 work well on 1.5? is it backward compatible? On Wed, Jun 3, 2009 at 2:33 PM, guna gunaz...@gmail.com wrote: Yes, 1.5 is stable only, as you are working with G1, which is based on the cupcake version. On Wed, Jun 3, 2009 at 2:30 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: hi, i am saurav mukherjee n i am working on a g1 mobile on android. there is a dialog box appearing for upgrading the os to 1.5. i jus wanted to know if anybody has done the same and is it safe (ie if the 1.5 os version is stable)? -- Guna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 upgrade to 1.5 safe???
Now that I have been using it this AM - I must say ... sweet! The interface adjustments are great. j On Wed, Jun 3, 2009 at 11:39 AM, Mike Garcia sddm...@gmail.com wrote: Yes. I have had the OTA update now for over a week and it is working as I would expect. If you are developing in the Eclipse IDE and have the 1.5SDK installed, I'd strongly recommend updating your phone ASAP! On Wed, Jun 3, 2009 at 4:00 AM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: hi, i am saurav mukherjee n i am working on a g1 mobile on android. there is a dialog box appearing for upgrading the os to 1.5. i jus wanted to know if anybody has done the same and is it safe (ie if the 1.5 os version is stable)? -- Mike Garcia There is no coincidence! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] onResume after NotificationShade Pulled
My activity does not seem to trigger onResume after the notification shade is pulled down. Anyone else have this problem (or had and sorted out how to fix it)? Thanks, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: onResume after NotificationShade Pulled
Figured out something using onWindowFocusChanged. Don't know what I'd do without me! j On Sun, May 24, 2009 at 5:55 PM, Jason Van Anden jason.van.an...@gmail.com wrote: My activity does not seem to trigger onResume after the notification shade is pulled down. Anyone else have this problem (or had and sorted out how to fix it)? Thanks, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Difficulty Resuming SurfaceView
This looks like it does what I have been trying to do ... except that I have no way of knowing if it will resolve the problem that occurs when I call the listview until I tinker with it. I have things running well enough except for this problem (thus I am inclined to continue with what I have and wait to use 1.5 until it is ready for release). The mis-registration of the buffers is super weird ... esp since it only occurs when started from the activity with the surfaceview. Thank you, Jason On Apr 25, 2009 3:28 PM, Mike Hearn mh.in.engl...@gmail.com wrote: Does GLSurfaceView do what you want? See the latest blog post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Difficulty Resuming SurfaceView
Not to beat a dead horse ... but other suggestions regarding how to deal with the mis-registered list view issue would be super appreciated. My app is a data visualization app like Google Maps and I was using the SurfaceView mainly in order to better control the draw loop (like what is described in the blog entry). Thanks, Jason Van Anden http://www.smileproject.com On Sun, Apr 26, 2009 at 6:49 AM, Jason Van Anden jason.van.an...@gmail.com wrote: This looks like it does what I have been trying to do ... except that I have no way of knowing if it will resolve the problem that occurs when I call the listview until I tinker with it. I have things running well enough except for this problem (thus I am inclined to continue with what I have and wait to use 1.5 until it is ready for release). The mis-registration of the buffers is super weird ... esp since it only occurs when started from the activity with the surfaceview. Thank you, Jason On Apr 25, 2009 3:28 PM, Mike Hearn mh.in.engl...@gmail.com wrote: Does GLSurfaceView do what you want? See the latest blog post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Copy protection License key management
Is the copy protection in 1.5 any more robust in 1.5? On Apr 26, 2009 11:38 AM, Jean-Baptiste Queru j...@android.com wrote: The issue (1) with turning copy protection on (or off) was in Android 1.0/1.1, and there's been no fix for it made on top of those versions. I believe that it is fixed in 1.5, which means that you might be OK if you deliver a copy-protected version with minSdkVersion=3 - I'm not sure, though. JBQ On Sun, Apr 26, 2009 at 7:59 AM, Jay-andro jayan...@gmail.com wrote: 1. When the copy protec... Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ You received this message because you are sub... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Difficulty Resuming SurfaceView
Solved ... the culprit was trying to run without the window background via : http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html It seems that this theme speed may speed up my surfaceView but screws up my lists. This cost me a lot of frustration to sort out. I hope this helps someone else! Jason Van Anden http://www.smileproject.com On Sun, Apr 26, 2009 at 7:30 AM, Jason Van Anden jason.van.an...@gmail.com wrote: Not to beat a dead horse ... but other suggestions regarding how to deal with the mis-registered list view issue would be super appreciated. My app is a data visualization app like Google Maps and I was using the SurfaceView mainly in order to better control the draw loop (like what is described in the blog entry). Thanks, Jason Van Anden http://www.smileproject.com On Sun, Apr 26, 2009 at 6:49 AM, Jason Van Anden jason.van.an...@gmail.com wrote: This looks like it does what I have been trying to do ... except that I have no way of knowing if it will resolve the problem that occurs when I call the listview until I tinker with it. I have things running well enough except for this problem (thus I am inclined to continue with what I have and wait to use 1.5 until it is ready for release). The mis-registration of the buffers is super weird ... esp since it only occurs when started from the activity with the surfaceview. Thank you, Jason On Apr 25, 2009 3:28 PM, Mike Hearn mh.in.engl...@gmail.com wrote: Does GLSurfaceView do what you want? See the latest blog post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Seeing Double ListView
I am wondering if anyone else is encountering this issue (or if its just me). I converted an app I have been working on from using a regular view to using SurfaceView. The app accesses listviews to change properties of the elements I am drawing on a canvas. The listviews called from the SurfaceView version draw over themselves mis-registered when I scroll long lists quickly. If anyone out there has had a similar problem and/or has an idea what might be going on and/or has a suggestion as to how to fix this, please do! Thank You, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Seeing Double ListView
... am I trying to do the impossible by using a SurfaceView and ListView in the same app? What it looks like to me is that the double buffering on the list is getting flummoxed. j On Sat, Apr 25, 2009 at 1:25 PM, Jason Van Anden jason.van.an...@gmail.com wrote: I am wondering if anyone else is encountering this issue (or if its just me). I converted an app I have been working on from using a regular view to using SurfaceView. The app accesses listviews to change properties of the elements I am drawing on a canvas. The listviews called from the SurfaceView version draw over themselves mis-registered when I scroll long lists quickly. If anyone out there has had a similar problem and/or has an idea what might be going on and/or has a suggestion as to how to fix this, please do! Thank You, Jason Van Anden --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Difficulty Resuming SurfaceView
Perhaps this would be a better way to inspire feedback. Is it possible to pause and resume a view based upon SurfaceView? What would be the correct way to restart the view so that the thread can begin drawing again? On Fri, Apr 24, 2009 at 1:29 PM, Jason Van Anden jason.van.an...@gmail.com wrote: I created a toy app that demos my problem ... the complete code can be found here: http://www.smileproject.com/SurfCodeExample.zip Feedback super appreciated. Here is the code from the activity and view only ... public class Surf extends Activity { /** Called when the activity is first created. */ private SurfView mView; private SurfThread mThread; private static final int COLOR_MENU_ID = Menu.FIRST; public static final int ACTIVITY_ASSIGN_COLOR = 0; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mView= new SurfView(this, null); setContentView(mView); } �...@override protected void onPause() { // TODO Auto-generated method stub super.onPause(); System.out.println (PAUSED); mThread.pause(); } �...@override protected void onResume() { // TODO Auto-generated method stub super.onResume(); System.out.println (RESUMED); mThread = mView.getThread(); mThread.resume(); } �...@override public boolean onCreateOptionsMenu(Menu menu) { boolean result = super.onCreateOptionsMenu(menu); menu.add(0, COLOR_MENU_ID, 0, R.string.menu_color); return result; } �...@override public boolean onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu); return true; } �...@override public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); switch (item.getItemId()) { case COLOR_MENU_ID: Intent i = new Intent(this, SurfChooser.class); startActivityForResult(i, ACTIVITY_ASSIGN_COLOR); return true; } return true; } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub super.onActivityResult(requestCode, resultCode, data); Bundle extras; if (data == null) return; extras = data.getExtras(); switch(requestCode) { case ACTIVITY_ASSIGN_COLOR: Log.w(this.getClass().getName(), back); if (data == null) return; } } } class SurfView extends SurfaceView implements SurfaceHolder.Callback, OnGestureListener { private String TAG = SurfView; private boolean is_dirty = true; private boolean block_block = false; private boolean block_after_draw = true; /** The thread that actually draws the animation */ private SurfThread thread; private GestureDetector mGestureDetector; public float offset_x = 0; // review this later public float offset_y = 0; public float x_velocity = 0; // review this later public float y_velocity = 0; private float last_pos_x = 0; private float last_pos_y = 0; private int keep_on_trucking = -1; // used for managing timing in physics private long start_time = System.currentTimeMillis(); private long end_time = 0; private long sleep_time = 0; private long diff_time = 0; private long action_period = 20; // 50 = 20fps /** coords of bg circle */ private float bX; private float bY; /** coords of pointer (m == mouse). */ private float mX; private float mY; /** Handle to the surface manager object we interact with */ private boolean hasSurface; class SurfThread extends Thread { private int mCanvasWidth = -1; private int mCanvasHeight = -1; /** !!! Message handler used by thread to interact with TextView */ // private Handler mHandler; /** Used to figure out elapsed time between frames */ private long mLastTime; /** The state of the game. One of READY, RUNNING, PAUSE, LOSE, or WIN */ private int mMode; /** Scratch rect object. */ private RectF mScratchRect; Paint mPaint = new Paint(); int transparent_white; /** Indicate whether the surface has been created is ready to draw */ private boolean mRunning = false; public boolean is_drawing = false; private
[android-developers] Re: More Than One Instance of Application
I ran into this as well. Try adding this to the Activity tag ... android:launchMode=singleTask Jason Van Anden http://www.smileproject.com On Thu, Apr 9, 2009 at 6:29 PM, Dianne Hackborn hack...@android.com wrote: It brings the currently running instance to the foreground. On Thu, Apr 9, 2009 at 2:39 PM, Noam noam.ha...@gmail.com wrote: Hello, Is there a way to prevent the user of opening more than one instance of my application? For example: User clicks on App and opens it. The user clicks on the home button. (the app is still running in the background) The user clicks on (not the menu button, but the button above it in the homescreen), and then opens the application again. Does it open the same instance, or does it create another one? If it does create another one, how can I prevent it from creating another one, and just opening the existing instance? Thanks, Noam. -- 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: Buffering Background Image - Graphics Advice Sought
Thanks, I will try this. My app has a lot of images drawn on a canvas, any of which can be moved and sized at any time by the user. They are in layers, and transparent, so that they can all be seen and manipulated. The graphics are circles at the moment. I tried running the app with a buffered bitmap and drawing directly each time. FYI: redrawing everything was 2x faster than using the bitmap. On Mon, Mar 30, 2009 at 12:25 AM, Ralf ralfo...@gmail.com wrote: If you want to work with the 2d draw api (e.g. not the GL one), a typical way to organize your code is to have a view that knows how to draw your static background and all the pieces (aka sprites) that you need on top. However before drawing anything get the clip bounds and check your sprites against the current clipping region. Then in your game thread, simply post invalidate rectangles to your view to redraw only the parts of the screen that changed. E.g: in your custom view: public void draw(Canvas canvas, ...) { Rect clipRect = ...; // should be a member, not reallocated at each draw boolean useClipRect = canvas.getClipBounds(clipRect); // draw background ... // draw a sprite only if needed Rect r = my_sprite.getRect(); if (!useClipRect || Rect.intersects(clipRect, r)) { draw sprite } } and then use View.invalidate (int l, int t, int r, int b) or View.postInvalidate (int l, int t, int r, int b) to refresh your view. Note if you have the Dev Tools in the emulator, in the development section there's a flag to show screen invalidates, it marks all screen refreshes as purple. R/ On Sat, Mar 28, 2009 at 3:05 PM, robotissues jason.van.an...@gmail.com wrote: I am unsure of the jargon so please bear with me, I am seeking advice on the best way to go about drawing the graphics for an app I am developing. Imagine you are creating a game of checkers, where you can drag/drop one piece at a time to a blank space on the board. When the piece is being moved, it seems to me that you should not need to redraw all of the pieces that are not being moved. Using the LunarLander example, is there a way to store the background image and only draw the piece being moved over it? I have been trying to figure out a way to capture the canvas as an bitmap that is occasionally refreshed. Is there a way to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Buffering Background Image - Graphics Advice Sought
I sorted this out. i++ On Sun, Mar 29, 2009 at 12:31 PM, robotissues jason.van.an...@gmail.comwrote: Still digging but I have example code. I am able to capture the bitmap, but now the screen flickers. The idea here is that the refresh_background flag gets raised when I need to hold the background. Advice super appreciated (especially if I am on the totally wrong track!). private boolean refresh_background = true; private void doDraw(Canvas canvas) { if (refresh_background || background == null) background = refresh_background(canvas); canvas.drawBitmap(background, 0, 0, mPaint); } private Bitmap refresh_background(Canvas canvas){ refresh_background = false; canvas.drawColor(Color.WHITE); canvas.drawCircle((float)200, (float)200, 50, mPaint); System.out.println (draw background); return (getDrawingCache()); } On Mar 28, 6:05 pm, robotissues jason.van.an...@gmail.com wrote: I am unsure of the jargon so please bear with me, I am seeking advice on the best way to go about drawing the graphics for an app I am developing. Imagine you are creating a game of checkers, where you can drag/drop one piece at a time to a blank space on the board. When the piece is being moved, it seems to me that you should not need to redraw all of the pieces that are not being moved. Using the LunarLander example, is there a way to store the background image and only draw the piece being moved over it? I have been trying to figure out a way to capture the canvas as an bitmap that is occasionally refreshed. Is there a way to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is it normal to play an audio during phone call?
MediaPlayer keeps playing after I answer a call using my app. I was assuming that I was responsible for pausing it and was planning to figure out how this might be done (like, which intent I am listening for). Is the MP supposed to just pause automatically? i++ On Mon, Mar 16, 2009 at 4:08 PM, Marco Nelissen marc...@android.com wrote: The music player will automatically pause when a call comes in, however if you then decide to resume playback while you're in the call, that's your choice, and we won't prevent you from doing so. On Sun, Mar 15, 2009 at 8:16 PM, roger fang new...@gmail.com wrote: Hi all, When you pick up the call and switch the screen to MediaPlayer to play an audio, it is able to be heard from handset (receiver). Thus, you can hear the far-end voice and your local music at the same time. Is it a normal behavior? Android seems not to have the mechanism to let Mediaplayer to remember its status (to keep music pause or mute?) in the phone call. Or this is a normal design for notification sounds, such as a call- waiting sound? Is it possible to have an secondary gain feature like windows mobile in the future? Thanks. roger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 it normal to play an audio during phone call?
Thanks for clearing that up. i++ On Mon, Mar 16, 2009 at 4:42 PM, Marco Nelissen marc...@android.com wrote: A MediaPlayer object will not pause when a call comes in. You'll have to do that yourself. The original poster was talking about switching the screen to MediaPlayer, so I assumed he was talking about the 'Music' application, which *does* pause. On Mon, Mar 16, 2009 at 1:35 PM, Jason Van Anden jason.van.an...@gmail.com wrote: MediaPlayer keeps playing after I answer a call using my app. I was assuming that I was responsible for pausing it and was planning to figure out how this might be done (like, which intent I am listening for). Is the MP supposed to just pause automatically? i++ On Mon, Mar 16, 2009 at 4:08 PM, Marco Nelissen marc...@android.com wrote: The music player will automatically pause when a call comes in, however if you then decide to resume playback while you're in the call, that's your choice, and we won't prevent you from doing so. On Sun, Mar 15, 2009 at 8:16 PM, roger fang new...@gmail.com wrote: Hi all, When you pick up the call and switch the screen to MediaPlayer to play an audio, it is able to be heard from handset (receiver). Thus, you can hear the far-end voice and your local music at the same time. Is it a normal behavior? Android seems not to have the mechanism to let Mediaplayer to remember its status (to keep music pause or mute?) in the phone call. Or this is a normal design for notification sounds, such as a call- waiting sound? Is it possible to have an secondary gain feature like windows mobile in the future? Thanks. roger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Thump? Name of Haptic Trigger.
Thank you for answering. I took some of the griping personally about why don't people take the minute to find ... and/or choose the right forum. In this situation I do not know the syntax so its hard to find the info. That being said ... something physical actually does occur. Its the same thing that happens when you long click on a desktop icon to indicate its selected on the G1. It reminds me of the old video game Q*bert. I tried a short vibration but its definitely not the same. Feedback super appreciated. i++ On Thu, Feb 26, 2009 at 11:44 AM, Stoyan Damov stoyan.da...@gmail.com wrote: I think it's simply a sound effect - perhaps the phone vibrates as well, can't remember - haven't played Labyrinth for a while. On Thu, Feb 26, 2009 at 4:53 PM, robotissues jason.van.an...@gmail.com wrote: Can someone clue me in on the name of the intent that triggers the haptic feedback when the user selects icons on the desktop, or when in Labyrinth the ball hits the wall. I thought it was vibrate ... but after playing with Labyrinth I am sure there is something else. In Labyrinth it feels as if the thump occurs relative to where the ball hits (but I am not sure if this is really the case or I am imagining it). I asked about this before and thought I had figured it out myself (thought it might be a short burst of vibrate) ... but apparently not. Thank You, i++ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: howto access music file properties?
I sorted this out. MusicDroid example is a bit of a red herring. MusicStore is clearly the way to go! On another note ... can the Music App pre loaded with Android be accessed as a service? Essentially I would like to have the selected song pass back to my app. On Sat, Feb 14, 2009 at 11:36 AM, robotissues jason.van.an...@gmail.comwrote: I would like to retrieve the properties that describe an mp3 file's properties (ie: author, album, title ...). I was not able to use javax.sound.sampled.AudioFileFormat to do this. Advice super appreciated. Thank you, i++ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Apple Granted Multitouch Patent
I did a little digging since posting this. A developer at Microsoft named Bill Buxton has an interesting time line on the history of multi touch ... I think that this suggests that one (with deep pockets and the motivation) might be able to argue prior art: http://www.billbuxton.com/multitouchOverview.html Perhaps the deep pocketed one might be Palm ... here is a recent news article on some words between Apple and Palm on the IP ... http://venturebeat.com/2009/01/23/palm-will-defend-its-ip-too-says-former-apple-spokesperson/ Jason Van Anden www.smileproject.com On Tue, Jan 27, 2009 at 1:13 PM, JP joachim.pfeif...@gmail.com wrote: I speculate one of the reasons that multi-touch was not in the Android package because the patent was pending. I predict that noone outside Apple will touch multi-touch even with a 10ft. pole (pun intended). The bigger issue in my view is gesture-based scrolling, which *is* part of Android and which happens to be claimed in the patent. Somebody enlighten us how this is not going to be a battle down the road? On Jan 27, 9:52 am, Al Sutton a...@funkyandroid.com wrote: It's only a US patent and the world is a big place. All it means is that if anyone has a Multi-Touch innovation and wants to play it safe will stay out of the US market. Welcome to America, the land of the free, well, as long as you have the right lawyer that is. Al. robotissues wrote: via Slashdot .. http://yro.slashdot.org/article.pl?sid=09%2F01%2F27%2F024242from=rss Does this really put the kabosh on multitouch on Android for the next 18 years? Anyone out there have any thoughts on this? www.smileproject.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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---