Re: [android-beginners] Re: Optimizing drawing on a canvas
On Thu, Apr 22, 2010 at 1:08 AM, Indicator Veritatis mej1...@yahoo.com wrote: Are you calling the Drawable method setBounds()? Android Graphics will check to make sure the rendering is inside this rectangle before actually putting pixels on the screen. It's a png I've loaded from drawable, I suppose setBounds() is called when loading the image? Dumbed down a bit am I doing (obj.myBitmap is a large bitmap containing several images and I just want to show one, that's the reason for haveing a source rect): Rect vp = new Rect (100, 100, 400, 300); public void draw (Canvas c) { // normalize the position of the object Rect transformedPos = new Rect (obj.pos.left - vp.left, obj.pos.top - vp.top, obj.pos.right - vp.left, obj.pos.top - vp.top); c.drawBitmap (obj.myBitmap, obj.imageMetricsRect, transformedPos, null); } This is called very frequently so I'd like to optimize it fairly well. But at the same time if canvas does the same check would the trade off of having the check all around to save a call doing the same thing not be worth it. So to be precise this is what I would add: Rect vp = new Rect (100, 100, 400, 300); public void draw (Canvas c) { // normalize the position of the object Rect tp = new Rect (obj.pos.left - vp.left, obj.pos.top - vp.top, obj.pos.right - vp.left, obj.pos.top - vp.top); if (tp.left vp.right tp.right vp.left tp.top vp.bottom tp.bottom vp.top) c.drawBitmap (obj.myBitmap, obj.imageMetricsRect, tp, null); } So I suppose my question is: Does Canvas just draw everythign being thrown at it and then crops to the size of the screen or does it check if there's a point drawing and then just draws the visible parts? If it's option 1 I would assume that checking both if any portion of the image is inside the screen and adjusting the src rect to be the visible part would make sense? On Apr 21, 7:29 am, Jon mailinglists jon.ml...@gmail.com wrote: Hi all, I just wonder if Canvas.draw... checks if I want to draw outside its bounds and skips thoose parts or if I should do the math myself. The case I'm having is that I have an update and the user has scrolled away from that part of the screen. Should I bother adding an if statement around the drawBitmap or is the only overhead that draw is being called and just doesn't do anything? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Getting one form data on anather form
Hi everyone, i have therre consecutive form ,after filling the form one i press the next button on the first form to go to the second form then prees the next button to go to the third form.from third form i have a button to post the data on a specific url.the problem is that how can get the first and second form data on the last form -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Android Development Phones
I would sincerely suggest to prefer a phone on emulator. Emulator has serious limitations and make one stuck at a very bad state. Thought i am a newbie but i have experienced it in these 4 months and now we are trying to get a cheap used phone for testing. regards, wahib On Wed, Apr 21, 2010 at 7:14 PM, Mark Murphy mmur...@commonsware.comwrote: Ubuntu Explorer wrote: I want to purchase an Android developer phone. It seems to be bit pricey at $399 (including international shipping). Is it an absolute necessity for testing applications before uploading to market? The ADP1 and ADP2 are for people building replacement firmware. For ordinary Android application development, any phone that has the Android Market on it will do. Also, I wonder what the device provides that the emulator does not. It makes phone calls! :-) I would imagine the answer to the above depends on what features of Android I wish to use in my app. However, I would like to know the extent of device emulation provided by the emulator. Does it support accelerometer, camera, maps and other sensors? Accelerometer, camera, sensors: not in any meaningful fashion. Maps: yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Online Training: 10-14 May 2010: http://onlc.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Getting one form data on anather form
Salam dear. You can take the data from one form to other by passing bundles with intents. You can take data from 1st form and receive in 2nd. Then take 1st data + 2nd data to 3rd form and then send subsequent responses back. This tutorial will surely help you out. http://www.remwebdevelopment.com/dev/a33/Passing-Bundles-Around-Activities.html best of luck. wahib On Thu, Apr 22, 2010 at 8:30 AM, Mohammad Siddiqui siddiqui.m...@gmail.comwrote: Hi everyone, i have therre consecutive form ,after filling the form one i press the next button on the first form to go to the second form then prees the next button to go to the third form.from third form i have a button to post the data on a specific url.the problem is that how can get the first and second form data on the last form -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Getting one form data on anather form
I myself is a newbie so if someone has better sugesstion than do share it. I would love to increase my knowledge. regards, wahib On Thu, Apr 22, 2010 at 8:46 AM, wahib haq wahib.t...@gmail.com wrote: Salam dear. You can take the data from one form to other by passing bundles with intents. You can take data from 1st form and receive in 2nd. Then take 1st data + 2nd data to 3rd form and then send subsequent responses back. This tutorial will surely help you out. http://www.remwebdevelopment.com/dev/a33/Passing-Bundles-Around-Activities.html best of luck. wahib On Thu, Apr 22, 2010 at 8:30 AM, Mohammad Siddiqui siddiqui.m...@gmail.com wrote: Hi everyone, i have therre consecutive form ,after filling the form one i press the next button on the first form to go to the second form then prees the next button to go to the third form.from third form i have a button to post the data on a specific url.the problem is that how can get the first and second form data on the last form -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Reusing views/code-
On Tue, Apr 20, 2010 at 1:49 PM, Richard ldonel...@gmail.com wrote: Is there a smarter way to reuse a view in the layout of several different activities? What I would probably do, based on the info you provided: - Encapsulate the similar onClickListener code into one class. Take care of differences via parameters or by subclassing. - Create a single XML layout file that defines the ImageView with it's properties as it will be across all activities with a single ID. Use the include tag in the other Activities layouts to re-use the view in those layouts. - Create some helper function to find the ImageView in question for a given activity and set the appropriate click listener on it. Hope that helps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Downgrading 2.1 app to 1.5
I've a (non-google maps) app that I want to install on a 1.5 phone. However, it was originally built for 2.1, and when I set the target as 1.5 I get some errors: 1. 'invalid resource directory name' - the directory exists and is unchanged, the contents are listed in the Eclipse browser. Errors shown on re/drawable-hdpi, re/drawable-ldpi and re/drawable-mdpi 2. 'R cannot be resolved'. This appears to be the fact that R.java is no longer present. I've fixed this by importing android.R (not sure why it needed to be done again), but now setContentView(R.layout.main); cannot be resolved. I see that I still don't have an R.java. A bit confused here :) -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Downgrading 2 app to 1.5
I've a (non-google maps) app that I want to install on a 1.5 phone. However, it was originally built for 2 (can't remember if it was 2.0 or 2.1), and when I set the target as 1.5 I get some errors: 1. 'invalid resource directory name' - the directory exists and is unchanged, the contents are listed in the Eclipse browser. Errors shown on re/drawable-hdpi, re/drawable-ldpi and re/drawable-mdpi 2. 'R cannot be resolved'. This appears to be the fact that R.java is no longer present. I've fixed this by importing android.R (not sure why it needed to be done again), but now setContentView(R.layout.main); cannot be resolved. I see that I still don't have an R.java. A bit confused here :) -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Is there a concept like DLL in Andoirds?
If you download the NDK and look at the examples, it really isn't that difficult to add a library. In fact, it is recomended to place any mathmatical processes into c/c++ code rather than java to speed up processing. Once you have the c library, you can drop the file into your android lib directory on any of your projects and it will be compiled into you APK. Sincerely, -Kitzy On Apr 20, 5:03 pm, Indicator Veritatis mej1...@yahoo.com wrote: So the short answer to his original question, whether or not there is a 'DLL concept' in Android, is 'no'. If he really wants to, he can use the NDK as you suggest, but that sounds like a lot of custom work for trying to support a C/C++ paradigm in a Java world, an approach that is likely to offer more pain than profit. Android is based on Java, it is only to be expected that the Java way will be more natural. On Apr 16, 10:30 am, Kitzy kitzyk...@gmail.com wrote: You can create libraies in C/C++ and share them with your applications. Look at the NDK to see if that may help. http://developer.android.com/sdk/ndk/index.html -Kitzy On Apr 16, 12:01 am, Prashant Shelar shelar...@gmail.com wrote: Hello, I know that we can use a concept Java Package but I just wanted to know that whether Android has provided a DLL concept where I can my most of the functionality. Is there any concept like DLL on Android OS? Can we develop a DLL for better modularization and other benefits on Android? Thanks and Regards, Prashant. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Getting one form data on anather form
you can use the function putExtra() while creating a new intent, and use getExtra() after the new intent has been created. that is assuming, you are using intents for forms. //make new intent code //call new intent code putExtra(key name, data) and where the new intent is picked up, in the called class, just use getExtra(key name) that should do it. On Thu, Apr 22, 2010 at 6:23 PM, wahib haq wahib.t...@gmail.com wrote: I myself is a newbie so if someone has better sugesstion than do share it. I would love to increase my knowledge. regards, wahib On Thu, Apr 22, 2010 at 8:46 AM, wahib haq wahib.t...@gmail.com wrote: Salam dear. You can take the data from one form to other by passing bundles with intents. You can take data from 1st form and receive in 2nd. Then take 1st data + 2nd data to 3rd form and then send subsequent responses back. This tutorial will surely help you out. http://www.remwebdevelopment.com/dev/a33/Passing-Bundles-Around-Activities.html best of luck. wahib On Thu, Apr 22, 2010 at 8:30 AM, Mohammad Siddiqui siddiqui.m...@gmail.com wrote: Hi everyone, i have therre consecutive form ,after filling the form one i press the next button on the first form to go to the second form then prees the next button to go to the third form.from third form i have a button to post the data on a specific url.the problem is that how can get the first and second form data on the last form -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Reading Notifications
Hi there. I'm new to Android development but have done amateur programming since high school. I would like to find out if there is a way to query the NotificationManager for all of the current notifications. I already understand how to create them and the difference between the different types of notifications. However, I would like to be able to have the phone perform actions based on the presence of notifications from certain programs. I have seen a few programs (like SmartVibrator) that can create custom vibrate patterns for phone calls and SMS messages, but I'm unclear on how it works. Questions: 1. Can I ask the NotificationManager for a list of current notifications? 2. Can I intercept or identify notifications without hacking NotificationManager to pieces? Thanks for the help! Eamon -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Downgrading 2.1 app to 1.5
On Thu, Apr 22, 2010 at 9:27 AM, MartinM martinandj...@gmail.com wrote: I've a (non-google maps) app that I want to install on a 1.5 phone. However, it was originally built for 2.1, and when I set the target as 1.5 I get some errors: Don't set the Target to 1.5, just set the minSDK requirement to 3. 1. 'invalid resource directory name' - the directory exists and is unchanged, the contents are listed in the Eclipse browser. Errors shown on re/drawable-hdpi, re/drawable-ldpi and re/drawable-mdpi Different resolutions was added in 1.6 so they're invalid in 1.5. 2. 'R cannot be resolved'. This appears to be the fact that R.java is no longer present. I've fixed this by importing android.R (not sure why it needed to be done again), but now The resource file is generated from your resources. Fix the above issue and this should build fine. setContentView(R.layout.main); cannot be resolved. See #2 above. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Reading Notifications
Eamon wrote: 1. Can I ask the NotificationManager for a list of current notifications? No, sorry. 2. Can I intercept or identify notifications without hacking NotificationManager to pieces? No, sorry. Intercepting notifications, in particular, would be quite the security loophole. In general, on Android, one application cannot see or mess with another application's stuff. So, while your desired features would be interesting for the OS itself, they aren't going to be very practical to implement in an application written to the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] ScrollView cycle?
Anyway to have a ScrollView cycle back to the beginning when the end is reachedor to the end when trying to scroll past the beginning? Thanks, -Mike -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] play external .mp3 file
Hi people, im playing a mp3 file on my emulador using that code: MediaPlayer mediaPlayer = Player.create(getApplicationContext(), R.raw.mymusic); mediaPlayer.start(); but i need play a mp3 file from my server example: http://www.myserver.com/mymusic.mp3 how do i to play that mp3 file hugs -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] What exactly is being passed into onMeasure()?
I don't understand the method onMeasure(int widthMeasureSpec, int heightMeasureSpec). In the example I have seen, MeasureSpec.getMode() is used, and passed in the widthMeasureSpec or heightMeasureSpec to find the restrictions placed on the View's boundaries. The restictions are either EXACTLY, AT_MOST, or UNSPECIFIED. Well my questions is, what determines these restictions? What calls and passes the arguments of onMeasure that determine these restrictions? Is it the parent View? Please help, im so confused. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] play external .mp3 file
Hi Victor, take a look at this tutorial. I think this is what you want. http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/ Regards, Rogerio 2010/4/22 Victor Hugo vhs...@gmail.com Hi people, im playing a mp3 file on my emulador using that code: MediaPlayer mediaPlayer = Player.create(getApplicationContext(), R.raw.mymusic); mediaPlayer.start(); but i need play a mp3 file from my server example: http://www.myserver.com/mymusic.mp3 how do i to play that mp3 file hugs -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android Development Phones
As you noticed, the official developer phone is a bit pricey. But since it is still generally best to target application for 1.5, an unlocked G1 phone is just as viable, and a lot less pricey. You have probably already noticed that you cannot upload an app from the emulator to the Android Market. On Apr 21, 4:10 pm, Ubuntu Explorer ubuntuexplo...@gmail.com wrote: Hi, I want to purchase an Android developer phone. It seems to be bit pricey at $399 (including international shipping). Is it an absolute necessity for testing applications before uploading to market? Also, I wonder what the device provides that the emulator does not. I would imagine the answer to the above depends on what features of Android I wish to use in my app. However, I would like to know the extent of device emulation provided by the emulator. Does it support accelerometer, camera, maps and other sensors? Please advice. Regards, Sanjeev -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] ScrollView cycle?
On Thu, Apr 22, 2010 at 11:06 AM, Michael Dorin bsddo...@gmail.com wrote: Anyway to have a ScrollView cycle back to the beginning when the end is reachedor to the end when trying to scroll past the beginning? See this thread: http://groups.google.com/group/android-developers/browse_thread/thread/15e01f8b926ed136/ece5780583f61cc6 - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Downgrading 2.1 app to 1.5
And above all, don't confuse your own 'R' with 'android.R'. They are different files. To get setContentView(R.layout.main) to work, Eclipse needs to find your 'R', not Android's. 'R' is supposed to be automatically generated by Eclipse whenever you add a line to the relevant XML file. But there are bugs in the build system. Usually you can work around them by doing 'Clean' on the project. If that doesn't work, escalate by closing and re-opening the project, turning build automatically off and then back on... On Apr 22, 8:07 am, ~ TreKing treking...@gmail.com wrote: On Thu, Apr 22, 2010 at 9:27 AM, MartinM martinandj...@gmail.com wrote: I've a (non-google maps) app that I want to install on a 1.5 phone. However, it was originally built for 2.1, and when I set the target as 1.5 I get some errors: Don't set the Target to 1.5, just set the minSDK requirement to 3. 1. 'invalid resource directory name' - the directory exists and is unchanged, the contents are listed in the Eclipse browser. Errors shown on re/drawable-hdpi, re/drawable-ldpi and re/drawable-mdpi Different resolutions was added in 1.6 so they're invalid in 1.5. 2. 'R cannot be resolved'. This appears to be the fact that R.java is no longer present. I've fixed this by importing android.R (not sure why it needed to be done again), but now The resource file is generated from your resources. Fix the above issue and this should build fine. setContentView(R.layout.main); cannot be resolved. See #2 above. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: play external .mp3 file
ty Rogério On 22 abr, 13:43, Rogério de Souza Moraes rogerio.so...@gmail.com wrote: Hi Victor, take a look at this tutorial. I think this is what you want. http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-stream... Regards, Rogerio 2010/4/22 Victor Hugo vhs...@gmail.com Hi people, im playing a mp3 file on my emulador using that code: MediaPlayer mediaPlayer = Player.create(getApplicationContext(), R.raw.mymusic); mediaPlayer.start(); but i need play a mp3 file from my server example:http://www.myserver.com/mymusic.mp3 how do i to play that mp3 file hugs -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Is it possible to 'listen' for sent SMS messages?
Hi, From what i can tell, you can create a broadcast receiver for listening for received SMS messages, but I want to listen for sent messages. Can this be done? Thanks, Ed -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Question on web service mobile client app for Android using ksoap2.
Hi I am creating web service clients in mobile devices (Android) through the use of ksoap2 libraries. http://developer.ebay.com/DevZone/finding/Concepts/MakingACall.html states: For the Finding API, no URL parameters or HTTP headers, including X- EBAY-SOA-SECURITY-APPNAME can be specified in the SOAP header. If they cannot be specified in SOAP header, how else can it done (preferably using ksoap2 library). I tried appending parameters to the URL, then calling AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL); (everything else prior to the call is done, sorry for not posting the code) but this yields soap fault. Any thoughts/ suggestions? Thanks. Anjana. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] how to use Remote Service?
Hi i`m trying to use Remote Service btween two simple application, But it`s not easy to me. So any advice you have will help me. here`s my case. I made one app which is playing Music in service, There are two components. one is Activity controlling service by using three buttons, play,pause, stop. and it is working fine. and another one is just simple Activity which also has four buttons bind,play,stop,unbind. when i click bind, it`s confirmed by Toast msg, but when i click play button,it occurs error. i want to control first activity`s Music playing service in second Activity. So i`m trying to use remote service. i made same .aidl file in each app project. In aidl file, i defined methods playing,stoping and i implement those methods in Music service class, implementation is simply use intent and startService stopService. In DDMS there is java.lang.SecurityException : Binder invocation to an incorrect interface that`s the case what i`m doing. So please tell me what`s the problem. any advice could help me. thanks Gun. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Adding multiple images to AnimateDrawables sample code
Hello, I was trying to add more than one images in the AnimateDrawables under com.example.android.apis.graphics, but for some reason I couldn't. Can anyone post a sample code on how to accomplish it or at least explain it to me? This beginner programmer would really appreciate it :) Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en