[android-developers] Issue with creating UI programmatically
So, here is what I need to make, three TableLayouts that have a Text View above them, this is what I'm doing: ScrollView mScrollView; TableLayout mTableLayout; TextView mTextView; LinearLayout mLinearLayout; TableLayout nTableLayout; TableLayout oTableLayout; TableLayout pTableLayout; ... .. . mScrollView = new ScrollView(this); mTableLayout = new TableLayout(this); mTextView = new TextView(this); mLinearLayout = new LinearLayout(this); nTableLayout = new TableLayout(this); oTableLayout = new TableLayout(this); pTableLayout = new TableLayout(this); mScrollView.addView(mTableLayout); mTableLayout.addView(mTextView); mTableLayout.addView(mLinearLayout); mLinearLayout.addView(nTableLayout); mLinearLayout.addView(oTableLayout); mLinearLayout.addView(pTableLayout); This should work but for some reason it keeps force closing on me. It works just fine when I dump images into an interface containing only one TableLayout within a ScrollView. Does anyone know a solution to 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: Issue with creating UI programmatically
UPDATE: It has something to do with several .addView() commands from the same view, ie: mLinearLayout.addView(nTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(oTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(pTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); This is where my problem is. I don't know what changes I have to make to make it add all three TableLayouts to the single LinearLayout. If anyone knows how to fix this, please let me know. So far everything I know about android is from looking at example code and figuring out what I have to modify to make it work for my needs, but I kind of hit a wall on this one. On Sep 27, 1:17 am, Jeffrey jeffisagen...@gmail.com wrote: So, here is what I need to make, three TableLayouts that have a Text View above them, this is what I'm doing: ScrollView mScrollView; TableLayout mTableLayout; TextView mTextView; LinearLayout mLinearLayout; TableLayout nTableLayout; TableLayout oTableLayout; TableLayout pTableLayout; ... .. . mScrollView = new ScrollView(this); mTableLayout = new TableLayout(this); mTextView = new TextView(this); mLinearLayout = new LinearLayout(this); nTableLayout = new TableLayout(this); oTableLayout = new TableLayout(this); pTableLayout = new TableLayout(this); mScrollView.addView(mTableLayout); mTableLayout.addView(mTextView); mTableLayout.addView(mLinearLayout); mLinearLayout.addView(nTableLayout); mLinearLayout.addView(oTableLayout); mLinearLayout.addView(pTableLayout); This should work but for some reason it keeps force closing on me. It works just fine when I dump images into an interface containing only one TableLayout within a ScrollView. Does anyone know a solution to 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: Issue with creating UI programmatically
Another update: Does it have something to do with int index? If so how do I implement it? I tried changing to this and it didn't work: mLinearLayout.addView(nTableLayout, int 1, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); On Sep 27, 1:35 am, Jeffrey jeffisagen...@gmail.com wrote: UPDATE: It has something to do with several .addView() commands from the same view, ie: mLinearLayout.addView(nTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(oTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(pTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); This is where my problem is. I don't know what changes I have to make to make it add all three TableLayouts to the single LinearLayout. If anyone knows how to fix this, please let me know. So far everything I know about android is from looking at example code and figuring out what I have to modify to make it work for my needs, but I kind of hit a wall on this one. On Sep 27, 1:17 am, Jeffrey jeffisagen...@gmail.com wrote: So, here is what I need to make, three TableLayouts that have a Text View above them, this is what I'm doing: ScrollView mScrollView; TableLayout mTableLayout; TextView mTextView; LinearLayout mLinearLayout; TableLayout nTableLayout; TableLayout oTableLayout; TableLayout pTableLayout; ... .. . mScrollView = new ScrollView(this); mTableLayout = new TableLayout(this); mTextView = new TextView(this); mLinearLayout = new LinearLayout(this); nTableLayout = new TableLayout(this); oTableLayout = new TableLayout(this); pTableLayout = new TableLayout(this); mScrollView.addView(mTableLayout); mTableLayout.addView(mTextView); mTableLayout.addView(mLinearLayout); mLinearLayout.addView(nTableLayout); mLinearLayout.addView(oTableLayout); mLinearLayout.addView(pTableLayout); This should work but for some reason it keeps force closing on me. It works just fine when I dump images into an interface containing only one TableLayout within a ScrollView. Does anyone know a solution to 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: Custom layout for MediaController
Using MediaPlayer and creating your own pop-up controller panel is not that difficult. Here is an example: http://github.com/commonsguy/vidtry Marco Nelissen wrote: Other than enabling/disabling some of the standard buttons, no. On Sat, Sep 26, 2009 at 7:35 PM, brooke brooke.ma...@gmail.com wrote: But is there a way to simply modify the existing one? On Sep 26, 7:27 pm, Marco Nelissen marc...@android.com wrote: You could implement your own and make it look however you like. On Sat, Sep 26, 2009 at 7:19 PM, brooke brooke.ma...@gmail.com wrote: Hi Group - I'm trying to modify the default layout for the MediaController. I'd like to remove the fastForward/fastRewind buttons and maybe do some resizing, etc. I know it's possible to remove the buttons if I call the MediaController(Context, useFastForward) constructor, but is there any other way to change the layout of the controller? Please advise. Many thanks, Brooke -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to make an activity destory when user presses 'Back button?
Hi, When I currently have my activity on the font of the screen, how can I make Android to 'destory' my activity when user clicks 'back' button? (i.e. onDestory of my Activity gets called)? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make an activity destory when user presses 'Back button?
hap 497 wrote: When I currently have my activity on the font of the screen, how can I make Android to 'destory' my activity when user clicks 'back' button? (i.e. onDestory of my Activity gets called)? It does that automatically. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Issue with multiple child views created programmatically
I need a LinearLayout to contain 3 TableLayouts, and I can't get it to work. This is where the problem is I'm sure: mTableLayout.addView(mLinearLayout, LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(nTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(oTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(pTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); How Do I make this work? I can get it to work just find when I only add a single child view, but when I have multiple children view objects my app crashes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Issue with multiple child views created programmatically
Jeffrey wrote: I need a LinearLayout to contain 3 TableLayouts, and I can't get it to work. This is where the problem is I'm sure: mTableLayout.addView(mLinearLayout, LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(nTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(oTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(pTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); How Do I make this work? I can get it to work just find when I only add a single child view, but when I have multiple children view objects my app crashes. Examine your stack trace, via adb logcat, DDMS, or the DDMS perspective in Eclipse. That will tell you the source of your error. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Streaming encoded video via RTP
Hi Robin, I've same your problems. If you find a solution to how work using opencore from native or java, please post. On 7 Ago, 13:40, Robin Marx marx.ro...@gmail.com wrote: First of all, we have no idea whatsoever on how to access the opencore functionality from our native code (or from java). We found a lot of posts from people saying they are using the encoders/decoders directly, or trying to add extra format-support etc. but nowhere do we find documentation on even the most basic things for using the native opencore API. If you could tell us how to directly access the encoders for example, that would take us a LONG way already. As for RTP we really need to be in control of what is in the packages and how they are sent. Part of the research is working with a proxy that'll filter certain packets based on the available bandwidth and other resources of the network, so we really want full control over the RTP functionality on all ends. This means other RTP implementations are out of the question for us. We have been making some progress though. At the moment we are able to stream speex-encoded audio to the device, decode it (this step is very slow on emulator, but fast enough on the device itself) and play it as a .wav file (putting a dummy wav-header before the actual data seems to work just fine). We use the methode described here for good buffered playback from socket :http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-stream... (so the inputstream is not from an URL but from our native socket and we don't play .mp3 but .wav). As for video we can now transmit from the device to the desktop using the ParcelFileDescriptor-method. Native code on the device wraps the data in rtp-videopackets. On the desktop we buffer the packets and parse the h.263 headers until a full frame has arrived and then show it (the first 32 bytes android writes are the 3gpp header, just ignore it, the h.263 frames start right after that without .3gpp things in the videodata). While this gives us live video-feed (with minor delay) it is far from optimal for our research (no correct timing information in the rtp-packets for instance, making lipsync difficult etc.). We expect that sending audio wouldn't be that different from sending video, but for the moment we don't have a working amr-decoder on the desktop so we can't test it yet. Receiving video is going to be the hard one with these methods. For audio we can use the simple .wav format, but .3gpp is considerably more complicated and we think it's almost impossible to replicate for a live stream such as ours (if you can, please prove us wrong. Our main concern at the moment is the stsz-atom with the timing info). I hope this can help some others working on the same problem, but these solutions are NOT optimal. If anyone can tell me how to use the opencore functionality we will probably be able to find much better methods and share them. Thanks in advance and thanks to those who replied. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] OpenCore
Anybody know if is possible use directly OpenCore from java or native with NDK ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: OpenCore
fala70 wrote: Anybody know if is possible use directly OpenCore from java or native with NDK ? Multimedia functionality in the Android SDK is through the android.media.* packages. I would not describe any of those as using OpenCORE directly. Questions about the NDK are best asked on a list that pertains to the NDK: http://groups.google.com/group/android-ndk -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Issue with multiple child views created programmatically
Unfortunately that doesn't really help. I have no idea what I'm looking for in the logcat. Likewise I don't what the stacktrace is or how to find it in the logcat. All I know about android is what I've figured out through the course of my current project. I can't find any information on how to programmatically create a UI with multiple child views inside a single viewgroup. If anyone knows of any easy to understand documentation that would be awesome. On Sep 27, 3:03 am, Mark Murphy mmur...@commonsware.com wrote: Jeffrey wrote: I need a LinearLayout to contain 3 TableLayouts, and I can't get it to work. This is where the problem is I'm sure: mTableLayout.addView(mLinearLayout, LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(nTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(oTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); mLinearLayout.addView(pTableLayout, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); How Do I make this work? I can get it to work just find when I only add a single child view, but when I have multiple children view objects my app crashes. Examine your stack trace, via adb logcat, DDMS, or the DDMS perspective in Eclipse. That will tell you the source of your error. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Need Android talent? Ask on HADO!http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] launch activity like phone call
hi, i have 2 questions . 1. i have a service that will launch an activity. How to make the activity launched like a phone call? i mean when the phone screen is locked, it will awaken. 2. how to start a service right after downloaded and installed from android market? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: launch activity like phone call
On Sun, Sep 27, 2009 at 1:47 AM, sleith raysle...@gmail.com wrote: 2. how to start a service right after downloaded and installed from android market? This is deliberately not supported. You can start the service when the user launches your app. -- 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: Issue with multiple child views created programmatically
Jeffrey wrote: Unfortunately that doesn't really help. I have no idea what I'm looking for in the logcat. Likewise I don't what the stacktrace is or how to find it in the logcat. If you are new to Java development, I really recommend learning the basics of Java outside of Android first, before tackling Android. A Java stack trace will look something like this: java.io.FileNotFoundException: fred.txt at java.io.FileInputStream.init(FileInputStream.java) at java.io.FileInputStream.init(FileInputStream.java) at ExTest.readMyFile(ExTest.java:19) at ExTest.main(ExTest.java:7) (from http://www.devdaily.com/java/edu/pj/pj010009/) Usually, with Android, there will be two of them back-to-back, with the second one prefixed by Caused by:. That one will indicate where things are going wrong (e.g., NullPointerException). I can't find any information on how to programmatically create a UI with multiple child views inside a single viewgroup. That is because there is a very good chance that there are better ways of solving your problem. Until you tell us what it is you are trying to do at a high level, we cannot readily advise you on better solutions. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ethernet / IP over USB connection?
I recently figured out how to do this using the adb tool. I had to write a small patch for it to work easily, which you can find here: http://forum.xda-developers.com/showpost.php?p=4537323postcount=14 Once you have the ppp link working between the phone and the PC you can set either device to act as a gateway for the other. In your case you would want the PC to be a gateway for the phone. When I'm traveling I typically want the phone to be a gateway for my PC, so that I can use the phone's internet connection. On Sep 8, 12:52 pm, JavaNut i...@chiralsoftware.net wrote: I have a somewhat unusual question: We have a need to use an Android device in situations where there may be no wireless, no WiFi, no Bluetooth, and no Ethernet. The only way we will have of connecting to the outside world will be by plugging aUSBcable from the Android to a network-connected PC. I realize this sounds strange, but this is the problem we need to solve. Has anyone done this? I've seen references to Ethernet overUSB, which seems like it would work with a Linux kernel module on the PC, but we need to use a Windows PC host. I've searched quite a bit on Google and haven't come up with solutions. If anyone has some ideas on this, I would very much appreciate it. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue with multiple child views created programmatically
That is because there is a very good chance that there are better ways of solving your problem. Until you tell us what it is you are trying to do at a high level, we cannot readily advise you on better solutions. Fair Enough, I need a page that displays random dice. I have tried to use an adapter to bind the random dice to a GridView, but that didn't work as every time the dice scrolled off the screen and came back they were being re-drawn and the result would change. I found a way to get it to work but I have to set up the UI programmatically, since if I don't know how to make the XML file change dynamically depending on how many dice it will need to draw, or which die images to draw. I have it working right now but they won't display in a grid because you have to use an adapter and I haven't found a way to use an adapter and get away with said problem of changing values. I know that the layout I'm trying to accomplish will work, as I can make it in XML, though it wouldn't actually populate dynamically. I'm stuck trying to figure out why trying to place 2 child view into a single view id causing an error. I could get around this if I could find an example of making XML populate them dynamically, but I haven't been able to find anything on that. In fact, the only question I've had so far that I found a good example for was making a button click. Other than that all I've done has been finding vaguely similar examples and discovering what I need to change to suit my needs through trial and error. So I guess this question might be easier to answer: How can I make a TableLayout populate ImageViews Dynamically? Right now I only know how to do it through .setImageResource then .addView(). Also as a side note the logcat I was looking at for the crash didn't have anything like what you posted above. It didn't even have any thing that vaguely resembled an error. I know what I'm trying to do can't be that difficult, I'm sure I'm just missing something in the addView() code for the extra child views, but I can't for the life of me find out what I need to add to make this simple concept work. It is very frustrating. On Sep 27, 4:06 am, Mark Murphy mmur...@commonsware.com wrote: Jeffrey wrote: Unfortunately that doesn't really help. I have no idea what I'm looking for in the logcat. Likewise I don't what the stacktrace is or how to find it in the logcat. If you are new to Java development, I really recommend learning the basics of Java outside of Android first, before tackling Android. A Java stack trace will look something like this: java.io.FileNotFoundException: fred.txt at java.io.FileInputStream.init(FileInputStream.java) at java.io.FileInputStream.init(FileInputStream.java) at ExTest.readMyFile(ExTest.java:19) at ExTest.main(ExTest.java:7) (fromhttp://www.devdaily.com/java/edu/pj/pj010009/) Usually, with Android, there will be two of them back-to-back, with the second one prefixed by Caused by:. That one will indicate where things are going wrong (e.g., NullPointerException). I can't find any information on how to programmatically create a UI with multiple child views inside a single viewgroup. That is because there is a very good chance that there are better ways of solving your problem. Until you tell us what it is you are trying to do at a high level, we cannot readily advise you on better solutions. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue with multiple child views created programmatically
Jeffrey wrote: Fair Enough, I need a page that displays random dice. I have tried to use an adapter to bind the random dice to a GridView, but that didn't work as every time the dice scrolled off the screen and came back they were being re-drawn and the result would change. That should be solvable: consider your data model to be the rolled results. Here is how I would implement this, knowing nothing about your underlying code: Step #1: Create a DiceRoll class that holds the numerical result of whatever dice you are rolling. Step #2: When you want to display a set of rolls, build up an ArrayListDiceRoll containing the results of those rolls. Step #3: Create a DiceRollAdapter, inheriting from ArrayAdapter, that knows how to update ImageViews (or whatever) to show the values for a particular DiceRoll. Then, when the user scrolls around and back again, your dice should retain their existing values. Here is a free sample chapter from one of my books that goes through some of this process, albeit not with dice and rolls: http://commonsware.com/Android/excerpt.pdf I have it working right now but they won't display in a grid because you have to use an adapter and I haven't found a way to use an adapter and get away with said problem of changing values. See above. Dynamically building a layout, as you are trying to do, will get seriously painful when you have to start dealing with landscape/portrait, QVGA/HVGA/WVGA, and so on. Use an XML layout for the activity and an XML layout for each grid cell (or ListView row or whatever sort of selection widget you settle upon), and things will go much more smoothly. Also as a side note the logcat I was looking at for the crash didn't have anything like what you posted above. It didn't even have any thing that vaguely resembled an error. If you have an unhandled exception, logcat will always contain the stack trace. If you handle the exception yourself in a try/catch block, add something like this to the catch(Exception e): android.util.Log.e(MyAppNameHere, Something about the exception, e); That will dump the stack trace, along with your message, to logcat. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: A new way to promote and manage your Android Applications!
Hi Sheik ahmed, Thanks for your comments :) Your application has been added (note that we update applications once a week because we need to add some other elements in order to give you soon a full access to your application page and allow you to manage them yourself if you need to...) We will add screenshots soon but you can already check your application page: permalink: http://android.touch-market.com/icommuteless-v1-0/ Thanks, The touch-market.com team On Sat, Sep 26, 2009 at 3:18 AM, sheik sheik...@gmail.com wrote: hi , great website to bring all the android devices under one roof (one can refer wikipedia .. but still ).Keep the gud work... our app is missing in your market can u please check it.. name : iCommuteLess category : Lifestyle. By: Uttara Infosolutions Website :http://www.commuteless.appspot.com/ for ur reference from androlib.. http://www.androlib.com/android.application.com-uttara-and-icommute_l... thanks regards Sheik ahmed On Aug 11, 1:23 am, Touch-Market touchmar...@gmail.com wrote: Hi All, New Section added to the website Themes It will list you all themes forAndroidskins, font, icons customization You can also search by tag = Themes Note: Themes are still visible on initial categories --- Visit us atwww.touch-market.com The website dedicated to YOU developers The sweet place for YOUAndroidusers -- Hi, Congratulation, your application(s) has (have) been successfully listed on www.touch-market.com Check below your Android Application(s) Link(s) on www.touch-market.com: http:// And more... Note: If you have some screenshots we will be more than glad to add them to your application(s) page(s). www.touch-market.com website will be open soon to developers - manage you apps - promote - interact share with others All this without Android Market limitations such as 350 max words for description and you can also include screenshots/videos/etc... -- Visit us at www.touch-market.com (Beta) A Website dedicated to YOU developers, A Place for ALL Android users. The touch-market team --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: launch activity like phone call
Hi, thanks for your fast response :D how about the questions number 1? i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launched by service. is there any way to make the screen on by programming? because when we receive call, the screen will on. so i think it is possible :D thank you On Sep 27, 3:50 pm, Dianne Hackborn hack...@android.com wrote: On Sun, Sep 27, 2009 at 1:47 AM, sleith raysle...@gmail.com wrote: 2. how to start a service right after downloaded and installed from android market? This is deliberately not supported. You can start the service when the user launches your app. -- 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: Inertial Sensor on HTC Hero
Does anyone work with sensors on Android have any go around to solve this problem? On Sep 25, 5:15 pm, LVMH lvmh...@gmail.com wrote: Hello, I am trying to develop an indoor inertial navigation system on the HTC hero with the built-in accelerometer and digital compass. As far as I know about hardware, the accelerometer chip is the Bosch Sensortec's 3-axis BMA150 and the digital compass is Asahi Kasei's AK8973 (similar to iPhone). I am not sure about the accuracy of each sensor but the digital compass seems to function fairly well in the iPhone. What I am doing is getting accelerometer samples and magnetic field samples at the SENSOR_DELAY_FASTEST (seems to me around 10 - 20 ms per sample) Then I creates a threshold of ±1 m/s^2 for every output of accelerometer to filter out which sample is gravity (9.807f). The same is applied for output from the digital compass (with threshold of ± 5 microtesla). I intended to use this filter to provide the correct gravity and geomagnetic field for the SensorManager.getRotationMatrix to work correctly (I am not sure if this method would actual provide better result). From the rotation matrix created above, I simply use getOrientation to get the heading (north) and convert the output from the accelerometer from the device coordination system to the Earth's coordination system by multiplying to the rotation matrix. ** My question ** The result I am getting is completely not usable. It seems that the heading is very inaccurate thus making the rotation matrix inaccurate. Even when I applied kalman filter, the result is still far from being usable. I wonder if anyone has approached this problem before and if there is some better way to do it. Thanks, lvmh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: launch activity like phone call
sleith wrote: i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launched by service. is there any way to make the screen on by programming? because when we receive call, the screen will on. so i think it is possible :D First, the warnings: 1. Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. 2. Doing things that wake up the phone are bad for battery life. See Jeff Sharkey's Coding for Life...Battery Life, That Is presentation from Google I/O 2009 for statistics. 3. Popping up user interfaces from a service are bad for the user experience. If the user is, say, in the middle of typing a text message, and your service-spawned activity steals the foreground, they may have quite a few profanities to fling in your direction. An incoming phone call is one of the few things users might tend to agree warrants such an intrusion...and I suspect there are still many a curse word used when users get interrupted, even for that. Hence, before you even bother with any code, you need to really make sure that this is what you want to do, and consider offering user preferences to disable this functionality. All that said, you will want to look at PowerManager.WakeLock to arrange to keep the screen and CPU on for a while. Which leads to: 4. Misusing WakeLocks are horrible for the battery. Do not leak an acquired WakeLock. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: launch activity like phone call
Hi, thanks Mark for your advice, that's a nice input from you :) On Sep 27, 5:26 pm, Mark Murphy mmur...@commonsware.com wrote: sleith wrote: i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launched by service. is there any way to make the screen on by programming? because when we receive call, the screen will on. so i think it is possible :D First, the warnings: 1. Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. 2. Doing things that wake up the phone are bad for battery life. See Jeff Sharkey's Coding for Life...Battery Life, That Is presentation from Google I/O 2009 for statistics. 3. Popping up user interfaces from a service are bad for the user experience. If the user is, say, in the middle of typing a text message, and your service-spawned activity steals the foreground, they may have quite a few profanities to fling in your direction. An incoming phone call is one of the few things users might tend to agree warrants such an intrusion...and I suspect there are still many a curse word used when users get interrupted, even for that. Hence, before you even bother with any code, you need to really make sure that this is what you want to do, and consider offering user preferences to disable this functionality. All that said, you will want to look at PowerManager.WakeLock to arrange to keep the screen and CPU on for a while. Which leads to: 4. Misusing WakeLocks are horrible for the battery. Do not leak an acquired WakeLock. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make an activity destory when user presses 'Back button?
finish(); On Sun, Sep 27, 2009 at 1:24 PM, Mark Murphy mmur...@commonsware.comwrote: hap 497 wrote: When I currently have my activity on the font of the screen, how can I make Android to 'destory' my activity when user clicks 'back' button? (i.e. onDestory of my Activity gets called)? It does that automatically. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Low volume of judges
As a lot of ppl (including me) skip many applications, I wonder what would be an implication for judging? e.g. there are 2 programs, one got scores of 5 5 and another of 5 5 5 1. Average for the first is 5, and for the second is 4. But second got a higher score from more ppl. Which would win in this case? I cannot find an answer in the rules, may be someone has a guess? Alexander On Sep 27, 5:34 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I have three apps in ADC2 and so far have seen a total of 63 users run them. There seems to be a very low number of judges participating in ADC2. I've seen no publicity at all, no mention in the tech press, no TV coverage, nothing to indicate this contest is running. I'm guessing that the majority of judges at this point are developers. Won't that skew the results? Is this supposed to be a developer or user contest? -John Coryat Radar Now! What Zip Code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?
This is with the 1.6 1.5 SDKs, not tried earlier ones. When you switch from portrait to landscape the onSaveInstanceState()/ onRestoreInstanceState() pair are called once, but when going back from landscape to portrait they are called twice, unless I've missed something. To test, see the log after creating a default Hello World app and change the main class like this: public class MainActivity extends Activity { private static final String TAG = activity; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MainView(this)); } @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); Log.d(TAG, onRestoreInstanceState()); } @Override protected void onSaveInstanceState(Bundle outState) { Log.d(TAG, onSaveInstanceState()); super.onSaveInstanceState(outState); } public class MainView extends LinearLayout { public MainView(Context context) { super(context); inflate(context, R.layout.main, this); } } } -- http://www.androidacademy.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: Now ADC2 judging has begun.
I'm missing a way to add a short comment to my review, because I had several applications to review that just crashed - so what to do about it? I tried to rate the Originality of Concept from the description, but couldn't tell anything about the rest (on T-Mobile G1). Is there any fair way to treat such cases? Cheers Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make an activity destory when user presses 'Back button?
If you are asking for testing purposes, there's a setting in the Dev Tools app on the emulator called Immediately destroy activities that might help: http://developer.android.com/intl/fr/guide/developing/debug-tasks.html That said, it seems to happen immediately on my 1.5 phone and emulator even without that. On Sep 27, 3:51 am, hap 497 hap...@gmail.com wrote: Hi, When I currently have my activity on the font of the screen, how can I make Android to 'destory' my activity when user clicks 'back' button? (i.e. onDestory of my Activity gets called)? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WikiNote -apps-for-android build error
Java Model Exception: Java Model Status [gen [in WikiNotes] does not exist] Hmmn, I can though generate an unsigned app and sign it manually. Other Android projects are able to do it via eclipse so why it fails is beyond me. Shawn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: You must supply a resource ID for a TextView
On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override # public void onCreate(Bundle icicle) { # super.onCreate(icicle); # # ListMapString,? security = new LinkedListMapString,? (); # security.add(createItem(Remember passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Clear passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Show security warnings, Show warning if there is a problem with a site's security)); # # // create our list and custom adapter # SeparatedListAdapter adapter = new SeparatedListAdapter (this); # adapter.addSection(Array test, new ArrayAdapterString (this, # R.layout.list_item, new String[] { First item, Item two })); # adapter.addSection(Security, new SimpleAdapter(this, security, R.layout.list_complex, # new String[] { ITEM_TITLE, ITEM_CAPTION }, new int[] { R.id.list_complex_title, R.id.list_complex_caption })); # # ListView list = new ListView(this); # list.setAdapter(adapter); # this.setContentView(list); # # } so every section is using a different layout file. So why doestn't this work with me? :( The specific crash you're seeing is caused by the wrong layout being used for a list item, that much is clear from the log. It's hard to say whether this is because you're using this SeparatedListAdapter wrong, or because there's a bug in it. With SeparatedListAdapter you're actually using multiple adapters (one for each section, and one for all the section-headers), which makes it a little harder to debug. You could start by adding lots of logging, so you can see what position it's trying to get a view for, what section and layout it thinks that position corresponds to and then check whether that layout actually has all the fields that that section's adapter needs. On thing that's a bit suspicious about the code you've posted so far is that you appear to be assigning values (data) to the various views in your getView(), which is not what you would normally do. Normally getView only returns a layout of the correct type, and the adapter itself then assigns the data from the array or Cursor to the various views in your layout. Hmm, i only use on view to assign values to (R.layout.cinema_row): public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; FilmDetail o = items.get(position); if (v == null) { LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.cinema_row, parent, false); } if (o != null) { TextView tt = (TextView) v.findViewById (R.id.text1); TextView genre = (TextView) v.findViewById (R.id.genre); TextView directors = (TextView) v.findViewById (R.id.regisse.. As you can see here.. So I don't think this is the problem.. Do you have an example of how i can use getView then in the way you are saying? If you agree I will give you my source code? Sorry, no. If you're OK with sharing your code, you should post it here (as minimal an example as possible) so that others can help and learn from it too. I have posted a lot of my activity so i hope someone else can help me too.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ACTION_GET_CONTENT and Gallery
thanks. On Sep 24, 9:04 pm, Justin (Google Employee) j...@google.com wrote: Take a look athttp://developer.android.com/reference/android/media/MediaScannerConn... Cheers, Justin Android Team @ Google On Sep 24, 6:55 am,Christinechristine.kar...@gmail.com wrote: My app takes a picture and stores it either on the flash card or in the MediaStore. When retreiving the gallery content with an ACTION_GET_CONTENT intent doesn't show the new picture in either case. However, after switching the phone off and on again, they do show up. How do I force the Gallery to show my new pic? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] EditText
Hi, What would be a good approach to modifying user input in the NotesList sample application. In the NoteEditor class, android.widget.EditText is used to let user's input their notes. Would subclassing android.widget.EditText or rewriting the NoteEditor class be a better approach so that I could take the user input (say cat), look it up in a Japanese dictionary, allow the user to select their approved definition and append it to cat : selected_japanese_translation, and then finally insert it into the note. Any help is greatly appreciated. I know how to do the lookup to get the Japanese, I'm just not clear on how to connect things. Would it make sense to put a listener on EditText view and from their launch a lookup intent which will finally call the NotesList intent again and set the text cat : selected_japanese_translation. Shawn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: A new way to promote and manage your Android Applications!
thanks fro ur response .. and adding to ur site .. regards sheik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] WebView onLoadComplete()?
I have a WebView that I've asked to load a page using webView.loadUrl (). How do I get a notification when the WebView has completed loading + rendering the requested page? The closest I've gotten is webView.getProgress(), but I'd like to be notified rather than having to poll for that value to reach 100. Regards //Johan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WebView onLoadComplete()?
Walles wrote: I have a WebView that I've asked to load a page using webView.loadUrl (). How do I get a notification when the WebView has completed loading + rendering the requested page? Step #1: Implement a custom subclass of WebViewClient, overriding onPageFinished() and putting in there your logic to be invoked when the page is ready: http://developer.android.com/reference/android/webkit/WebViewClient.html#onPageFinished(android.webkit.WebView,%20java.lang.String) Step #2: Attach an instance of that WebViewClient subclass to the WebView via setWebViewClient(): http://developer.android.com/reference/android/webkit/WebView.html#setWebViewClient(android.webkit.WebViewClient) Step #3: There is no Step #3 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Updating ADC2 entry in second round
Hi, is there a possbility to update ones ADC2 entry in case it gets into the second round? I e.g. found a stupid bug that I would like fixed if the app gets further into ADC2 second round. Thanks, Chris -- SomaView - Augmented reality for Android that just works! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Updating ADC2 entry in second round
no On Sun, Sep 27, 2009 at 9:04 AM, Chris chrismc...@hotmail.com wrote: Hi, is there a possbility to update ones ADC2 entry in case it gets into the second round? I e.g. found a stupid bug that I would like fixed if the app gets further into ADC2 second round. Thanks, Chris -- SomaView - Augmented reality for Android that just works! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Soft Keyboard
In my situation, where I've used a series of custom views that don't force the soft keyboard to display, I'm playing with the following to allow the user to bring it up. View.OnLongClickListener mLongClickListener = new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { Configuration config = MyView.this.getResources().getConfiguration (); if (config.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES) { InputMethodManager imm = (InputMethodManager) MyView.this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(MyView.this, InputMethodManager.SHOW_IMPLICIT); //.SHOW_FORCED); } return false; } }; So, given that the Hero isn't functioning properly with the long-press menu (maybe other devices as well?), this seems like the least intrusive means of giving the user access to the soft keyboard (long- press on the component). Again, its not intuitively obvious, but it doesn't take up additional real estate on the screen nor does it take up a menu position - both very finite resources. I'll try to use some of the 325 characters available to describe the app to mention this feature. I didn't want to show the soft keyboard if the physical keyboard wasn't hidden, hence the HARDKEYBOARDHIDDEN_YES test. At least in the emulator, this seems to be the case - where the emulator is set up without a physical keyboard. I tried to use the keyboardHidden attribute first as it seems like it was supposed to take into account both the hard and soft keyboard, but it just didn't change in the emulator and was always set to KEYBOARDHIDDEN_NO, so perhaps I am not sure how that one is supposed to work. I'm not sure how this potential solution might translate to those struggling with list views, but maybe... and I'm still testing Also, I'm not entirely sure whether to use SHOW_IMPLICIT or SHOW_FORCED as both seem to work in the emulators. The SHOW_IMPLICIT closes the soft keyboard when my app exits, assuming it brought it up to begin with. However, the SHOW_FORCED works even when the device has a physical keyboard (hidden). I know the getResources() will tell me if a keyboard is QWERTY or 12Key, but I don't know how to tell if a physical keyboard exists - in which case I could choose the forced method there and the implicit method for soft keyboard. After all, EditText will show the soft keyboard on a device with a hidden physical keyboard - so that seems like a GUI standard I should emulate. Still thinking about this one. Unfortunately, I have to abandon any users still on the Android 1.1 build, but I suppose that's just the way it is. Best Regards, Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Closing one activity from another
can anyone help? On Sep 23, 10:09 pm, Boozel boozelcl...@gmail.com wrote: Hi Is there anyway to close one activity from another? I want to go through a whole bunch of activities once i get to the last one close all the previous ones. i cant close them as i move on to the next one because i want to be able to go back unless ive got to the last one. Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] get checked items form list
can someone tell me what code i'd use to get what checkboxes are checked when i press the ok button for the code below. Any help would be great. Thanks. inal CharSequence[] tags = {first, 2nd, third}; boolean[] f=new boolean[tags.length]; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(Filter); builder.setMultiChoiceItems(tags, f, null); builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { //??? } }); builder.create(); builder.show(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: You must supply a resource ID for a TextView
On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override # public void onCreate(Bundle icicle) { # super.onCreate(icicle); # # ListMapString,? security = new LinkedListMapString,? (); # security.add(createItem(Remember passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Clear passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Show security warnings, Show warning if there is a problem with a site's security)); # # // create our list and custom adapter # SeparatedListAdapter adapter = new SeparatedListAdapter (this); # adapter.addSection(Array test, new ArrayAdapterString (this, # R.layout.list_item, new String[] { First item, Item two })); # adapter.addSection(Security, new SimpleAdapter(this, security, R.layout.list_complex, # new String[] { ITEM_TITLE, ITEM_CAPTION }, new int[] { R.id.list_complex_title, R.id.list_complex_caption })); # # ListView list = new ListView(this); # list.setAdapter(adapter); # this.setContentView(list); # # } so every section is using a different layout file. So why doestn't this work with me? :( The specific crash you're seeing is caused by the wrong layout being used for a list item, that much is clear from the log. It's hard to say whether this is because you're using this SeparatedListAdapter wrong, or because there's a bug in it. With SeparatedListAdapter you're actually using multiple adapters (one for each section, and one for all the section-headers), which makes it a little harder to debug. You could start by adding lots of logging, so you can see what position it's trying to get a view for, what section and layout it thinks that position corresponds to and then check whether that layout actually has all the fields that that section's adapter needs. On thing that's a bit suspicious about the code you've posted so far is that you appear to be assigning values (data) to the various views in your getView(), which is not what you would normally do. Normally getView only returns a layout of the correct type, and the adapter itself then assigns the data from the array or Cursor to the various views in your layout. Hmm, i only use on view to assign values to (R.layout.cinema_row): You are also assigning values to a lot of the child views of that layout (all of those calls to setText). On second thought I don't think that is actually the problem though. Given where it crashed, the problem is with the adapter you specified for the section headers, which if I understand correctly is not cinemaAdapter, but some other adapter (possibly a plain ArrayAdapter) that displays dates. If you post the code for that (how do you create it), we can probably sort this out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] GPSUpload .kml files doesn't work !!!!
Hi , I do have a problem which prevents me from many applications,,when I upload a .kml into the debugger and press the button load kml nothing changes and it ignores me ..however it workd\s fine when i upload the Long. the Lat. manually.. please anybody Help. Thanks in Advance appreciate your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: get checked items form list
Boozel wrote: can someone tell me what code i'd use to get what checkboxes are checked when i press the ok button for the code below. Any help would be great. Thanks. inal CharSequence[] tags = {first, 2nd, third}; boolean[] f=new boolean[tags.length]; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(Filter); builder.setMultiChoiceItems(tags, f, null); builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { //??? } }); builder.create(); builder.show(); Try: ((AlertDialog)dialog).getListView().getCheckedItemPositions() -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Widgets and custom components?
Are widgets currently not supporting any type of custom components? I've tried creating a very simple custom TextView component and it does not work when displaying the widget... Also, can we use the animation classes in widgets? Thanks, -Moto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: get checked items form list
the complier underlines the getListView() section and gives the error the method getListView() is undefined for the type AlertDialog On Sep 27, 8:26 pm, Mark Murphy mmur...@commonsware.com wrote: Boozel wrote: can someone tell me what code i'd use to get what checkboxes are checked when i press the ok button for the code below. Any help would be great. Thanks. inal CharSequence[] tags = {first, 2nd, third}; boolean[] f=new boolean[tags.length]; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(Filter); builder.setMultiChoiceItems(tags, f, null); builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { //??? } }); builder.create(); builder.show(); Try: ((AlertDialog)dialog).getListView().getCheckedItemPositions() -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Closing one activity from another
only way I know how to close an activity is pressing the back button on the phone or calling finish() from the activity. I guess you could try to make some kind of public static function in the activity that calls finish? But you may just want to rethink opening so many activities in the first place, or call finish from the current activity whenever its prompted to open a new one. On Sep 27, 1:11 pm, Boozel boozelcl...@gmail.com wrote: can anyone help? On Sep 23, 10:09 pm, Boozel boozelcl...@gmail.com wrote: Hi Is there anyway to close one activity from another? I want to go through a whole bunch of activities once i get to the last one close all the previous ones. i cant close them as i move on to the next one because i want to be able to go back unless ive got to the last one. Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: get checked items form list
Boozel wrote: the complier underlines the getListView() section and gives the error the method getListView() is undefined for the type AlertDialog http://d.android.com/reference/android/app/AlertDialog.html#getListView() That method has been around since Android 1.5. If you are targeting an earlier SDK version, that might explain the problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Widgets and custom components?
Moto wrote: Are widgets currently not supporting any type of custom components? I've tried creating a very simple custom TextView component and it does not work when displaying the widget. By widget, do you mean app widgets (things that go on the home screen)? If so, then no, app widgets only support the classes offered by RemoteViews. Also, can we use the animation classes in widgets? Again, if you are referring to app widgets, then I do not believe RemoteViews supports animations. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: get checked items form list
I am using 1.5. i'm not sure why it isnt working. this is my code: final CharSequence[] tags = {first, 2nd, third}; boolean[] f=new boolean[tags.length]; final AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(Filter); builder.setMultiChoiceItems(tags, f, null); builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { ((AlertDialog)dialog).getListView().getCheckedItemPositions() ; Log.i(EasyChef, filter checked ); } }); builder.create(); builder.show(); On Sep 27, 8:51 pm, Mark Murphy mmur...@commonsware.com wrote: Boozel wrote: the complier underlines the getListView() section and gives the error the method getListView() is undefined for the type AlertDialog http://d.android.com/reference/android/app/AlertDialog.html#getListView() That method has been around since Android 1.5. If you are targeting an earlier SDK version, that might explain the problem. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: customized radiobutton
I think there are two options: - use android:button to override the radio button with your image - set android:button to @null and then the radio button will go away and you'll be able to see your image. Regards, elliot On Sep 25, 4:02 pm, jonathan topcod...@gmail.com wrote: I tries to modify the look of radiobutton: style name=MyRadioButton parent=android:Widget.CompoundButton.RadioButton item name=android:textColor#FF/item item name=android:background@drawable/btn_radio/item /style android:background doesn't seem to be the right property, the radio button image gets stretched and placed in the background of the radio button itself and its label. thanks for any pointers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] I can't see anything on the webview control
First, I'd like to let you know that i can use internet on the android emulator So, I just used webview control to see the internet. But There was a white background and I can't see anything. You might ask me about setting manifest .. well, i already make it setup uses-permission android:name=android.permission.INTERNET/uses- permission So i checked LogCat ... I saw errors like below : 09-26 04:45:27.458: DEBUG/InetAddress(754): tools.google.com: 74.125.153.102 (family 2, proto 6) 09-26 04:48:36.487: ERROR/Gears-J(754): Connection IO exception 09-26 04:48:36.487: ERROR/Gears-J(754): java.net.SocketException: The operation timed out . ... Please i hope your help please please thankshave a nice day --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] App Android Compiler... to android
hey guys you know a compiler to android to use in android? like a one app? Example i create a hadouken.java in googlenotes download to my sd card (in my smartphone) and runs a app compiler(on my smarthphone) and generate my bytecode to dalvik and... BINGO xD i create my app for android on android ( xD remember tiger on tiger? xD) sorry my horrible english xD -- Marcelo Machado Gunstorm __ {o,o} |)__) --- …†MasterManson†… --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADP 1 - Planning to buy ... but ... Voice Recognition , Does it work How ?
Android has a speech recognizer ( SREC ). You can find documentation for this application in google. www.netmite.com/android/mydroid/.../srec/doc/UAPI_Design.pdf Luis http://www.asrlabs.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] Problem with WebView, ContentProvider and ParcelFileDescriptor.fromSocket
Hello, Until yesterday I had a fully working application, but now, with the new 1.6 SDK release I have big problems - nothing works. What I have is: WebView, which opens url like content:// com.myself.myprovider/myhtmlfile.html From the other side - ContentProvider implementation, which overrides openFile(Uri uri, String mode) and uses ParcelFileDescriptor.fromSocket to return ParcelFileDescriptor. The Socket instance which I give to ParcelFileDescriptor.fromSocket opens connection to a ServerSocket, which is implemented and runs in a different thread. Looks a little complicated, but the actual html file is generated in another thread after some undefined time and that is why I don't use ParcelFileDescriptor.open with normal file. As I said - everything works perfect with the earlier Android SDK's. With 1.6 I got error -14 from the WebView via WebViewClient's onReceivedError. It seems that it asks for the ParcelFileDescriptor, but right after it receives it, it raises the error. Also - the WebView works fine if the ContentProvider returns a ParselFileDescriptor, obtained from a file using ParcelFileDescriptor.open. Does anyone knows what is the actual difference in 1.6 SDK which makes my problems regarding WebView, ContentProvider and ParcelFileDescriptor.fromSocket classes and APIs? Any help will be useful, I am out of ideas and the time at the moment is not enough to dig in the Android source ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Extending a view class
I changed the xml in the following: view android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView android:layout_width=wrap_content android:layout_height=wrap_content/ This makes the app crash. Changing it into View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView android:layout_width=wrap_content android:layout_height=wrap_content/ Makes the app run but no view on screen :-( Jasper On Sep 24, 10:21 pm, Lance Nanek lna...@gmail.com wrote: Theviewelement name in your XML needs to be entirely lower case, not capitalized. Should be view, not View. Capitalized gives you an android.view.Viewinstance, not your subclass. On an unrelated note, I'm actually surprised what you posted isn't crashing on the lack of android:layout_width and android:layout_height attributes first. On Sep 24, 10:34 am, jdekeij jasper.dekeij...@gmail.com wrote: Hoi I try to create my customviewinside a linearlayout. For example View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView/ In the java source I created a DrawingViewclasswhich extendsView. Unfortunatly it does not get instantiated. I tried to overwrite the ondraw() but without success :-( Help is very much appreciated. Jasper Java Code public staticclassDrawingView extendsView { private final Paint mPaint; /* * Constructor that is called when inflating aviewfrom XML. */ DrawingView(Context context, AttributeSet attrs){ super(context,attrs); mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setARGB(255, 255, 255, 255); } @Override protected void onDraw(Canvas canvas) { float yPos; float xPos; int xOffset = 20; int yOffset = 50; int cxScreen = canvas.getWidth(); int cyScreen = canvas.getHeight(); int cx = cxScreen - (2*xOffset); int cy = cyScreen - (2*yOffset); int cxStepSize = cx/10 - 1; int cyStepSize = cy/10 - 1; // Makes the complete screen white! //canvas.drawColor(0x); yPos = (float)yOffset; xPos = (float)xOffset; for (int i=0; i = 10; i++) { // xstart, ystrt,xend,yend canvas.drawLine((float)xOffset, yPos, (float)cx, (float) yPos, mPaint); yPos += cyStepSize; } for (int i=0; i = 10; i++) { // xstart, ystrt,xend,yend canvas.drawLine((float)xPos, (float)yOffset, (float)xPos, (float)cy, mPaint); xPos += cxStepSize; } } } XML: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:padding=10dip android:layout_width=fill_parent android:layout_height=wrap_content TextView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip android:text=Please select a planet: / Spinner android:id=@+id/spinner android:layout_width=fill_parent android:layout_height=wrap_content android:drawSelectorOnTop=true android:prompt=@string/planet_prompt / TextView android:id=@+id/dateDisplay android:layout_width=wrap_content android:layout_height=wrap_content android:text=No date yet/ Button android:id=@+id/pickDate android:layout_width=wrap_content android:layout_height=wrap_content android:text=Change the date/ TextView android:id=@+id/timeDisplay android:layout_width=wrap_content android:layout_height=wrap_content android:text=No time yet/ Button android:id=@+id/pickTime android:layout_width=wrap_content android:layout_height=wrap_content android:text=Verander the time/ View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView/ /LinearLayout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Low volume of judges
It think too many chose not to participate because of *CD Cyanogen*. ADC2 app is now 3.5 stars, other Google apps are getting 1-star ratings as well. I think it was bad move from Google although they have the right to do it. Even Apple chose not to poke with the dev-team. On Sat, Sep 26, 2009 at 1:00 PM, tauntz tau...@gmail.com wrote: Sorry about TV ads - don't know where I got the idea :) readingComprehension--; On Sat, Sep 26, 2009 at 7:55 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: 1) This belongs to android-discuss, it has nothing to do with developing apps using the public SDK Maybe. There are enough conversations regarding ADC2 on this forum to make it relevant. If Google would open an ADC2 forum, that would be a better place. 2) TV adds? Are you kidding us or you really want to have TV ads in all countries where Android phones are sold? :) Where in my post did I mention TV ads? TV coverage is about media exposure. You may have heard of CBS, CNN, CNBC and the other networks. They put enough time into covering lottery jackpots, spelling bees, pie eating and other events, why not this contest? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] equivalent of handleOpenUrl
Can anybody point me in the right direction wrt how to open my app from a url? Basically I want to define a url schema on the phone, like myapp:// that will open my application. Similar to the way iPhone uses handleOpenUrl. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Scale font/typeface to fit
I have a box of known size and want to fill it with text (actually just one character. What's the proper code? I found this code for Swing, but haven't figured out the Android equivalent: http://www.java-forums.org/awt-swing/19053-draw-string-rectangle.html Joel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] i can run app from home menu icon,but i donot form eclipse
hello ,all my app run from eclipse appearthe application Tag (process com.android.dodo) has stopped unexpectedly,please try again,but i can run this app from icon in the home menu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android on Samsung touch phone
Hi All, Is it possible to install Android O/S on Samsung S800 phone? Thanks in advance for your comments Regards, Vin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Webview control is not worked!!!!!
Hi!! I'm a beginner of android sdk on the window platform(XP). So I tested few controls. One of them was webview Control. It was not worked. I followed the android tutorial. but i couldn't see anything on the android emulator during a pretty long time. after 5~7minutes, I could see the error like below: web page not available So, i thought it's very strange thing and i saw the LogCat. The contents were like below: 09-27 02:14:15.235: DEBUG/dalvikvm(740): GC freed 1875 objects / 120776 bytes in 85ms 09-27 02:14:18.495: DEBUG/AndroidRuntime(758): AndroidRuntime START 09-27 02:14:18.504: DEBUG/AndroidRuntime(758): CheckJNI is ON 09-27 02:14:18.725: DEBUG/AndroidRuntime(758): --- registering native functions --- 09-27 02:14:18.735: INFO/jdwp(758): received file descriptor 20 from ADB 09-27 02:14:19.405: INFO/ActivityManager(578): Starting activity: Intent { flags=0x1000 comp={com.wvh/com.wvh.wvh} } 09-27 02:14:19.505: DEBUG/AndroidRuntime(758): Shutting down VM 09-27 02:14:19.505: DEBUG/dalvikvm(758): DestroyJavaVM waiting for non- daemon threads to exit 09-27 02:14:19.525: DEBUG/dalvikvm(758): DestroyJavaVM shutting VM down 09-27 02:14:19.525: DEBUG/dalvikvm(758): HeapWorker thread shutting down 09-27 02:14:19.534: DEBUG/dalvikvm(758): HeapWorker thread has shut down 09-27 02:14:19.534: DEBUG/jdwp(758): JDWP shutting down net... 09-27 02:14:19.565: DEBUG/jdwp(758): +++ peer disconnected 09-27 02:14:19.565: INFO/dalvikvm(758): Debugger has detached; object registry had 1 entries 09-27 02:14:19.604: DEBUG/dalvikvm(758): VM cleaning up 09-27 02:14:19.696: DEBUG/dalvikvm(758): LinearAlloc 0x0 used 639228 of 4194304 (15%) 09-27 02:14:19.975: INFO/ActivityManager(578): Displayed activity com.wvh/.wvh: 565 ms 09-27 02:14:20.034: DEBUG/InetAddress(740): www.google.com: 74.125.153.104 (family 2, proto 6) 09-27 02:14:20.055: DEBUG/InetAddress(740): www.google.com: 74.125.153.105 (family 2, proto 6) 09-27 02:14:20.055: DEBUG/InetAddress(740): www.google.com: 74.125.153.147 (family 2, proto 6) 09-27 02:14:20.064: DEBUG/InetAddress(740): www.google.com: 74.125.153.106 (family 2, proto 6) 09-27 02:14:20.064: DEBUG/InetAddress(740): www.google.com: 74.125.153.99 (family 2, proto 6) 09-27 02:14:20.064: DEBUG/InetAddress(740): www.google.com: 74.125.153.103 (family 2, proto 6) 09-27 02:14:25.194: DEBUG/dalvikvm(624): GC freed 1810 objects / 95952 bytes in 80ms Many people might question about manifest on the project. I already add the code for working internet. uses-permission android:name=android.permission.INTERNET/uses- permission If fact, when the above code is no on the code, I saw web page not available But after add it, i couldn't see the error and i saw only white background please I hope your hand. Have a nice day... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Andriod and Arabic language
Dear All, do you know any person/ company (within the middle east) who are currently working in ARABIZING the android? please advise if you know, and here I am talking about a real arabization, not the available emulation? Is Google willing to do it by itself, or it will leave this to developers? In all cases, I would like to thank you for passing by ;-) HG. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] EditText`s hint disappeared when Input Type is set.
Recently I`ve faced the following problem: I use EditText widget on my Log in screen. I use EditText`s hint property to label that field . But when I set Input type property, for example, to typePassword (for password fields), the actual hint is disappearing from EditText. In Eclipse`s UI editor everithing is ok, this bug appears only when I start emulator. I use sdk 1.5 on Mac. Have somebody faced the same issue? Can you reproduce the behavior on your systems? What am I doing wrong? Thank you in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ADC2: Low volume of judges
I think they won't end first round until they collect enough reviews for all applications. In your scenario, the first program should appear more frequently until it gets enough reviews. On Sun, Sep 27, 2009 at 6:37 AM, Izard izard...@gmail.com wrote: As a lot of ppl (including me) skip many applications, I wonder what would be an implication for judging? e.g. there are 2 programs, one got scores of 5 5 and another of 5 5 5 1. Average for the first is 5, and for the second is 4. But second got a higher score from more ppl. Which would win in this case? I cannot find an answer in the rules, may be someone has a guess? Alexander On Sep 27, 5:34 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I have three apps in ADC2 and so far have seen a total of 63 users run them. There seems to be a very low number of judges participating in ADC2. I've seen no publicity at all, no mention in the tech press, no TV coverage, nothing to indicate this contest is running. I'm guessing that the majority of judges at this point are developers. Won't that skew the results? Is this supposed to be a developer or user contest? -John Coryat Radar Now! What Zip Code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How does Gallery's Send Intent Work?
I'm trying to setup an intent that allows users to share an Jpeg, stored in the applications file cache. Trying this: Intent i = new Intent( Intent.ACTION_SEND ); i.putExtra( Intent.EXTRA_STREAM, uri ); i.setType( image/jpeg ); startActivity( Intent.createChooser( i, Where to share? ) ); It works for the eMail application, but not for any other app (like Facebook or Twitdroid). Gallery supports them. Does anyone know, how exactly Gallery does it? Thanks for any help! Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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...
There's one more app in category productivity/tools - ZoomRoid - http://www.zoomdroid.net useful for filling your forms on your computer using your phone (forget typing complex passwords, long URLs, etc. - just zoom the string using your phone). On Sep 13, 10:12 am, 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 105ADC2entries 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 isADC2will 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 IIhttp://steveoliverc.squarespace.com/ Math Jungle Mystic Maggiehttp://www.phdgaming.com/general_media/mm/ Vivify picture: mathhttp://vivifypicture.com/ Entertainment Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/ Taps Of Firehttp://code.google.com/p/tapsoffire Games: Arcade/Action CowPotato 3Dhttp://www.froogloid.com/cowpotato FRGhttp://www.woogames.com/ Galactic Guardian: Zap GPShttp://sites.google.com/site/mysticlakesoftware/ Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn Head To Head Racinghttp://headtoheadracing.appspot.com/ Light Racer 3D Trial ProjectINFhttp://www.chickenbrickstudios.com/ UrbanGolf X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY Zepto Wars - RTS Games: Casual/Puzzle Furdiburbhttp://www.sheado.net/ Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/ ongPayhttp://www.yakloingames.com/ Relativiahttp://www.polyclefsoftware.com/relativia.html Splat!: Bugs IIhttp://dkdroid.com What the Doodle!? Lifestyle Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app Bottle Buzz DoIthttp://curvefish.com/apps/doit.htm FoxyRing http://www.levelupstudio.fr/foxyring Gigboxhttp://www.mygigbox.com/ NetDroid NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k ReaderScopehttp://www.altcanvas.com/android/readerscope Rhythmatics Alphahttp://www.twitter.com/brownbaggames SpecTrek Media Gallery Map geoPastehttp://www.geopaste.com/ Mediafly Mobile Audio Podcast Client MicroJam MicroJam MyPODhttp://www.my-pod.org/ PackRathttp://packrat.unwesen.de/ Time-Lapsehttp://www.sheado.net/ Uloopshttp://www.uloops.net/ Misc Local Agentshttp://local-agents.appspot.com/ picjiggles litehttp://www.yakloingames.com/ Productivity/Tools Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08 aListhttp://androidalist.blogspot.com AppManagerhttp://curvefish.com/apps/appmanager.htm GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert Hoccerhttp://www.hoccer.com/ MobileWrite Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229 MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ OpenLoopzhttp://sites.iode.co.uk/openloopz/ Personalyticshttp://personalytics.net/ Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA Talking Calendarhttp://www.pwnwithyourphone.com/ Taskerhttp://tasker.dinglisch.net/ Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png Tracklethttp://tracklet.appspot.com txeethttp://txeet.com Voice Caller IDhttp://www.pwnwithyourphone.com/ WebReaderhttp://webreader.vamsee.in/ What Zip?http://www.usnaviguide.com/zip.htm Xeeku Search Social Networking A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/ Cartoon Ganghttp://www.cartoongang.net/ ClapCard SocialMusehttp://www.mixzing.com/ Swift Twitter Apphttp://www.swift-app.com/ TweetsAloudhttp://www.pwnwithyourphone.com/ Travel AugSatNavhttp://www.phyora.com/ BabelSnaphttp://babelsnap.com/ Location
[android-developers] trouble with programmatically adding mock location data
I am working on an application that requires an approximate position of the user, so basically i am fine with any relatively recent location data i can get. However I can't seem to get things right using mock location data and would therefore appreciate your help. The method i'm having tries to set mock location data for the gps provider and tries to later retrievie it BUT: locationManager.setTestProviderEnabled(gps, true); seems to fail because i do not get any active location provider from the location manager. When I tried using a mock location provider with addTestProvider and give it my mock location, the LocationManager returns me this mock provider with getProviders(true) but then getLastKnownLocation returns null instead of the provided mock location. Here is my code (see comments as well): private GeoPoint getUserLocation() { LocationManager locationManager = (LocationManager)getSystemService (Context.LOCATION_SERVICE); if (!PRODUCTION_ENVIRONMENT){ //Get some mock location data in the game Location location = new Location(gps); location.setLatitude(32.64480); location.setLongitude(-16.90967); location.setTime(new Date().getTime()); locationManager.setTestProviderLocation(gps, location); locationManager.setTestProviderEnabled(gps, true); //retrieve the list of active providers for debugging purposes, the activated mock gps provider is not returned here ListString locationProviders = locationManager.getProviders (true); locationManager.setTestProviderEnabled(network, true); } //i just want an approximate location so no high expectations here Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_COARSE); criteria.setPowerRequirement(Criteria.NO_REQUIREMENT); //this correctly retrieves a mock location provider but not the mock enabled gps String provider = locationManager.getBestProvider(criteria,true); if (provider != null) { //this is where the mock provider returns null Location location = locationManager.getLastKnownLocation(provider); return new GeoPoint((int)(location.getLatitude()*E6_LATLONG), (int) (location.getLongitude()*E6_LATLONG)); }else return null; } } Thanks for any hints or requests for clarification! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Crossword Puzzle in Android
Hi All, Can anyone give me a brief idea on developing a simple crossword puzzle game with android? I need some guideline in things like: 1. drawing out the boxes 2. how do I draw a boxes with number label on their top right/left corner 3. how to catch a button click action whenever the user click any box on the screen, then i will pop up an input box and ask for input Regards Kwan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Sending Email
I've created so-far fully working version of javamail based on the source code available in the glassfish repository and some awt class from harmony. I'm not sure of what i can do with the license of what i have used to make it work but i've put all of this in a google code project : http://code.google.com/p/javamail-android/ full source code and binaries are available. I've used a lot IMAP browsing, Mime Message parsing, so-far i've fixed all the bugs i've encountered. Feel free to report issue or to give me tips on i can distribute this (freely of course) On 8 sep, 21:24, Mark Murphy mmur...@commonsware.com wrote: Jason Proctor wrote: Only if you include your own SMTP code. ACTION_SEND will always prompt the user, at least if they choose one of the built-in apps. did we ever get to the bottom of whyJavaMaildoesn't work on Android? some Dalvik translation problem IIRC I haven't played withJavaMailin nearly a year. I ran into that Dalvik issue, read up on the CDDL (JavaMail'slicense), and my head started to hurt. :-( What's worse, there's little else in the way of Java SMTP client libraries, AFAICT. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ 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] Re: Andriod and Arabic language
Hesham Gharib wrote: Dear All, do you know any person/ company (within the middle east) who are currently working in ARABIZING the android? please advise if you know, and here I am talking about a real arabization, not the available emulation? Is Google willing to do it by itself, or it will leave this to developers? In all cases, I would like to thank you for passing by ;-) There has been some discussion of this over on the [android-platform] Google Group: http://groups.google.com/group/android-platform -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: You must supply a resource ID for a TextView
Ok i will try to explain how i generate my headers with the seperatedlistadapter.. private SeparatedListAdapter adapter; in my setupViews functions: this.adapter = new SeparatedListAdapter(this); setListAdapter(adapter); And then to retrieve my data: @SuppressWarnings(unchecked) public void retrieveCinema() { try { HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveCinema, sessionKey); Comparator reverse = Collections.reverseOrder(); TreeMapString, Object result = new TreeMapString, Object (reverse); TreeMapString, Object sortedMap = new TreeMapString, Object (response); result.putAll(sortedMap); Iterator it = result.entrySet().iterator(); while (it.hasNext()) { cinema = new ArrayListFilmDetail(); Map.Entry pairs = (Map.Entry)it.next(); Object[] cinemaFilms = (Object[])pairs.getValue(); FilmDetail cinemaMovie = new FilmDetail(); for (int i=0; icinemaFilms.length; i++) { cinemaMovie = new FilmDetail(); Map m = (Map) cinemaFilms[i]; cinemaMovie.setTitle(m.get(title).toString()); cinemaMovie.setYear(m.get(year).toString()); cinemaMovie.setVotes_count(m.get(votes_count).toString()); cinemaMovie.setActors_text(m.get(actors_text).toString()); cinemaMovie.setDirectors_text(m.get (directors_text).toString()); cinemaMovie.setGenres_text(m.get(genres_text).toString()); cinemaMovie.setAverage(m.get(average).toString()); cinemaMovie.setFilmId(m.get(filmId).toString()); cinemaMovie.setDuration(m.get(duration).toString()); cinema.add(cinemaMovie); } String datum = pairs.getKey().toString(); SimpleDateFormat formatter = new SimpleDateFormat(EE d MM); formatter.applyLocalizedPattern(EE d MM); int year= Integer.valueOf(datum.substring(0,4)); int month = Integer.valueOf(datum.substring(5,7)); int day = Integer.valueOf(datum.substring(8,10)); java.util.Date date = new java.util.Date(year, month, day); String parsed = formatter.format(date); System.out.println(parsed); adapter.addSection(parsed, new cinemaAdapter(this, cinema)); } } catch (XMLRPCException e) { e.printStackTrace(); } runOnUiThread(returnRes); } And for every date in my response i do this adapter.addSection(parsed, new cinemaAdapter(this, cinema)); and parsed is the parsed text from date (example 31 october)) And this is how i generate it! It there an error somewhere? On 27 sep, 20:23, Marco Nelissen marc...@android.com wrote: On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override # public void onCreate(Bundle icicle) { # super.onCreate(icicle); # # ListMapString,? security = new LinkedListMapString,? (); # security.add(createItem(Remember passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Clear passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Show security warnings, Show warning if there is a problem with a site's security)); # # // create our list and custom adapter # SeparatedListAdapter adapter = new SeparatedListAdapter (this); # adapter.addSection(Array test, new ArrayAdapterString (this, # R.layout.list_item, new String[] { First item, Item two })); # adapter.addSection(Security, new SimpleAdapter(this, security, R.layout.list_complex, # new String[] { ITEM_TITLE, ITEM_CAPTION }, new int[] { R.id.list_complex_title, R.id.list_complex_caption })); # # ListView list = new ListView(this); # list.setAdapter(adapter); # this.setContentView(list); # # } so every section is using a different layout file. So why doestn't this work with me? :( The specific crash you're seeing is caused by the wrong layout
[android-developers] Re: ADC2 entries so far...
My ADC2 entrie for category Travel: myBuddy Travel Planner check http://slideme.org/application/mybuddy-travel-planner for more information or in the Android Market! On Sep 27, 4:29 pm, prem premkumarjonn...@gmail.com wrote: There's one more app in category productivity/tools - ZoomRoid -http://www.zoomdroid.net useful for filling your forms on your computer using your phone (forget typing complex passwords, long URLs, etc. - just zoom the string using your phone). On Sep 13, 10:12 am, 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 105ADC2entries 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 isADC2will 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 IIhttp://steveoliverc.squarespace.com/ Math Jungle Mystic Maggiehttp://www.phdgaming.com/general_media/mm/ Vivify picture: mathhttp://vivifypicture.com/ Entertainment Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/ Taps Of Firehttp://code.google.com/p/tapsoffire Games: Arcade/Action CowPotato 3Dhttp://www.froogloid.com/cowpotato FRGhttp://www.woogames.com/ Galactic Guardian: Zap GPShttp://sites.google.com/site/mysticlakesoftware/ Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn Head To Head Racinghttp://headtoheadracing.appspot.com/ Light Racer 3D Trial ProjectINFhttp://www.chickenbrickstudios.com/ UrbanGolf X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY Zepto Wars - RTS Games: Casual/Puzzle Furdiburbhttp://www.sheado.net/ Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/ ongPayhttp://www.yakloingames.com/ Relativiahttp://www.polyclefsoftware.com/relativia.html Splat!: Bugs IIhttp://dkdroid.com What the Doodle!? Lifestyle Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app Bottle Buzz DoIthttp://curvefish.com/apps/doit.htm FoxyRing http://www.levelupstudio.fr/foxyring Gigboxhttp://www.mygigbox.com/ NetDroid NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k ReaderScopehttp://www.altcanvas.com/android/readerscope Rhythmatics Alphahttp://www.twitter.com/brownbaggames SpecTrek Media Gallery Map geoPastehttp://www.geopaste.com/ Mediafly Mobile Audio Podcast Client MicroJam MicroJam MyPODhttp://www.my-pod.org/ PackRathttp://packrat.unwesen.de/ Time-Lapsehttp://www.sheado.net/ Uloopshttp://www.uloops.net/ Misc Local Agentshttp://local-agents.appspot.com/ picjiggles litehttp://www.yakloingames.com/ Productivity/Tools Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08 aListhttp://androidalist.blogspot.com AppManagerhttp://curvefish.com/apps/appmanager.htm GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert Hoccerhttp://www.hoccer.com/ MobileWrite Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229 MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ OpenLoopzhttp://sites.iode.co.uk/openloopz/ Personalyticshttp://personalytics.net/ Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA Talking Calendarhttp://www.pwnwithyourphone.com/ Taskerhttp://tasker.dinglisch.net/ Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png Tracklethttp://tracklet.appspot.com txeethttp://txeet.com Voice Caller IDhttp://www.pwnwithyourphone.com/ WebReaderhttp://webreader.vamsee.in/ What Zip?http://www.usnaviguide.com/zip.htm Xeeku Search Social Networking A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/
[android-developers] Re: You must supply a resource ID for a TextView
I don't see anything obviously wrong with your code. I do notice that you apparently create the SeparatedListAdapter and then immediately call setListAdapter with it, whereas the SeparatedListAdapter sample code creates the adapter, then adds a bunch of sections to it, and then calls setListAdapter at the end. Could it be that SeparatedListAdapter doesn't work when it is empty? Have you tried postponing your call to setListAdapter until after you've added all the sections? On Sun, Sep 27, 2009 at 12:32 PM, Wouter wouterg...@gmail.com wrote: Ok i will try to explain how i generate my headers with the seperatedlistadapter.. private SeparatedListAdapter adapter; in my setupViews functions: this.adapter = new SeparatedListAdapter(this); setListAdapter(adapter); And then to retrieve my data: �...@suppresswarnings(unchecked) public void retrieveCinema() { try { HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveCinema, sessionKey); Comparator reverse = Collections.reverseOrder(); TreeMapString, Object result = new TreeMapString, Object (reverse); TreeMapString, Object sortedMap = new TreeMapString, Object (response); result.putAll(sortedMap); Iterator it = result.entrySet().iterator(); while (it.hasNext()) { cinema = new ArrayListFilmDetail(); Map.Entry pairs = (Map.Entry)it.next(); Object[] cinemaFilms = (Object[])pairs.getValue(); FilmDetail cinemaMovie = new FilmDetail(); for (int i=0; icinemaFilms.length; i++) { cinemaMovie = new FilmDetail(); Map m = (Map) cinemaFilms[i]; cinemaMovie.setTitle(m.get(title).toString()); cinemaMovie.setYear(m.get(year).toString()); cinemaMovie.setVotes_count(m.get(votes_count).toString()); cinemaMovie.setActors_text(m.get(actors_text).toString()); cinemaMovie.setDirectors_text(m.get (directors_text).toString()); cinemaMovie.setGenres_text(m.get(genres_text).toString()); cinemaMovie.setAverage(m.get(average).toString()); cinemaMovie.setFilmId(m.get(filmId).toString()); cinemaMovie.setDuration(m.get(duration).toString()); cinema.add(cinemaMovie); } String datum = pairs.getKey().toString(); SimpleDateFormat formatter = new SimpleDateFormat(EE d MM); formatter.applyLocalizedPattern(EE d MM); int year= Integer.valueOf(datum.substring(0,4)); int month = Integer.valueOf(datum.substring(5,7)); int day = Integer.valueOf(datum.substring(8,10)); java.util.Date date = new java.util.Date(year, month, day); String parsed = formatter.format(date); System.out.println(parsed); adapter.addSection(parsed, new cinemaAdapter(this, cinema)); } } catch (XMLRPCException e) { e.printStackTrace(); } runOnUiThread(returnRes); } And for every date in my response i do this adapter.addSection(parsed, new cinemaAdapter(this, cinema)); and parsed is the parsed text from date (example 31 october)) And this is how i generate it! It there an error somewhere? On 27 sep, 20:23, Marco Nelissen marc...@android.com wrote: On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override # public void onCreate(Bundle icicle) { # super.onCreate(icicle); # # ListMapString,? security = new LinkedListMapString,? (); # security.add(createItem(Remember passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Clear passwords, Save usernames and passwords for Web sites)); # security.add(createItem(Show security warnings, Show warning if there is a problem with a site's security)); # # // create our list and custom adapter # SeparatedListAdapter adapter = new SeparatedListAdapter (this); # adapter.addSection(Array test, new ArrayAdapterString (this, # R.layout.list_item, new
[android-developers] Re: Is it possible to update a widget from an Activity?
Hi Mark, Thanks for your reply. I do know how to update a widget when the user interacts with it, for example, when a user presses a button on the widget itself. I wanted to know if it is possible to update a widget from *outside* the AppWidgetProvider class, say, from a broadcast receiver that is examining text messages, for example. Is there a way to load an Intent up with the necessary information and broadcast it in such a way that it will cause a widget to update? On Sep 21, 11:01 pm, Mark Murphy mmur...@commonsware.com wrote: It seems like the *only* way awidgetcan be updated is upon its interval, or when the user interacts with it. That is is incorrect. Is there any way to update awidgetupon a system event? The same way you update awidgetany other time -- call updateAppWidget() on your AppWidgetManager. Here is a sample application that updates awidgeteither due to the updateTimeMillis value or due to a user clicking a refresh button on thewidgetitself: http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/Twit... -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: You must supply a resource ID for a TextView
But I declare it there and then in my runnable i do adapter.notifyDatasetChanged so the listview knows there is other data to show. This works for other adapters.. Really don't know why this isn't working. My listview with headers works, i can see the first header or sometimes more but when i scroll down it crashes.. When i do for example adapter.addSection(test, new cinemaAdapter(this, cinema)); it makes 1 list with 1 header without crashing.. So there must be a problem with generating my header titles :s On 27 sep, 21:55, Marco Nelissen marc...@android.com wrote: I don't see anything obviously wrong with your code. I do notice that you apparently create the SeparatedListAdapter and then immediately call setListAdapter with it, whereas the SeparatedListAdapter sample code creates the adapter, then adds a bunch of sections to it, and then calls setListAdapter at the end. Could it be that SeparatedListAdapter doesn't work when it is empty? Have you tried postponing your call to setListAdapter until after you've added all the sections? On Sun, Sep 27, 2009 at 12:32 PM, Wouter wouterg...@gmail.com wrote: Ok i will try to explain how i generate my headers with the seperatedlistadapter.. private SeparatedListAdapter adapter; in my setupViews functions: this.adapter = new SeparatedListAdapter(this); setListAdapter(adapter); And then to retrieve my data: �...@suppresswarnings(unchecked) public void retrieveCinema() { try { HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveCinema, sessionKey); Comparator reverse = Collections.reverseOrder(); TreeMapString, Object result = new TreeMapString, Object (reverse); TreeMapString, Object sortedMap = new TreeMapString, Object (response); result.putAll(sortedMap); Iterator it = result.entrySet().iterator(); while (it.hasNext()) { cinema = new ArrayListFilmDetail(); Map.Entry pairs = (Map.Entry)it.next(); Object[] cinemaFilms = (Object[])pairs.getValue(); FilmDetail cinemaMovie = new FilmDetail(); for (int i=0; icinemaFilms.length; i++) { cinemaMovie = new FilmDetail(); Map m = (Map) cinemaFilms[i]; cinemaMovie.setTitle(m.get(title).toString()); cinemaMovie.setYear(m.get(year).toString()); cinemaMovie.setVotes_count(m.get(votes_count).toString()); cinemaMovie.setActors_text(m.get(actors_text).toString()); cinemaMovie.setDirectors_text(m.get (directors_text).toString()); cinemaMovie.setGenres_text(m.get(genres_text).toString()); cinemaMovie.setAverage(m.get(average).toString()); cinemaMovie.setFilmId(m.get(filmId).toString()); cinemaMovie.setDuration(m.get(duration).toString()); cinema.add(cinemaMovie); } String datum = pairs.getKey().toString(); SimpleDateFormat formatter = new SimpleDateFormat(EE d MM); formatter.applyLocalizedPattern(EE d MM); int year= Integer.valueOf(datum.substring(0,4)); int month = Integer.valueOf(datum.substring(5,7)); int day = Integer.valueOf(datum.substring(8,10)); java.util.Date date = new java.util.Date(year, month, day); String parsed = formatter.format(date); System.out.println(parsed); adapter.addSection(parsed, new cinemaAdapter(this, cinema)); } } catch (XMLRPCException e) { e.printStackTrace(); } runOnUiThread(returnRes); } And for every date in my response i do this adapter.addSection(parsed, new cinemaAdapter(this, cinema)); and parsed is the parsed text from date (example 31 october)) And this is how i generate it! It there an error somewhere? On 27 sep, 20:23, Marco Nelissen marc...@android.com wrote: On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override # public void onCreate(Bundle icicle) { # super.onCreate(icicle); #
[android-developers] Re: DDMS won't load (or doesn't parse?) KML file
I found this solution on StackOverflow.com http://stackoverflow.com/questions/1053721/ddms-wont-load-or-doesnt-parse-kml-file basically the namespace should read kml xmlns=http://earth.google.com/kml/2.x; and not kml xmlns=http://www.opengis.net/kml/2.2; for your kml files. I've since changed my kml files and they all are parsed correctly via the DDMS. On Sep 25, 10:16 pm, tarek.attia tarek.m.at...@gmail.com wrote: Anybody resolved this issue or have any idea,,,I do have this problem either and i dunno why!! P.S. I make my .kml files Using Google earth On Aug 28, 12:45 am, MarcoCanali marco.can...@gmail.com wrote: I've the same problem click the Button load kML Select my File. KML and do nothing !! I use android-sdk-windows-1.5_r3 ! On 30 Giu, 02:24, nderraugh nderra...@gmail.com wrote: I've tried various permutations of KML files and now I've tried yours. Still no luck. And no error messages either. It just seems to ignore me. I'm on a dual processor quad core Xeon system running Vista 64 if it makes any difference. On Jun 27, 6:44 pm, atrekker androidtrek...@gmail.com wrote: I compare your KML with the one I have been using in DDMS notice some tag difference. Please try following modified version: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Document nameSimple placement/name Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the height of the underlying terrain./description Point coordinates-122.0822035425683,37.42228990140251,0/ coordinates /Point /Placemark /Document /kml On Jun 27, 2:45 pm, nderraugh nderra...@gmail.com wrote: I can't get DDMS to load any KML files. I have a KML file for example with the following in it: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the height of the underlying terrain./description Point coordinates-122.0822035425683,37.42228990140251,0/ coordinates /Point /Placemark /kml The docs athttp://developer.android.com/guide/developing/tools/ddms.html seem to indicate that I only need to launch my app and fire up DDMS and load the KML. That doesn't work. I even tried the Google Earth solution suggested at the same link. I'm using SDK 1.5_r2. I am doing something wrong or missing something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 possible to update a widget from an Activity?
Mafian911 wrote: Thanks for your reply. I do know how to update a widget when the user interacts with it, for example, when a user presses a button on the widget itself. I wanted to know if it is possible to update a widget from *outside* the AppWidgetProvider class, say, from a broadcast receiver that is examining text messages, for example. Is there a way to load an Intent up with the necessary information and broadcast it in such a way that it will cause a widget to update? Sorry, I didn't make my earlier point clear. An AppWidgetProvider is a BroadcastReceiver. That gives you two possibilities right off the bat: 1. Have it also handle whatever other Intents you were planning on setting up with a separate BroadcastReceiver, or 2. Send an Intent from whatever component you want to the AppWidgetProvider. In other words, don't worry about trying to talk directly to the app widget (which I suspect is impossible) -- just talk to your code that already talks to the app widget. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Crossword Puzzle in Android
http://lmgtfy.com/?q=android+drawing+basics On Sun, Sep 27, 2009 at 11:26 AM, Kwan Toh Choong td00164...@gmail.comwrote: Hi All, Can anyone give me a brief idea on developing a simple crossword puzzle game with android? I need some guideline in things like: 1. drawing out the boxes 2. how do I draw a boxes with number label on their top right/left corner 3. how to catch a button click action whenever the user click any box on the screen, then i will pop up an input box and ask for input Regards Kwan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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...
And you can use zoomdroid as a mouse or laser pointer too - to control the mouse on your PC. On Sep 27, 7:29 am, prem premkumarjonn...@gmail.com wrote: There's one more app in category productivity/tools - ZoomRoid -http://www.zoomdroid.net useful for filling your forms on your computer using your phone (forget typing complex passwords, long URLs, etc. - just zoom the string using your phone). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Getting the user's own email address
I'm trying to do the same thing. Did you manage to fix this? Cheers, Jodi On Aug 13, 4:06 pm, Jonas Petersson jonas.peters...@xms.se wrote: Dear experts, I've attempted to implement what Jeff describes below on 1.1 as well as 1.5 (both real device and emulated), but as far as I can tell it never succeeds. I have the permission to read contact data (otherwise I get an exception). Maybe I've made some very basic mistake. Has anyone got a code snippet that succeeds with this? I know that for instance Nav4All successfully sends my google mail address to the server (via the web browser so it is not too hard to spot) each time I upgrade, so obviously there is SOME way of extracting this. Any advice would be appreciated. Here is my code snippet that never succeeds: Uri contactUri = Uri.withAppendedPath(Contacts.People.CONTENT_URI, owner); ContentResolver resolver = getContentResolver(); Cursor c = resolver.query(contactUri, null, null, null, null); if (!c.moveToFirst()) { // This always happens c.close(); return; } // Extract the data - never gets here I've also tried only extracting the id, but with the same result. I've tried to decipher packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider.java and as far as I can tell it SHOULD end up in queryOwner(), pick up the PREF_OWNER_ID and query for that id, but I sure seem to fail every time. It is hardly a critical function, but it is annoying that I can't get it to work... Best / Jonas On Thu, May 14, 2009 at 23:01, Jeff Sharkeyjshar...@android.com wrote: Although not officially supported, you might try getting theowner's contact details: Uri.withAppendedPath(Contacts.People.CONTENT_URI, owner); And you'll need to ask for the android.permission.READ_OWNER_DATA permission to readownerdata. Like I said, it's not part of the published Contacts API, and it might disappear in a future release. You probably want to avoid asking for a sensitive permission like this, especially when it's just being used for pre-filling a form. Users will see that you're requesting their personal contact informationwhen installing your app, and they will probably cancel the installation. j On Thu, May 14, 2009 at 11:28 AM, Anna PS annapowellsm...@googlemail.com wrote: - Hide quoted text - I'd like to retrieve the user's own email address, as configured in their Gmail application (purpose: just so I can pre-fill a form field for 'Your email'). Is this possible in Android, maybe through one of the ContentProviders, or would it breach privacy in some way? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Low volume of judges
From marketing point of view guys have made a little too many mistakes to this moment. On Sep 27, 1:37 pm, Izard izard...@gmail.com wrote: As a lot of ppl (including me) skip many applications, I wonder what would be an implication for judging? e.g. there are 2 programs, one got scores of 5 5 and another of 5 5 5 1. Average for the first is 5, and for the second is 4. But second got a higher score from more ppl. Which would win in this case? I cannot find an answer in the rules, may be someone has a guess? Alexander On Sep 27, 5:34 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I have three apps in ADC2 and so far have seen a total of 63 users run them. There seems to be a very low number of judges participating in ADC2. I've seen no publicity at all, no mention in the tech press, no TV coverage, nothing to indicate this contest is running. I'm guessing that the majority of judges at this point are developers. Won't that skew the results? Is this supposed to be a developer or user contest? -John Coryat Radar Now! What Zip Code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: DDMS won't load (or doesn't parse?) KML file
Thn you,,really very thanks to you :)),, Ultimately It worked fine On Sun, Sep 27, 2009 at 10:52 PM, ZA_Alligator alasdair.mcc...@gmail.comwrote: I found this solution on StackOverflow.com http://stackoverflow.com/questions/1053721/ddms-wont-load-or-doesnt-parse-kml-file basically the namespace should read kml xmlns=http://earth.google.com/kml/2.x; and not kml xmlns=http://www.opengis.net/kml/2.2; for your kml files. I've since changed my kml files and they all are parsed correctly via the DDMS. On Sep 25, 10:16 pm, tarek.attia tarek.m.at...@gmail.com wrote: Anybody resolved this issue or have any idea,,,I do have this problem either and i dunno why!! P.S. I make my .kml files Using Google earth On Aug 28, 12:45 am, MarcoCanali marco.can...@gmail.com wrote: I've the same problem click the Button load kML Select my File. KML and do nothing !! I use android-sdk-windows-1.5_r3 ! On 30 Giu, 02:24, nderraugh nderra...@gmail.com wrote: I've tried various permutations of KML files and now I've tried yours. Still no luck. And no error messages either. It just seems to ignore me. I'm on a dual processor quad core Xeon system running Vista 64 if it makes any difference. On Jun 27, 6:44 pm, atrekker androidtrek...@gmail.com wrote: I compare your KML with the one I have been using in DDMS notice some tag difference. Please try following modified version: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Document nameSimple placement/name Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the height of the underlying terrain./description Point coordinates-122.0822035425683,37.42228990140251,0/ coordinates /Point /Placemark /Document /kml On Jun 27, 2:45 pm, nderraugh nderra...@gmail.com wrote: I can't get DDMS to load any KML files. I have a KML file for example with the following in it: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the height of the underlying terrain./description Point coordinates-122.0822035425683,37.42228990140251,0/ coordinates /Point /Placemark /kml The docs athttp:// developer.android.com/guide/developing/tools/ddms.html seem to indicate that I only need to launch my app and fire up DDMS and load the KML. That doesn't work. I even tried the Google Earth solution suggested at the same link. I'm using SDK 1.5_r2. I am doing something wrong or missing something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 possible to update a widget from an Activity?
I update my widget from within my app, when I delete/add entries to a list. To do this, I have a method (updateWidget) and a static String (UPDATE_ACTION). My updateWidget() method sends a broadcast which is received by the widget class and then calls onUpdate() with the appropriate params: private void updateWidget() { Intent i = new Intent(this, TVWidget.class); i.setAction(TVWidget.UPDATE_ACTION); sendBroadcast(i); } In TVWidget class: @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action != null action.equals(UPDATE_ACTION)) { final AppWidgetManager manager = AppWidgetManager.getInstance (context); onUpdate(context, manager, manager.getAppWidgetIds(new ComponentName( context, TVWidget.class) ) ); } else { super.onReceive(context, intent); } } This seems to work fine. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Start the CallLog Activity via Intent
No one? I'm still trying to bring up the call log but so far without success. Even the slightest hint could be helpful. On 26 Sep., 01:43, Matt reisc...@googlemail.com wrote: Hi, I have the following code in my application: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setData(android.provider.CallLog.CONTENT_URI); startActivity(i); I want to bring up the CallLog activity, but when I run my application I get an error, that the application has stopped unexpectedly. Why does this happen and how can I display the CallLog? Using i.setData(android.provider.CallLog.Calls.CONTENT_URI); does not give me an error, but brings up the dialer - not exactly what I want. ;-) I tried displaying the Contacts with i.setData(android.provider.Contacts.People.CONTENT_URI); and that works flawlessly. Any help is highly appreciated! Best wishes, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Get the current assigned google account
Hi, Has anyone found a way to get the current google e-mail adderss assigned on the phone? I've tried doing a search for in the contacts with, but it never returns : Uri contactUri = Uri.withAppendedPath(Contacts.People.CONTENT_URI, owner); I have found a permssion called READ_OWNER_DATA but I don't seem able to find out a way of seeing what the permission allows you to do. Cheers, Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 prematurely stop a long-running SQLite query?
Perhaps a Trie data structure? On Sep 27, 2009 2:07 PM, mjc147 westmead...@yahoo.co.uk wrote: That's a nice trick with the indexed column. I thought of something like that with a column I use for ordering. That column only has a few distinct values so I could split the query up on each of those values. The 30 secs is an absolute worst-case scenario. Typical deep searches take less than 10 seconds which I think is acceptable especially when the user will be intentionally performing a deep search. But, yes, splitting the search sounds like a good approach. I'm yet to be convinced at the speed improvements from an alternative storage mechanism. Could someone please suggest such an alternative storage mechanism I could investigate further? On Sep 27, 10:14 am, Marco Nelissen marc...@android.com wrote: Another trick you could try is t... On Sat, Sep 26, 2009 at 6:56 PM, Marco Nelissen marc...@android.com wrote: The specific sear... On Sat, Sep 26, 2009 at 5:58 PM, mjc147 westmead...@yahoo.co.uk wrote: Most queries tak... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Start the CallLog Activity via Intent
Matt wrote: No one? I'm still trying to bring up the call log but so far without success. Even the slightest hint could be helpful. You didn't indicate what error you got. You can find this out by examining adb logcat, DDMS, or the DDMS perspective in Eclipse, looking for the stack trace. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ 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] Re: Get the current assigned google account
Jodi Middleton wrote: Has anyone found a way to get the current google e-mail adderss assigned on the phone? To be honest, why would you want it? For example, I filled in a Google email address just to get past the #$#*()#$ setup wizard, but it's an account I never use. I surely hope nobody is trying to contact me that way. All that said, I have not run across a method to get this address, in any case. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ 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] Re: Start the CallLog Activity via Intent
Intent i = new Intent(); i.setAction(Intent.ACTION_CALL_BUTTON); startActivity(i); Paul On Sep 25, 7:43 pm, Matt reisc...@googlemail.com wrote: Hi, I have the following code in my application: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setData(android.provider.CallLog.CONTENT_URI); startActivity(i); I want to bring up the CallLog activity, but when I run my application I get an error, that the application has stopped unexpectedly. Why does this happen and how can I display the CallLog? Using i.setData(android.provider.CallLog.Calls.CONTENT_URI); does not give me an error, but brings up the dialer - not exactly what I want. ;-) I tried displaying the Contacts with i.setData(android.provider.Contacts.People.CONTENT_URI); and that works flawlessly. Any help is highly appreciated! Best wishes, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to get full package size?
Hello everyone! How i can get package size info - code, cache and data size? I tried to use PackageStats, but it always returns 0. Right now i can get apk size and dex file size, but how i can get DATA size? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Get the current assigned google account
There is a web side to the application I am developing. I wish to store the user's google e-mail as a easy registration option. Lots of people do use their google accounts bound to their phone. Cheers, Jodi On Sep 27, 11:04 pm, Mark Murphy mmur...@commonsware.com wrote: Jodi Middleton wrote: Has anyone found a way to get the current google e-mail adderss assigned on the phone? To be honest, why would you want it? For example, I filled in a Google email address just to get past the #$#*()#$ setup wizard, but it's an account I never use. I surely hope nobody is trying to contact me that way. All that said, I have not run across a method to get this address, in any case. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ 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] Re: Extending a view class
What's the exception and stack trace when it crashes? You can see these by debugging, or using the adb logcat command. I suspect that, at the minimum, the visibility on the constructor of your View subclass needs to be changed to public so that LayoutInflator can call it. On Sep 26, 2:39 pm, jdekeij jasper.dekeij...@gmail.com wrote: I changed the xml in the following: view android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView android:layout_width=wrap_content android:layout_height=wrap_content/ This makes the app crash. Changing it into View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView android:layout_width=wrap_content android:layout_height=wrap_content/ Makes the app run but no view on screen :-( Jasper On Sep 24, 10:21 pm, Lance Nanek lna...@gmail.com wrote: Theviewelement name in your XML needs to be entirely lower case, not capitalized. Should be view, not View. Capitalized gives you an android.view.Viewinstance, not your subclass. On an unrelated note, I'm actually surprised what you posted isn't crashing on the lack of android:layout_width and android:layout_height attributes first. On Sep 24, 10:34 am, jdekeij jasper.dekeij...@gmail.com wrote: Hoi I try to create my customviewinside a linearlayout. For example View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView/ In the java source I created a DrawingViewclasswhich extendsView. Unfortunatly it does not get instantiated. I tried to overwrite the ondraw() but without success :-( Help is very much appreciated. Jasper Java Code public staticclassDrawingView extendsView { private final Paint mPaint; /* * Constructor that is called when inflating aviewfrom XML. */ DrawingView(Context context, AttributeSet attrs){ super(context,attrs); mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setARGB(255, 255, 255, 255); } @Override protected void onDraw(Canvas canvas) { float yPos; float xPos; int xOffset = 20; int yOffset = 50; int cxScreen = canvas.getWidth(); int cyScreen = canvas.getHeight(); int cx = cxScreen - (2*xOffset); int cy = cyScreen - (2*yOffset); int cxStepSize = cx/10 - 1; int cyStepSize = cy/10 - 1; // Makes the complete screen white! //canvas.drawColor(0x); yPos = (float)yOffset; xPos = (float)xOffset; for (int i=0; i = 10; i++) { // xstart, ystrt,xend,yend canvas.drawLine((float)xOffset, yPos, (float)cx, (float) yPos, mPaint); yPos += cyStepSize; } for (int i=0; i = 10; i++) { // xstart, ystrt,xend,yend canvas.drawLine((float)xPos, (float)yOffset, (float)xPos, (float)cy, mPaint); xPos += cxStepSize; } } } XML: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:padding=10dip android:layout_width=fill_parent android:layout_height=wrap_content TextView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip android:text=Please select a planet: / Spinner android:id=@+id/spinner android:layout_width=fill_parent android:layout_height=wrap_content android:drawSelectorOnTop=true android:prompt=@string/planet_prompt / TextView android:id=@+id/dateDisplay android:layout_width=wrap_content android:layout_height=wrap_content android:text=No date yet/ Button android:id=@+id/pickDate android:layout_width=wrap_content android:layout_height=wrap_content android:text=Change the date/ TextView android:id=@+id/timeDisplay android:layout_width=wrap_content android:layout_height=wrap_content android:text=No time yet/ Button android:id=@+id/pickTime android:layout_width=wrap_content android:layout_height=wrap_content android:text=Verander the time/ View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView/ /LinearLayout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the
[android-developers] Re: ADC2: Low volume of judges
36 visits (80 hits) for page 1's audio. My application requires that users register using the application before they can use it (probably a mistake as far as the competition goes, but unavoidable in practice). I've had about 15 people register, and only one of those has bothered to progress past the 3rd Activity within the application, so I would not consider the others to be in a position where they can fairly judge my application. I wonder how many of the users judging the applications have submitted their own applications and are just voting other applications down to improve their own chances of winning... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 starting tools in 1.6 on Mac OS - SOLUTION
renaming worked fine for me (actually i made a copy of x86 folder and renamed it) On Sep 20, 1:07 am, Tushar tsk...@gmail.com wrote: Re-naming does not work. Following error occurs: Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) On Sep 17, 2:04 pm, Gil Margolin gilmargo...@gmail.com wrote: Or a much easier way is just rename the folder /tools/lib/x86 to / tools/lib/x86_64 On Sep 16, 10:04 pm, David Horn pga...@gmail.com wrote: Hi, I've been unable to run any of the tools in the Donut SDK, using Snow Leopard - it seems to be due to the 64bit nature of theOS. Followed the steps in the upgrade guide, but when it comes to starting any of the tools (android, ddms etc), they refuse to start with the error message: David-Horns-MacBook:tools David$ ./ddms SWT folder '/Users/David/Desktop/Eclipse IDE/android-sdk- mac_x86-1.6_r1/tools/lib/x86_64' does not exist. Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. There is no x86-64 folder, but I've come up with a bit of a bodge that works. Open the file in a handy text editor, and look for the lines: # Combine the swtpath and the framework dir path. if [ -d $swtpath ]; then frameworkdir=${swtpath}:${frameworkdir} else echo SWT folder '${swtpath}' does not exist. echo Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. exit 1 fi Replace them with this, substituting your own path in to the lib folder. # Combine the swtpath and the framework dir path. frameworkdir=/Users/David/Desktop/Eclipse IDE/android-sdk- mac_x86-1.6_r1/tools/lib/x86:${frameworkdir} Hope this helps (not sure if this is a problem unique to me, or whether it's affecting everyone on Snow Leopard). Dave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Start the CallLog Activity via Intent
here is the error message: Writing exception to parcel java.lang.IllegalArgumentException: Unknown URL at com.android.providers.contacts.ContactsProvider.getType (ContactsProvider.java:1668) at android.content.ContentProvider$Transport.getType (ContentProvider.java:134) at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:112) at android.os.Binder.execTransact(Binder.java:287) at dalvik.system.NativeStart.run(Native Method) Starting activity: Intent { act=android.intent.action.VIEW dat=content://call_log } Shutting down VM Uncaught handler: thread main exiting due to uncaught exception android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://call_log } at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1484) at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) at android.app.Activity.startActivityForResult(Activity.java:2660) at android.app.Activity.startActivity(Activity.java:2704) at com.example.test.test$2.onClick(test.java:43) at android.view.View.performClick(View.java:2344) at android.view.View.onTouchEvent(View.java:4133) at android.widget.TextView.onTouchEvent(TextView.java:6504) at android.view.View.dispatchTouchEvent(View.java:3672) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1712) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1202) at android.app.Activity.dispatchTouchEvent(Activity.java:1987) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1696) at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4203) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) at dalvik.system.NativeStart.main(Native Method) again, i just want to view the call log (last dialed calls) using this piece of code: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setData(android.provider.CallLog.CONTENT_URI); startActivity(i); any ideas what is going wrong? On 28 Sep., 00:02, Mark Murphy mmur...@commonsware.com wrote: Matt wrote: No one? I'm still trying to bring up the call log but so far without success. Even the slightest hint could be helpful. You didn't indicate what error you got. You can find this out by examining adb logcat, DDMS, or the DDMS perspective in Eclipse, looking for the stack trace. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ 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] Re: Start the CallLog Activity via Intent
unfortunately that did not work either. On 28 Sep., 00:29, iPaul Pro mr.paulbu...@gmail.com wrote: Intent i = new Intent(); i.setAction(Intent.ACTION_CALL_BUTTON); startActivity(i); Paul On Sep 25, 7:43 pm, Matt reisc...@googlemail.com wrote: Hi, I have the following code in my application: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setData(android.provider.CallLog.CONTENT_URI); startActivity(i); I want to bring up the CallLog activity, but when I run my application I get an error, that the application has stopped unexpectedly. Why does this happen and how can I display the CallLog? Using i.setData(android.provider.CallLog.Calls.CONTENT_URI); does not give me an error, but brings up the dialer - not exactly what I want. ;-) I tried displaying the Contacts with i.setData(android.provider.Contacts.People.CONTENT_URI); and that works flawlessly. Any help is highly appreciated! Best wishes, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Widgets and custom components?
Hi Mark, Yes, I meant widgets for home screen... That's bad news for me I guess... :( The only animation I got working barely was marquee text. lol... I wonder if there are plans to expand this feature... Animations would be great! :( or even better custom components... -Moto On Sep 27, 2:52 pm, Mark Murphy mmur...@commonsware.com wrote: Moto wrote: Are widgets currently not supporting any type of custom components? I've tried creating a very simple custom TextView component and it does not work when displaying the widget. By widget, do you mean app widgets (things that go on the home screen)? If so, then no, app widgets only support the classes offered by RemoteViews. Also, can we use the animation classes in widgets? Again, if you are referring to app widgets, then I do not believe RemoteViews supports animations. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Missing timezone
Hello, The timezone for New Caledonia is missing from android. It is GMT +11 with NO daylight saving time. Android auto-detects me in NewCaledonia on my Hero but automatically uses Magadan (GMT+11) and applies +1 hour of daylight saving time to it, so, it shows the wrong time... If I manually set the time back one hour, incoming SMS time is wrong and I have a problem of time with google calendar sync too. I had a look to Donut using SDK 1.6: it still has a problem with missing NewCaledonia timezone. So I went to android 1.6-rc1 source folder in /development/tools/ zoneinfo and found what seems to be a 2008h version. I ran the generate script and got the two files: zoneinfo.dat and zoneinfo.idx. I pushed both on the emulated android (donut). If I go to change timezones in parameters, all places are showing GMT+0:00... Any advice really appreciated. Regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Prevent radio button from being checked when being clicked
Hi! In my activity I have two radio buttons which both require additional input. Clicking either button opens a dialog, and only clicking set in that dialog really activates the option. I therefore want to prevent the radio button from being checked before the value is set, i.e. I want to prevent it from being automatically checked when the user clicks it. In my dialog listener I will then manually check the respective button. I could just keep the current state of the radio group in a variable and instantly re-set it whenever a radio button is clicked, but perhaps there is a more correct way to do this? Cheers, Marian. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Figured out how to debug and use JDB on the real android device ADP1.
On Sep 26, 3:45 am, Agus agus.sant...@gmail.com wrote: For others who might choose to do debugging on CLI , here's how. http://asantoso.wordpress.com/2009/09/26/using-jdb-with-adb-to-debugg... If you just want a CLI debugger: run the stand-alone DDMS to take care of the ADB aspects, and tell jdb to attach to the DDMS pass-through port (e.g. jdb -attach localhost:8700). You still have a GUI app running, but just to manage the debugger connection. You don't need the full Eclipse/ADT setup. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---