[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)
Hello, thank you all for many helpful posts. I tried to replace all getters and setters with member variables and asteroids[i], bullets[i]... with corresponding asteroid, bullet... variables. Though this is very important issue, as I supposed, this doesn't improve FPS in my case. I agree, that keeping an array of all objects, is not a good practice. But I want to keep my example as simple as possible, of course in real game this all should be replaced with more reliable code. But, when I only draw a few objects on the screen, and when I see big difference between update and draw methods, I realise that main source of performance impact is Canvas's affine transforms and draws. Best Regards, Andre -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 permissions
By change in the future, you means in future Android releases ? I guest some backward-compatibility systems will be put in place then... Thanks a lot for your answers. On 18 jan, 18:53, Dianne Hackborn hack...@android.com wrote: It means the UI behavior could change in the future. On Mon, Jan 18, 2010 at 7:43 AM, ColletJb collet...@gmail.com wrote: Hi, I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can somebody explain me ? About the Permissions, it is possible to set four levels (Normal, Dangerous, Signature and SignatureOrSystem) The documentation is here : http://developer.android.com/reference/android/R.styleable.html#Andro... About the Dangerous level, it's written : For example, any dangerous permissions requested by an application may be displayed to the user and require confirmation before proceeding, or some other approach may be taken to avoid the user automatically allowing the use of such facilities. What does Some other approach may be taken... means ? How does that work ? Is there any example ? Regards. Collet Jb -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%2Bunsubs cr...@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: Effectively using MediaPlayer and saving resources...
Dont call release when it is still playing. The start() function returns immediatly. So it could still run. Release it, when it is finished. If this doesnt work out, create them once as class members (and release at onDestroy). Dont forget that a long sound will disturb the ui thread. In this case you have to create a thread for sound playing. Did you also saw the class SoundPool ? Try something like this: final MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sound0); mp.setOnCompletionListener(new OnCompletionListener() { public void onCompletion(MediaPlayer mp) { mp.release(); }); mp.setOnErrorListener(new OnErrorListener(){ public boolean onError(MediaPlayer arg0, int arg1, int arg2) { mMp.release(); return false; } }); mp.start(); Greets Klaus On 18 Jan., 14:31, Breezy mbre...@gmail.com wrote: I'm writing a program for my toddler and I'm running into a problem. I call mediaplayer numerous times. Each time a button is clicked it runs media player, but it's a different sound. So should I create a new instance each time? Here's what I'm looking at... if(buttonClicked == button1) { MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sound0); mp.start(); mp.release(); } else if(buttonClicked == button2) { MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sound1); mp.start(); mp.release(); } Now that seems to work fine on the emulator. When I pack it up into an APK and put it on my G1 I can only do it 7 times before it force closes. I BELIEVE the memory gets full or something. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.
On Jan 19, 12:50 am, Dianne Hackborn hack...@android.com wrote: Specifically which problems are you having? Problem is, half the time we don't know. Users post 1* Market comments saying Force closes on Droid or Doesn't work on Samsung Moment, and unless you have that specific handset to test on, you're SOL. You sanity check on an emulator instance of the same resolution and OS version, and nothing is obviously broken, so where do you go? The increasing array of hardware devices (with different OS versions, screen sizes, and crappy vendor-specific UIs) simply exacerbates the structural problems with the Market, where it's far too easy for users to downrate apps, and with no meaningful way for the developer to respond. Put another way, the current Market punishes devs for ANY flaw in their app, real or perceived, and the diversity of the device ecosystem is bound to generate such flaws. I recognize that nobody (including Google) can force OS upgrades to existing devices. That responsibility lies with manufacturers and carriers, and all too often, they shirk it in favor of selling the next handset of the week. Perhaps Google could apply some pressure, perhaps not. At the least, please ensure that Google Experience devices have sufficient RAM to enable future upgrades; I'm still bitter about the G1's memory limit, which makes me feel like I'm being punished for being an early adopter. What Google CAN do is improve the flippin' Market. It's routinely mentioned as one of the weakest links in the Android chain; the upgrade with 1.6 was a step in the right direction, but many more are needed, benefiting both users and developers. Addressing some of the many Market issues on b.android.com would stop so-called fragmentation issues from being magnified the way they now are. Google can also slow the frenetic pace of new OS releases, to allow both devs and handset vendors a chance to catch up. Finally, I'd really like to see Google sponsor some sort of hardware support for devs. The recent Developer Labs were a good start; they should be recurring events at the very least, ideally an ongoing service where registered devs could stop by a Google office at any time and test on hardware which they can't afford to buy themselves. Some sort of loaner program or DeviceAnywhere-style service might also be possible. What I'm NOT opposed to is the proliferation of Android devices in the wild. I believe it's one of the ecosystem's real strengths: the diversity and choice in hardware. I'd love to see a WIDER range available, from cheap QVGA PMPs through 10 touchscreen tablets and e- readers. There's a lot of untapped Android potential out there, and every new class of device opens up a new market segment to buy my apps. :^) Growth is good. 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] Question about gallery widget
Hello, I use a gridView to show pictures stored on the SD card and when I click on a picture I start a new activity where I show the pictures in a gallery (to show each picture in full screen), but I have a problem : i can't start the gallery at the correct picture , How can I do to tell to the gallery to go at the picture clicked before. (I use a ImageAdapter to store the pictures likes the samples in ApiDemos). Can you help me please ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 increase FPS (now ~20, desired ~40-50)
Hello Robert. I want to thank you for sharing your experience with beginners, your dev journal is extremely helpful! I will change my code to work with Matrix as you suggest and post the result here... If I correctly understood your question about surface opacity - Yes my surface is opaque, I don't use any transparent themes in Activity or View, if not - then how I can check my surface opacity? Best Regards, Andre On 18 янв, 21:19, Robert Green rbgrn@gmail.com wrote: The little stuff definitely adds up and helps but when talking about such a small number of objects, I don't think it will double his FPS to fix. First of all, thanks Andre for actually posting your code so that we have some context to work with and I'm also glad to hear that you've read my dev journal :) Upon first glance, I'm thinking that it's the transforms that are costing you so much. Can you try this for me? Create a field Matrix that you will reuse for every entity/object draw. At the beginning of your draw method, set the Canvas's matrix to that one. This will stop all of the Matrix allocating that you're ending up with. Every time you call Canvas.setMatrix(null), it nulls the matrix out, but then when you use a matrix function like Canvas.rotate(), it will create a new Matrix again, so you're instantiating lots of objects within your draw call and that's the first thing you'll want to stop doing. Now, instead of calling Canvas.setMatrix(null), you can just call myMatrix.loadIdentity(). That will reset the matrix and will make it so that anything you've done with it before that call is gone. I load up a default Paint() to use for bitmap draws, though after looking at the Canvas source, I don't know if it matters because it passes a 0 into the native method and I didn't look any further into the source. If you want to be sure that you're not antialiasing or anything like that, use a default Paint() instance for drawing bitmaps and do not set antialiasing or anything like that on it. That will cost you. Also, the surface your drawing on is opaque, not transparent, right? It'll cost more to draw onto a transparent surface. I'm also wondering if something screwy is going on, like somehow the bitmaps you're drawing are much bigger than you think they are. I'd throw some logging in of Bitmap dimensions when they are loaded so you know exactly how many pixels are being copied. Perhaps you'll find something awry there. If you're still having problems, I recommend isolating calls to see if any one thing is hurting you more, then investigating it. It's hard to test everything you've got all at once for performance. On Jan 18, 8:07 am, skink psk...@gmail.com wrote: On Jan 18, 2:49 pm, Andre andranik.abra...@gmail.com wrote: Let me clarify... Lets look at two methods: - updateAsteroidsPhysics() - drawAsteroids(Canvas canvas) They both use getters instead of members, and asteroids[i] instead of asteroid variable, the only difference between them, that drawAsteroids (Canvas canvas) is also use canvas calls, and I think this is most heavy part, becouse: updateSpaceshipPhysics(); updateAsteroidsPhysics(); updateBulletsPhysics(); checkForCollisions(); takes ~1-5ms to perform, and: drawSpaceship(canvas); drawAsteroids(canvas); drawBullets(canvas); takes ~25ms to perform (and even more, if I increase number of asteroids or start to fire bullets) yes, i know, thats why you should optimize your draw*(Canvas) methods. now, after changes, do you see any changes in FPS? pskink- Скрыть цитируемый текст - - Показать цитируемый текст - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] virtual keyboard on dialog webview not shown
Hi, i wonder how to show the virtual keyboard on dialog webview? i've tried to show it manually but nothing happens . 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: Data connectivity problem.Server failed to communicate
found the solution.. it was the problem with tomcat web-server.. when i switched to XAMPP web- server everything worked just fine... does'nt android support tomcat web server?? On Jan 18, 9:27 am, g...@devicedriven ginokur...@gmail.com wrote: Can any body tell me why this is happening..Whenever i try to open a website located in the intranet server,(or even a local machine with tomcat web server) i get this message...Data connectivity problem..Server failed to communicate.Please try again later... The browser works fine for all other websites..i tried google,youtube,yahoo,etc..all of them worked fine.. Do i need to set any other value in the emulator?? Any one else got the same problem?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 increase FPS (now ~20, desired ~40-50)
On Jan 19, 9:41 am, Andre andranik.abra...@gmail.com wrote: Hello Robert. I want to thank you for sharing your experience with beginners, your dev journal is extremely helpful! I will change my code to work with Matrix as you suggest and post the result here... If I correctly understood your question about surface opacity - Yes my surface is opaque, I don't use any transparent themes in Activity or View, if not - then how I can check my surface opacity? Best Regards, Andre well, i think Robert already found something related to drawing bitmaps, see: http://groups.google.com/group/android-developers/browse_thread/thread/b77727f0b2256b16/71cdd1e1d9e0085b?lnk=gstq=argb_#71cdd1e1d9e0085b you use ARGB_, try ARGB_ instead pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ATTENTION ANDROID TEAM: Take back control of Android.
That's what I'm talking about ! We do not know, where problems are, when software works on clean Android and do not works on some devices. For example: Hero's UI's is BUGGY as hell (for example, keyboard events are not fired correctly). Another example: why Samsung's GPS is working not the same as in SDK, G1, Magic and Hero ? Why it does not fires all GPS events properly ? These small differences often make our apps unusable. Besides, (Dianne), just look at Market ! Read comments of users of Google Maps or other Google apps. There ARE a lot of users reporting FORCE CLOSE for some Google Apps. It is not just a my app problem. It is a whole Android platform problem. I do not know, maybe some bad design, or just maybe platform is too open for every stupid mutha.. sorry, phone manufacturer. I know, they are not interested in creating really nice working, 100% Android compatbile device. They just want to grab our money. So, if Google's applications are force closing.. how the hell, my app could be better ? It could not. Programming Android is funny, but testing your code, making it run on every device available, is going to be MISSION IMPOSSIBLE, especially for small developers. Waste of time. On 19 Sty, 09:32, String sterling.ud...@googlemail.com wrote: Problem is, half the time we don't know. Users post 1* Market comments saying Force closes on Droid or Doesn't work on Samsung Moment, and unless you have that specific handset to test on, you're SOL. You sanity check on an emulator instance of the same resolution and OS version, and nothing is obviously broken, so where do you go? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 increase FPS (now ~20, desired ~40-50)
On Jan 19, 10:33 am, skink psk...@gmail.com wrote: On Jan 19, 9:41 am, Andre andranik.abra...@gmail.com wrote: Hello Robert. I want to thank you for sharing your experience with beginners, your dev journal is extremely helpful! I will change my code to work with Matrix as you suggest and post the result here... If I correctly understood your question about surface opacity - Yes my surface is opaque, I don't use any transparent themes in Activity or View, if not - then how I can check my surface opacity? Best Regards, Andre well, i think Robert already found something related to drawing bitmaps, see:http://groups.google.com/group/android-developers/browse_thread/threa... you use ARGB_, try ARGB_ instead pskink i'm sorry, i was to fast, this code is commented out ... pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Add-On Maps for 1.5 and higher
Hi Dianne, Dianne Hackborn wrote: As of 2.0 I believe there is an additional attribute on uses-library that lets you specify that it is optional. This sounds like a really good step. However, I failed to find it mentioned in the docs (maybe I'm just looking in the wrong place). When this works, could we expect it to also work for uses-permission, as outlined over a year ago? That would be a really good thing too, IMHO. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 increase FPS (now ~20, desired ~40-50)
That's OK, I've already tried use RGB_565 and other bitmap configs, this makes sence if you using background image (wich should be RGB_565 for faster draw). On 19 янв, 12:37, skink psk...@gmail.com wrote: On Jan 19, 10:33 am, skink psk...@gmail.com wrote: On Jan 19, 9:41 am, Andre andranik.abra...@gmail.com wrote: Hello Robert. I want to thank you for sharing your experience with beginners, your dev journal is extremely helpful! I will change my code to work with Matrix as you suggest and post the result here... If I correctly understood your question about surface opacity - Yes my surface is opaque, I don't use any transparent themes in Activity or View, if not - then how I can check my surface opacity? Best Regards, Andre well, i think Robert already found something related to drawing bitmaps, see:http://groups.google.com/group/android-developers/browse_thread/threa... you use ARGB_, try ARGB_ instead pskink i'm sorry, i was to fast, this code is commented out ... pskink- Скрыть цитируемый текст - - Показать цитируемый текст - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] licensing cost for google maps?
Hi, I'm building a map component to a webview-based Android app. I learned from the Google Sales department using the JavaScript API of Google Maps has a licensing fee for Asset Tracking apps. But I can't get an answer from them whether using the Android maps API also has a licensing cost or it's free to use. Anyone knows 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] Re: I am a german market developer. How can I see the english comments to my program?
sorry, you are right. comments are also missing from androidzoom and andrlib :( On Sun, Jan 17, 2010 at 10:47 PM, Martin google-gro...@digle.de wrote: But since the Google Market just allows to use the Market api for 5 Minutes an hour, cyrket.com is down and all the caching-pages will not be up to date anymore. (Info for germans: http://www.androidpit.de/android/de/de/forum/thread/391210/Warum-Cyrket-down-ist?si=0 ) On 16 Jan., 15:37, Adrian Vintu adrianvi...@gmail.com wrote: androlib and androidzoom both do a cache of the Android Market. Aaik you do not need to create any new accounts on these 2 sites. BR, Adrian Vintu On 1/16/10, Adrian Vintu adrianvi...@gmail.com wrote: I usehttp://www.androidzoom.comThey update comments more often. BR, Adrian Vintu On 1/16/10, Al alcapw...@googlemail.com wrote: Androlib.com allows you to use this if you link an app to your account on their site. They keep a cache of comments and update it on a regular basis so the comments you see are not always the most recent ones, but it's the best alternative at this time. Martin wrote: No, I don't mean the comments I wrote for my program. I mean the comments of other users who rated my application. I just can see the german comments and every time I want to see other comments, I have to clear the Market-cache and change the locale on my phone. Is there a faster way to see comments from other countries? Greetings, Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Downloading images in ListView
Hi, I am using ListView to show 1 TextView and 1 ImageView. I want to download images for this ImageView from server. Is there any api in android like setImageURI() which will take url e.g. http://abc.com/ myimage.png, otherwise i'll have to write my own http code downloading images in for loop. Thanks in advance. Namrata -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Downloading images in ListView
AFAIK, no API like that. You need to download as a inputstream, convert to bitmap, set the bitmap to imageview using the API setImageBitmap() to the imageView. Nithin On Jan 19, 3:47 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am using ListView to show 1 TextView and 1 ImageView. I want to download images for this ImageView from server. Is there any api in android like setImageURI() which will take url e.g. http://abc.com/ myimage.png, otherwise i'll have to write my own http code downloading images in for loop. Thanks in advance. Namrata -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 increase FPS (now ~20, desired ~40-50)
On Jan 19, 10:57 am, Andre andranik.abra...@gmail.com wrote: That's OK, I've already tried use RGB_565 and other bitmap configs, this makes sence if you using background image (wich should be RGB_565 for faster draw). and you are sure that your bitmaps (asteroids, bullets, space ship) are ARGB_ (Bitmpam#getConfig())? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Downloading images in ListView
Just now found one API setImageURI() for ImageView. You can try this too.. setImageURI(Uri.parse(http://abc.com;)); Nithin On Jan 19, 3:59 pm, Nithin nithin.war...@gmail.com wrote: AFAIK, no API like that. You need to download as a inputstream, convert to bitmap, set the bitmap to imageview using the API setImageBitmap() to the imageView. Nithin On Jan 19, 3:47 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am using ListView to show 1 TextView and 1 ImageView. I want to download images for this ImageView from server. Is there any api in android like setImageURI() which will take url e.g. http://abc.com/ myimage.png, otherwise i'll have to write my own http code downloading images in for loop. Thanks in advance. Namrata -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AdWhirl - any experience with it?
You can find out how to do all that by going to the appropriate website - admob, quattro etc. They all have good instructions on that. I can only really speak about AdMob because I havent used the others much. There, you get paid per click but each click is not necessarily worth the same amount. Location, for example, plays a major part. A click in China might only bring you 1 cent, but in europe perhaps 10 cents. I think it also depends on supply and demand of the ads themselves. Typically, a developer might be getting something like 1USD per thousand ads displayed. Again, they're are not paid for displaying ads, its just that it usually works out about that amount (from my personal experience and having read the experience of others). The range would be something like 0.20USD to 5.00USD (per 1000 ads displayed). And then there is the fill rate which is the percentage of times your app requests an ad and it is successfully displayed. I've had fill rates from 10% to 99% but have heard some people talking about 1%. This seems to fluctuate all the time and obviously has a massive impact on your revenue. I was getting about 90% over the chrismas period but now its down to about 30%. I guess there is less advertising out there. But suppose that 50% is normal, then that means you need to halve the figures above. i.e. about 0.50USD per 1000 ads requested. Note, you can just refresh the ads more often to improve your revenue. AdMob will prioritise serving ads to publishers they expect to get a better return from. Its not uncommon that an app using AdMob will be showing no advert most of the time, and this is because AdMob believe their ads are better off being displayed elsewhere. On Jan 19, 4:56 am, Kevin Duffey andjar...@gmail.com wrote: I am curious.. how do you work in ad support into an app? This is one of the business models discussed in other threads, and it seems like providing a lite version with ads, and a pay version is one way to go. Or, just do a full version with ads in it all the time. I would love to know how to get started on adding ad support. How do you set up the ability to get paid from the ad providers? How/when do you display ads, and where do you get the ads from? How many ads must display to earn $1. Etc. I'd love to know more about how all this works and how much you make or how you figure out how much you can potentially make this way. On Mon, Jan 18, 2010 at 1:53 PM, Greg Donald gdon...@gmail.com wrote: On Mon, Jan 18, 2010 at 2:20 PM, westmeadboy westmead...@yahoo.co.uk wrote: I would love the Android SDK to include some kind of generic Ad View where you could control things like the ad provider from an remote server. Greystripe has isAdReady() so you can check to see if you should show an ad from an alternate or not. I've suggested this functionality be added to both Admob and Mobclix, but I haven't heard either of them say they will implement it yet. I agree, some sort of standardization would be good to have. -- Greg Donald destiney.com | gregdonald.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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Widget Help
Hi, I want to build a widget to show the most contacted person. The widget will be displaying only one contact at a time, with some details. But, I also want to keep a button on the widget, so that when the button is clicked (eg, Next), the next most contacted contact details should be shown. Is this possible, if yes, how can I achieve this ? Thanks and Regards, Kumar Bibek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 increase FPS (now ~20, desired ~40-50)
Currently I use: Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.spaceship); in that case: bitmap.getConfig() == null; as I mention earlier, I checked all kinds of bitmap configs with little difference in performance On 19 янв, 14:01, skink psk...@gmail.com wrote: On Jan 19, 10:57 am, Andre andranik.abra...@gmail.com wrote: That's OK, I've already tried use RGB_565 and other bitmap configs, this makes sence if you using background image (wich should be RGB_565 for faster draw). and you are sure that your bitmaps (asteroids, bullets, space ship) are ARGB_ (Bitmpam#getConfig())? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] No output with playing a media file with Android APIDemos Mediaplayer
Hi, I am trying to run a sample media file (.mp4/ H.264 avc1 format) with the APIDemos's Mediaplayer on emulator, but I only see a blank screen. If I understand correctly then support for .mp4 files already exists with Android. Doing logcat on emulator shows the following: $ adb -s emulator-5554 logcat W/KeyCharacterMap( 169): No keyboard for id 0 W/KeyCharacterMap( 169): Using default keymap: /system/usr/keychars/ qwerty.k D/MediaPlayerDemo( 169): surfaceDestroyed called I/ActivityManager( 52): Starting activity: Intent { cmp=com.example.android D/MediaPlayerDemo( 169): surfaceCreated called W/PlayerDriver( 31): Using generic video MIO D/AudioSink( 31): bufferCount (4) is too small and increased to 12 W/MediaPlayer( 169): info/warning (1, 44) D/MediaPlayerDemo( 169): surfaceChanged called I/MediaPlayer( 169): Info (1,44) D/MediaPlayerDemo( 169): onPrepared called E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) I/ActivityManager( 52): Displayed activity com.example.android.apis/.media. V/MediaPlayerDemo( 169): onVideoSizeChanged called V/MediaPlayerDemo( 169): startVideoPlayback D/MediaPlayerDemo( 169): surfaceChanged called W/AudioFlinger( 31): write blocked for 70 msecs, 1 delayed writes, thread 0 E/SurfaceFlinger( 52): layer 0x33d098, texture=5, using format 114, which i E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) I/MediaPlayer( 169): Info (1,16) E/PVOMXVidDecNode( 31): Ln 1373 OMX_EventError nData1 -2147479541 nData2 0 W/MediaPlayer( 169): info/warning (1, 16) ... ... I have already tried setting the resolution of the emulator to be higher than that of the mp4 file's resolution. Any ideas/ suggestions what could be wrong? Thanks in advance, Divkis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ATTENTION ANDROID TEAM: Take back control of Android.
Device diversity is both a blessing and a curse. For the variety of reasons already mentioned, even a well-designed infrastructure is not going to provide absolute confidence that apps will work on 'compatible' devices that haven't actually been tested. 10 years ago we saw the same problem with WAP phones, and a bunch of startups took on the challenge of adapting applications for arbitrary handsets. Android addresses the device diversity issue head-on, but I fear that we may be in for another messy round of application adaptation unless Google provides more support to developers. The idea to have a testing lab where app developers can walk in and test on a wide range of devices is a good start. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Widget Help
I want to build a widget to show the most contacted person. The widget will be displaying only one contact at a time, with some details. But, I also want to keep a button on the widget, so that when the button is clicked (eg, Next), the next most contacted contact details should be shown. Is this possible, if yes, how can I achieve this ? Adding a button to the widget is just a matter of putting it in your layout. In your code, you can attach a PendingIntent to be invoked when that button is clicked. You can see that in one of the samples out of my _Android Programming Tutorials_ book: http://github.com/commonsguy/cw-andtutorials/tree/master/36-AdvAppWidget/ For your case, though, the challenge is in the next most contacted contact part. Widgets have no real state, so either you would need to teach the Button's PendingIntent what the next most contacted contact is, or you would have to keep a file or database table or something that knows what the widget is currently showing, so you can determine what is next to be shown. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to add search box on google map??
can any one guide me how can i add Search box on google map??? and point out some locations ?? any help would be appriciated.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
flmy sex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hprof dump support in SDK 2.1
Hi all, It seems ddms now has a dump hprof button (since 2.0?). Though it doesn't seem to work with an Android 1.5 device (HTC Hero) it's greyed out and says that hprof dumps are not supported on this VM. I know who to still get the heap dump anyway, but I'm asking myself Why is that?- Are newer devices really able to dump directly in hprof format? 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: How to increase FPS (now ~20, desired ~40-50)
On Jan 19, 1:56 pm, Andre andranik.abra...@gmail.com wrote: Currently I use: Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.spaceship); in that case: bitmap.getConfig() == null; hmmm, null is a bit weird. it means that bitmaps config is not any known public config as API jdoc says could you post a link to your res/drawable/spaceship.png? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ATTENTION ANDROID TEAM: Take back control of Android.
String, Thank you for taking the time writing this up. Five stars. I just feel stupid every time I get on the soapbox just to rehash what should long have been addressed by Google/the Android team. I have no idea how to get this across. Diane, Romain and who else from the other side who have been holding out are forced to try rationalize impossible positions instead of getting some real support from their own team to get stuff fixed. I've worked in such an environment and you can take this only for so long until you go look for another job. This would be the worst possible outcome, but hey, this is how it goes sometimes. In the end, everybody loses, and, if it mattered, I'd ** totally put blame on management of the Android team ** for not putting resources on fixing the issues. It only gets worse the more they let this slip. JP On Jan 19, 12:32 am, String sterling.ud...@googlemail.com wrote: On Jan 19, 12:50 am, Dianne Hackborn hack...@android.com wrote: Specifically which problems are you having? Problem is, half the time we don't know. Users post 1* Market comments saying Force closes on Droid or Doesn't work on Samsung Moment, and unless you have that specific handset to test on, you're SOL. You sanity check on an emulator instance of the same resolution and OS version, and nothing is obviously broken, so where do you go? The increasing array of hardware devices (with different OS versions, screen sizes, and crappy vendor-specific UIs) simply exacerbates the structural problems with the Market, where it's far too easy for users to downrate apps, and with no meaningful way for the developer to respond. Put another way, the current Market punishes devs for ANY flaw in their app, real or perceived, and the diversity of the device ecosystem is bound to generate such flaws. I recognize that nobody (including Google) can force OS upgrades to existing devices. That responsibility lies with manufacturers and carriers, and all too often, they shirk it in favor of selling the next handset of the week. Perhaps Google could apply some pressure, perhaps not. At the least, please ensure that Google Experience devices have sufficient RAM to enable future upgrades; I'm still bitter about the G1's memory limit, which makes me feel like I'm being punished for being an early adopter. What Google CAN do is improve the flippin' Market. It's routinely mentioned as one of the weakest links in the Android chain; the upgrade with 1.6 was a step in the right direction, but many more are needed, benefiting both users and developers. Addressing some of the many Market issues on b.android.com would stop so-called fragmentation issues from being magnified the way they now are. Google can also slow the frenetic pace of new OS releases, to allow both devs and handset vendors a chance to catch up. Finally, I'd really like to see Google sponsor some sort of hardware support for devs. The recent Developer Labs were a good start; they should be recurring events at the very least, ideally an ongoing service where registered devs could stop by a Google office at any time and test on hardware which they can't afford to buy themselves. Some sort of loaner program or DeviceAnywhere-style service might also be possible. What I'm NOT opposed to is the proliferation of Android devices in the wild. I believe it's one of the ecosystem's real strengths: the diversity and choice in hardware. I'd love to see a WIDER range available, from cheap QVGA PMPs through 10 touchscreen tablets and e- readers. There's a lot of untapped Android potential out there, and every new class of device opens up a new market segment to buy my apps. :^) Growth is good. 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: How Does HttpURLConnection work
My point is not the theory of sync vs. async but rather the reality that you'll be better off to work off the downloads in sequence. When you drop the TOs low enough, there will be no more than a few seconds that you may lose. The upside, you'll actually get this done... On Jan 18, 10:50 pm, And-Rider rahulregunat...@gmail.com wrote: D..oh! I am really not sure about this but sending a asynchronous call has certain advantages than synch calls since if the first call gets blocked due to certain reasons the response that you get for the next few calls will also be delayed. I feel that asynchronous(calls that do not block) are always better than blocking calls since each call will be independent of the other... On Jan 19, 10:10 am, JP joachim.pfeif...@gmail.com wrote: Think about it for a moment - you've got only one pipe, and over the air that's not really all that fast. I doubt you win anything by trying to squeeze images through simultaneously. On Jan 18, 8:53 pm, And-Rider rahulregunat...@gmail.com wrote: yes if i send my calls i a sequential manner it should not be an issue. But in certain cases asynchronous calls do help us to speed up the performance a lot For example if i have a listview and in each row if i have an image to download then asynchronous calls would be much faster. In this case unfortunately time out happens in a synchronous manner. So if i send five calls the in a asynchronous manner those calls are not timing out in an asynchronous manner. I think this should probably be a bug... On Jan 18, 11:44 pm, JP joachim.pfeif...@gmail.com wrote: On Jan 18, 7:28 am, And-Rider rahulregunat...@gmail.com wrote: In that case the network connectivity check would fail. It will show as if we have an network connection but we actually don't have an internet connection. This can be the case at any point, regardless of data link. Still, checking for network connectivity is helpful - I use it to display message to the user. Another case that we might face is that if a user is traveling in an area where the network connectivity is fluctuating. Exactly, see above. In this cases is it not necessary for us to set a proper timeout..?. And if the timeout happens in a synchronous manner then it might take a long time for the last call to time out. I use a sequential model to work off the various calls to the server side over time. This means I didn't have to deal with the problem you've found and cannot offer a direct answer. There certainly is the possibility that the first connection blocks the following on the SDK/ Android level, for whatever reason. Some code diving would be in order to get to the bottom of this. The question could be raised if that's an effective use of your time, it wouldn't get you anywhere solving the problem... From what I can say, I'd recommend to switch to a sequential, managed model with an adequately low connect and read TO. Android (the mobile environment in general) isn't like the fixed side where you might have the latitude to whip up a bunch of threads to work off various tasks in parallel. The constraints of the environment just don't allow nearly as much play. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AdWhirl - any experience with it?
On Mon, Jan 18, 2010 at 10:56 PM, Kevin Duffey andjar...@gmail.com wrote: I am curious.. how do you work in ad support into an app? This is one of the business models discussed in other threads, and it seems like providing a lite version with ads, and a pay version is one way to go. Or, just do a full version with ads in it all the time. I keep my feature set the same in both my free and non-free versions, my free version just has ads is all. I would love to know how to get started on adding ad support. How do you set up the ability to get paid from the ad providers? You attach them to your bank account or they mail you a check. How/when do you display ads, and where do you get the ads from? How many ads must display to earn $1. A lot. On a good day 20K, on a bad day 70K. Etc. I'd love to know more about how all this works and how much you make or how you figure out how much you can potentially make this way. My experience has been more profitable with Greystripe, they have the full screen ads and seem to perform better than the smaller banner ads from AdMob. -- Greg Donald destiney.com | gregdonald.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] Installing app on android device
Hi, What about if you want to run the application on your DISCONNECTED device? Is it possible or do you must go thru publishing to the market? Thanks in advance. On Mon, Jan 11, 2010 at 4:20 AM, Tommy Hartz droi...@gmail.com wrote: Ah ok thanks! On Sun, Jan 10, 2010 at 9:37 PM, Kevin Duffey andjar...@gmail.com wrote: If you are developing applications, when you mount your Droid (or any android device) to the USB port, do NOT mount it in USB mode... you don't want it to show up as a HD on your computer. When you do this, it usually will show up as a device you can run your project on. If you are on Linux tho, you need to do a quick search on how to mount your droid as a device. I forget the details, there was a couple steps to do so that it would show up under ADB. I simply dock my droid to the USB and can immediately build and run my app on it. I have the option to choose the emulator or the droid phone. On Fri, Jan 8, 2010 at 9:46 PM, Tommy droi...@gmail.com wrote: Hi, I am new to android and I currently got a droid so I could test out apps before publishing them to the market. My question is how to I get the app from Eclipse to the Droid and install it? Currently I open eclipse right click the project go to android tools and do export unsigned version. I then copy that file from my computer to the droid. I then open ASTRO to navigate to the file. When I click to install it says Application Not Installed. If any could help or link a good straight forward way to do this that would be great. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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.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] AdWhirl - any experience with it?
I agree with Greg (below). I too have a free ad supported full feature version as well as a no ad pay version. When all the coins are counted, I'm making more money with the free version than I am the pay version. Almost twice as much. In regards to the ad companies and performance, I switch between Greystripe and AdMob for every other ad in my game. AdMob is outperforming Greystripe almost 5:1 for the month of January. The month of December, it was only 2.5:1 in favor of AdMob. There are constant fluctuations in the ad market in terms of fill rate, etc. My fill rate average since I started showing ads (about 3 months) is around 80%. Not bad, but you do get discouraged when you see those low fill rate days as well as those low revenue days. My advice is to try one or two companies over a two month period and see which one does best for you on average. Justin On Tue, Jan 19, 2010 at 8:35 AM, Greg Donald gdon...@gmail.com wrote: On Mon, Jan 18, 2010 at 10:56 PM, Kevin Duffey andjar...@gmail.com wrote: I am curious.. how do you work in ad support into an app? This is one of the business models discussed in other threads, and it seems like providing a lite version with ads, and a pay version is one way to go. Or, just do a full version with ads in it all the time. I keep my feature set the same in both my free and non-free versions, my free version just has ads is all. I would love to know how to get started on adding ad support. How do you set up the ability to get paid from the ad providers? You attach them to your bank account or they mail you a check. How/when do you display ads, and where do you get the ads from? How many ads must display to earn $1. A lot. On a good day 20K, on a bad day 70K. Etc. I'd love to know more about how all this works and how much you make or how you figure out how much you can potentially make this way. My experience has been more profitable with Greystripe, they have the full screen ads and seem to perform better than the smaller banner ads from AdMob. -- Greg Donald destiney.com | gregdonald.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.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] UPnP
Hi, Does anyone have any idea on implementing UPnP in Android? I am working on a Project for which I need my Android phone to talk to UPnP devices directly. Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Serious android app problem in Canada
Hey Candroid developers: Now I hope I'm wrong but it appears as an Android developer in Canada I cannot sell my apps through the |Market, nor can a Canadian customer purchase my paid apps. Are these dire concerns valid? Maybe somebody from the Google mothership could clarify this important matter as soon as possible. The Android Market accepted my developer fee of $25 no problem. And I don't recall any restrictions mentioned for Canadian developers or for paid apps in Canada. I worry that hundreds of hours of my work may have been wasted. Like most Canadian Android developers who share these concerns, I am considering putting my Android development on hold immediately and perhaps permanently, and porting my apps to iPhone and/or Pre. Any other Canucks feel the same way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using the AlarmManager as a timing service.
Hello, I wanted to ask a question regarding the Alarm Manager. I have a requirements of setting long running timers in my application. The minimum duration for my timer is 1 hour...and the maximum may be for 4-5 days. This timer is supposed to run in the background, and when it fires/expires, i have to show something on the GUI. The timer can be re-scheduled once it fires based on user action. What is the best approach for scheduling such long running timers ? Should i make use of the Alarm Manager ? Or will it be an overkill ? As far as i know, alarms are retained even if the device goes to sleep and they wake up the device when the alarm goes off. I am thinking of using a simple Java TimerTask as an alternative to setting an alarm: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html. But i am not sure what will happen to the timer task if the device went to sleep while the task was running. What is the best approach here ? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AdWhirl - any experience with it?
Does anyone have experience with putting ads on Maps? Since my app is almost completely map driven I would like to start doing the ad thing but don't even know if it is possible. On Tue, Jan 19, 2010 at 6:49 AM, Justin Giles jtgi...@gmail.com wrote: I agree with Greg (below). I too have a free ad supported full feature version as well as a no ad pay version. When all the coins are counted, I'm making more money with the free version than I am the pay version. Almost twice as much. In regards to the ad companies and performance, I switch between Greystripe and AdMob for every other ad in my game. AdMob is outperforming Greystripe almost 5:1 for the month of January. The month of December, it was only 2.5:1 in favor of AdMob. There are constant fluctuations in the ad market in terms of fill rate, etc. My fill rate average since I started showing ads (about 3 months) is around 80%. Not bad, but you do get discouraged when you see those low fill rate days as well as those low revenue days. My advice is to try one or two companies over a two month period and see which one does best for you on average. Justin On Tue, Jan 19, 2010 at 8:35 AM, Greg Donald gdon...@gmail.com wrote: On Mon, Jan 18, 2010 at 10:56 PM, Kevin Duffey andjar...@gmail.com wrote: I am curious.. how do you work in ad support into an app? This is one of the business models discussed in other threads, and it seems like providing a lite version with ads, and a pay version is one way to go. Or, just do a full version with ads in it all the time. I keep my feature set the same in both my free and non-free versions, my free version just has ads is all. I would love to know how to get started on adding ad support. How do you set up the ability to get paid from the ad providers? You attach them to your bank account or they mail you a check. How/when do you display ads, and where do you get the ads from? How many ads must display to earn $1. A lot. On a good day 20K, on a bad day 70K. Etc. I'd love to know more about how all this works and how much you make or how you figure out how much you can potentially make this way. My experience has been more profitable with Greystripe, they have the full screen ads and seem to perform better than the smaller banner ads from AdMob. -- Greg Donald destiney.com | gregdonald.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.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Hprof dump support in SDK 2.1
It works quite well on 2.1 (and on 2.0, but i'm not sure, i just tried it on 2.1 with my nexus). When you do a hprof-dump and have the proper plugins installed in Eclipse, you get nice charts and graphs of your app's memory usage. I'm not sure how it works, but i think the device dumps a proprietary hprof format for Dalvik, which then gets automatically converted into the 'standard' hprof format and then displayed as charts and graphs. On Jan 19, 9:13 am, kohlerm markus.koh...@gmail.com wrote: Hi all, It seems ddms now has a dump hprof button (since 2.0?). Though it doesn't seem to work with an Android 1.5 device (HTC Hero) it's greyed out and says that hprof dumps are not supported on this VM. I know who to still get the heap dump anyway, but I'm asking myself Why is that?- Are newer devices really able to dump directly in hprof format? 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: Click on Notification does not work as expected... (see screencast!):(
Hi, thanks for the hin, I have now changed the launchmode of my activity to singleTop: and changed the code to look like this: // The PendingIntent to launch our activity if the user selects this // notification final Intent notificationIntent = new Intent(ManagerFactory .getMasterActivity(), MailerActivity.class); notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Log.d(TAG, Set new message to Notification: + p_message); notificationIntent .putExtra(Constants.NOTIFICATION_EXTRA_KEY, p_message); Log.d(TAG, Setting requestCodeToFixNotificationBug: + s_requestCodeToFixNotificationBug); final PendingIntent contentIntent = PendingIntent.getActivity( ManagerFactory.s_service, s_requestCodeToFixNotificationBug++, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); notification.setLatestEventInfo(ManagerFactory.s_service, p_tickerText, p_message, contentIntent); return notification; Still the same issue! So it did not change anything. :( The app is running in the background... what the heck is going on here? :( And @RNekic was right... if the app is not active (running in the background), it does not call onNewIntent() but onCreate(). How could I tell my code to use the old instance instead of creating a new one? Sascha On Jan 18, 9:15 pm, reyden mr.jakovlje...@gmail.com wrote: I've had a similar issue with one of my activities that was supposed to be launched via notifications. After some digging I've solved it by declaring singleTop launch mode for the activity in manifest and by using FLAG_ACTIVITY_CLEAR_TOP flag on the pending intent for notification manager... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to display XML
Thank you for the reply, I will try that. On Mon, Jan 18, 2010 at 9:38 PM, prachi t.prach...@gmail.com wrote: Hii i think it can be done. We can use the function loadUrl and give the url of the xml to be displayed. Or we can store the xml to be displayed in the string variable and display it using the method loadData giving mimetype as text/html. On Jan 16, 4:43 am, Temitope Akinwande takinwa...@gmail.com wrote: Hi all, Is it possible to display an xml file with all the tags in Webview or the Browser without first parsing the xml file? For example, is it possible to display the following note toDanny/to fromJane/from subjectHello/subject bodyHow are you doing?/body /note without it being parsed to display Danny Jane Hello How are you doing? Any help will be 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using the AlarmManager as a timing service.
I wanted to ask a question regarding the Alarm Manager. I have a requirements of setting long running timers in my application. The minimum duration for my timer is 1 hour...and the maximum may be for 4-5 days. This timer is supposed to run in the background, and when it fires/expires, i have to show something on the GUI. Your GUI is probably not running when the alarm will go off. What is the best approach for scheduling such long running timers ? Should i make use of the Alarm Manager ? Or will it be an overkill ? AlarmManager is the only viable choice for something of that duration. I am thinking of using a simple Java TimerTask as an alternative to setting an alarm: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html. That will only work if the user is keeping your application running all of the time, and that is unlikely to be the case. But i am not sure what will happen to the timer task if the device went to sleep while the task was running. TimerTask does not wake up the device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Using the AlarmManager as a timing service.
Interesting Mark... is there no way to have something wake/start an app up when a condition occurs? I was reading the blog on Screebl, it seemed like with the Location support they can activate based on the location or other conditions of the device. I wasn't under the impression that app was running all the time.. or that it might be a service running in the background? On a slightly different note, if you do run a service all the time, that basically either waits for a timer, or waits for some condition, such as a GPS location, does that drain battery much? I've not looked into the Location api, but it sounded like Location would send out a message that a service could listen for.. as if you could say when the location of this device is 'around' this location.. call me. Something like that? Man, so much to learn!! On Tue, Jan 19, 2010 at 7:41 AM, Mark Murphy mmur...@commonsware.comwrote: I wanted to ask a question regarding the Alarm Manager. I have a requirements of setting long running timers in my application. The minimum duration for my timer is 1 hour...and the maximum may be for 4-5 days. This timer is supposed to run in the background, and when it fires/expires, i have to show something on the GUI. Your GUI is probably not running when the alarm will go off. What is the best approach for scheduling such long running timers ? Should i make use of the Alarm Manager ? Or will it be an overkill ? AlarmManager is the only viable choice for something of that duration. I am thinking of using a simple Java TimerTask as an alternative to setting an alarm: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html. That will only work if the user is keeping your application running all of the time, and that is unlikely to be the case. But i am not sure what will happen to the timer task if the device went to sleep while the task was running. TimerTask does not wake up the device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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: Click on Notification does not work as expected... (see screencast!):(
In cases where I've needed to do this, I call a method from both onCreate and onNewIntent since, to my knowledge, they don't fire together; one or the other fires depending on the situation. In your Intent processing method, you can either pass in an Intent or have it call getIntent(). Note, if your shared method uses getIntent, be sure to call setIntent(intent) from within onNewIntent. For example: Option One: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); On Jan 19, 10:37 am, mastix mc masti...@googlemail.com wrote: Hi, thanks for the hin, I have now changed the launchmode of my activity to singleTop: and changed the code to look like this: // The PendingIntent to launch our activity if the user selects this // notification final Intent notificationIntent = new Intent(ManagerFactory .getMasterActivity(), MailerActivity.class); notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Log.d(TAG, Set new message to Notification: + p_message); notificationIntent .putExtra(Constants.NOTIFICATION_EXTRA_KEY, p_message); Log.d(TAG, Setting requestCodeToFixNotificationBug: + s_requestCodeToFixNotificationBug); final PendingIntent contentIntent = PendingIntent.getActivity( ManagerFactory.s_service, s_requestCodeToFixNotificationBug++, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); notification.setLatestEventInfo(ManagerFactory.s_service, p_tickerText, p_message, contentIntent); return notification; Still the same issue! So it did not change anything. :( The app is running in the background... what the heck is going on here? :( And @RNekic was right... if the app is not active (running in the background), it does not call onNewIntent() but onCreate(). How could I tell my code to use the old instance instead of creating a new one? Sascha On Jan 18, 9:15 pm, reyden mr.jakovlje...@gmail.com wrote: I've had a similar issue with one of my activities that was supposed to be launched via notifications. After some digging I've solved it by declaring singleTop launch mode for the activity in manifest and by using FLAG_ACTIVITY_CLEAR_TOP flag on the pending intent for notification manager... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using the AlarmManager as a timing service.
Interesting Mark... is there no way to have something wake/start an app up when a condition occurs? Define condition. The OP was inquiring about time, which I would not call a condition. I was reading the blog on Screebl, it seemed like with the Location support they can activate based on the location or other conditions of the device. I wasn't under the impression that app was running all the time.. or that it might be a service running in the background? I do not know off the top of my head if and when GPS position changes will wake up the device. On a slightly different note, if you do run a service all the time, that basically either waits for a timer, or waits for some condition, such as a GPS location, does that drain battery much? The key to battery life is that you want the phone in sleep mode. Hence, depending on how the service is waiting, it may need to force the device to stay awake, which is awful for battery life. If you are interested in this subject, you really should watch Jeff Sharkey's Coding for Life...Battery Life, That Is presentation from the 2009 Google I/O conference. There's a YouTube video of it out there. I've not looked into the Location api, but it sounded like Location would send out a message that a service could listen for.. as if you could say when the location of this device is 'around' this location.. call me. Something like that? That certainly exists, but I have not experimented with it recently, let alone with the device in sleep mode. Again, the OP was inquiring about timers, so my reply was focused on timers. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AdWhirl - any experience with it?
Can one of you guys explain fill rate? I've read the AdMob site.. doesn't quite click with me. Btw, adwhirl is owned by admob, interesting. So if you basically need an app that is downloaded 10's of thousands of times to make a few bucks. By this I mean, if your app is downloaded by 10,000 users, and they run it once a week, you're not getting many views to ads. I am also confused as to why admob would want to decide to place their ads elsewhere? By this I mean.. if you request an ad and don't get one back, that is admob (or other service) deciding that they don't want your app to have that ad as often as you may be requesting it... but isn't it money for them? I don't understand why they would control that. As someone who has clicked on ads a couple of times, I'd much rather see ads faster than slower.. especially those that are regarding something I am interested in. Do you guys know if any of these sites target users? I am not sure if their SDK is able to actually watch what a user does and try to target ads for that user. I am guessing not as that would be pretty intrusive on a mobile device. On a side note, are any of you guys making enough to live off of with android.. or is it basically a little spending cash and you just enjoy writing apps for android? I know the rare apps like iFart on iPhone and others that make the developer thousands, and in some cases millions in a short amount of time, but I would rather see a more sustained income coming in.. at some point your app is going to go further down on the market list.. how do you keep people buying it to keep money coming in? I would guess the free full version with ads is a better way to keep money coming in than the buy once and that's it. As well, how do you handle income taxes? If this is too off topic, I'd appreciate a private mail. I am trying to figure out how all this works and haven't found any good resource on how the whole keep your app selling on the market, IRS/income taxes, etc works. Thanks. On Tue, Jan 19, 2010 at 7:33 AM, Wayne Wenthin wa...@fuligin.com wrote: Does anyone have experience with putting ads on Maps? Since my app is almost completely map driven I would like to start doing the ad thing but don't even know if it is possible. On Tue, Jan 19, 2010 at 6:49 AM, Justin Giles jtgi...@gmail.com wrote: I agree with Greg (below). I too have a free ad supported full feature version as well as a no ad pay version. When all the coins are counted, I'm making more money with the free version than I am the pay version. Almost twice as much. In regards to the ad companies and performance, I switch between Greystripe and AdMob for every other ad in my game. AdMob is outperforming Greystripe almost 5:1 for the month of January. The month of December, it was only 2.5:1 in favor of AdMob. There are constant fluctuations in the ad market in terms of fill rate, etc. My fill rate average since I started showing ads (about 3 months) is around 80%. Not bad, but you do get discouraged when you see those low fill rate days as well as those low revenue days. My advice is to try one or two companies over a two month period and see which one does best for you on average. Justin On Tue, Jan 19, 2010 at 8:35 AM, Greg Donald gdon...@gmail.com wrote: On Mon, Jan 18, 2010 at 10:56 PM, Kevin Duffey andjar...@gmail.com wrote: I am curious.. how do you work in ad support into an app? This is one of the business models discussed in other threads, and it seems like providing a lite version with ads, and a pay version is one way to go. Or, just do a full version with ads in it all the time. I keep my feature set the same in both my free and non-free versions, my free version just has ads is all. I would love to know how to get started on adding ad support. How do you set up the ability to get paid from the ad providers? You attach them to your bank account or they mail you a check. How/when do you display ads, and where do you get the ads from? How many ads must display to earn $1. A lot. On a good day 20K, on a bad day 70K. Etc. I'd love to know more about how all this works and how much you make or how you figure out how much you can potentially make this way. My experience has been more profitable with Greystripe, they have the full screen ads and seem to perform better than the smaller banner ads from AdMob. -- Greg Donald destiney.com | gregdonald.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.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
[android-developers] Re: Click on Notification does not work as expected... (see screencast!):(
Whoops...I wasn't done yet: - Option One: - @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); processMyIntent(getIntent); } @Override protected void onNewIntent(Intent intent) { processMyIntent(intent); } private void processMyIntent(Intent intent) { intent.doSomething(); } - Option Two: - @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); processMyIntent(); } @Override protected void onNewIntent(Intent intent) { setIntent(intent); processMyIntent(); } private void processMyIntent() { Intent intent = getIntent(); intent.doSomething; } Personally, I'm a fan of Option Two since you might have code elsewhere that calls getIntent() and it makes sense to me to have onNewIntent refresh the Activity's intent by calling setIntent (theNewIntent); On Jan 19, 10:56 am, RNekic robertne...@gmail.com wrote: In cases where I've needed to do this, I call a method from both onCreate and onNewIntent since, to my knowledge, they don't fire together; one or the other fires depending on the situation. In your Intent processing method, you can either pass in an Intent or have it call getIntent(). Note, if your shared method uses getIntent, be sure to call setIntent(intent) from within onNewIntent. For example: Option One: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); On Jan 19, 10:37 am, mastix mc masti...@googlemail.com wrote: Hi, thanks for the hin, I have now changed the launchmode of my activity to singleTop: and changed the code to look like this: // The PendingIntent to launch our activity if the user selects this // notification final Intent notificationIntent = new Intent(ManagerFactory .getMasterActivity(), MailerActivity.class); notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Log.d(TAG, Set new message to Notification: + p_message); notificationIntent .putExtra(Constants.NOTIFICATION_EXTRA_KEY, p_message); Log.d(TAG, Setting requestCodeToFixNotificationBug: + s_requestCodeToFixNotificationBug); final PendingIntent contentIntent = PendingIntent.getActivity( ManagerFactory.s_service, s_requestCodeToFixNotificationBug++, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); notification.setLatestEventInfo(ManagerFactory.s_service, p_tickerText, p_message, contentIntent); return notification; Still the same issue! So it did not change anything. :( The app is running in the background... what the heck is going on here? :( And @RNekic was right... if the app is not active (running in the background), it does not call onNewIntent() but onCreate(). How could I tell my code to use the old instance instead of creating a new one? Sascha On Jan 18, 9:15 pm, reyden mr.jakovlje...@gmail.com wrote: I've had a similar issue with one of my activities that was supposed to be launched via notifications. After some digging I've solved it by declaring singleTop launch mode for the activity in manifest and by using FLAG_ACTIVITY_CLEAR_TOP flag on the pending intent for notification manager... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AdWhirl - any experience with it?
On Tue, Jan 19, 2010 at 9:59 AM, Kevin Duffey andjar...@gmail.com wrote: Can one of you guys explain fill rate? I've read the AdMob site.. doesn't quite click with me. Btw, adwhirl is owned by admob, interesting. So if you basically need an app that is downloaded 10's of thousands of times to make a few bucks. By this I mean, if your app is downloaded by 10,000 users, and they run it once a week, you're not getting many views to ads. I am also confused as to why admob would want to decide to place their ads elsewhere? By this I mean.. if you request an ad and don't get one back, that is admob (or other service) deciding that they don't want your app to have that ad as often as you may be requesting it... but isn't it money for them? I don't understand why they would control that. As someone who has clicked on ads a couple of times, I'd much rather see ads faster than slower.. especially those that are regarding something I am interested in. Fill rate is just the percentage of ads requested versus ads actually shown (impressions). So for instance your app might request that an ad be shown, but AdMob might not have any ads to show at that time (based on their algorithms), so nothing is shown. That would cause your fill rate to go down. Your total number of requests will always be higher than your total number of impressions. Do you guys know if any of these sites target users? I am not sure if their SDK is able to actually watch what a user does and try to target ads for that user. I am guessing not as that would be pretty intrusive on a mobile device. I kind of think not. I can see an instance where they might capture the device ID and keep a record of what kinds of ads they click, but from my experience, it doesn't seem to affect what types of ads are shown in the long run. On a side note, are any of you guys making enough to live off of with android.. or is it basically a little spending cash and you just enjoy writing apps for android? I know the rare apps like iFart on iPhone and others that make the developer thousands, and in some cases millions in a short amount of time, but I would rather see a more sustained income coming in.. at some point your app is going to go further down on the market list.. how do you keep people buying it to keep money coming in? I would guess the free full version with ads is a better way to keep money coming in than the buy once and that's it. Nope, not making enough to quit my day job. I tend to play it safe though. I personally don't see this platform lasting more than 5-10 years before the next big thing comes out and everyone flocks to it. So, I write my applications, put them on the market and enjoy what money I get all the while being grateful that I have job security in my real day job. Also on this note, it doesn't seem as if the Android Market in its current form is able to allow people to quit their day jobs for any length of time. You would have to push out a new application every couple of weeks in order to make enough...assuming those applications actually are popular. I personally don't see how a dedicated Android company can make ends meet currently. As well, how do you handle income taxes? If this is too off topic, I'd appreciate a private mail. I am trying to figure out how all this works and haven't found any good resource on how the whole keep your app selling on the market, IRS/income taxes, etc works. This is beyond my pay grade. Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scaling icons on MapActivity with zoom
On Mon, Jan 18, 2010 at 10:50 PM, Kevin Duffey andjar...@gmail.com wrote: I'd first like to avoid loading different image sizes for each zoom level for each item I want to place on the map. Here's the thing.. in my app, it shows state parks. If you're zoomed out far enough, you're not going to see any parks. Right now tho, as you zoom out, all my icons stay the same size and get closer together the further out you go, until, as you said, they are crowding each other.. overlapping. You can still click on them..but it's pointless because you're probably clicking on several at once when you've zoomed out to see the full US. I want the icons to show up when the user is zoomed in at a certain level.. and get smaller as they zoom out for a couple zooms, then disappear completely. I would do as Frank suggested and have a min and max zoom level you show icons for and the range of levels in-between, with a set of icons for each level. This will look better than scaling your images. When you exceed that min / max, remove the overlays from the map until the user gets back in the range. I am not entirely sure how to replace icons with different sized images as the user zooms out. Are you using ItemizedOverlay? It has a setMarker() function that lets you set the image used by the list of items. Do you know by chance if the draw() method is called several times per second like in desktop/windowing/games? The draw() function is called whenever the view is invalidated and it's required. Like when you add or remove overlays (or other views), pan the map around, or zoom in or out. It's called twice each time, once for the shadow layer, once for the regular layer. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Modal dialog
Looks like there is enough material to make a FAQ, something like Pseudo Modal Dialog Pattern http://developer.android.com/resources/faq/commontasks.html On Jan 18, 12:19 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Jan 18, 2010 at 10:47 AM, guiha...@gmail.com guiha...@gmail.comwrote: IMHO, i think that Google should have provided a way to let we make them process the events. This is very deliberately not supported because of the problems is causes: http://groups.google.com/group/android-developers/browse_thread/threa... -- 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: ATTENTION ANDROID TEAM: Take back control of Android.
Problem is, half the time we don't know. Users post 1* Market comments saying Force closes on Droid or Doesn't work on Samsung Moment, and unless you have that specific handset to test on, you're SOL. You sanity check on an emulator instance of the same resolution and OS version, and nothing is obviously broken, so where do you go? The increasing array of hardware devices (with different OS versions, screen sizes, and crappy vendor-specific UIs) simply exacerbates the structural problems with the Market, where it's far too easy for users to downrate apps, and with no meaningful way for the developer to respond. Put another way, the current Market punishes devs for ANY flaw in their app, real or perceived, and the diversity of the device ecosystem is bound to generate such flaws. I recognize that nobody (including Google) can force OS upgrades to existing devices. That responsibility lies with manufacturers and carriers, and all too often, they shirk it in favor of selling the next handset of the week. Perhaps Google could apply some pressure, perhaps not. At the least, please ensure that Google Experience devices have sufficient RAM to enable future upgrades; I'm still bitter about the G1's memory limit, which makes me feel like I'm being punished for being an early adopter. What Google CAN do is improve the flippin' Market. It's routinely mentioned as one of the weakest links in the Android chain; the upgrade with 1.6 was a step in the right direction, but many more are needed, benefiting both users and developers. Addressing some of the many Market issues on b.android.com would stop so-called fragmentation issues from being magnified the way they now are. While I agree with you 100% about the market being underwhelming for both the user and developer, there is something you can do about the feedback comments left on your app. First, download and install your app to a device from the market. Then, when you see a comment that needs responding to, add a comment. Your comment will appear directly above the last one made. If later on you see another comment you need to respond to, simply update your comment. It will move to the top of the stack again. I preface my comments with: Developer Comment: There's no guarantee that the poster will ever read that response, they usually are done by the time they leave a negative comment with the words uninstall but future downloaders will read your response and know that 1) you read the feedback, 2) you respond to it and 3) you're proactive in support. Here's one I got recently on my Radar Now! app: Richard and Victoria 01-19-2010 * I live in Imperial Beach CA and its right by the US/Mexico border so the app kept reading my location in Mexico. I uninstalled immediately. Please fix. Obviously, I have no control over how the cell towers compute this person's location so there is nothing I can do to fix his problem other than tell him to move. My response was as follows: maps.huge.info 01-19-2010 * Developer comment: Your location is computed using the cell towers in your area, the only way to improve: disable that service and use gps. At least this shows I read the comments, have an understanding of the problem and can respond to the user in an intelligent and thoughtful way. Richard and Victoria will never read this as that user has already moved on, but other readers will see my feedback. -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hprof dump support in SDK 2.1
This button just performs a regular dump and DDMS takes care of downloading and converting the dump in the hprof format. On Tue, Jan 19, 2010 at 6:13 AM, kohlerm markus.koh...@gmail.com wrote: Hi all, It seems ddms now has a dump hprof button (since 2.0?). Though it doesn't seem to work with an Android 1.5 device (HTC Hero) it's greyed out and says that hprof dumps are not supported on this VM. I know who to still get the heap dump anyway, but I'm asking myself Why is that?- Are newer devices really able to dump directly in hprof format? 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.
I think there is a fairly easily implemented solution to the problem of device and OS diversification. I've been using this myself for months and it works very well. For Radar Now! I've established a beta test community of users who have volunteered to try out new versions of the app and even new apps that haven't been released to the market. It's been an invaluable tool to diagnose and correct problems before they become a string of one star FC, sucks! uninstall comments in the market. The way I established this community was to add a line at the bottom of the help text that comes up the first time a user runs the app: Beta Testers Needed! Approximately one out of 1000 active users has joined the beta community, around 80 at this moment. They have every possible combination of device and OS there is, including cyanogen. Users who have a problem will report it back via e-mail and if the problem can't be solved by their description, they use SendLog to send me the log of their session. I post the beta on the Radarnow.net website, which has logging switched on to help debugging. Official Android Beta User Community What would be a really great addition to the Android developer community would be the establishment of an official beta user community. This could take the form of a Google Group, one for each app, with the app itself in the files section. I'm sure there would be thousands of users who would volunteer to test cutting edge apps and help find problems before they become a catastrophe in the market. A little help from Google will be required to accomplish this, Google would have to: 1. Endorse the idea 2. Add some sort of language to the market asking people to volunteer 3. Add a check box to the developer console to opt in for a particular app 4. Add some code to the market so when an app becomes part of this program, the group is created There may be some other considerations for Google but I think the minor work involved would greatly ease the minds and hearts of developers around the world without the pocketbook to go out and buy 20+ devices and sign up for the services they require. -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Constructing shapes from other objects
In graphics packages you can start with a rectangle, make it a rounded, then say add another triangle and where they meet join them to create a path, which can then be treat as a single object, e.g. filled with a gradient. Can this be done with Androids graphics? I'm trying to make, for example, a speech balloon rect with rounded corners. The way I described sounds far easier than specifying each path co-ordinate manually. -- Android Academy http://www.androidacademy.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Installing app on android device
You can install apps on your device without publishing to the market, and they should run. -Tope On Tue, Jan 19, 2010 at 7:43 AM, fourk xav fou...@gmail.com wrote: Hi, What about if you want to run the application on your DISCONNECTED device? Is it possible or do you must go thru publishing to the market? Thanks in advance. On Mon, Jan 11, 2010 at 4:20 AM, Tommy Hartz droi...@gmail.com wrote: Ah ok thanks! On Sun, Jan 10, 2010 at 9:37 PM, Kevin Duffey andjar...@gmail.com wrote: If you are developing applications, when you mount your Droid (or any android device) to the USB port, do NOT mount it in USB mode... you don't want it to show up as a HD on your computer. When you do this, it usually will show up as a device you can run your project on. If you are on Linux tho, you need to do a quick search on how to mount your droid as a device. I forget the details, there was a couple steps to do so that it would show up under ADB. I simply dock my droid to the USB and can immediately build and run my app on it. I have the option to choose the emulator or the droid phone. On Fri, Jan 8, 2010 at 9:46 PM, Tommy droi...@gmail.com wrote: Hi, I am new to android and I currently got a droid so I could test out apps before publishing them to the market. My question is how to I get the app from Eclipse to the Droid and install it? Currently I open eclipse right click the project go to android tools and do export unsigned version. I then copy that file from my computer to the droid. I then open ASTRO to navigate to the file. When I click to install it says Application Not Installed. If any could help or link a good straight forward way to do this that would be great. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Query ringtone???
please can someone help me get the name of my current ringtone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get current ringtone name?
please can some one help me. i'm trying to get the name of the current ring tone, this is the code i have so far but cant get it to work. Uri currentTone=Settings.System.DEFAULT_RINGTONE_URI; Cursor cur = managedQuery(currentTone, null, null, null, null); cur.getString(0); Thank You. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cant get data from my service
I have a service that is running fine and I can see the data collecting in the logcat, However after creating an aidl and trying to get the information from the service to my main activity I have hit a problem. I just cant seem to get the data to pass across at all, I always get a null pointer exception. Here is my service class, I want to get the connectedLevel int to use in my activity class. Is it because I'm not binding properly or what am I missing but any calls to the remote interface to try and get the data ends up with a null pointer exception. My activity class code is posted underneath. Service class public class WIFIService extends Service{ private static final int WIFI_NOTIFY = 0x2001; public static final String EXTRA_UPDATE_RATE = update-rate; public static final String WIFI_SERVICE = cicero.org.WIFIService.SERVICE; private WifiManager mainWifi; private BroadcastReceiver rssiListener = null; private int updateRate = -1; private int connectedLevel; @Override public void onCreate(){ super.onCreate(); mainWifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); notifier = (NotificationManager) getSystemService (Context.NOTIFICATION_SERVICE); } @Override public void onStart(Intent intent, int startId){ super.onStart(intent, startId); updateRate = intent.getIntExtra(EXTRA_UPDATE_RATE, -1); if(updateRate == -1){ updateRate = 6; } rssiListener = new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if(WifiManager.RSSI_CHANGED_ACTION.equals(action)) { WifiInfo data = mainWifi.getConnectionInfo(); Log.d(WIFI SERVICE, RSSI has changed); if(mainWifi.getConnectionInfo()!=null){ setConnectedLevel(data.getRssi()); Log.d(WIFI SERVICE, new RSSI = + data.getSSID()+ + data.getRssi() + dBm); } } } }; } @Override public void onDestroy(){ if(rssiListener != null){ unregisterReceiver(rssiListener); rssiListener = null; } if(wifiChangeListener != null){ unregisterReceiver(wifiChangeListener); wifiChangeListener = null; } if(receiverWifi != null){ unregisterReceiver(receiverWifi); receiverWifi = null; } super.onDestroy(); } public void setConnectedLevel(int connectedLevel) { this.connectedLevel = connectedLevel; } @Override public IBinder onBind(Intent intent) { // we only have one, so no need to check the intent return mRemoteInterfaceBinder; } // remote interface private final IRemoteInterface.Stub mRemoteInterfaceBinder = new IRemoteInterface.Stub() { @Override public int getConnectedLevel() throws RemoteException { Log.v(interface, getConnectedLevel() called); return connectedLevel; } }; } Activity class public class TestApp extends Activity implements ServiceConnection{ IRemoteInterface mRemoteInterface = null; int connectedLevel; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); CallMonitor cm = new CallMonitor(this); wifi = new WiFi(this); final Button settings_Button = (Button) findViewById (R.id.settingsButton); settings_Button.setOnClickListener(new View.OnClickListener() { public void onClick(View v){ final Intent myIntent = new Intent(TestApp.this, SettingsApp.class); startActivity(myIntent); //Toast.makeText(GetCallLog.this, nameE, Toast.LENGTH_LONG).show (); } }); final Button scan_Button = (Button) findViewById (R.id.scanButton); scan_Button.setOnClickListener(new View.OnClickListener(){ public void onClick(View v){ Intent
[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.
This may be slightly off topic, But still the google team should look at expanding the android market to different countries. Seems apple now has nearly 97% of all mobile application downloads. When the spp store wasreleased apps were available in around 80 countries and for around the same number of developers. I have not seen good progress in this regard from the android team, 15 months since first device was launched and still we have paid application support for developers and user download in not more than 10 countries. Is there any plans to improve this at all or is this going to be the same? I have been waiting for more than an year to release my app to the android market and am totally fed up of the same. Everytime we get a reply The android team is working hard to add additional support, and we dont even get any approax time frame. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with ListPreference in preference view
This is my first Android app (which is a soft keyboard, with dvorak layout) and so far it has gone pretty smoothly (either because or despite working from the sample code). I've had some problems (with special/swedish characters) that I've managed to take care of, but this problem I can't figure out how to solve.. I've added a preferences view to the app for some(/a) settings, I used this reference: http://www.old.kaloer.com/android-preferences/ and it worked pretty well (besides some hick up from launching the activity from a service). But when I click the list item to edit it, i get an empty dialog (Title and button is shown right and with the text I set in the xml- file, but no list, screenshot: http://i49.tinypic.com/2501p55.png ). I can't see any problem with the program code (which isn't many lines..) or the xml (the arrays are generated by the Android utils in Eclipse and the preferences is a mix of auto and manual). You can see both Java code and XML here: http://pastebin.com/m4c52c3a2 (titles etc in Swedish..) (I've also tried a EditTextPreference item, which seemed to work fine..) I have also looked at the log/output using adb, and can't see any problems there either, so I have no idea onto how to solve this... So i need some help.. Regards Christopher H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] is there a way to know exclude the invisible face intersected with a pick ray?
Hi guys, Imagining below steps: 1. u draw a cube on the screen 2. the cube can be rotated per x/y axis 3. then we can picked up the nearest face with the classic method of a pick ray 4. Now imagine there is a hole at the cube's visible face, and u clicked the hole 5. The classic pick ray method will then return u the cube's back face, which is not expected by me What I really want in this scenrio is not to pick up anything. I guessed one possible solution is to write a method to know the intersected point direction(positive face or negative face) of the face. I wonder if current Android openGL provides such mathimatical functions? Or is there a shared coding to achieve 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] Triggering dynamically a NUMERIC keyboard with no use of TextView component.
Hi, Currently, im porting a J2ME app to the Android platform. Ive already done this process, though some bugs need to be fixed. Lately, Ive been struggling to solve an issue related with the Android's virtual keyboard: My app launches a screen, together with a virtual QUERTY keyboard, requesting the user to insert a numeric string in a text field. It is preferable however enabling a NUMERIC keyboard instead of a QUERTY one. Thus, I would like to know if there's any way to programmatically provide a NUMERIC keyboard to the user, disregarding at the same time any existent EditText components. Note that i want to avoid the use of expressions related to EditText elements: android:inputType=“...” editTextBox.setInputType(int) The goal here is reaching the same result as for editTextBox.setInputType(TYPE_CLASS_NUMBER), avoiding the use of TextBox components. Ive tried using with no success: - Configuration class with the KEYBOARD_12KEY constant; - The InputMethodManager class; - The InputMethodService and EditorInfo class (EditorInfo.inputType) Sorry for the size of this message. Thanks in advance for all :-) Ricardo Lobo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] simple web search based on location
Hi Folks, wondering if any of you can help. This is what I am trying to do: simple app to get list of addresses I am interested in based on my current location. I get the current location using location services. Now, based on this current location I want to do a search on business places without really using the SearchManager's triggerSearch. The problem with the triggerSearch is that it launches the googlemap and show the business address I am looking for and it is blocked. I want to get the control back. I do not want to launch the map with the listing. all I want to do is the get the Geopoint of the business address I am interested in using a simple web search. I tried reverseGeocoding , but it is does not work with business address. It needs full address. any suggestion?. Simply put, all I want to do is a simple websearch , say query=whole foods, los gatos, CA to get its full address. and then use it to get the GeoPoint. I am stuck and wondering if anyone can give me some pointers. thanks a ton in advance. Sunny. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] trouble processing java/lang/Object.class
I received the following message and found several others who had seen it but no solution. So I have included how I finally fixed it. (I'm using Eclipse version 3.4.2 and Android 1.5.) trouble processing java/lang/Object.class: [2010-01-17 14:32:29 - whatever] Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from adesktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. The fix for me was to go to my project's properties, select: Java Build Path - Libraries (tab) Somehow, the android.jar had been added, and when I deleted it, all was good. Note that the android.jar is included as part of the Android 1.5 library, so this was a duplication. How did this happen? I certainly didn't do it. But my app has blown up a lot in the emulator, so who knows. Later . . . Jim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Strange crashing while using OpenGL
Hello, I am currently developing an application that uses OpenGL with the Android 1.6 SDK. I am testing on both a Nexus One and an I/O Device (Magic). The application runs perfectly on the Nexus. On the Magic, the application crashes 50% of the time on the first frame with a segmentation fault (see end of post). If it does not crash immediately, it runs fine and exits normally. The crash occurs when calling glDrawArrays for one of my vertex buffer objects. Oddly, when I enable lighting and one light, the application no longer crashes. Unfortunately this is not a solution because the application runs too slowly with lighting. I have found reports of crashing with vertex buffer objects when using non-direct buffers, but I am using direct buffers. For debugging, I modified my code to Log each gl call before it was made. Everything looks fine to me but maybe I'm doing something wrong: http://p5ui5jjnxq.pastebin.com/m2e2c1754 Does anyone have any idea what could be causing the segmentation fault? Any ideas why lighting would affect it, or why everything is fine on the Nexus? Is there something in addition to using direct buffers that needs to be done when using vertex buffer objects? Thanks --- *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'google_ion/google_ion/sapphire/sapphire:1.6/ DRC83/14721:user/test-keys' pid: 536, tid: 553 signal 11 (SIGSEGV), fault addr 001fa000 r0 001b51b8 r1 001f9ff8 r2 0003 r3 001b9e70 r4 001f9ffc r5 001b9e74 r6 0014 r7 03ff r8 r9 001b9e58 10 0003 fp 001b51a4 ip 0002 sp 44847d08 lr 8042b8dc pc 8043fdd8 cpsr 2010 #00 pc 0003fdd8 /system/lib/libhgl.so #01 lr 8042b8dc /system/lib/libhgl.so stack: 44847cc8 001af0e0 [heap] 44847ccc 001177e0 [heap] 44847cd0 4210aecc 44847cd4 8043bac0 /system/lib/libhgl.so 44847cd8 001af0e0 [heap] 44847cdc 44847ce0 001b00e0 [heap] 44847ce4 804251a0 /system/lib/libhgl.so 44847ce8 001177e0 [heap] 44847cec 00984300 44847cf0 001b5198 [heap] 44847cf4 001af0e0 [heap] 44847cf8 001afbdc [heap] 44847cfc 0005 44847d00 df002777 44847d04 e3a070ad #00 44847d08 0400 44847d0c 001177e0 [heap] 44847d10 00989300 44847d14 001b5198 [heap] 44847d18 001af0e0 [heap] 44847d1c 001afbdc [heap] 44847d20 44847d24 1000 44847d28 0008 44847d2c 44847d30 44847d34 001af0e0 [heap] 44847d38 001b00e0 [heap] 44847d3c 001177e0 [heap] 44847d40 4210aecc 44847d44 4210aeb8 44847d48 03c0 44847d4c 8041f79c /system/lib/libhgl.so --- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SMS appliaction-- would someone would like to help?
Hi all, Sorry to bother you all. I have a proposal that I want to look someone to help me to develop a new SMS ( short message system) in Android platform to replace the SMS in android system. And I would like to out source. Any one would like to take this job? this SMS application should be: 1. SMS sending and receiving application software 2. Receive the text or MMS and store into our special design micro SD card,and would not save in cell phone. hence, user can take this card insert into another Android cell phone and than can see this SMS or MMS which installed this new SMS application software. 3. Sending the text or MMS in this application software. however, before sending, it could encrypt this text via the private key (could be RSA 1024 bite key or 2048 ) and public key which stores in our special design micro SD card. 4. When receiving the text or MMS, it could decrypt each time when we read it. Same, it will get the private to decrypt this text or mms. This project would ask for the developer who has the experience in Smart card, PKI and SMS of Android cell phone application. And we also need the source code. Any one interests ? we can discuss the payment. please email me. m0929420...@gmail.com Jack Hsu PS: the special SD card is a micro SD card embeds smart card controller and Java OS ( JCOP v2.4) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Starting Google Maps at pre-specified location
Hi Group, I have one problem with Google Maps, while opening them at some location. How could that be possible for user to specify city first (e.g. type in EditText field London) then press a button and see London on the map? I've succeded in opening GMaps at some pre- specified location, but only using coordinates:(. Cannot find anything on topic. Thanks in advance! Denis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] self steering car using Camera.
Any interest in building a self-steering car using Android camera? See block diagram here. http://docs.google.com/View?id=dz28fm9_129gxg6sfgn Sorry, slightly off topic... Jim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: china government blocks google groups,what should we do ?
maybe you can use https,i think it's works. On 1月18日, 下午12时08分, Barry Wei barrywei.uyg...@gmail.com wrote: as you've known all, it's hard for us(here in china) go online via this network. we have to use a proxy or change url to visit android groups. is there any way to get this easier? or you have provide ultimate way to ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] stt emulator
Is there a stt (speech recognition) and tts emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: setting ANDROID ENVIRONMENT IN UBUNTU8.0 operating system
I had the same problem using Karmic. I followed Vineus's directions and works perfectly. Thanks! On Dec 4 2009, 4:04 pm, Vineus vin...@gmail.com wrote: On Dec 2, 10:58 am, Ram rama.mohan...@gmail.com wrote: I am trying to work the android development in UBUNTU 8.0 OS. I installed Eclipse 3.5 IDE Linux 32 bit version. When i try to add ADT 0.9. plugin it is reporting me the following error and it aborts the adding ANdroid plugin installation process. Error details Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group 0.9.4.v200910220141-17704) Missing requirement: Android Development Tools 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group 0.9.4.v200910220141-17704) requires 'org.eclipse.wst.xml.ui 0.0.0' but it could not be found. -- I have installed sun-java 1.6 version in my ubuntu system. What to do to solve this error. Or If any one knows the development of android in Ubuntu Environment.please help me I had the same problem but finally made it. Go to Help/Install New Software... Addhttp://download.eclipse.org/releases/galileo/to the update sites list (strange it's not installed by default on ubuntu) From there, install WST (use the filter box to find the package) Restart eclipse Go back to Help/Install New Software... and install the Android ADT as explained on the android website. -- Vineus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Posting data using HTTP POST to a Servlet
Hi, I am trying to use the below to post my data to a servlet but seems like not working. http://www.androidsnippets.org/snippets/36/ I am posting to a servlet in Tomcat in my local machine using host: 192.168.0.1:80 Basically I am posting the data to, 1. Save into database using servlet 2. Then I need to get that data back from DB using HTTPGET via another Servlet. Please help. Thanks, Arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Vertical Text Aligment for Key Label in Softkeyboard example
Would there anyway to display the text for key label in vertical aligment? For example, display 1 2 3 in a single key instead of 123. I tried to use \n between the numbers but it didn't work. Would there have any other way to make the text be vertical aligment or create a table form inside a single key? P.S. I want it to be text instead of image. Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Accelerometer on Motorola Droid
I can't provide much on this. I'm not a developer, but I may be able to provide some insight. I've been wanting to find a way to calibrate the accelerometers on my droid since I installed the tricorder app. It bugs me that the X and Y axes are off by about .2 ms^-2 in both orientations. In my searches for such a calibration method, I came across this post. The reason the accelerometers never measure zero is that there is always at least one axis being pulled by gravity. If the device is lying flat, the Z axis is pointing at (roughly) the center of the earth and should measure acceleration due to gravity (9.8 ms^-2). The other axes should be near zero, but the shoddy factory calibration makes this difficult. The company I work for manufactures marine inertial navigation systems that use accelerometers, gyros and a 3- axis electronic compass and I get to calibrate them from time to time.The way I do this (using a built in program that I've had nothing to do with) is to set the box on each side and have the calibration program take 10 readings from the relevant accelerometer, (it also takes readings from the electronic compass to help with those measurements, in case you're also working on a compass program). What I assume, is that the calibration program sets the reading from each orientation of each axis at +/- 9.2ms^-2. It probably also compares the differences in magnitudes of the signals from each sensor to further sharpen the accuracy, since I do not set these things perfectly vertical for the calibration. As long as the device is held in the same orientation within the calibration box and the outside of the box is square, the calibration program can figure it out. As for using the accelerometers to measure speed changes, I've been thinking about that to. It would be cool to, perhaps, augment a GPS speedometer with the accelerometers. Maybe to provide higher resolution without taxing the GPS receivers? In any case, its pretty complicated, I'd have to dig out my physics textbook to find the formulas. Even then it would probably take me a while to wrap my head around a combination of three axes. Then there is filtering out noise from, say, the vibrations of a car Any way, I hope I've been of some help. Good luck, I look forward to trying out your app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Output Analysis
I was playing around with some of the live wallpapers and thought it'd be neat to try to make something like the frequency/waveform visualization wallpapers, but I'm not sure there's an API to get the audio output data from the device. I know you can use AudioRecords to get this sort of data from microphones. Anyone know if there's a way to manage it for a device's output? 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: Blocking on a Socket read operation while in sleep mode
Yes, the CPU is OFF when the device goes to sleep. The socket is non- responsive at this time. Hope that helpps. On Dec 28 2009, 8:52 pm, Omer Gilad omer.gi...@gmail.com wrote: I have code that runs in the background and holds a connected Socket and it's InputStream. It calls read() infinitely until something is received, then continues to parse. Socket timeout is 0 of course. I am interested in what would happen when the device goes to sleep? Is the CPU off? Will this socket be responsive in this case (Say, my server sends some notification)? 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: Installing app on android device
On Jan 19, 2:43 pm, fourk xav fou...@gmail.com wrote: What about if you want to run the application on your DISCONNECTED device? You need to get the APK to the device somehow. By far the most direct method is via USB, but if this isn't an option for some reason, you still need to bridge that gap. Some possibilities: - Copy the APK to an SD card on your development computer, then mount that card on your phone and open th APK file using a File Manager app. - Upload the APK file to a web server, then browse to its URL using the browser on the device. There are probably other means, but you will need to get the APK file to the device one way or another. 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] is AndroidHttpClient deprecated?
Are most of the classes in android.net.http.* deprecated? There is no javadoc except for SslCertificate and SslError but most classes are still in the sdk? Can I still use it or java.net.* is the way to go? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] hi
hi, iam into mobile game development. i have been developing games in j2me. now i want to develop for android can anyone suggest best tutorial for android game development. where to start and how to start is my big confusion. thanks in advance -- rakesh rapaka -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] paly youtube fail on android platform
below is my log message: # D/dalvikvm( 1919): GC freed 84 objects / 3544 bytes in 177ms I/ActivityManager( 1871): Starting activity: Intent { act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] flg=0x1020 cmp=com.google.android.youtube/.HomeActivity } I/ActivityManager( 1871): Start proc com.google.android.youtube for activity com.google.android.youtube/.HomeActivity: pid=2177 uid=10023 gids={3003, 1015} D/dalvikvm( 1833): GC freed 281 objects / 10704 bytes in 111ms select 2165 (app_process), adj 15, size 4994, to kill send sigkill to 2165 (app_process), adj 15, size 4994 D/dalvikvm( 1833): GC freed 47 objects / 2064 bytes in 119ms I/ActivityManager( 1871): Process com.android.settings (pid 2165) has died. D/dalvikvm( 1833): GC freed 2 objects / 56 bytes in 114ms I/ActivityThread( 2177): Publishing provider com.google.android.youtube.SuggestionProvider: com.google.android.youtube.suggest.SuggestionProvider E/ActivityThread( 2177): Failed to find provider info for com.google.settings E/ActivityThread( 2177): Failed to find provider info for com.google.settings E/ActivityThread( 2177): Failed to find provider info for com.google.settings I/YouTube ( 2177): Distribution channel:mvapp-android-google D/AndroidRuntime( 2177): Shutting down VM could anybody tell me what happen the two issue: 1. I/ActivityManager( 1871): Process com.android.settings (pid 2165) has died. 2. I/ActivityThread( 2177): Publishing provider com.google.android.youtube.SuggestionProvider: com.google.android.youtube.suggest.SuggestionProvider E/ActivityThread( 2177): Failed to find provider info for com.google.settings how to do fix this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Impossible to create socket inside Service
Hi, i have a big problem with my Service. My Service-Class overrides the onStart method inherited from Service. I can not create a socket with a specific address and port inside this Service. Every time my application hangs there and the emulator shows a message box that there is no response from my application. All i want to do is to create a socket in the OnStart-method: public void onStart(Intent intent, int startId) { SetServerAndPort(); try { this.tcpListener = new Socket(this.serverAddress, portNumber); } catch (UnknownHostException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } Internet permission for the application and especially for the service are set. Can you tell me what´s wrong here? 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] Moving Objects.
Hey, guys, I was trying to find a good tutorial on how to move objects. Let's say I've created a shape: public class ActivityTest extends Activity { CustomDrawableView mCustomDrawableView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCustomDrawableView = new CustomDrawableView(this); setContentView(mCustomDrawableView); } public static class CustomDrawableView extends View { private ShapeDrawable mDrawable; public CustomDrawableView(Context context) { super(context); int x = 10; int y = 10; int width = 50; int height = 50; mDrawable = new ShapeDrawable(new OvalShape()); mDrawable.getPaint().setColor(0xff74AC23); mDrawable.setBounds(x, y, x + width, y + height); } protected void onDraw(Canvas canvas) { mDrawable.draw(canvas); invalidate(); } } } Now I want to move the shape in the direction I intend. Let's say I want to move 20 point down the X-Y direction. Can someone share basic code of how would you do that? I'll greatly appreciate it! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Forensics Tool (A lil help please :])
Im currently creating a app that will allow the user to browse the file system of the Android and look at 'suspicious' applications or files with the phone. The idea is to be able to manually look through the file system and look at individual files and there information, such as time and date added to phone, file extension and source. I've created the code for the file browser but im a lil stuck on the gathering file information bit. Could anyone help me, or point me in the way of some help, be much appreciated. thanks sean -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get the USB device list of an Android device?
Dear Sirs, In my development environment, more than one USB device can be plugined in the Android device. If I want to get the USB device list of an Android device. What should I do? Of course, if there is only one USB device, it seems that we can access it as sdcard. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: onActivityResult is called immediately after startActivityForResult
Could you post your exact configuration from your AndroidManifest for the activities that you are calling from and returning a result from? The reason I ask is that I am struggling with a couple of activities in my app. One should be calling the other using StartActivityForResult but I am getting the dreaded 'Activity is launching as a new task, so cancelling activity result' problem. Neither of my activities are configured in any special way... no weird launchmode or anything but yet it still fails to work for me. Cheers. On Dec 23 2009, 4:23 pm, ryan ryan.yoos...@gmail.com wrote: Yeah I just found this out myself and came to post. Thanks for the added input! On Dec 23, 6:35 am, Lance Nanek lna...@gmail.com wrote: I've seen onActivityResult get called immediately once before as well. The activity getting started bystartActivityForResulthad launchMode set to singleTask in the manifest. There was a message in the logs from the ActivityManager saying: Activity is launching as a new task, so cancelling activity result. Changing the launch mode fixed it. On Dec 23, 8:35 am, ryan ryan.yoos...@gmail.com wrote: Hello, Im trying to do a basicstartActivityForResult, but onActivityResult is being called before the subactivity has a chance to call setResult. main activity's menu handler for a specific button-press: startActivityForResult(new Intent(this, SubActivity.class), someInt); main activity's onActivityResult(int reqestCode, int resultCode, Intent data) { alert(Integer.toString(resultCode)); // always 0 (RESULT_CANCELED?) alert(Integer.toString(requestCode)); // always someInt if (data == null) { alert(returned null); } // SEE BELOW SubActivity extends listactivity: onListItemClick(ListView l, View v, int i, long id) { result = new Intent(); result.putExtra(key,value); setResult(RESULT_OK, result); finish();} - the activity and subactivity execute fine, the result is where my problem comes in. from SEE BELOW above: this line will always alert returned null, however if i change this line to: if (data.equals(null)) { alert(returned null); } i get a NullPointerException before the subactivity can visibly start. the subactivity's onCreate normally logs to the debugger, but nothing appears if I cause a NullPointerException, which leads me to believe that onActivityResult is being called before the subactivity is created. i've taken a look at the notepad examples along other examples on the web and my code appears consistent with them. plz halp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 speed up Eclipse incremental build?
Hello, This is probably more an Eclipse question but pointers are welcome. Here are some build times for an application, based on equivalent ant tasks: clean, build: 17s incremental build: 8s debug: 1mn46s build is equivalent to the ant task target name=build depends=dirs,resource-src,aidl,compile /, it's basically the regular Java build without the android packaging action. I do not use ant in my Eclipse setup to have access to debugger and other tools. My problem is Eclipse default build action is equivalent to debug, which is very slow and therefore prevent incremental builds. I would like to configure the default build action to be everything *except* the Android Package Builder, while preserving the ability to make full builds and debugging runs. Can you tell me how to do this? Here is what I tried: - Replace Eclipse build with an ant script. This works fine except I don't know how to debug it. - Disable Android Package Builder in project properties. It makes incremental builds fast but I don't know how to make full builds and debugging run (since the apk is no longer generated). Thanks you for any idea -- Patrick Mézard -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Website to app
Hi all I know that this was asked before, but he one I found only pointed the person to the android sdk and documentation and I'm sre that there must be an easier way for doing what I wanna do. OK, so I have a mobile site I built specifically for his purpose, which is sitting online as we speak, but I want to put it in an app.. so basically I want to have something with a browser in it that will only load my site (hiding teh URL off course creating the illusion of an app). Is there any way to do this quickly and easily with having to install eclipse and all that? Maybe a freestanding application that can just frame a site like that? I hope I'm not asking too much.. 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] How to store and retrieve email id and password using SharedPreferences?
Hi all, I am developing an application which requires to store email id and password, so that the user can directly redirect to his home page if the user is already exists. A few day ago i read that SharedPreferences is used for storing and retrieving the data. How can i use SharedPreferences concept to store and retrieve data. Anybody have any idea to do this way? If it is possible by understanding me through the code because i read that things but i can not get it properly. 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] Populated database inside the app package (HOW-TO)?
Hello, fellow developers! I'm trying to bind a pre-populated database (.db file) to my application, so that I could use the data right away. I cannot, however, figure out a way to: 1) Store the .db file inside the application. 2) Access the database inside the application. Please, can someone show easy-to-follow steps with code how to approach it. Thanks A LOT!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Best way to launch Messaging app via intent
By setting the action to ACTION_VIEW and type to vnd.android-dir/mms- sms on the calling intent, multiple phone numbers can be passed via the address attribute using a semi-colon delimited list: a href=http://andmobidev.blogspot.com/2010/01/launching-smsmessages- activity-using.html target=_blankhttp://andmobidev.blogspot.com/ 2010/01/launching-smsmessages-activity-using.html/a Don't know if this will work for you. On Jan 17, 4:42 pm, Steve stec...@gmail.com wrote: On Jan 14, 9:22 am, Dianne Hackborn hack...@android.com wrote: The stockSMS/MMS application handles the SENDTO action with ansms:, smsto:, mms:, or mmsto: URI. I can't guarantee that devices shipping with a custom MMS app will also handle these, though. After experimenting with the SENDTO action and mms: URIs, I think an extra intent filter is needed in the stockSMS/MMS application. Currently the ComposeMessageActivity intent filter for the SENDTO action and mms scheme is as follows: intent-filter actionandroid:name=android.intent.action.VIEW / actionandroid:name=android.intent.action.SENDTO / categoryandroid:name=android.intent.category.DEFAULT / categoryandroid:name=android.intent.category.BROWSABLE / dataandroid:scheme=mms / dataandroid:scheme=mmsto / /intent-filter Notice that there is currently no provision for mimeType. This means that I can't specify the mimeType of the attachment in the intent when I try to launch the mms app via SENDTO. The result of this is that any image I specify via intent.putExtra(Intent.EXTRA_STREAM, imageUri) gets ignored. The messing app opens but with no attachment. If I specify both the URI scheme (mms) and the Mime Type (image/ jpeg) via intent.setDataAndType() with action SENDTO, the intent does not resolve to anyactivity. It seems a bit pointless offering support for the mms scheme, but providing no way to provide an attachment. To fix this I suggest that a new intent filter be added to ComposeMessageActivity as follows: intent-filter actionandroid:name=android.intent.action.SENDTO / categoryandroid:name=android.intent.category.DEFAULT / dataandroid:scheme=mms / dataandroid:scheme=mmsto / dataandroid:mimeType=image/* / dataandroid:mimeType=video/* / dataandroid:mimeType=audio/* / /intent-filter If that is a workable solution, any chance of including this in the next release of the stockSMS/MMS application? Is there a more appropriate forum to make requests forAndroid platform enhancements? Cheers Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Looking for Stellar Android Developer/Contract in Seattle
If you're interested, please contact me. This is for a company in downtown Seattle working. ani...@seattletechsearch.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: Getting Current Signal Strength
Go to Settings-About Phone-Status and there is an option there for Signal Strength. On Jan 14, 10:14 pm, dolsen danec...@gmail.com wrote: I am trying to figure out how to get the current signal strength of the Android 2.1 device. So far I can only find access to the SignalStrength object if I am listening for a change. I don't want to have to wait for the strength to change in order to see what the strength is. Can someone show me how this can 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] Re: Best way to launch Messaging app via intent
When setting the action to ACTION_VIEW and type to vnd.android-dir/ mms-sms on the calling intent, multiple phone numbers can be passed via the address attribute using a semi-colon delimited list: http://andmobidev.blogspot.com/2010/01/launching-smsmessages-activity-using.html Don't know if this would work for your situation. On Jan 13, 1:24 pm, Steve stec...@gmail.com wrote: Thanks for the info Dianne. When using the SENDTO action with an mms: URI, can multiple addressees be supplied? If yes could you please give an example? Also, am I correct in concluding that there is currently no documented API for programatically sending MMS? (SmsManager doesn't appear to cover this.) Any plans to add this to an upcoming release? Cheers Steve On Jan 14, 9:42 am, Mark Murphy mmur...@commonsware.com wrote: Dianne Hackborn wrote: The stockSMS/MMS application handles the SENDTO action with ansms:, smsto:, mms:, or mmsto: URI. I can't guarantee that devices shipping with a custom MMS app will also handle these, though. Hey, thanks for the info! I've added an issue, requesting that this be added to the docs: http://code.google.com/p/android/issues/detail?id=6027 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide toAndroidDevelopment_ Version 2.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android, How develop a vedio call programe?
hello! I am developing a video call programe,but I have nothing about it . Who can help? I need some documents or othors about it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best way to launch Messaging app via intent
When setting the action to ACTION_VIEW and type to vnd.android-dir/ mms-sms on the calling intent, multiple phone numbers can be passed via the address attribute using a semi-colon delimited list: http://andmobidev.blogspot.com/2010/01/launching-smsmessages-activity-using.html Don't know if this will work in your situation. On Jan 13, 1:24 pm, Steve stec...@gmail.com wrote: Thanks for the info Dianne. When using the SENDTO action with an mms: URI, can multiple addressees be supplied? If yes could you please give an example? Also, am I correct in concluding that there is currently no documented API for programatically sending MMS? (SmsManager doesn't appear to cover this.) Any plans to add this to an upcoming release? Cheers Steve On Jan 14, 9:42 am, Mark Murphy mmur...@commonsware.com wrote: Dianne Hackborn wrote: The stock SMS/MMS application handles the SENDTO action with an sms:, smsto:, mms:, or mmsto: URI. I can't guarantee that devices shipping with a custom MMS app will also handle these, though. Hey, thanks for the info! I've added an issue, requesting that this be added to the docs: http://code.google.com/p/android/issues/detail?id=6027 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] myTouch 3G developer phone
I have a myTouch 3G that currently is not connected to any service. I have been trying to use it as a dev phone but eclipse wont see it as proper target device. Does it need service for it to work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Service within a Thread? Thread within a Service?
Please forgive my ignorance, I am new to Java and Android. I would like to retrieve remote data and display it within my activity. To prevent tying up to UI, I understand that I can do this in another thread. (I thought I could just-as-well fetch this remote data from within a service, but that appears to tie up the UI thread also). So now I'm beginning to think I need to either run the logic from a new thread within a service, or run a service within a new thread. But which? I have found many examples online of running new threads or services, but I have yet to find an example of both at the same time. 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 feed MediaPlayer with AMR chunks properly
Dear folks, I did some research through the forums and there are similar questions but unfortunately still without answer. My goal is to stream AMR stream which I'm reassembling from udp datagrams.According to the API there's officially supported streaming using AudioTrack, but it's supporting PCM only. -- is it possible to convert somehow amr into PCM on the device? I tried also to point mediaplayer.setDataSource to some URL - I did some testing before going in this way, I pointed to an URL with amr file and I could see that the mediaplayer is trying to buffer first and starts playing without downloading the complete file, but.. - it's playing on the device with wi-fi, when I disable wi-fi (stays with edge), I get (1,-10) error - preparePVMFErrCorrupt EVEN if this will work, do I have the guarantee that the buffering won't take too long? (I've seen buffering cca. 10kB, which is with 12.2kbps few seconds, far away from the real-time feeling) How about ParcelFileDescriptor? If recording can provide the recording stream via socket, is it possible to point mediaplayer to such a socket too? In my test, it failed.. Any other ideas? Your help will be much appreciated! Cheers, Marek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding SharedPreferences
Hi, Can you give me an example with the use of SharedPrefereneces which store and retrieve the email and password by calling .net web service? 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 disable user interaction arising from a long press to an EditText
A long press on an EditText brings up a menu of options that the user can select. The only messages or options that I want users of my apps to get, I want to come from me via the app. How do you disable this so that nothing happens when you long press the EditText? What other situations like this should I be aware of? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en