[android-developers] Re: Streaming MP3 Playback Problems on Android 2.2
I'm seeing this issue as well, and only with 2.2. I've seen it with the emulator, droid x, nexus one and moto droid. It happens lot more to me (10x+) with high bitrate streams than low ones (320 vs 120 kbps mp3). It seems intermittent and I can find nothing on the web posted about it other than this thread. It is a real problem with media apps running in 2.2. The constant -2147483648 always appears with this MediaPlayer error, and could probably be tracked down in the source. The problem is not with eMusic or the stream. I have seen the same issue with streams hosted by other services. On Sep 18, 12:51 pm, jdeslip jdes...@gmail.com wrote: Yes, it works fine on 2.1 and below. This is almost certainly related to the problems the Pandora/Last.fm etc.. apps have on 2.2. I just want to find out what the recommended tactic for developers with this problem is. Is Google on verge of releasing an update 2.2? Or is there an official workaround? On Sep 17, 11:58 pm, Indicator Veritatis mej1...@yahoo.com wrote: If that were the problem, then why would it work under 1.5 and fail under 2.2? On Sep 17, 8:50 pm, Doug beafd...@gmail.com wrote: Have you considered that eMusic might be doing something on the server side to prevent the stream from working? Many sites that stream things will leave urls active for a limited time or require you to preserve an HTTP session. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application crashes on device boot.
I have registered a Receiver component for ON_BOOT_COMPLETED broadcast, in my application. The receiver does just prints a line in its onReceive() callback. However, when I boot the emulator(by executing Run as-Android application command from Eclipse) and unlock the screen on start up, I get an ANR dialog displayed in my Application. Following are the exceptions logged: INFO/ActivityManager(55): ANR in process: com.myapp INFO/ActivityManager(55): Annotation: Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED cmp=com.myapp/.common.OnBootReceiver } INFO/ActivityManager(55): CPU usage: INFO/ActivityManager(55): Load: 2.53 / 0.72 / 0.25 INFO/ActivityManager(55): CPU usage from 12074ms to 244ms ago: INFO/ActivityManager(55): system_server: 39% = 28% user + 10% kernel / faults: 1409 minor 9 major INFO/ActivityManager(55): android.process.media: 10% = 4% user + 5% kernel / faults: 3336 minor 4 major INFO/ActivityManager(55): com.android.email: 6% = 3% user + 3% kernel / faults: 3375 minor 8 major INFO/ActivityManager(55): android.process.acore: 4% = 3% user + 1% kernel / faults: 440 minor 12 major INFO/ActivityManager(55): zygote: 3% = 2% user + 0% kernel / faults: 1470 minor INFO/ActivityManager(55): bootanimation: 3% = 2% user + 0% kernel INFO/ActivityManager(55): installd: 0% = 0% user + 0% kernel / faults: 41 minor INFO/ARMAssembler(55): generated scanline__0177:03515104_0A01_ [ 55 ipp] (79 ins) at [0x42b718:0x42b854] in 7889824 ns INFO/Process(55): Sending signal. PID: 191 SIG: 3 INFO/dalvikvm(191): threadid=7: reacting to signal 3 INFO/dalvikvm(191): Wrote stack trace to '/data/anr/traces.txt' DEBUG/HomeLoaders(99): items cloned, ready to refresh UI DEBUG/AndroidRuntime(215): --- registering native functions --- INFO/Process(55): Sending signal. PID: 180 SIG: 3 INFO/dalvikvm(180): threadid=7: reacting to signal 3 INFO/dalvikvm(180): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 140 SIG: 3 INFO/dalvikvm(140): threadid=7: reacting to signal 3 INFO/dalvikvm(140): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 162 SIG: 3 INFO/dalvikvm(162): threadid=7: reacting to signal 3 INFO/dalvikvm(162): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 105 SIG: 3 INFO/dalvikvm(105): threadid=7: reacting to signal 3 INFO/dalvikvm(105): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 121 SIG: 3 INFO/dalvikvm(121): threadid=7: reacting to signal 3 INFO/dalvikvm(121): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 103 SIG: 3 INFO/dalvikvm(103): threadid=7: reacting to signal 3 INFO/dalvikvm(103): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 99 SIG: 3 INFO/dalvikvm(99): threadid=7: reacting to signal 3 INFO/dalvikvm(99): Wrote stack trace to '/data/anr/traces.txt' WARN/ActivityManager(55): finishReceiver called but none active DEBUG/ActivityManager(55): Uninstalling process com.myapp INFO/ActivityManager(55): adbd: 0% = 0% user + 0% kernel / faults: 28 minor INFO/ActivityManager(55): pdflush: 0% = 0% user + 0% kernel INFO/ActivityManager(55): com.android.phone: 0% = 0% user + 0% kernel / faults: 58 minor INFO/ActivityManager(55): +com.myapp: 0% = 0% user + 0% kernel INFO/ActivityManager(55): +sh: 0% = 0% user + 0% kernel INFO/ActivityManager(55): +app_process: 0% = 0% user + 0% kernel INFO/ActivityManager(55): -sh: 0% = 0% user + 0% kernel INFO/ActivityManager(55): -app_process: 0% = 0% user + 0% kernel INFO/ActivityManager(55): TOTAL: 99% = 74% user + 25% kernel INFO/ActivityManager(55): Removing old ANR trace file from /data/anr/ traces.txt INFO/Process(55): Sending signal. PID: 200 SIG: 3 INFO/dalvikvm(200): threadid=7: reacting to signal 3 DEBUG/ActivityManager(55): Uninstalling process com.myapp DEBUG/ActivityManager(55): Force removing process ProcessRecord{43cdc460 200:com.myapp/10035} (com.myapp/10035) INFO/Process(55): Sending signal. PID: 200 SIG: 9 DEBUG/AndroidRuntime(215): AndroidRuntime START DEBUG/AndroidRuntime(215): CheckJNI is ON INFO/Process(55): Sending signal. PID: 55 SIG: 3 INFO/dalvikvm(55): threadid=7: reacting to signal 3 DEBUG/dalvikvm(55): GC freed 11224 objects / 642664 bytes in 415ms INFO/dalvikvm(55): Wrote stack trace to '/data/anr/traces.txt' DEBUG/ActivityManager(55): Received spurious death notification for thread android.os.binderpr...@43b287c8 INFO/SurfaceFlinger(55): Boot is finished (46746 ms) Can someone please explain what is going wrong above? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do I intergrate a html document into the code
Is there any type of app that can convert the html doc to the needed java based gui since the html holds the main gui -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application crashes on device boot.
Your onReceive is taking too long, longer than the time allowed by Android. What are you trying to do there, networking? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.09.2010 10:08 пользователь Samuh samuh.va...@gmail.com написал: I have registered a Receiver component for ON_BOOT_COMPLETED broadcast, in my application. The receiver does just prints a line in its onReceive() callback. However, when I boot the emulator(by executing Run as-Android application command from Eclipse) and unlock the screen on start up, I get an ANR dialog displayed in my Application. Following are the exceptions logged: INFO/ActivityManager(55): ANR in process: com.myapp INFO/ActivityManager(55): Annotation: Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED cmp=com.myapp/.common.OnBootReceiver } INFO/ActivityManager(55): CPU usage: INFO/ActivityManager(55): Load: 2.53 / 0.72 / 0.25 INFO/ActivityManager(55): CPU usage from 12074ms to 244ms ago: INFO/ActivityManager(55): system_server: 39% = 28% user + 10% kernel / faults: 1409 minor 9 major INFO/ActivityManager(55): android.process.media: 10% = 4% user + 5% kernel / faults: 3336 minor 4 major INFO/ActivityManager(55): com.android.email: 6% = 3% user + 3% kernel / faults: 3375 minor 8 major INFO/ActivityManager(55): android.process.acore: 4% = 3% user + 1% kernel / faults: 440 minor 12 major INFO/ActivityManager(55): zygote: 3% = 2% user + 0% kernel / faults: 1470 minor INFO/ActivityManager(55): bootanimation: 3% = 2% user + 0% kernel INFO/ActivityManager(55): installd: 0% = 0% user + 0% kernel / faults: 41 minor INFO/ARMAssembler(55): generated scanline__0177:03515104_0A01_ [ 55 ipp] (79 ins) at [0x42b718:0x42b854] in 7889824 ns INFO/Process(55): Sending signal. PID: 191 SIG: 3 INFO/dalvikvm(191): threadid=7: reacting to signal 3 INFO/dalvikvm(191): Wrote stack trace to '/data/anr/traces.txt' DEBUG/HomeLoaders(99): items cloned, ready to refresh UI DEBUG/AndroidRuntime(215): --- registering native functions --- INFO/Process(55): Sending signal. PID: 180 SIG: 3 INFO/dalvikvm(180): threadid=7: reacting to signal 3 INFO/dalvikvm(180): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 140 SIG: 3 INFO/dalvikvm(140): threadid=7: reacting to signal 3 INFO/dalvikvm(140): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 162 SIG: 3 INFO/dalvikvm(162): threadid=7: reacting to signal 3 INFO/dalvikvm(162): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 105 SIG: 3 INFO/dalvikvm(105): threadid=7: reacting to signal 3 INFO/dalvikvm(105): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 121 SIG: 3 INFO/dalvikvm(121): threadid=7: reacting to signal 3 INFO/dalvikvm(121): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 103 SIG: 3 INFO/dalvikvm(103): threadid=7: reacting to signal 3 INFO/dalvikvm(103): Wrote stack trace to '/data/anr/traces.txt' INFO/Process(55): Sending signal. PID: 99 SIG: 3 INFO/dalvikvm(99): threadid=7: reacting to signal 3 INFO/dalvikvm(99): Wrote stack trace to '/data/anr/traces.txt' WARN/ActivityManager(55): finishReceiver called but none active DEBUG/ActivityManager(55): Uninstalling process com.myapp INFO/ActivityManager(55): adbd: 0% = 0% user + 0% kernel / faults: 28 minor INFO/ActivityManager(55): pdflush: 0% = 0% user + 0% kernel INFO/ActivityManager(55): com.android.phone: 0% = 0% user + 0% kernel / faults: 58 minor INFO/ActivityManager(55): +com.myapp: 0% = 0% user + 0% kernel INFO/ActivityManager(55): +sh: 0% = 0% user + 0% kernel INFO/ActivityManager(55): +app_process: 0% = 0% user + 0% kernel INFO/ActivityManager(55): -sh: 0% = 0% user + 0% kernel INFO/ActivityManager(55): -app_process: 0% = 0% user + 0% kernel INFO/ActivityManager(55): TOTAL: 99% = 74% user + 25% kernel INFO/ActivityManager(55): Removing old ANR trace file from /data/anr/ traces.txt INFO/Process(55): Sending signal. PID: 200 SIG: 3 INFO/dalvikvm(200): threadid=7: reacting to signal 3 DEBUG/ActivityManager(55): Uninstalling process com.myapp DEBUG/ActivityManager(55): Force removing process ProcessRecord{43cdc460 200:com.myapp/10035} (com.myapp/10035) INFO/Process(55): Sending signal. PID: 200 SIG: 9 DEBUG/AndroidRuntime(215): AndroidRuntime START DEBUG/AndroidRuntime(215): CheckJNI is ON INFO/Process(55): Sending signal. PID: 55 SIG: 3 INFO/dalvikvm(55): threadid=7: reacting to signal 3 DEBUG/dalvikvm(55): GC freed 11224 objects / 642664 bytes in 415ms INFO/dalvikvm(55): Wrote stack trace to '/data/anr/traces.txt' DEBUG/ActivityManager(55): Received spurious death notification for thread android.os.binderpr...@43b287c8 INFO/SurfaceFlinger(55): Boot is finished (46746 ms) Can someone please explain what is going wrong above? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,
Re: [android-developers] Re: Can ScrollView and Scrollbars in EditText co-exist?
No just make the edit text be WRAP_CONTENT so it will always resize to contain all of the text. On Sun, Sep 19, 2010 at 10:09 PM, Mystique joven.ch...@gmail.com wrote: Sounds like a plan but how to do that? Do you mean when I click on the EditText field it open up to a larger window? On Sep 20, 10:08 am, Dianne Hackborn hack...@android.com wrote: Or just let it grow to always show all of its content in the larger scroll view, as it done in many places in the standard UI (contacts, gmail, etc). -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] gridview
hi, i am new in android.Now i need create a gridview with 50 columns for my application.Then i did this gridview created with 5000 px width and in the horizontal view.its now working .But the problem is its loads about 5 row of data first time about(250) images in gridview.when scroling it reuse the above rows. but actually i need to load only the images in screen.but it not working,anyone know please help[ me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 add a unique label on the OverlayItems?
Hi, I have a map with many overlayitems on it, they look all the same (simple bubble), When the user clicks on one overlayitem a detailpopup is shown. I would like to draw a numberon every overlayitem - but how could i accomplish this? I tried to extend overlayitem and overwrite the draw method (but now, everthing get a shadow also the number). What it is the best way to do this? Thanks 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: Application crashes on device boot.
That is exactly what I thought when I saw ANR, but I am just setting an Alarm in it. No network calls. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do I intergrate a html document into the code
On Sep 20, 7:29 am, Raziel23x raziel...@gmail.com wrote: Is there any type of app that can convert the html doc to the needed java based gui since the html holds the main gui Nothing is going to convert the HTML to Java, but you can build a fairly respectable app purely in HTML+scripting in a WebView. In your situation, your best bet is probably to use a framework which specializes in this, such as PhoneGap or Appcelerator. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Nokia inviting Developers to become an Ovi store publisher.
I'm a developer and just received an email from Forum Nokia regarding Unmatched distribution opportunities at Ovi store at NOKIA. If u are a developer nd dream it big then grab this opportunity today. Nokia inviting developers to Become an Ovi store publisher. • Easy access to reach millions of consumers worldwide • Fast time to market with self serve publishing • Monetize your apps and content with Nokia- provided billing • Daily time sales and usage reports [B]Unmatched distribution opportunities at Ovi store at NOKIA. [/B] To Discover How Nokia can make you Instapreneur check this:http:// www.oviinstapreneurs.com/ Be the next big Mobile Enterpreneur Instantly with the help of Nokia Ovi store -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Licensing Service
On Sep 18, 6:46 pm, gcstang gcst...@gmail.com wrote: Are there any examples of how you implemented it that you're willing to share? Probably not, I'm afraid. Sorry. The LVL blog post may seem overwhelming to a beginner, but unfortunately, it's the level of detail you need. And it does have code samples, including instructions on where in your own code to put the interface points. As for the modifications I made, I'm ABSOLUTELY not going to post more details about them. Not only would that give pirates a leg up on cracking my own apps, the whole point is that every dev needs to make their OWN modifications, so that every app will need to be cracked individually. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: appbucket: all apps for $9.99 per year, are we just going to watch?
On Sep 20, 6:43 am, Jason jason.poli...@gmail.com wrote: Unfortunately it's not just paying and refunding that is the issue with these guys. From the twitter account of appbucket: haha...They finally found the crack we have been using for some of our appsTook them long enough. We have a few more up our sleeve... They are clearly actively cracking protection systems incorporated into apps. Of course Google's protection system is a deterrent, however it's never going to be a silver bullet. Well, in this case it's a kind of criminal offense. Which legal jurisdiction they operate from? If you can locate them, and you are also resident of t he same country you can file criminal complaint throug state prosecutors. As such offenses are not capital ones, prosecution will not start without formal complaint. You may also try civil action - it worked pretty good for me, although I'm living in germany. regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to share data between applications with no dependency
Dianne, it will be great if I can use any other way as long it will: 1. be accessible for both apps no mater which of them installed first 2. will survive uninstall Adam, I can't use cloud because of security reasons: the first app being installed saves kind of a login details for both of the apps. The only way I can use cloud was if a device could have unique identification but you can't achieve that on Android :( Also, both apps can change that data and I want to keep a single instance of it without a copy. ayanir On Sep 20, 12:10 am, Adam Hammer adamhamm...@gmail.com wrote: You could use network/cloud storage for this instead of SD. Depending on how much data you are talking it's a feasible alternative. Adam On Sep 19, 5:12 am, ayanir ayanir...@gmail.com wrote: Hello, I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. I want the Content to be kept for the second app. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. I see only one left choice using a File for that but, I wanted to know if I can use another way? Thanks, ayanir -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 share data between applications with no dependency
Dianne, it will be great if I can use any other way as long it will: 1. be accessible for both apps no mater which of them installed first 2. will survive uninstall Adam, I can't use cloud because of security reasons: the first app being installed saves kind of a login details for both of the apps. The only way I can use cloud was if a device could have unique identification but you can't achieve that on Android :( Also, both apps can change that data and I want to keep a single instance of it without a copy. ayanir On Sep 20, 12:10 am, Adam Hammer adamhamm...@gmail.com wrote: You could use network/cloud storage for this instead of SD. Depending on how much data you are talking it's a feasible alternative. Adam On Sep 19, 5:12 am, ayanir ayanir...@gmail.com wrote: Hello, I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. I want the Content to be kept for the second app. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. I see only one left choice using a File for that but, I wanted to know if I can use another way? Thanks, ayanir -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 share data between applications with no dependency
Dianne, it will be great if I can use any other way as long it will: 1. be accessible for both apps no mater which of them installed first 2. will survive uninstall Adam, I can't use cloud because of security reasons: the first app being installed saves kind of a login details for both of the apps. The only way I can use cloud was if a device could have unique identification but you can't achieve that on Android :( Also, both apps can change that data and I want to keep a single instance of it without a copy. ayanir On Sep 20, 12:10 am, Adam Hammer adamhamm...@gmail.com wrote: You could use network/cloud storage for this instead of SD. Depending on how much data you are talking it's a feasible alternative. Adam On Sep 19, 5:12 am, ayanir ayanir...@gmail.com wrote: Hello, I want to share data between 2 applications. the idea is both applications can write and read the SAME data and there is no dependency which one of the apps is installed or first created the data. I have 2 version of the same app: regular and premium and I don't know which of them will be first installed and both of them can change it. I tried to use ContentProvider but the problem is that only the first app can create the Provider and when it is uninstalled it deletes that custom Provider. I want the Content to be kept for the second app. Also, I tried to use Settings.System which keeps the data regardless if the application is installed or not but I don't want to use the permission for that (it is very problematic from user perspective). BTW, it seems that I can change ANY of the Settings.System which is not secured from Android OS perspective - but this is a subject for other post. I see only one left choice using a File for that but, I wanted to know if I can use another way? Thanks, ayanir -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do I intergrate a html document into the code
I was just curious because I am a part of a group of python scritp programers who is working on a tool called wyre bash which is a tool for the game call the elder scrolls iv oblivion which the tool is made to manage users plugins for mods as well as other tools to help intergrate all player made mods to the users game with the least amount of conflicts with the mods in game. As we add new features and fix bugs we document them in the html document and I was thinking along the lines of making this guide portable but I also wanted it to be optomised to fully function with the android os. There will be other features I will be adding to this app once I get this aspect working. So is there any tips to pull this off and still use the website to update the html document and upload new images as well as update the images once the app is installed on the phone without having to use a ftp like perhaps it scans the html document and download the needed files to its data file which the document is stored in which I want this to be a menu feature but I have not looked at creating menus yet. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Invoke Download APK from my Application
Hello! I developed a simple Application.. So I want to implement a automatic update. If anybody starts the app, they start a request to a webservice where a new file path is found or not if the app is up to date. But if not I want to start the download (http://www.myDomain.com/ myApp_01.apk) but I have no idea how? I think I must invoke an Intent... or something else. Can anybody help me? Regards Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Possibility of a curved Gallery
Thanks Dianne, But i dint understand what you meant by this : but it is entirely implementable with the SDK.. Could you please explain. I also want to know whether the approach i am following is correct one or is there a better approach. So far i have tried to draw a curved line and was able to place some text(not TextViews) along the path at specific intervals. I was also able to place a drawable on the center Text. The things to be implemented are : a) Give click property to every text along the path b) update the list of text with the new list on UP or DOWN key press. The problem i am facing right now is : a) the onDraw is getting called in an infinte loop. (I tried to set a flag but then it is drawing and in the next instant the screen gets cleared) b) i am not getting the onKey functionalities. Please find my code below : package com.android.mygallery; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PathMeasure; import android.graphics.PixelFormat; import android.graphics.PointF; import android.graphics.RectF; import android.graphics.Matrix.ScaleToFit; import android.graphics.Paint.Style; import android.graphics.Path.Direction; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.view.View.OnKeyListener; import android.widget.Gallery; import android.widget.ImageView.ScaleType; public class MyCurvedGallery extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setFormat(PixelFormat.TRANSPARENT); myView view = new myView(this); view.requestLayout(); setContentView(view); } class myView extends View implements OnKeyListener{ private Paint myPaint; boolean completeFlag = false; public myView(Context context) { super(context); myPaint = new Paint(); myPaint.setAntiAlias(true); myPaint.setStyle(Style.STROKE); myPaint.setStrokeWidth(2); myPaint.setColor(Color.WHITE); myPaint.setTextSize(30); this.setOnKeyListener(this); } protected void onDraw(Canvas canvas) { canvas.drawColor(Color.BLACK); PointF mPoint1 = new PointF(600, 30); PointF mPoint2 = new PointF(2500, 700); PointF mPoint3 = new PointF(300, 1070); Path myPath = new Path(); Path myPath2 = new Path(); Matrix m = new Matrix(); myPath = buildPath(mPoint1, mPoint2); myPath2 = buildPath(mPoint2, mPoint3); myPath2.addPath(myPath); Bitmap myBitmap = BitmapFactory.decodeResource(this.getResources(), R.drawable.selector3); int width = myBitmap.getWidth(); int height = myBitmap.getHeight(); int newWidth = 350; int newHeight = 200; float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; m.postScale(scaleWidth, scaleHeight); m.postRotate(51); Bitmap resizedBitmap = Bitmap.createBitmap(myBitmap, 0, 0, width, height, m, true); // if(completeFlag == false) drawBitmapAlongPath(myPath2, resizedBitmap, canvas, m); invalidate(); } private Path buildPath(PointF mPointa, PointF mPointb) { Path myPath = new Path(); myPath.moveTo(1300, 30); myPath.quadTo(mPointa.x, mPointa.y, mPointb.x, mPointb.y); return myPath; } void drawBitmapAlongPath(Path myPath, Bitmap myBitmap, Canvas
Re: [android-developers] Invoke Download APK from my Application
*Intent intent = new Intent(android.intent.action.VIEW, Uri.parse( http://www.myDomain.com/myApp_01.apk;)); startActivity(intent);* Jim On 20 September 2010 09:19, Markus rookee1...@googlemail.com wrote: Hello! I developed a simple Application.. So I want to implement a automatic update. If anybody starts the app, they start a request to a webservice where a new file path is found or not if the app is up to date. But if not I want to start the download (http://www.myDomain.com/ myApp_01.apk) but I have no idea how? I think I must invoke an Intent... or something else. Can anybody help me? Regards Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: New OMX component integration into Opencore
OMX component should be registred with pvcore check the pv omx component for more info On Tue, Sep 14, 2010 at 1:19 PM, Bikash jamwal bikash.jam...@gmail.comwrote: hi Prajeesh i am new to android . i am also trying to integrate new codec to pv opencore . can u please give me detailed info what u have done so .. thanks Bikash -- Forwarded message -- From: praji prajeesh.mo...@gmail.com Date: Aug 2, 11:38 am Subject: New OMX component integration into Opencore To: Android Developers I am trying to integrate VP8 video codec into PV opencore FW in Froyo test at PV test application level. I have done the following steps, 1. Made a new folder for vp8 @ external/opencore/codecs_v2/omx/ omx_vp8. 2. Made appropriate modifications in the omx_baseclass, omx_common etc. 3. Modified the PV test app (external/opencore/codecs_v2/omx/ omx_testapp) for testing VP8. 4. included the VP8 source code to froyo. 5. Included new oscluuid for VP8 With these modifications, the build is fine. The shared libraries and binaries are creating properly. Also OMX-MasterInit is passing. But the application fails at OMX_GetHandle(). *pHandle is coming as zero. I am using the PV OMX core. I am just adding a new codec which is not supported by PV Opencore and test at PV test_app level. Can you please answer my below queries: 1. Do we need to change the pvplayer.cfg file? Bcoz i am using the PC omx_core itself. 2. Any other changes needs to be done for integrating a new component into Opencore? Please provide you valuable inputs. Let me know if need any additional informations. Thanks, Prajeesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, Nagaraj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Possible to disable a permission in the program code?
Hi, my app uses Internet permission, is there a way to disable it in the code? Many 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: I need complete code of http and php for file upload from android to php server please help me!!!
Again, the same question, Where are you stuck -Kumar Bibek http://techdroid.kbeanie.com On Sep 20, 10:57 am, Hotouch hoto...@gmail.com wrote: Kumar, basically i got code from anddev forum and its for sdk 1.1 but i need complete fresh code for latest SDK. please help me out. thanks Regards, David On Sep 19, 10:17 pm, Kumar Bibek coomar@gmail.com wrote: Where are you stuck by the way? And yes, give some details please... -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 19, 6:44 pm, Prakash Iyer thei...@gmail.com wrote: Sure. You can find it here, http://www.catb.org/esr/faqs/smart-questions.html Will you take fries and a drink with that? On Sep 19, 2010 9:36 AM, David Harris bumpy...@gmail.com wrote: Dear Members, Please Please help me!!! I need the java code for sending file from android and then a php code to accept that file and store in my server. I tried lots of code available on internet but have not succeeded :( i am using latest Android SDK. Please provide me with complete code if some one has. I am working on this issue from last 14 days and it's still not resolved :( Regards, David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Possible to disable a permission in the program code?
No... -Kumar Bibek http://techdroid.kbeanie.com On Sep 20, 2:11 pm, Mystique joven.ch...@gmail.com wrote: Hi, my app uses Internet permission, is there a way to disable it in the code? Many 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: Animating the ExpandableListView
I guess, this question was dumped away below so many new ones. So, re- surfacing it. :) On Sep 17, 12:36 pm, Kumar Bibek coomar@gmail.com wrote: Hi All, Is it possible to animate the expanding and collapsing of the groups in a ExpandableListView. I could not find any examples anywhere. Kumar Bibekhttp://techdroid.kbeanie.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: Invoke Download APK from my Application
But with this invoke I redirect to any Application on the Device that could use this URL or? This could not only be the Downloadmanager... Is there a way to download this file only by the download manager? Regards Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Invoke Download APK from my Application
You're fighting against the way Android Intents work. The idea is that apps can register to handle certain types of content, this is what the user has chosen so it is best to not interfere with that process. In practice, an out-of-the-box handset will always send http links to the browser app, which will recognise the .apk extension and treat them as apps. The user will still need to enable non-Market downloads, but the OS will take them to the screen to do that so it is reasonably pain-free. Jim On 20 September 2010 10:25, Markus rookee1...@googlemail.com wrote: But with this invoke I redirect to any Application on the Device that could use this URL or? This could not only be the Downloadmanager... Is there a way to download this file only by the download manager? Regards Markus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Custom Screen Locker
check this out... *frameworks/policies/base/phone/com/android/internal/policy/impl* for the files *LockPatternKeyguardView.java* and *LockScreen.java* On Thu, Sep 16, 2010 at 7:03 PM, Tez earlencefe...@gmail.com wrote: How do I write a custom screen locker? Where is the source of the default screen locker? Any links on writing custom screen lockers? Cheers, Earlence -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: rotate screen180 degress
anyone? On Sep 19, 9:29 pm, rukiman ruksh...@optushome.com.au wrote: I came across another post to help me. But when I use FlipLayout in my view all I get it a black screen. However if I change the rotation from 180 to 0 all is drawn ok. But I want my screen upside down. Whats going on here? import android.content.Context; import android.graphics.Canvas; import android.graphics.Matrix; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.LinearLayout; public class FlipLayout extends LinearLayout { private Matrix mMatrix = new Matrix(); private float[] mTemp = new float[2]; public FlipLayout(Context context, AttributeSet attr) { super(context, attr); mMatrix.postRotate(180); } @Override protected void dispatchDraw(Canvas canvas) { int sc = canvas.save(); canvas.setMatrix(mMatrix); super.dispatchDraw(canvas); canvas.restoreToCount(sc); } @Override public boolean dispatchTouchEvent(MotionEvent event) { final float[] temp = mTemp; temp[0] = event.getX(); temp[1] = event.getY(); mMatrix.mapPoints(temp); event.setLocation(temp[0], temp[1]); return super.dispatchTouchEvent(event); } } On Sep 19, 3:13 pm, rukiman ruksh...@optushome.com.au wrote: I have a need to rotate the views in my activities by 180 degrees. Any good suggestions on how to do this? Taking into account touch inputs still working. My activity is made up of several views in a linearlayout and also makes use of toasts.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: appbucket: all apps for $9.99 per year, are we just going to watch?
One could potentially go after the credit card companies for racketeering. However, lawyer$ would be needed, and who's going to pay them? Kinda need an app writer's union of a sort. On Sep 19, 10:23 pm, chrispix chris...@gmail.com wrote: Obviously they have to get their money some how. Sign up for an account as a developer, then find out what their account is. Email the paypal operator etc, and say you will file a suite for assisting in illegal activities and want xyz$ refunded to you. d...@appbucket.net supp...@appbucket.net Chris. On Sep 19, 5:37 pm, mot12 martin.hu...@gmail.com wrote: On Sep 19, 5:15 am, Pent tas...@dinglisch.net wrote: I'm surprised everyone is focused on what the app developers can do. The people responsible for the market need to remove this stuff, it can't be so hard. I waited a few weeks then posted on Market Help. Amazed they've not done anything, it looks really bad having an advert to cracked apps at the top of all the paid app comments. I mean really. This is a very good point, Pent. It would take little to - remove the comments from these criminals since they are very easily identified - ban their gmail accounts - allow developers to make a comment in the market by allowing them to purchase their own apps: appbucket is a website by thieves, the developers get screwed and you will get screwed. Or something like this. Instead, Android gives a free advertisement platform for these pinheads. I feel really ignored by you, Google. Helll -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
Have you tried increasing some of the memory allocations for Eclipse up front in your ini file? It maybe sounds counter intuitive but giving Eclipse a little more memory will save some of the disk swapping and I/O is where the real slow down is for any desktop application in my experience. Basic memory management configuration -Xms512m -- minimum memory size for pile and heap -Xmx1024m -- maximum memory size for pile and heap -XX:MaxPermSize=512m -- maximum memory size for storing permanent JVM objects. Read more about this statement on the Eclipse website. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Audio Record problem (urgent)
Hi all I'm an android starter I used MediaRecorder and MediaPlayer to record voice via mic before This time,I try AudioRecord and AudioTrack to record voice But when I try to start, it's forced to be shut down I've no idea where is wrong? here are my code ~ Could any one tell me why? TKS in advance :) public class audioRecorderTest2 extends Activity { boolean isRecording = true; private static final String Tag = audioRecorder; private static final boolean log = true; Button recordButton; Button stopButton; OnClickListener record_listener = null; OnClickListener stop_listener = null; int frequency = 8000; int channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO; int audioEncoding = AudioFormat.ENCODING_PCM_16BIT; protected static final int MENU_ABOUT = Menu.FIRST; protected static final int MENU_Quit = Menu.FIRST + 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); initResourceRefs(); setTitle(Audio recorder test...); record_listener = new OnClickListener() { @Override public void onClick(View arg0) { AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); //int actualBufferSize = 4096*8; int bufferSize = AudioTrack.getMinBufferSize(frequency,channelConfiguration,audioEncoding); int actualBufferSize = bufferSize;//4096*8 AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, frequency, channelConfiguration, audioEncoding, actualBufferSize, AudioTrack.MODE_STREAM); byte[] buffer = new byte[actualBufferSize]; AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, frequency, channelConfiguration, audioEncoding, actualBufferSize); am.setRouting(AudioManager.MODE_NORMAL, AudioManager.ROUTE_EARPIECE, AudioManager.ROUTE_ALL); am.setSpeakerphoneOn(true); am.setMicrophoneMute(false); Log.d(Tag,Is speakerphone on? : + am.isSpeakerphoneOn()); audioTrack.setPlaybackRate(frequency); audioRecord.startRecording(); audioTrack.play(); int frameSize = bufferSize;//320 while(isRecording == true) { try{ int bufferReadResult = audioRecord.read(buffer, 0,frameSize); if(bufferReadResult == AudioRecord.ERROR_INVALID_OPERATION) if(log)Log.d(Tag,record.read:ERROR_INVALID_OPERATION returned); else if(bufferReadResult == AudioRecord.ERROR_BAD_VALUE) if(log)Log.d(Tag,record.read:ERROR_BAD_VALUE returned); else if(bufferReadResult != frameSize) if(log)Log.d(Tag,record.read:Requested + frameSize + bytes but read + bufferReadResult + bytes); else audioTrack.write(buffer,0,buffer.length); }catch(Exception e) {if(log)Log.e(Tag,ERROR: + e.toString());} } audioRecord.stop(); audioTrack.stop(); audioRecord.release(); audioTrack.release(); } };//record_listener stop_listener = new OnClickListener() { @Override public void onClick(View arg0) { isRecording = false; } };//stop_listener setListeners(); }//onCreate private void initResourceRefs()//初始化 { recordButton =
[android-developers] Delay in updating the database parameter value
Hi All, I am facing problems in updation of database param value. When I write into that table from code, and try to see it by selecting that table from adb, it shows correct value which was newly updated. But if I do a reboot immediately(within 10-15secs) then after reboot I still see the older value. Not the one which was updated before reboot. But if I wait for 15secs after updating in db and then do the reboot, then everything is fine. I guess problem is because some database buffers are not updated in db. Does anyone has any idea about this issue ? How to forcefully update the database buffers, so that value will not reset to older one after reboot? Thanks Swapnil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application crashes on device boot.
This routinely happens to assorted built in apps on the emulator for me, especially if I unlock the screen before its done churning through all of its morning ritual, so it might not be your fault. But then again it might. Would be interesting to find out what happens on a device, and what happens if you let the emulator sit for a while before unlocking the screen (or go in with adb or ddms and wait until nothing is using cpu) On Sep 20, 3:02 am, Samuh samuh.va...@gmail.com wrote: That is exactly what I thought when I saw ANR, but I am just setting an Alarm in it. No network calls. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Nokia inviting Developers to become an Ovi store publisher.
Does the OVI store sell software to users of Android devices? So far I thought this was a Nokia-specific thing. Christian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Significance of underlining the word currently typed on an EditText box
Hi, As I type a word on a EditText, it gets underlined, even if I turn off Show suggestions, Auto correct errors, Auto punctuate via Settings of Multi-touch keyboard. Why is Android system underlining the currently typed word on an EditText?The underlines go away, once a space bar is typed and is seen on the word being typed currently. When I set the input type of the EditText to TYPE_MASK_VARIATION, I no longer see the underlining, but then I do not see suggestions/auto corrections even if I turn on suggestions/auto corrections etc(I am using etBox.setInputType(InputType.TYPE_MASK_VARIATION);) Kindly let me know, what is the significance of Android system underlining the texts -Vignesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Timing an ASyncTask
Hi all. I'm running a network service within an ASyncTask. I want to be able to time the task, and after a certain period of time interrupt it. Is there a simple way to do this? Basically, when the doInBackground() methods starts, I want to say If it hasn't completed in 30 seconds, do something else. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: I need complete code of http and php for file upload from android to php server please help me!!!
On Mon, Sep 20, 2010 at 12:57 AM, Hotouch hoto...@gmail.com wrote: but i need complete fresh code for latest SDK So do what the rest of us do and write it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to add a unique label on the OverlayItems?
On Mon, Sep 20, 2010 at 1:42 AM, marlan marlan12...@googlemail.com wrote: I tried to extend overlayitem and overwrite the draw method (but now, everthing get a shadow also the number). When drawing the number, don't call down to the base class that draws the shadow, if that's not what you want. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse - can it get faster?
I personally do not see a slowdown could this because dualcore proc and about 6 gigs of ram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 programatically refresh Gallery View?
Is there anyone who can help me on this? On Sep 17, 10:20 am, Abhi abhishek.r.sha...@gmail.com wrote: I want to programatically refresh Gallery every time I download a video from my application. It doesn't automatically show up in the gallery. Thanks, AB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When to add child views to a compound control?
Hi, I'm trying to make a compound control which looks like the following: LinearLayout ImageView / ImageView / ... /LinearLayout I want to fill a horizontal linear layout with as many image views as possible - but only a single row of them. I'm not sure where to add the image views to the layout at runtime, I am getting inconsistent results, for example: class Foo extends LinearLayout { void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, r, t, b); addAsManyImageViewsAsCanFit(r-l); } void addAsManyImageViewsAsCanFit(int width) { while (we can fit more) { ImageView iv = new ImageView(getContext()); iv.setLayoutParams(...); addView(iv); } } } I'm sure image views are getting added as child views, but they don't always take up space in the layout somehow (I'm giving them a fixed width and height for now). Where should I be adding the image views to the layout? onLayout? onSizeChanged? After adding each one, do I need to call requestLayout() or some other method on the parent? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to install the files in the file system on android phone (samsung galaxy 5)
Dear Sir, 1) I am using Eclipse IDE and Android SDK 2.1 for my application. My application reads some data files from the File System, so using DDMS i push all the files in /data/data/com.mypackage/ folder and run my application on emulator. I am able to see my desired output properly on the emulator. 2) Now i have Android device and i don't know how to push the files in the Internal memory of the phone. I have installed driver CD. But it only shows me the SD card directory. 3) Actually what i want is that the moment my application is installed and run it should read the data files from the file system. So there should be no added efforts to push the files in the file system. 4)Means can i pack my data files with my .apk file and when the apk is getting installed can the data files be placed directly in the internal memory(file system) i.e. /data/data/com.mypackage/ folder. Is this possible ?? if yes can you please tell me how to do it. 5) Can you please help me on this issue. regards, Sameer Kamble -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 anyone's active install % dropping like a rock lately?
Same happening here On Aug 26, 9:47 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: I've spotted this thread only now. It's happening to me too - in a week it dropped from a _steady_ 45% (held since several weeks) to 36%, with a single new active install out of regularly increasing new downloads. I even posted that on my blog - a commenter pointed out that when people upgrade an app the download counter might increase, while the active install doesn't (actually, I've released two updates in this month). Can you confirm? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
How can this be done from the clients device? I mean is there an API that I can use to test it or is this done automatically? On Sep 19, 7:24 pm, Dianne Hackborn hack...@android.com wrote: I don't think this will gain you any more than just checking whether the app is signed with your own cert. In order to modify an app, the pirate will need to re-sign it with their own cert and since they don't have your private key they can't sign it with yours. (Note that cert checking is done by comparing SHA hashes anyway.) On Sun, Sep 19, 2010 at 3:07 PM, Bret Foreman bret.fore...@gmail.comwrote: As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Audio Record problem (urgent)
you should also show logcat output. On Sep 20, 5:35 am, melo fredchou0...@gmail.com wrote: Hi all I'm an android starter I used MediaRecorder and MediaPlayer to record voice via mic before This time,I try AudioRecord and AudioTrack to record voice But when I try to start, it's forced to be shut down I've no idea where is wrong? here are my code ~ Could any one tell me why? TKS in advance :) public class audioRecorderTest2 extends Activity { boolean isRecording = true; private static final String Tag = audioRecorder; private static final boolean log = true; Button recordButton; Button stopButton; OnClickListener record_listener = null; OnClickListener stop_listener = null; int frequency = 8000; int channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO; int audioEncoding = AudioFormat.ENCODING_PCM_16BIT; protected static final int MENU_ABOUT = Menu.FIRST; protected static final int MENU_Quit = Menu.FIRST + 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); initResourceRefs(); setTitle(Audio recorder test...); record_listener = new OnClickListener() { @Override public void onClick(View arg0) { AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); //int actualBufferSize = 4096*8; int bufferSize = AudioTrack.getMinBufferSize(frequency,channelConfiguration,audioEncoding); int actualBufferSize = bufferSize;//4096*8 AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, frequency, channelConfiguration, audioEncoding, actualBufferSize, AudioTrack.MODE_STREAM); byte[] buffer = new byte[actualBufferSize]; AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, frequency, channelConfiguration, audioEncoding, actualBufferSize); am.setRouting(AudioManager.MODE_NORMAL, AudioManager.ROUTE_EARPIECE, AudioManager.ROUTE_ALL); am.setSpeakerphoneOn(true); am.setMicrophoneMute(false); Log.d(Tag,Is speakerphone on? : + am.isSpeakerphoneOn()); audioTrack.setPlaybackRate(frequency); audioRecord.startRecording(); audioTrack.play(); int frameSize = bufferSize;//320 while(isRecording == true) { try{ int bufferReadResult = audioRecord.read(buffer, 0,frameSize); if(bufferReadResult == AudioRecord.ERROR_INVALID_OPERATION) if(log)Log.d(Tag,record.read:ERROR_INVALID_OPERATION returned); else if(bufferReadResult == AudioRecord.ERROR_BAD_VALUE) if(log)Log.d(Tag,record.read:ERROR_BAD_VALUE returned); else if(bufferReadResult != frameSize) if(log)Log.d(Tag,record.read:Requested + frameSize + bytes but read + bufferReadResult + bytes); else audioTrack.write(buffer,0,buffer.length); }catch(Exception e) {if(log)Log.e(Tag,ERROR: + e.toString());} } audioRecord.stop(); audioTrack.stop(); audioRecord.release(); audioTrack.release(); } };//record_listener stop_listener = new OnClickListener() { @Override public void onClick(View arg0) { isRecording =
[android-developers] Re: refresh gallery after saving photo in android
I am looking for the same answer. On Aug 29, 2:26 pm, Patrick patrick.manges...@gmail.com wrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julian lepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Triboletti andy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: refresh gallery after saving photo in android
http://developer.android.com/reference/android/media/MediaScannerConnection.html 20.09.2010 18:41, Abhi пишет: I am looking for the same answer. On Aug 29, 2:26 pm, Patrickpatrick.manges...@gmail.com wrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julianlepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Tribolettiandy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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 install the files in the file system on android phone (samsung galaxy 5)
You can store files in /res/raw. Just create the folder, import the files, and they'll get installed with your package. They will be read- only, though, so you'll need to move them at runtime if you plan to change them. I do this with certain geographical information for location based services and it works great. On Sep 20, 7:08 am, sameer kamble sameerbkam...@gmail.com wrote: Dear Sir, 1) I am using Eclipse IDE and Android SDK 2.1 for my application. My application reads some data files from the File System, so using DDMS i push all the files in /data/data/com.mypackage/ folder and run my application on emulator. I am able to see my desired output properly on the emulator. 2) Now i have Android device and i don't know how to push the files in the Internal memory of the phone. I have installed driver CD. But it only shows me the SD card directory. 3) Actually what i want is that the moment my application is installed and run it should read the data files from the file system. So there should be no added efforts to push the files in the file system. 4)Means can i pack my data files with my .apk file and when the apk is getting installed can the data files be placed directly in the internal memory(file system) i.e. /data/data/com.mypackage/ folder. Is this possible ?? if yes can you please tell me how to do it. 5) Can you please help me on this issue. regards, Sameer Kamble -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Timing an ASyncTask
Look at the java docs for Timer and TimerTask. The TimerTask can cancel the AsyncTask or else the AsyncTask can cancel the timer, whichever finishes first. Either way, you never run longer than the Timer time. On Sep 20, 6:21 am, Neilz neilhorn...@gmail.com wrote: Hi all. I'm running a network service within an ASyncTask. I want to be able to time the task, and after a certain period of time interrupt it. Is there a simple way to do this? Basically, when the doInBackground() methods starts, I want to say If it hasn't completed in 30 seconds, do something else. 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: Nokia inviting Developers to become an Ovi store publisher.
This looks like spam to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Nokia inviting Developers to become an Ovi store publisher.
On Mon, Sep 20, 2010 at 2:27 AM, James Baker james.baker...@gmail.comwrote: If u are a developer nd dream it big then grab this opportunity today. I think this says it all. If u try it out post back nd let us know how it goes. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] tiling nine patch (instead of stretching)
hello, is it possible to draw a 9-patch that tile its border instead of stretching it ? regards, Christophe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: gridview
hi, the hello GridView example will may be help you : http://developer.android.com/guide/tutorials/views/hello-gridview.html On Sep 20, 8:40 am, FAISON N.P faisons.ma...@gmail.com wrote: hi, i am new in android.Now i need create a gridview with 50 columns for my application.Then i did this gridview created with 5000 px width and in the horizontal view.its now working .But the problem is its loads about 5 row of data first time about(250) images in gridview.when scroling it reuse the above rows. but actually i need to load only the images in screen.but it not working,anyone know please help[ me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
I think her point is that the checksum is verified during install, so if you can access the checksum there's no real need to re-verify it. (I didn't see that she said HOW to access the checksum, though.) But of course if a pirate can find the code where you fetch the checksum and patch in his own hard-coded value then he can circumvent this. A little more robust would be to access the public key used in the certificate that installed the app (again, not sure how this would be done) and then use that public key to sign communications with the server. The pirate would have to crack a more complex algorithm, but again, once he figured out where to patch he could just patch the public key into the pirated code. On Sep 20, 9:12 am, gcstang gcst...@gmail.com wrote: How can this be done from the clients device? I mean is there an API that I can use to test it or is this done automatically? On Sep 19, 7:24 pm, Dianne Hackborn hack...@android.com wrote: I don't think this will gain you any more than just checking whether the app is signed with your own cert. In order to modify an app, the pirate will need to re-sign it with their own cert and since they don't have your private key they can't sign it with yours. (Note that cert checking is done by comparing SHA hashes anyway.) On Sun, Sep 19, 2010 at 3:07 PM, Bret Foreman bret.fore...@gmail.comwrote: As an additional anti-pirating strategy, I'd like to compute a checksum on my application at runtime. Since my app communicates with a back-end server, I can send the checksum with each message and the server can deny service to altered apps. Not a complete solution to piracy by any means, but a fairly easy way to raise the bar. Anyone know how an app can get access to it's load image at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Streaming MP3 Playback Problems on Android 2.2
Well, if you Google for pandora froyo you get a ton of pages with people having this problem (at least I believe it to be the same). One particularly insightful link is here: http://forum.xda-developers.com/showthread.php?t=737111 where they show you can fix the problem by reverting to the old OpenCore engine instead of the new StageFright media engine used in 2.2. This can only be done on rooted phones however... There is alos this article: http://www.androidcentral.com/sirius-xm-app-updated-fix-froyo-bug - Apparently sirius app had this problem and fixed it somehow. Probably by changing the format to a lower bitrate on their server or something which is not available to me in my emusic app. I wish someone from the Android team would comment here and let us know what the appropriate route to take is. Is there a workaround we can implement now? Is an updated froyo release on the way for affected devices? On Sep 19, 11:07 pm, Ben Pellow benjamin.pel...@gmail.com wrote: I'm seeing this issue as well, and only with 2.2. I've seen it with the emulator, droid x, nexus one and moto droid. It happens lot more to me (10x+) with high bitrate streams than low ones (320 vs 120 kbps mp3). It seems intermittent and I can find nothing on the web posted about it other than this thread. It is a real problem with media apps running in 2.2. The constant -2147483648 always appears with this MediaPlayer error, and could probably be tracked down in the source. The problem is not with eMusic or the stream. I have seen the same issue with streams hosted by other services. On Sep 18, 12:51 pm, jdeslip jdes...@gmail.com wrote: Yes, it works fine on 2.1 and below. This is almost certainly related to the problems the Pandora/Last.fm etc.. apps have on 2.2. I just want to find out what the recommended tactic for developers with this problem is. Is Google on verge of releasing an update 2.2? Or is there an official workaround? On Sep 17, 11:58 pm, Indicator Veritatis mej1...@yahoo.com wrote: If that were the problem, then why would it work under 1.5 and fail under 2.2? On Sep 17, 8:50 pm, Doug beafd...@gmail.com wrote: Have you considered that eMusic might be doing something on the server side to prevent the stream from working? Many sites that stream things will leave urls active for a limited time or require you to preserve an HTTP session. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application checksum at runtime
This is why I want to do the checksum at runtime. If the pirate patches the code, the checksum won't match any more. I'm trying to detect an altered apk. On Sep 20, 8:51 am, DanH danhi...@ieee.org wrote: The pirate would have to crack a more complex algorithm, but again, once he figured out where to patch he could just patch the public key into the pirated 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] projecting the Android screen
I have a Motorola Droid phone and I want to demo an app on it. The demo will be to a largish group so I'd like to connect the phone to an inFocus or similar SVGA projector. Does anyone know of a USB dongle to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] map can't load at specific places
hi, something strange about my map. it doesn't load at specific location. The map view has a custom overlay where i draw some path on it. can some advise me what is wrong? below is the logcat: W/MapActivity( 7383): Recycling dispatcher com.google.googlenav.datarequest.datarequestdispatc...@449759d0 V/MapActivity( 7383): Recycling map object. D/AK8973 ( 64): Compass Start I/Maps.MyLocationOverlay( 7383): Request updates from gps I/Maps.MyLocationOverlay( 7383): Request updates from network I/MapActivity( 7383): Handling network change notification:CONNECTED E/MapActivity( 7383): Couldn't get connection factory client D/( 7383): sensorChanged (0.0, -51.0, -9.0) I/ActivityManager( 85): Displayed activity com.example.aed/.map.Map_Form3: 359 ms (total 359 ms) I/Resources( 6816): Loaded time zone names for en_US in 136ms. W/ResponseProcessCookies( 6816): Cookie rejected: [version: 0][name: GX][value: DQAAAKcAAADd95py3zcFbtQok2_w_egnqGJyPhA2uKES00wHkhZJvpBhbb057sKZRjJA9lpxFuZzYkXIMx- G5oWuSlTOzCUokaCmqdk-6ludCQ8aI9roT30- CLLOmuz5yEz2Jc2zojSGKR4lOrfGTytEL3yLl3b9sgz3vEOSxY1TNxCgbR5ASC0c_IferaPaXC2_E0oPZXdmzsZf7NGvWIONgii_eO6h_xjVxx0YguYE1iZ6XoMTSA] [domain: mail.google.com][path: /proxy/gmail/mail][expiry: Tue Oct 05 00:19:23 GMT+08:00 2010]. Illegal domain attribute mail.google.com. Domain of origin: android.clients.google.com W/ResponseProcessCookies( 6816): Cookie rejected: [version: 0][name: GX][value: DQAAAKgAAAClm3_ZUp- W1qhykUNHNpT0PKaw4pZdmIUUah2zzf3ug4al8dxLJeIppsfG_CS7EzM3bq3i1sd9pMkrv1Yl0Qu44cflMCRkj6T- H0yKWegBUZgvtUiBuiObgedKXOiiMTmnDjUKdUvQNa9W2V17dqyBapf2iy4nZetXQyzzJTvpTW1QyWYSKhoJiIGxk- DmO_7cKmSJ4vl4yxeBTvaCNCH7XtqQanr0PRRq8UBGT3DrEg][domain: mail.google.com][path: /proxy/gmail/mail][expiry: Tue Oct 05 00:19:24 GMT+08:00 2010]. Illegal domain attribute mail.google.com. Domain of origin: android.clients.google.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] projecting the Android screen
That would be cool to know too. So we're taking about something to tether to the microusb? On Sep 20, 2010 10:20 AM, Bret Foreman bret.fore...@gmail.com wrote: I have a Motorola Droid phone and I want to demo an app on it. The demo will be to a largish group so I'd like to connect the phone to an inFocus or similar SVGA projector. Does anyone know of a USB dongle to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: projecting the Android screen
Exactly. A dongle that I plug into the microusb and plugs into the SVGA input of the inFocus. Of course it would need a driver on the phone to push the screen to the USB port. On Sep 20, 9:26 am, John T. Haggerty jpcoo...@gmail.com wrote: That would be cool to know too. So we're taking about something to tether to the microusb? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Matching TextView heights
I have two vertical TableLayouts containing rows of TextViews separated by some graphics. Something like this: R-L GraphicsR-R R-L R-R R-L R-R R-L R-R R-L R-R The R-R TextViews have a fixed width, which means they grow vertically when the text is longer than will fit in the width. The text is set at runtime so this height is not known in advance. I want the height of the R-L rows to exactly match the height of the R-R rows with the R-R rows being the reference source for the height. Once I do a TextView.setText and a TextView.setWidth on the R-R TextViews, the height of those TextViews should be determined. Then I can do a TextView.setMinHeight on the R-L TextViews. But I'm having trouble getting the height value from the R-R TextViews. The TextView.getHeight method returns zero. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] map can't load at specific places
On Mon, Sep 20, 2010 at 11:24 AM, dadada ytbr...@gmail.com wrote: can some advise me what is wrong? You haven't really provided enough information to help you. For starters, you may want to try elaborating on what it doesn't load means and what the specific location is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting the right highlighting behavior in a ListView
I have a ListView set up in single-choice mode like this: ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:background=#ff44 android:layout_weight=1 android:drawSelectorOnTop=false android:choiceMode=singleChoice android:scrollbars=vertical android:headerDividersEnabled=true/ When I press my finger on a choice, the selection changes from white text on light gray to black text on orange. But as soon as I lift my finger, the selection reverts to the original state. I'd like that chosen row to remain in the black-text-on-orange mode when I lift my finger so that the user knows what was selected in the list (my onClickListener has captured the selected row, of course). Is there a way I can tell the ListView that I want this behavior or something similar so the user knows what item has been selected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Anyone else ever submitted to Motorola Shop4Apps? I did and so far it seems dismal - share your experience?
So a long time ago before Moto supported paid apps in Shop4Apps I had submitted one of my apps - it was a paid app but that was before I knew they didn't support devs getting paid yet. So I asked them to remove all my apps. A few weeks ago I found out that they now supported getting paid thru paypal, so you could sell your apps in China. So I resubmitted my apps. Unfortunately the only bad thing is it's like putting your app in a black hole. You really don't get any stats! Once a week they update your download count. And right now the download count is China only (even though Shop4Apps supports Mexico and Brazil as well). So far my download count shows as 7. This is for an app the gets bought over 40 times a day on the Android market. Wow - a whopping 7 so far, so this really still feels like a waste of time just like when I originally got into it. I still think because of this that alternative markets are never going to pan out - because for one, people don't seem to know about them, and for two, the companies that run the alternative market don't even provide the same level of information that Google does - even though we as devs complain that Google needs to provide more stats, better stats, it still seems they are ahead of the other market providers. Like I said, for motodev, it's like your app just disappears. You just hope that after a month, or up to 90 days, that you get some money for it somehow. Has anyone else here posted their app to Shop4Apps and would you be willing to share your current experience? I'm wondering if it's time to get back out of their store AGAIN. I also read that many people were concerned that since it's for China you won't get many sales anyway since they pirate everything over there instead. Well, just venting - misery loves company. I already make good sales on Android Market but obviously the more markets available (more countries) the better your results should be.. -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting the right highlighting behavior in a ListView
Bret Foreman wrote: I have a ListView set up in single-choice mode like this: ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:background=#ff44 android:layout_weight=1 android:drawSelectorOnTop=false android:choiceMode=singleChoice android:scrollbars=vertical android:headerDividersEnabled=true/ When I press my finger on a choice, the selection changes from white text on light gray to black text on orange. But as soon as I lift my finger, the selection reverts to the original state. I'd like that chosen row to remain in the black-text-on-orange mode when I lift my finger so that the user knows what was selected in the list (my onClickListener has captured the selected row, of course). Is there a way I can tell the ListView that I want this behavior or something similar so the user knows what item has been selected? cacheColorHint http://developer.android.com/resources/articles/listview-backgrounds.html -- stephen lau | st...@grommit.com | http://whacked.net | @stevel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] tiling nine patch (instead of stretching)
Sorry, that's not currently supported. On Mon, Sep 20, 2010 at 8:30 AM, Christophe christophe.lebesner...@gmail.com wrote: hello, is it possible to draw a 9-patch that tile its border instead of stretching it ? regards, Christophe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Keyboard layout different languages. Android Tablets Keyboard Layout.
HI I am trying to find the keyboard layout. However i saw a few posts where resources are mentioned to find QWERTY This is simply not enough for what I am working on. I like to know which english keyboard is present on the device. I suspect that android is not going to give me this option on java layer. Maybe Native ? Furthermore with the new tablets I think this is an important feature needed. { en-MY, English (Malaysia)}, { en-NZ, English (New Zealand)}, { en-PH, English (Republic of the Philippines)}, { en-SG, English (Singapore) }, { en-ZA, English (South Africa)} Thanks Everyone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Possibility of a curved Gallery
I mean that there is nothing about the implementation of the gallery widget that requires it be in the framework. You can implement the exact same thing in your app, and make it behave however you want. You can start by copying the code from the framework (though this will probably require some tweaking to get it to use only SDK APIs). On Mon, Sep 20, 2010 at 1:44 AM, Navaneeth sen4u@gmail.com wrote: Thanks Dianne, But i dint understand what you meant by this : but it is entirely implementable with the SDK.. Could you please explain. I also want to know whether the approach i am following is correct one or is there a better approach. So far i have tried to draw a curved line and was able to place some text(not TextViews) along the path at specific intervals. I was also able to place a drawable on the center Text. The things to be implemented are : a) Give click property to every text along the path b) update the list of text with the new list on UP or DOWN key press. The problem i am facing right now is : a) the onDraw is getting called in an infinte loop. (I tried to set a flag but then it is drawing and in the next instant the screen gets cleared) b) i am not getting the onKey functionalities. Please find my code below : package com.android.mygallery; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PathMeasure; import android.graphics.PixelFormat; import android.graphics.PointF; import android.graphics.RectF; import android.graphics.Matrix.ScaleToFit; import android.graphics.Paint.Style; import android.graphics.Path.Direction; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.view.View.OnKeyListener; import android.widget.Gallery; import android.widget.ImageView.ScaleType; public class MyCurvedGallery extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setFormat(PixelFormat.TRANSPARENT); myView view = new myView(this); view.requestLayout(); setContentView(view); } class myView extends View implements OnKeyListener{ private Paint myPaint; boolean completeFlag = false; public myView(Context context) { super(context); myPaint = new Paint(); myPaint.setAntiAlias(true); myPaint.setStyle(Style.STROKE); myPaint.setStrokeWidth(2); myPaint.setColor(Color.WHITE); myPaint.setTextSize(30); this.setOnKeyListener(this); } protected void onDraw(Canvas canvas) { canvas.drawColor(Color.BLACK); PointF mPoint1 = new PointF(600, 30); PointF mPoint2 = new PointF(2500, 700); PointF mPoint3 = new PointF(300, 1070); Path myPath = new Path(); Path myPath2 = new Path(); Matrix m = new Matrix(); myPath = buildPath(mPoint1, mPoint2); myPath2 = buildPath(mPoint2, mPoint3); myPath2.addPath(myPath); Bitmap myBitmap = BitmapFactory.decodeResource(this.getResources(), R.drawable.selector3); int width = myBitmap.getWidth(); int height = myBitmap.getHeight(); int newWidth = 350; int newHeight = 200; float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; m.postScale(scaleWidth, scaleHeight); m.postRotate(51); Bitmap resizedBitmap = Bitmap.createBitmap(myBitmap, 0, 0, width, height, m, true); // if(completeFlag == false) drawBitmapAlongPath(myPath2, resizedBitmap, canvas, m);
[android-developers] Re: Application checksum at runtime
Really a waste of time here. Spend your time making good features, and you will get good customers. Don't risk screwing a real customer over when something goes wrong in your protection -niko On Sep 20, 11:18 am, Bret Foreman bret.fore...@gmail.com wrote: This is why I want to do the checksum at runtime. If the pirate patches the code, the checksum won't match any more. I'm trying to detect an altered apk. On Sep 20, 8:51 am, DanH danhi...@ieee.org wrote: The pirate would have to crack a more complex algorithm, but again, once he figured out where to patch he could just patch the public key into the pirated 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: projecting the Android screen
Some Nokia phones let you plug a special adapter into the audio port and get a VGA output. I suppose it's purely a matter of the phone mfgr being motivated to provide the facility. On Sep 20, 11:20 am, Bret Foreman bret.fore...@gmail.com wrote: I have a Motorola Droid phone and I want to demo an app on it. The demo will be to a largish group so I'd like to connect the phone to an inFocus or similar SVGA projector. Does anyone know of a USB dongle to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application checksum at runtime
But if the pirate patches the code he can't install it with the same checksum, since the phone will cry foul when the app is loaded and the checksums don't match. Now certainly he could patch out the code that fetches the checksum, but he could do the same with code that calculates the checksum dynamically. On Sep 20, 11:18 am, Bret Foreman bret.fore...@gmail.com wrote: This is why I want to do the checksum at runtime. If the pirate patches the code, the checksum won't match any more. I'm trying to detect an altered apk. On Sep 20, 8:51 am, DanH danhi...@ieee.org wrote: The pirate would have to crack a more complex algorithm, but again, once he figured out where to patch he could just patch the public key into the pirated 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: Application checksum at runtime
(I have to confess that I don't understand why Android allows self- signed apps anyway. If apps had to be signed by a traceable certificate it would be a lot easier to control piracy.) On Sep 20, 11:18 am, Bret Foreman bret.fore...@gmail.com wrote: This is why I want to do the checksum at runtime. If the pirate patches the code, the checksum won't match any more. I'm trying to detect an altered apk. On Sep 20, 8:51 am, DanH danhi...@ieee.org wrote: The pirate would have to crack a more complex algorithm, but again, once he figured out where to patch he could just patch the public key into the pirated 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 can I track down a crash in a .so without a stack trace?
My game is crashing on the HTC Hero and I have managed to get a user to send me their log. I don't see a Java stack trace at all. It looks like it's crashing in the OpenGL driver. I was wondering how I could go about trying to determine the problem. I was thinking of adding that acra project that sends crash reports to a server but I am thinking it will just send the same that is in this log. I have error checking everywhere so I am really at a lose where to go from here. I even went out and bought a HTC Hero but Canada only has 1.5 for the OS. 09-19 09:09:40.957 I/DEBUG ( 53): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 09-19 09:09:40.957 I/DEBUG ( 53): Build fingerprint: 'sprint/htc_heroc/ heroc/heroc:2.1-update1/ERE27/169236:user/release-keys' 09-19 09:09:40.957 I/DEBUG ( 53): pid: 5999, tid: 6009 com.lonedwarfgames.tanks.androidpaid 09-19 09:09:40.957 I/DEBUG ( 53): signal 11 (SIGSEGV), fault addr 0089e268 09-19 09:09:40.957 I/DEBUG ( 53): r0 00387ab4 r1 00387ab0 r2 0089e268 r3 03ff 09-19 09:09:40.957 I/DEBUG ( 53): r4 0005 r5 0089e268 r6 009705b0 r7 00387ab0 09-19 09:09:40.957 I/DEBUG ( 53): r8 00382128 r9 00382c24 10 004554c0 fp 00162480 09-19 09:09:40.957 I/DEBUG ( 53): ip sp 462f8ce4 lr 8052b6a8 pc 8053ec30 cpsr 2010 09-19 09:09:43.007 I/DEBUG ( 53): #00 pc 0003ec30 /system/lib/egl/ libGLES_qcom.so 09-19 09:09:43.007 I/DEBUG ( 53): #01 lr 8052b6a8 /system/lib/egl/ libGLES_qcom.so 09-19 09:09:43.007 I/DEBUG ( 53): 09-19 09:09:43.007 I/DEBUG ( 53): code around pc: 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec20 e0225492 e08cc144 e59041b4 e2810004 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec30 e5925000 e2444003 e4815008 e5925004 09-19 09:09:43.017 I/DEBUG ( 53): 8053ec40 e5805000 e5b25008 e2810004 e2822004 09-19 09:09:43.017 I/DEBUG ( 53): 09-19 09:09:43.017 I/DEBUG ( 53): code around lr: 09-19 09:09:43.017 I/DEBUG ( 53): 8052b698 e1a03004 e1a01007 e1a9 e12fff3c 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6a8 e599a024 e59d0008 e318 e087b10a 09-19 09:09:43.017 I/DEBUG ( 53): 8052b6b8 0a0a e3a03000 e58d3000 e599c080 09-19 09:09:43.017 I/DEBUG ( 53): 09-19 09:09:43.017 I/DEBUG ( 53): stack: 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca4 00383128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ca8 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cac 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb0 00382528 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb4 8053bfc0 /system/lib/egl/ libGLES_qcom.so 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cb8 0080 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cbc 00383128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc0 00382c24 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc4 00382128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cc8 00383128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ccc 8052afe0 /system/lib/egl/ libGLES_qcom.so 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd0 4224 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd4 00383128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cd8 df002777 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cdc e3a070ad 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ce0 00382128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): #00 462f8ce4 0400 09-19 09:09:43.017 I/DEBUG ( 53): 462f8ce8 004554c0 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cec 009705b0 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf0 00382528 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf4 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cf8 0008 09-19 09:09:43.017 I/DEBUG ( 53): 462f8cfc 09-19 09:09:43.017 I/DEBUG ( 53): 462f8d00 0006 09-19 09:09:43.017 I/DEBUG ( 53): 462f8d04 001dbfa0 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8d08 00382128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8d0c 00383128 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8d10 00382528 [heap] 09-19 09:09:43.017 I/DEBUG ( 53): 462f8d14 004554c0 [heap] 09-19 09:09:43.027 I/DEBUG ( 53): 462f8d18 00162480 [heap] 09-19 09:09:43.027 I/DEBUG ( 53): 462f8d1c 8051fa14 /system/lib/egl/ libGLES_qcom.so 09-19 09:09:43.027 I/DEBUG ( 53): 462f8d20 001dbfa0 [heap] 09-19 09:09:43.027 I/DEBUG ( 53): 462f8d24 09-19 09:09:43.027 I/DEBUG ( 53): 462f8d28 00148aa8 [heap] -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 right highlighting behavior in a ListView
I dont think cacheColorHint is what you are looking for. What you are asking for seems to go against established UI principles on Android. Are you trying to do multi-selection? What is the use case for this functionality? On Sep 20, 1:14 pm, Stephen Lau st...@grommit.com wrote: Bret Foreman wrote: I have a ListView set up in single-choice mode like this: ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:background=#ff44 android:layout_weight=1 android:drawSelectorOnTop=false android:choiceMode=singleChoice android:scrollbars=vertical android:headerDividersEnabled=true/ When I press my finger on a choice, the selection changes from white text on light gray to black text on orange. But as soon as I lift my finger, the selection reverts to the original state. I'd like that chosen row to remain in the black-text-on-orange mode when I lift my finger so that the user knows what was selected in the list (my onClickListener has captured the selected row, of course). Is there a way I can tell the ListView that I want this behavior or something similar so the user knows what item has been selected? cacheColorHint http://developer.android.com/resources/articles/listview-backgrounds -- stephen lau | st...@grommit.com |http://whacked.net| @stevel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Matching TextView heights
Have you looked into table layout? How do you want the R-L text to flow if it's not the same height as R-R. Maybe an image would better explain what you need. On Sep 20, 12:48 pm, Bret Foreman bret.fore...@gmail.com wrote: I have two vertical TableLayouts containing rows of TextViews separated by some graphics. Something like this: R-L Graphics R-R R-L R-R R-L R-R R-L R-R R-L R-R The R-R TextViews have a fixed width, which means they grow vertically when the text is longer than will fit in the width. The text is set at runtime so this height is not known in advance. I want the height of the R-L rows to exactly match the height of the R-R rows with the R-R rows being the reference source for the height. Once I do a TextView.setText and a TextView.setWidth on the R-R TextViews, the height of those TextViews should be determined. Then I can do a TextView.setMinHeight on the R-L TextViews. But I'm having trouble getting the height value from the R-R TextViews. The TextView.getHeight method returns zero. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Exception Logging
Ok... I said I would have this ready by the end of the weekend, and it might still be the weekend somewhere :). Sleep got in the way of finishing it last night. I have just packaged the API and uploaded it to my server. You can either download just the documentation or the entire .zip file (which includes the documentation). Zip file here : http://bgies.com/media/exceptionlogger/exceptionlogger.zip Doc file here : http://bgies.com/media/exceptionlogger/bgies_Exception_Logger_Documentation.pdf Yeah... I know... I use long names :). I think the package is ready to use as is, BUT don't take any chances with your project. BACK IT UP BEFORE INSTALLING THIS JUST IN CASE. I still have some work to do on the website so you can see you exceptions but it will be done within the next day or two. You can use it immediately by using this key : DUMMYTESTKEY for the developer key. When you use this key, the server doesn't log the exception, it simply echoes the parameters you sent, and if you are debugging you should see the returned values in Logcat. To get the values logged, you need either a Test Developer Key (this will be limited to a couple of hundred log entries per day per key. The actual value will be floating target for now), or a Prod Developer Key (unlimited logging). To obtain those, you need to register on my website and wait for me to get around to creating one for you. For this first release, I will be a little cautious about giving out too many dev keys, so please have a little patience. I just want to be sure the server can easily handle the volume, and I want to make sure I didn't create any problems with the Exception Logger when I packaged it (my testing seems to indicate it is good, but I want to be sure). PLEASE don't use this in any production apps for now. Consider this release a public BETA, just for debugging. I've also created a forum, so if you could report any problems or criticisms there I would appreciate it: http://bgies.com/index.php/forums/9-android-exception-logger.html And please do give me some feedback, even it's only I wouldn't use that if my life depended on it because ???. Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.com http://bistroblurb.com http://ihottonight.com http://forcethetruth.com --- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 right highlighting behavior in a ListView
I'd like the user to know which choice they selected without exiting the ListView. As you can see from the OP, I'm in singleChoice mode, just expecting one choice. On Sep 20, 10:49 am, Mike dg vinb...@gmail.com wrote: I dont think cacheColorHint is what you are looking for. What you are asking for seems to go against established UI principles on Android. Are you trying to do multi-selection? What is the use case for this functionality? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How wrong is this?
This might be somewhat similar to what people have been discussing in the AppBucket thread. But well, the thing is I made a really simple app that tracks your supermarket expenses, and impatient to test how the android market works I released a beta version of my app with limited capabilities, for free of course. A couple of days after that I get an email from someone from hanster.com, aparently an independent app store willing to publish my app. I replied the email saying that I would be ok in participating, but asking more questions. What's my surpise when today I just found out my app is already being promoted on their site! I mean, it's not a big deal, the app is free anyways, but come on.. I feel like they're kind of forcing the situation here. Couldn't they just create an empty account and give me the freedom to publish a refined version of it which (I'm working on right now). I don't know.. just feel like they're forcing the situation here. What do you think? Nelson PS. They even put it under the windows mobile tab.. what about that?!! check it out: http://www.handster.com/supermarket_stats.html?dm=1multi=1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Matching TextView heights
Yes, I'm using TableLayouts, two of them in fact. The two columnar TableLayouts cannot be merged into one because of the graphics in between. On Sep 20, 10:52 am, Mike dg vinb...@gmail.com wrote: Have you looked into table layout? How do you want the R-L text to flow if it's not the same height as R-R. Maybe an image would better explain what you need. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How wrong is this?
Yeah, I've gotten emails from them too. I actually had some questions for them, which they quite nicely answered, and created my account only after I ok'd it. But... same as with your application, mine is in the Windows Mobile section. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.09.2010 22:29 пользователь Bilthon bilt...@gmail.com написал: This might be somewhat similar to what people have been discussing in the AppBucket thread. But well, the thing is I made a really simple app that tracks your supermarket expenses, and impatient to test how the android market works I released a beta version of my app with limited capabilities, for free of course. A couple of days after that I get an email from someone from hanster.com, aparently an independent app store willing to publish my app. I replied the email saying that I would be ok in participating, but asking more questions. What's my surpise when today I just found out my app is already being promoted on their site! I mean, it's not a big deal, the app is free anyways, but come on.. I feel like they're kind of forcing the situation here. Couldn't they just create an empty account and give me the freedom to publish a refined version of it which (I'm working on right now). I don't know.. just feel like they're forcing the situation here. What do you think? Nelson PS. They even put it under the windows mobile tab.. what about that?!! check it out: http://www.handster.com/supermarket_stats.html?dm=1multi=1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Matching TextView heights
You can put your graphics into the table instead - instead of a table row. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.09.2010 22:30 пользователь Bret Foreman bret.fore...@gmail.com написал: Yes, I'm using TableLayouts, two of them in fact. The two columnar TableLayouts cannot be merged into one because of the graphics in between. On Sep 20, 10:52 am, Mike dg vinb...@gmail.com wrote: Have you looked into table layout? How do... -- You received this message because you are subscribed to the Google Groups Android Developers g... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 right highlighting behavior in a ListView
This could just as well be a big list of radio buttons, but there's a lot of choices so I think a ListView makes more sense. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Screen rotation and ProgressDialog
How should I handle an active ProgressDialog when the screen is rotated? Perhaps I should cancel the dialog in onDestroy and restart it in response to a SavedInstanceState flag? I'm getting an exception and the following message in logcat: E/WindowManager( 4240): Activity com.quickdroid.MainActivity has leaked window c om.android.internal.policy.impl.phonewindow$decorv...@44789150 that was original ly added here E/WindowManager( 4240): android.view.WindowLeaked: Activity com.quickdroid.MainA ctivity has leaked window com.android.internal.policy.impl.PhoneWindow $DecorView @44789150 that was originally added here E/WindowManager( 4240): at android.view.ViewRoot.init(ViewRoot.java:24 7) E/WindowManager( 4240): at android.view.WindowManagerImpl.addView(Window ManagerImpl.java:148) E/WindowManager( 4240): at android.view.WindowManagerImpl.addView(Window ManagerImpl.java:91) E/WindowManager( 4240): at android.view.Window $LocalWindowManager.addVie w(Window.java:424) E/WindowManager( 4240): at android.app.Dialog.show(Dialog.java: 241) E/WindowManager( 4240): at android.app.ProgressDialog.show(ProgressDialo g.java:107) E/WindowManager( 4240): at android.app.ProgressDialog.show(ProgressDialo g.java:90) E/WindowManager( 4240): at android.app.ProgressDialog.show(ProgressDialo g.java:85) ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?
On 9/18/10 12:59 , Brad Gies wrote: Actually, I am very impressed with the response, and I hope you thanked them. It would be good to encourage the Market people to respond to this kind of stuff :). For sure I personally thank people at Google working on the issue and bugs happen, so not a big problem in general. But I've to say I'm not impressed with the timing of the response, since it appears they started responding with much delay, when a lot of people here got upset and puzzled about what was happening. Since the bug has been confirmed, and it's a blatant bug (I mean, it might be difficult to find a fix and apply it, but I'd expect that some consistency check at Google should raise the warning early, especially then the first people start to complain), I hope that anything similar in future will be posted to an official Google blog before so many people start scratching their heads for months. I mean: many other kind of bugs are annoying, but not as annoying as this one, since it has to do with the people's feedback about your app. The feedback channel with users is already broken enough, as it has been said many times, and when you put a big effort in providing yourself the information, the feedback channels, you try to fix bugs and add features that people are asking for, and you see what's supposed to be the most important metric decreasing (*), well, you might be tempted to give up (especially if you're on a free project). (*) Downloads are not the most important thing for me. They are somewhat a measure of how you good are in making people aware of you, while the active install ratio is the measure of how much people like your stuff. In this situation, with downloads steadily increasing and active ratio steadily decreasing, I've been thinking for a long time that I was relatively good in inform people of my product, but I was describing it a cut above its real value. Sort of good ad, bad implementation. Fortunately, it *could* not be that way. -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Screen rotation and ProgressDialog
On Mon, Sep 20, 2010 at 2:01 PM, Bret Foreman bret.fore...@gmail.comwrote: How should I handle an active ProgressDialog when the screen is rotated? If you use showDialog(), it gets managed for you. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Screen rotation and ProgressDialog
But showDialog takes a resource ID and I'm creating my progress dialog on the fly. Perhaps it's a better idea to create it statically? On Sep 20, 12:07 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 20, 2010 at 2:01 PM, Bret Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingbret.fore...@gmail.comwrote: How should I handle an active ProgressDialog when the screen is rotated? If you use showDialog(), it gets managed for you. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Any way to display a TIFF image?
I'm thinking that BitmapFactory.decode... only handles JPEG (and maybe PNG) images? Is there some way to decode a TIFF file? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 wrong is this?
Well, they MIGHT be legit. Their TsCs appear to be fairly normal (if a little ragged in places) -- no worse than your average credit card agreement. They have a valid address listed in the Chicago area, but it appears (from nearby real estate listings) to be a townhome in the $200-350K range (nice looking, 90s construction). So very likely a bedroom operation. On Sep 20, 1:29 pm, Bilthon bilt...@gmail.com wrote: This might be somewhat similar to what people have been discussing in the AppBucket thread. But well, the thing is I made a really simple app that tracks your supermarket expenses, and impatient to test how the android market works I released a beta version of my app with limited capabilities, for free of course. A couple of days after that I get an email from someone from hanster.com, aparently an independent app store willing to publish my app. I replied the email saying that I would be ok in participating, but asking more questions. What's my surpise when today I just found out my app is already being promoted on their site! I mean, it's not a big deal, the app is free anyways, but come on.. I feel like they're kind of forcing the situation here. Couldn't they just create an empty account and give me the freedom to publish a refined version of it which (I'm working on right now). I don't know.. just feel like they're forcing the situation here. What do you think? Nelson PS. They even put it under the windows mobile tab.. what about that?!! check it out:http://www.handster.com/supermarket_stats.html?dm=1multi=1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Screen rotation and ProgressDialog
On Mon, Sep 20, 2010 at 2:18 PM, Bret Foreman bret.fore...@gmail.comwrote: But showDialog takes a resource ID It's not a resource ID. That id is to ID the dialog itself. It can be whatever you need it to be to ID that particular dialog. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Screen rotation and ProgressDialog
But a ProgressDialog object does not have a setId method. So how would I identify the dialog? On Sep 20, 12:27 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 20, 2010 at 2:18 PM, Bret Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingbret.fore...@gmail.comwrote: But showDialog takes a resource ID It's not a resource ID. That id is to ID the dialog itself. It can be whatever you need it to be to ID that particular dialog. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Matching TextView heights
I wish it was that simple but I need to scroll the R-L and R-R columns independently. Back to the original question, how can I discover the final height of R-R? On Sep 20, 11:39 am, Kostya Vasilyev kmans...@gmail.com wrote: You can put your graphics into the table instead - instead of a table row. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Screen rotation and ProgressDialog
On Mon, Sep 20, 2010 at 2:37 PM, Bret Foreman bret.fore...@gmail.comwrote: But a ProgressDialog object does not have a setId method. So how would I identify the dialog? I think you should review this: http://developer.android.com/guide/topics/ui/dialogs.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Quick Contact Window integration like Facebook and Twitter
I am guessing from the lack of response, either nobody is interested or nobody really knows. Well, I made some progress on figuring out this seemingly undocumented feature. Here are some of the findings/relevant links to the relevant information: When creating RawContacts, the Sync Service provides a meta-data file that contains ContactsDataKind information. Each ContactsDataKind must have a mimetype associated with it. See: http://developer.android.com/resources/samples/SampleSyncAdapter/AndroidManifest.html http://developer.android.com/resources/samples/SampleSyncAdapter/res/xml/contacts.html Note in the above contacts.xml metadata file, the use of the mimetype: android:mimeType=vnd.android.cursor.item/ vnd.samplesyncadapter.profile This should make the ContactsDataKind show up in the ContactDetails screen. Now for integrating with the Quick Contacts menu, it is necessary to define an Activity in the AndroidManifest.xml that has the mimetype above in the data section: activity android:name=.MyActivityName android:icon=@drawable/sampleicon intent-filter action android:name=android.intent.action.VIEW/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=vnd.android.cursor.item/ vnd.samplesyncadapter.profile/ /intent-filter /activity This is how far I have gotten so far. Will update more if there is interest in this thread. On Sep 19, 6:55 pm, Nik Bhattacharya nik.bhattacha...@frogdesign.com wrote: Bump. Can anyone help on this subject? How do I integrate with the quick contacts menu? On Sep 9, 10:39 am, Nik Bhattacharya nik.bhattacha...@frogdesign.com wrote: I would like to add an quick contact option to the Quick Contact window that displays for a contact. How do I get this option to show up when the user taps on a contact? I looked at the Facebook and Twitter applications and can see that they have this: Facebook: activity name=.ProfileTabHostActivity intent-filter action name=android.intent.action.VIEW/ category name=android.intent.catefory.DEFAULT/ data mimeType=vnd.android.cursor.item/vnd.facebook.profile host=com.android.contacts/ /intent-filter /activity Twitter: activity name=.ProfileTabActivity intent-filter action name=android.intent.action.VIEW/ category name=android.intent.catefory.DEFAULT/ data mimeType=vnd.android.cursor.item/vnd.twitter.profile host=com.android.contacts/ /intent-filter /activity First of all, I am not sure that the snippets above are *really* what get used to plug into the quick contacts. It's just an educated guess. I still am at a bit of a loss to figure out exactly how to plug into the quick contact window (for example, which xml/java file did Facebook/Twitter apps use to declare their intent to plug into the quick contact window, declare the icon to show etc?). I am not specifically interested in Facebook/Twitter, its just that these apps have plugged into the new API successfully. I am just looking for an end to end example (ideally) or simply pointers to how to integrate my contacts sync info into the quick contacts menu. Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Market the Google I/O 2010 features
Anyone know when will the features introduced in Google I/O about installing apps from the market via the website and etc be released? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Screen rotation and ProgressDialog
Yeah, I read this first but was pretty confused. Now I've read it again after the discussion here and it makes more sense. I've got it working now. On Sep 20, 1:05 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 20, 2010 at 2:37 PM, Bret Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingbret.fore...@gmail.comwrote: But a ProgressDialog object does not have a setId method. So how would I identify the dialog? I think you should review this:http://developer.android.com/guide/topics/ui/dialogs.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] A ListView that acts like RadioButtons
I get a list of choices from an external server. Sometimes this list is long so using actual radio buttons is ugly. The user can only pick one item from the list. I'd like the ListView to act just like RadioButtons - one item in the list is highlighted and if a different item is picked then that item is highlighted and the previous choice is unhighlighted. Can this be done? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Droidcon uk
Who's coming? I am gonna be there, but I am alone and I am flying from Italy. Regards, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 access internal storage on htc incredible
Hello, How do I access photos/videos on htc incredible ? Will INTERNAL_CONTENT_URI work? I don't have the phone to actually test it. I designed my whole app around EXTERNAL_CONTENT_URI and just today came to know about htc incredible internal storage issues. Has anyone address this problem ? Thanks 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: Droidcon uk
I'm going... Via train rather than plane, but my travel time from rural Wales might well equal yours from Italy. ;^) String On Sep 20, 9:49 pm, Federico Paolinelli fedep...@gmail.com wrote: Who's coming? I am gonna be there, but I am alone and I am flying from Italy. Regards, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: TextView resets its location after an animation
The answer is that it needs to have animation.setFillAfter( true ); in order to persist the animation after its end. Strange that this is not true by default. On Sep 17, 3:09 pm, ClarkBattle clarkbat...@gmail.com wrote: Ive tried several interpolators and many different values. It always resets. RELATIVE_TO_PARENT is not appropriate for this app. I have a small textView that just needs to shrink to a small strip on the side of the screen when swiped, exposing another text view below it. Thanks though. On Sep 17, 12:55 pm, Tommy droi...@gmail.com wrote: I haven't worked to much with animations but the ones I have that slide in from the right look like this: Animation inFromRight = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f ); inFromRight.setDuration(600); inFromRight.setInterpolator(new AccelerateInterpolator()); maybe try to copy and paste that into your app and see if it changes anything. They look almost the same to me except for some numbers and AccelerateInterpolator that I use. Let me know if it works if you copy/paste it. Tommy Android Mobile Phone Application Developer Database Administrator .net Web Specialist -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of ClarkBattle Sent: Friday, September 17, 2010 3:37 PM To: Android Developers Subject: [android-developers] TextView resets its location after an animation I am using a Translate animation on a text view. TranslateAnimation animation = new TranslateAnimation( TranslateAnimation.RELATIVE_TO_SELF, 0.0f, TranslateAnimation.RELATIVE_TO_SELF, 0.8f, TranslateAnimation.RELATIVE_TO_SELF, 0f, TranslateAnimation.RELATIVE_TO_SELF, 0f ); animation.setDuration( ANIMATION_DURATION ); animation.setInterpolator( new DecelerateInterpolator() ); myTextView.startAnimation( animation ); This works in that it slides the text view to the right. However, when the animation is complete it puts the text view right back where it started! I was under the impression tat the view should remain where the animation left it. Why does this happen? 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en