Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair?
Dear kumar, David what's to invoke the yutube only, and invoke it directly, not like you gave he method that list all of the activity and let user to choose.. Dear David, i'm harvey, you konw me..hahaDo you know how to translate the 放長線調大魚 with english? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: what is the detailed relation between contacts and raw_contacts?
A row in the ContactsContract.Contacts table represents an aggregate of one or more RawContacts presumably describing the same person. I think my question is resolved. That is, one contact may be mapping with one or many rawcontacts. This is dependent on whether aggregate is adopted. On 3月11日, 下午12时27分, Dmitri Plotnikov dplotni...@google.com wrote: There is basic API documentation here:http://developer.android.com/reference/android/provider/ContactsContr... 2010/3/10 Jerome Deng deng.jer...@gmail.com ^_^Oh, fail to connect to android developer site in China if don't use proxy. Thanks brain. You are right, there is no document about this. Any one can help interpret with details? On 3月9日, 上午8时29分, brian br...@bwalsh.com wrote: +1 - the documentation in this area needs some work. To do the simplest thing takes hours of reverse engineering. For example, try and figure out how to enable presence for a 3rd party provider -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Forward activity resultCode?
Hi, Is it possible to forward a result like the following?: ActivityA startActivityForResult(intentB, 22); ActivityB startActivityForResult(intentC, 22); finish(); ActivityC setResult(99); finish(); is it possible to get A's onActivityResult() to fire here and catch the value 99 as the resultCode? B excuses itself from the stack, so really A becomes the parent of C in this scenario. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Forward activity resultCode?
In B, set this flag in the Intent you are starting: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_FORWARD_RESULT On Thu, Mar 11, 2010 at 12:04 AM, Mark Wyszomierski mar...@gmail.comwrote: Hi, Is it possible to forward a result like the following?: ActivityA startActivityForResult(intentB, 22); ActivityB startActivityForResult(intentC, 22); finish(); ActivityC setResult(99); finish(); is it possible to get A's onActivityResult() to fire here and catch the value 99 as the resultCode? B excuses itself from the stack, so really A becomes the parent of C in this scenario. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Which API Level to target
The most recent official version distribution (worldwide) is here: http://developer.android.com/resources/dashboard/platform-versions.html On Wed, Mar 10, 2010 at 11:47 PM, Kaj Bjurman kaj.bjur...@gmail.com wrote: Really nice to see some statistics, but I don't think that they are applicable for the rest of the world. It's e.g. not possible to buy any phones with Android 2.1 in many countries in europe, and it looks like your app mostly is used in US, where you have the Droid and the N1. I would expect the 1.5 pie to be much larger if you look at it globally. On 11 mar, 06:00, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Check out one of my app's companion site: http://www.radarnow.net Click on the stats link. You'll see the percentage for each version, also the devices that are being used. That may help make up your mind. -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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair?
Dear Bibek, As like you mentioned, pen a Resolver activity. it will show you video results for Android,Can you change the sort of the activity list? like youtube is at the bottom in the list, but i wan't to list the youtube at the front of the list? What to do?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Device Seeding Program for Top Contributors to Community Forums
On Wed, Mar 10, 2010 at 11:30 PM, Robert Green rbgrn@gmail.com wrote: Also, I get reports of people running my live wallpaper off of G1s and other devices. Oh good lord. The G1 hardware does not at all support multiple GL contexts. This is almost certainly going to cause bugs in various places as the device is used. -- 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] calendar sync up with google
Hi, I am using Android 1.6 emulator. I have setup internet successfully in it. But I can't launch calendar. I came to know that it needs to be synced up with google. Please let me know how can I do this. I tried using google login service(in dev tools). But it is crashing if I select any option from there. Please suggest. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get result from Activity
Why not? Post a notification, give it a PendingIntent pointing to your login activity: Intent intent = new Intent(this, MyLoginActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pintent = PendingIntent.getActivity(getApplicationContext(), 0, intent, 0); notification.setLatestEventInfo(getApplicationContext(), getString(R.string.notification_title), getString(R.string.notification_text), pintent); mgr.notify(LAUNCH_NOTIFICATION_ID, notification); (Thanks for asking -- my code had broken with a reorg of my class hierarchy, so my activity class was no longer the one in the manifest! So I just fixed my app as a result of your question!) Your login activity must, of course, be in the manifest. On Mar 10, 6:23 am, ailinykh ailin...@gmail.com wrote: It's not about notification. If session is expired I have to start LoginActivity. As far as I understand NotificationManager can't help here. Thank you, Andrey On Mar 10, 12:29 am, Dianne Hackborn hack...@android.com wrote: You should never start any activity outside of an existing activity. Thus to get a result, you need to be starting from an activity. If you want to inform the user of something going on from the background, you should use the notification manager. On Tue, Mar 9, 2010 at 9:20 PM, ailinykh ailin...@gmail.com wrote: Hello, everybody! I'm doing some network job in AsyncTask. Sometimes it requires communication with user. (connection is dropped, session is expired and so on). I want to pop up a dialog or launch an Activity, and then, depending on user's input, stop the job or redo it. I can launch any Activity from AsyncTask, but how to get result back? It seems to be possible only if I launch new Activity from another Activity. What are possible solutions? Thank you, Andrey -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Where is the so urce project location of YouTube in Eclair?
Actually, I tried like this: Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setClassName(com.google.android.youtube, com.google.android.youtube.QueryActivity); intent.putExtra(query, Susan, American); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); but occurred android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.youtube/com.google.android.youtube.QueryActivity}; have you declared this activity in your AndroidManifest.xml? So I think I got the wrong YouTube package name and QueryActivity name. Who know what's the exactly package name and QueryActivity name for YouTube in Éclair? Thanks in advance. Best Regards, David -邮件原件- 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 a a 发送时间: 2010年3月11日 16:00 收件人: android-developers@googlegroups.com 主题: Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair? Dear kumar, David what's to invoke the yutube only, and invoke it directly, not like you gave he method that list all of the activity and let user to choose.. Dear David, i'm harvey, you konw me..hahaDo you know how to translate the 放長線調大魚 with english? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Forward activity resultCode?
That's perfect, thanks Dianne. This is how it looks now for reference: ActivityA startActivityForResult(intentB, 22); ActivityB intentC.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT); startActivity(intentC); finish(); ActivityC setResult(99); finish(); I just had to modify ActivityB's call from startActivityForResult() to startActivity() otherwise it throws an exception since that flag is specified on the intent, but the error message is very descriptive and excellent, Thanks On Mar 11, 12:07 am, Dianne Hackborn hack...@android.com wrote: In B, set this flag in the Intent you are starting: http://developer.android.com/reference/android/content/Intent.html#FL... On Thu, Mar 11, 2010 at 12:04 AM, Mark Wyszomierski mar...@gmail.comwrote: Hi, Is it possible to forward a result like the following?: ActivityA startActivityForResult(intentB, 22); ActivityB startActivityForResult(intentC, 22); finish(); ActivityC setResult(99); finish(); is it possible to get A's onActivityResult() to fire here and catch the value 99 as the resultCode? B excuses itself from the stack, so really A becomes the parent of C in this scenario. 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.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: Using MediaPlayer - multiple sound files
Yes this is exactly my problem... SoundPool either cuts off the sample after about 5 seconds, or complains that it's too big. I'll try your suggestion, though I can't have delays so I may have to stick with lots of MP objects. Thanks. On Mar 11, 7:08 am, Nightwolf mikh...@gmail.com wrote: Another way is to use single MediaPlayer and call reset(), setDataSource(), prepare() and start(). There could be some delays though, at least for the first time. BTW the last time I tried SoundPool it was impossible to have more than 1 MB of sounds. SoundPool uses uncompressed audio and I didn't find a way to control bitrate and other stuff. I wanted five 17-18 sec samples and that was impossible with SoundPool. On 11 ÍÁÒ, 02:50, Neilz neilhorn...@googlemail.com wrote: Anyone? I'm sure this must be a common 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] ViewFlipper caching issue
The views are not cached in a ViewFlipper. Is there a way wherein we can get an image of the view and show it to user so that he sees the Ui as we see on Home scrren(when we swipe the previous view also moves along and when we lift our finger, only then the next view is shown completely.) What I want to do is that when the user starts moving his finegr on screen, the view should also move along(create an image of view). I am not getting to do this, as when we swipe the present view goes and next view comes, we do not get both visible when we r moving our finger on screen. Please if anyone gets what I am trying to do, do help me. Thanks, Farha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RIL - Info
Hi, Check these links http://androidapps.org.ua/i_sect18_d1e18369.html http://www.kandroid.org/android_pdk/telephony.html Thanks Pratibha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 detect when android kill my process?
The *potential* problem with this approach is that it *potentially* distributes a whole lot of initialization code throughout your application in various Activities, Services, etc. One advantage of subclassing Application is it allows you to centralize a lot of common logic. If you have this bit of state in ActivityA, and another in ActivityB, and another in ActivityC -- not only does it get terribly confusing, but you also can also end up repeatedly loading preferences settings, database data, etc. You also end up loading classes you might otherwise never need to have touched. On the other hand, initializing everything on loading the application ignores that you may not need all of it. Of course, you can avoid that by doing lazy initialization within the Application subclass, too. I am NOT arguing that you should always subclass Application instead of using statics, etc. Rather, you should do the simplest thing that works. I'd suggest starting out with statics, and only subclassing Application if it solves a problem for you. You can also create a Model class (as in Model-View-Controller, or MVC) that you centralize around. This is a single singleton, that replaces many singletons. There's more to the Model component of MVC than I'll cover here, but you can manage it either within a Application subclass or with a static -- just be sure to only have one. I'd prefer this to cluttering up an Application subclass. Still, the only reason I know where it's actually NECESSARY to subclass Application, is to override its lifecycle methods. I initialize Flurry there, so I can set up error handling before any activities or services are started. I also publish from the Application subclass certain data I extract from my application manifest's metadata, which can't be done from a static. I handle updating data from the free app to the paid app, and upgrading data from one release to the next, before the Activity's and Services have a chance to notice the obsolete data. On Mar 9, 1:37 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Try to avoid subclassing the Application class. Just use static variables. Initialize them to null/0/whatever and check them in the onCreate of your activity. If these are null/0/ whatever, initialize these static variable properly and continue. But re-initializing them *won't maintain* state. After you process has been killed, your state is reset. You can use static variables to share state between multiple activities in your app (as long as they're started in the same process). If you want to maintain state over configuration changes (e.g. slide out keyboard, orientation changes), use the activity's onRetainNonConfigurationInstance method. If you want to maintain state even if your process has been killed, use the activity's onSaveInstanceState method (and related methods). On Mar 9, 5:59 am, miguelo miguel...@gmail.com wrote: Hi, thanks for your help. I have read about how to save and restore the status of an activity (onSavedInstanceState(), onRestoreInstanceState(), ...) My problem is I'm extending the android.app.Application class, which is a base class for those who need to maintain global application state and I'm using it to maintain some global data (user logged in, DB helper, ...). These are the data I'm losing if I leave my application opened and after a few hours I return to it. I'm able to restore the specific data of the running activity but not these global data. I don't know if I'm using a bad practice (and in that case which is the recommended approach to store global application state), and if that's the correct place to do it, how can I save/restore those data when my process is killed/restarted. Thanks, Miguel On 8 mar, 17:22, TreKing treking...@gmail.com wrote: ... Did you readed about onSavedInstanceState and onRestoreInstanceState ? ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 reset the price of application
Carlo, I think you are using different Android Market than the rest of us do. :D Reason why I tried to set Free price to paid app was exactly what they have in AppStore - to promote your paid app you give it for free for 24 hours. Now all my buyers are screwed, because I had to unpublish the app and think of some other package for it, correct links in my trial version of this app and solve others nasty things this experiment brought. Carlo wrote: We really appreciate the way the android market is right now, hope it won't change in the future... there is still some issues with the customer in review status for the customer who are unable to download, are not aware of the 7 days delay before the order is automatically canceled and complain to us why they cannot download but beside of this particular issue, the market is very nice designed for developer to sell application, we don't see too many featured all over the place, we like the 1 RANKING worldwide, the good separation between free and paid and we like the ability to be in touch with our customers, they are not just 1 number added to a global total but we can know who really they are, we feel more like having a true buyer / seller human relationship with them. Keep the good work. On Mar 11, 2:57 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Mar 10, 2010 at 8:48 PM, Kumar Bibek coomar@gmail.com wrote: promote your app free for 24H or more That's a nice idea. Ummm, Google doesn't seem to be working on the Android Market. :( Yep, no more development on android market. It is perfect how it is. Now we can go see a movie. -- 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] Remove attention box while activating softkeyboard
How are you all I am developing android applications. currently I have customized the sample softkeyAndroid project to include amharic language (Ethiopian language). The keyboard works well. But when I try to activate it from the setting (Local Text) option, it displays some warning message that says This input method may be able to collect all the text you type, including personal data like password and credit card numbers. . I think this text is include for security purpose. But users may not be interested to use the keyboard. So my question is How can I remove this warning message to make the keyboard available for users (without payment). or is there anything that I have to consider while developing the application? Please help me. Thank you in advance. Andu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android MYSQL
I would very explicitly NOT develop a MySQL App on the Android. While you could perhaps get the JDBC driver to run on Android, this is the wrong approach from a architectural standpoint. You won't get the performance, scalability, maintainability, reliability, nor security characteristics you'd like. Instead, expose your client-side functionality in a web service. For most purposes, I'd suggest a RESTfull web service, but SOAP is also an option. JSON is often a good alternative to XML -- especially if you will be interacting with this service via a browser. If you put SQL in your client, you are basically screwed. You will NEVER be able to alter your schema, or introduce some non-DB processing, or split the data between databases, or make any of a host of other changes, because some people may never upgrade their apps. Well, OK, you can say screw them, and change it anyway, but they'll ding you in the marketplace ratings. Especially in a mobile app, you want a looser coupling. With a web service, you can simultaneously provide multiple versions of the same service (perhaps distinguished only by a revision indicator). You can do server-side caching to take a load off your database. You could even move to a different database entirely. Also, connection failures will be frequent. With MySQL, you'd have to pay considerable attention to recovering from connection failures. With a web service, a single call may fail, but because the communication itself is stateless (if designed well), you can just retry that one failing call. You do have to think carefully about transaction boundaries, and try to accomplish more with a single call, rather than beginning a transaction, doing a bunch of stuff, and the committing. That's a good thing -- you'll get much better performance, because the round-trip time through the mobile network will be poor. You'll also be rewarded with much superior reliability -- a single MAKE-ALL-THESE-CHANGES call happens in a shorter period of time, and is much less likely to fail due to the network than a series of BEGIN-EDIT-EDIT-EDIT-EDIT-COMMIT operations. All in all, there's very good reason why nobody uses MySQL on Android, and it has nothing to do with limitations on Android. The same arguments actually apply to ANY client-side use of MySQL, it's just that they get even stronger on a mobile platform. On Mar 8, 1:45 pm, Si458 simonsmith5...@googlemail.com wrote: Hiya, Im currently trying to develop a mysql app on the android, ive got the basics working and ive also managed to get the JDBC working with java but not android :( im running my application threw the debig in eclipse and it appears to be these lines it comming up with errors Class.forName(com.mysql.jdbc.Driver); Connection conn = DriverManager.getConnection(url +dbName,userName,password); what do u think im doing wrong? as im moving forward and forward in eclipse threw the lines (F5) it keeps going into Class.class and saying Source Not Found ??? and also ClassLoader.class and saying source not found aswell what do u think im doing wrong or what should i do??? thank you :) SASmith Simon Smith -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: on configuration change landscape to portrait it always start activity from beginning.
Maybe you can use the information in http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html to save the current image information (but not the current image)? Good luck, Aaron Jansen On Mar 10, 8:23 am, nomi nomeshga...@gmail.com wrote: hi , i have written code to display images in sequence. when click on next button it shows next image.and so on. i m using android 1.5 and save landscape images with same name(as portrait images have) in drawable-land folder. when i rotate the device it takes all landscape image from drawable- land folder. but the problem is ,it again start showing images from the beginning. how to solve this problem. plz send me answer as its argent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Which API Level to target
Thanks for that link. Really appreciate it. On 11 mar, 09:12, Dianne Hackborn hack...@android.com wrote: The most recent official version distribution (worldwide) is here: http://developer.android.com/resources/dashboard/platform-versions.html On Wed, Mar 10, 2010 at 11:47 PM, Kaj Bjurman kaj.bjur...@gmail.com wrote: Really nice to see some statistics, but I don't think that they are applicable for the rest of the world. It's e.g. not possible to buy any phones with Android 2.1 in many countries in europe, and it looks like your app mostly is used in US, where you have the Droid and the N1. I would expect the 1.5 pie to be much larger if you look at it globally. On 11 mar, 06:00, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Check out one of my app's companion site: http://www.radarnow.net Click on the stats link. You'll see the percentage for each version, also the devices that are being used. That may help make up your mind. -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.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: Android MYSQL
SQLlite is a very different animal -- it's a local embedded database for local storage. It's OK for a client to use SQL to basically talk to itself. But that's not what he's trying to do. On Mar 10, 8:50 pm, saru sarucs...@gmail.com wrote: Who told to develop mysql application in android. Android does not support mysql database. rather try to use SQlite database -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Disable keyboard in DatePicker ?
Your code works fine, but when I click +/- for month for example, the textfield month becomes editable (but the others not), when I click +/- for day the textfield day becomes editable (but month and year not) There is a possibility to block this, no possibilité to edit any textfield in the DatePicker ? Thanks a lot :) On 10 mar, 19:06, Mike dg vinb...@gmail.com wrote: So you don't want the textfields to be editable by typing, only by pressing the arrows? Should be possible. The below code almost works. For some reason whenever you click an arrow, it makes the corresponding text box editable again. But if you hit an arrow on another textbox, then it reverts back. Please post the solution back so everyone can benefit if you use this. -Mike dg DatePicker dp = (DatePicker)findViewById(R.id.DatePicker01); setDisabledTextViews(dp); private void setDisabledTextViews(ViewGroup dp) { for (int x = 0, n = dp.getChildCount(); x n; x++) { View v = dp.getChildAt(x); if (v instanceof TextView) { v.setEnabled(false); } else if (v instanceof ViewGroup) { setDisabledTextViews((ViewGroup)v); } } On Mar 10, 5:39 am, djdamage06 djdamag...@gmail.com wrote: Hello everybody, Is it possible to disable the edition of fields in DatePicker ? Indeed when I touch on the editable box in the DatePicker, the keyboard appears... And I don't want this ! Someone have an idea ? Thanks a lot for your response :) Bonjour à tous, Existe-t-il un moyen de désactiver l'édition (et donc l'apparition du clavier) dans les champs d'un DatePicker ? En effet le fait que le clavier apparaisse lorsqu'on décide de n'appuyer ni sur + ni sur - mais directement dans le champ fait que ma layout est toute bordélisée... Certes je pourrais anticiper ce mouvement par une Scrollbar mais c'est vraiment pas mon but... Quelqu'un a une idée ? Merci d'avance pour vos réponses smile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom Spinner
I was trying to do the same thing about 24 hours ago. I finally gave up, and made what I wanted to coexist with the Spinner be part of the view inside the spinner. I could find no combination of things that allowed the layout to both size the text to the left, and left-align the text within the spinner. The items within the spinner are created disconnected from the view hierarchy, and so they don't have any interaction with the parent's layout at that point, and I couldn't figure out any way to inject the proper interaction when they do come together. On Mar 9, 5:42 am, mmkr manutd...@gmail.com wrote: Hi all, The default drop down view of the spinner occupies the entire width of the screen. I tried to create a custom spinner which occupies only some portion of the width of the screen, but I'm unable to do. I want to see the objects behind the drop down. Here is what i tried, I changed the drop down view as, adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item); instead of adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_it em); In the layout.simple_spinner_dropdown_item.xml file I specified the width, but it still occupies the entire width. Can any one help. Is there any other view which is similar to spinner but I should be able to see the background objects like a alert dialog. Is it really possible? Please reply. 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] ActivityInstrumentationTestCase2 issue
Hi, I am writing a Instrumnetation using the AvtivityInstrumnetationTestCase class and a test case about play music. When I execute the test case, it is work fine. But there the problem is the application play nothing. The Activity appear one moment then back to HOME screen. Reference my code: File: MainActivity.java - package com.android.testapp; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public void PlayMyMusic(){ //Pre set AudioManager am=(AudioManager) getApplicationContext().getSystemService(AUDIO_SERVICE); try { //Utility.PlayMusic(/storage/sample.mp3); MediaPlayer mp = new MediaPlayer(); Log.e(debug,media player set data source...); mp.setDataSource(/storage/sample.mp3); Log.e(debug,media player set loop...); mp.setLooping(true); Log.e(debug,media player prepare...); mp.prepare(); Log.e(debug,media player start...); mp.start(); Log.e(debug,media player started...); // i.e. react on the end of the music-file: mp.setOnCompletionListener(new OnCompletionListener(){ // @Override public void onCompletion(MediaPlayer arg0) { // File has ended !!! } }); } catch (Exception e) { Log.e(debug,media player error...+e.toString()); // TODO Auto-generated catch block e.printStackTrace(); } } File:PlayMyMusic.java - package test; import com.android.testapp.MainActivity; import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.MediumTest; public class PlayMyMusic extends ActivityInstrumentationTestCase2MainActivity { public PlayMyMusic() { super(com.android.testapp, MainActivity.class); } public PlayMyMusic(String pkg, ClassMainActivity activityClass) { super(pkg, activityClass); } @MediumTest public void testPlayMyMusic() throws Exception { getActivity().PlayMyMusic(); } } File:TestApp.Manifest - ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.testapp android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.MainActivity android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity uses-library android:name=android.test.runner / /application instrumentation android:targetPackage=com.android.testapp android:name=android.test.InstrumentationTestRunner android:label=Test Unit Tests/instrumentation uses-permission android:name=android.permission.WRITE_SETTINGS/ uses-permission uses-permission android:name=android.permission.INJECT_EVENT/ uses-permission uses-permission android:name=android.permission.RESTART_PACKAGES/ uses-permission /manifest - Type below command to run it. adb shell am instrument -e class test.PlayMyMusic -w com.android.testapp/android.test.InstrumentationTestRunner - Command logcat to get the log adb logcat debug:E *:S E/debug (15281): media player set data source... E/debug (15281): media player set loop... E/debug (15281): media player prepare... E/debug (15281): media player start... E/debug (15281): media player started...
[android-developers] Re: How to use phone internal memory to store user data......
absolutely.. if you store your data with in your application package then other applications can't access that data. you can go for a content provider if you want to share data between applications. On Mar 11, 11:19 am, Girish girishprasa...@gmail.com wrote: Hi all.. I want to access phone internal memory to store some data, similar to that of sdcard. but the problem is that the data written by one application is not accessed by other applications. because of uid mismatches. any solution ? 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] updating app on android market using different name
hi i have an app on the android market that currently has a Trial postfix in its name. I would like to update this app with one that doesnt have Trial in its name. Can i do this by only keeping the same package in the new app, thus by updating with using a different app name? Or do i have to retain the same app name as well, for the update to take place? please let me know if anyone has any idea on this cheers!! -- Georgios Galyfos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Windows Phone and XNA. Nightmare is real. What we do with that ?
Looks great ! I hope, Google will work on native NDK framework like XNA, because even for 2d games, java implementation is too slow. Such framework could help in development beginners and others, who don't want to create advanced 3d games. It is still problem, because if you want to create rpg or 2d platformer, you can't get smooth animation in Java. So, you must use OpenGL calls. But when you start using OpenGL in Java, you realize, that you can get more performance in game engine parts, when you go with lowlevel NDK. So, you are starting to reinvent circle over and over. You must write basic engine parts. Resource manager, drawing, animation, colission, controls, data exchange layer, etc.. Maybe I'm wrong, but why just not to create expandable NDK game framework library with these parts ready to RESUING for all developers ? I do not have enough knowledge and experience to work on that, but it seems right way to improve Android as gaming platform. I'm just surprised, that such framework from Google still does not exist. On 11 Mar, 03:20, Carlo ca...@hyperdevbox.com wrote: c# and .net will be like having java, nothing can beat native code, so the NDK is the way to go, soon the debugging features will be implemented and that will boost original game development, if you look at ExZeus arcade built upon NDK, we are already far from the logical bricks/ball/falling diamonds games on the android device. On Mar 10, 9:03 pm, Mario Zechner badlogicga...@gmail.com wrote: I concur with this statement. I did a lot of benchmarking and the JNI bridge crossing of OpenGL methods is not a problem, I can happily render hundreds of objects. Also, for performance hungry things like MP3 decoding (to get PCM data which is not possible at the moment with the mediaframework), physics and so on there's a native library in the background of libgdx which does just that. The physics library is something i'm currently implementing on top of bullet. These native components have a JNI bridge as you suggested. I however carefully chose what's going to be included in the native library part of libgdx to reduce the pain of coding C++. What also speaks against a pure NDK solution is the missing debugging features which slows down development immenseley. On 10 Mrz., 11:35, Piotr piotr.zag...@gmail.com wrote: Both these frameworks are interesting, but as I mentioned before; it could be better, to create low-level, native NDK game framework library. Java is just too slow to handle thousands opengl calls per second for any game more complex than falling bricks or sth. Such framework could load game elements (maps, tiles, sprites, bkgs, sounds), giving developer control interface set to call high level methods like setSpriteSpeed, setBackgroundScroll, manageSpritePhysics, etc.. On 10 Mar, 11:00, Mario Zechner badlogicga...@gmail.com wrote: Very cool! didn't know about that. I try to get in contact with the author. On 10 Mrz., 02:31, Lance Nanek lna...@gmail.com wrote: It allows you to develop your games mostly on the desktop and deploying it to your Android device Neat project. Have you seen this one for the same purpose?http://code.google.com/p/skorpios/ Might be neat to cooperate or share techniques or something. On Mar 9, 7:11 pm, Mario Zechner badlogicga...@gmail.com wrote: While it's not nearly as full featured as XNA i started working on something similar to XNA. It allows you to develop your games mostly on the desktop and deploying it to your Android device with just a couple of lines that instantiate a special Activity subclass. It's based on OpenGL and allows developing 2D and 3D games. I just finished writting all the java doc for it and am constantly adding new features to it. It's called libgdx and can be found athttp://code.google.com/p/libgdx/. I also started blogging about it lately and will continue so adding sample codes for specific problems. You can find that blog athttp://www.badlogicgames.com. An introduction to it can be found athttp://apistudios.com/hosted/marzec/badlogic/wordpress/?p=274. A series of small tutorials wil follow this week and next week. The whole thing is LGPL so that there's no problem including it in commercial apps. It's far from being perfect of course but i think the base functionality and ease of use can kill some of the burden a fresh android game developer has to overcome. I'm open for suggestions and features you want to see in there! On 9 Mrz., 22:35, Piotr piotr.zag...@gmail.com wrote: Hello, At my daily job I work as WinMo C++ developer, so I had enough time to become hater of that platform ;) But now, M$ is coming with new Windows Phone. As I suspected, they will abandon awful
[android-developers] setting an icon in the application.
Hi, I want to write an android application, that should have a homepage or home screen and having many utilities. Each utility should have an icon with the name. So clicking on each utility or the icon, the corresponding next screen should be displayed. It should be similar to the android home screen. Is there any sample application that i can refer? Could anybody please let me know, how to set the icons for the utilities in the homepage of my application. Thanks in advance, NewDev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Device Seeding Program for Top Android Market Developers
Does anyone (that got the confirmation mail) know what hours are they working? are they in European time or US time ? (To know what to expect ... it at all( On 11 מרץ, 08:01, Tako Au tak...@gmail.com wrote: It's already 9 days from my submission of form :'(. I've sent an email 2 days ago but they haven't replied me yet On Mar 11, 5:51 am, Rootko roo...@gmail.com wrote: Yeah, sounds reasonable. Although I kind of expected that they would at least confirm me that zip code has been corrected in my case. Well, I just have to wait then. :) On Mar 10, 10:36 pm, Thomas Riley tomrile...@googlemail.com wrote: Yes, that is the email I meant. I think we can assume that might be the last contact we get before the devices arrive since it does say Your information will now be sent to our shipping partner for order processing. There would be little point in someone having to manually email everyone again just to say it has been dispatched? Right? On Mar 10, 9:31 pm, Rootko roo...@gmail.com wrote: An actual dispatch mail, or just confirmation? Cause that would make you probably first one to get dispatch mail. I did receive confirmation mail also on 6th march, but it had trimmed zero from zip code, so I replied to it. Since that no mails from Google. On Mar 10, 8:47 pm, Thomas Riley tomrile...@googlemail.com wrote: Just to note. I filled it in a few hours after the original emails went out (2nd march) and got the dispatch email on the 6th march. On Mar 10, 7:44 pm, TreKing treking...@gmail.com wrote: On Wed, Mar 10, 2010 at 1:20 AM, Arnon arnonse...@gmail.com wrote: I filled the form last friday (March 5th) Does anyone know how long does it take for them to send the confirmation mail? Took 3 days for me. If you filled it Friday I wouldn't count that, so start counting from Monday ...and it's only Wednesday. Also, I think that's a little later than most other people filled out the form so they probably have a ton to go through before getting to yours, assuming they're going in order of receipt. Given them at least until next Monday before you start worrying. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking-Hide quoted text - - Show quoted text --הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom content provider(java.lang.VerifyError)
Thanks for ur reply...i tried what u said ..i made a jar for whole custom content povider and imported to my second application but got java.lang.NoClassDefFoundError:com.mypack.android.mycontentprovider.MyProvider what might be the cause? Thanks u -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: No View key event called back when BACK key is pressed while IME is shown?
Did you solve this? Anyone knows solution to this problem? On 8 Lut, 19:35, jamesc jame...@gmail.com wrote: If theBACKbutton is pressed when the soft keyboard is being displayed, noBACKkeycode event is generated (when it's not shown, andBACKis pressed, then my View's onKeyDown()/onKeyUp() methods get calledback). Is this expected behaviour? I'm trying to catch when the IME is hidden uponBACKbeing pressed. I'm currently working around this in the endBatchEdit() method (I'm implementing BaseInputConnection). Any help gratefully received, as ever. Cheers James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Device Seeding Program for Top Android Market Developers
I got the emails in the early hours of the morning (UK) so I guess they are being sent from mountain view time. On Mar 11, 10:12 am, Arnon arnonse...@gmail.com wrote: Does anyone (that got the confirmation mail) know what hours are they working? are they in European time or US time ? (To know what to expect ... it at all( On 11 מרץ, 08:01, Tako Au tak...@gmail.com wrote: It's already 9 days from my submission of form :'(. I've sent an email 2 days ago but they haven't replied me yet On Mar 11, 5:51 am, Rootko roo...@gmail.com wrote: Yeah, sounds reasonable. Although I kind of expected that they would at least confirm me that zip code has been corrected in my case. Well, I just have to wait then. :) On Mar 10, 10:36 pm, Thomas Riley tomrile...@googlemail.com wrote: Yes, that is the email I meant. I think we can assume that might be the last contact we get before the devices arrive since it does say Your information will now be sent to our shipping partner for order processing. There would be little point in someone having to manually email everyone again just to say it has been dispatched? Right? On Mar 10, 9:31 pm, Rootko roo...@gmail.com wrote: An actual dispatch mail, or just confirmation? Cause that would make you probably first one to get dispatch mail. I did receive confirmation mail also on 6th march, but it had trimmed zero from zip code, so I replied to it. Since that no mails from Google. On Mar 10, 8:47 pm, Thomas Riley tomrile...@googlemail.com wrote: Just to note. I filled it in a few hours after the original emails went out (2nd march) and got the dispatch email on the 6th march. On Mar 10, 7:44 pm, TreKing treking...@gmail.com wrote: On Wed, Mar 10, 2010 at 1:20 AM, Arnon arnonse...@gmail.com wrote: I filled the form last friday (March 5th) Does anyone know how long does it take for them to send the confirmation mail? Took 3 days for me. If you filled it Friday I wouldn't count that, so start counting from Monday ...and it's only Wednesday. Also, I think that's a little later than most other people filled out the form so they probably have a ton to go through before getting to yours, assuming they're going in order of receipt. Given them at least until next Monday before you start worrying. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking-Hidequoted text - - Show quoted text --הסתר טקסט מצוטט- -הראה טקסט מצוטט-- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Questions to comic contents developer
It's a tough but interesting one. I think Bob is right. If your content can be consumed in less than the 24 hours cancellation policy, then you have to rethink your app, not necessarily your content. Make your app the comic store and not the comic and fill it with new comics on a weekly-monthly basis(depending on the lenght and the time it takes you to get the content). Make it very clear in your app, in your description on the market and by using all the notification techniques that more content will be available, making people think twice before uninstalling. There is a big hurdle though : - Since we don't have in app selling, you have to come with a clever way to make people pay for each content if that's what you're after (Maybe package each comics as a content provider for the main app(comic store)) Good luck and when you do find a solution, please come back and tell us how you did it. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: reply soon
Hi, Mike is right, you need to be more specific. Take a look at WebViews or depending on what you want to do at the org.apache.http package. http://groups.google.com/group/android-beginners/browse_thread/thread/6db38705d3530769 Yahel On 10 mar, 11:21, student alsharewit...@gmail.com wrote: how to create if user click the link it should be updated to my webpage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 reset the price of application
Yep, no more development on android market. It is perfect how it is. Now we can go see a movie. I begin to understand why politics must never joke or actually say something significant. As an Android framework engineer, you do know every word that comes out of you will be torn and shredded to go to the root of what you really did or didn't want to say ? I take your comment to be a joke (juste like the current state of the market BTW : ) and that you are really working on it to make it awsome. Please tell us I'm right :s By the way how much did you pay Carlo to come here and back you up :D Good day to all :) Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 reset the price of application
Ohh do i ? :P Well, i recognize that you really had a nasty experience, i guess you did not get any warning like if you set the price of this application to free then you won't be able to revert it to its original price or something similar ? If not, maybe this kind of warning should be implemented in the developer console with a huge confirmation button to press twice. Thanks for sharing your bad experimentation to other developers around thought. On Mar 11, 5:56 pm, Rootko roo...@gmail.com wrote: Carlo, I think you are using different Android Market than the rest of us do. :D Reason why I tried to set Free price to paid app was exactly what they have in AppStore - to promote your paid app you give it for free for 24 hours. Now all my buyers are screwed, because I had to unpublish the app and think of some other package for it, correct links in my trial version of this app and solve others nasty things this experiment brought. Carlo wrote: We really appreciate the way the android market is right now, hope it won't change in the future... there is still some issues with the customer in review status for the customer who are unable to download, are not aware of the 7 days delay before the order is automatically canceled and complain to us why they cannot download but beside of this particular issue, the market is very nice designed for developer to sell application, we don't see too many featured all over the place, we like the 1 RANKING worldwide, the good separation between free and paid and we like the ability to be in touch with our customers, they are not just 1 number added to a global total but we can know who really they are, we feel more like having a true buyer / seller human relationship with them. Keep the good work. On Mar 11, 2:57 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Mar 10, 2010 at 8:48 PM, Kumar Bibek coomar@gmail.com wrote: promote your app free for 24H or more That's a nice idea. Ummm, Google doesn't seem to be working on the Android Market. :( Yep, no more development on android market. It is perfect how it is. Now we can go see a movie. -- 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: Query Loop!?
Sorry, how about SQLiteDatabase.rowQuery? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unit Testing : Who uses it ?
Hi everyone, Not really Android specific but : I've just read Bob Kern's answer to a vaillant 14 years old programmer who wants to write a game for Android. Bob's advice is good as always and he states : Learn how to test effectively. Use unit tests for as much of your system as you can. Go to junit.org for more information. If you write your tests first, you'll clarify what you want to do, and it all gets much easier. But testing is also a skill that needs to be developed. Now I've been a developper for 10 years, mostly solo works, and I have never ever used UnitTesting, ever. Be it in VB, C++, PHP, ASP, Ruby and now Android. Do you guys really use it in your ANDROID apps at all ? Do you really feel it makes a (significant) difference in your code(app) in the end ? From a conversation from the beginning of the week I'm now having to learn the full xml RFC, so please don't try to hard to convince me, I'm beginning to feel dizzy already :D Sorry for the OOST. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: updating app on android market using different name
Hi, I believe only the package name have a significance. You can just change the name of your app (eg. /res/strings.xml/ appname), and resubmit it. Beside in the market you have a field for the AppName, which I believe is the name used when browsing the market. Anyway, the submit process won't let you mess with it, you can try and upload your new app with a new name and the same package name on top of your old one. If it is not allowed the market will tell you and refuse your new version. You can also try with a dummy app you make just for testing purpose. You simply won't publish it and remove it afterwards. I say that from the top of my head, so please come back afterward and tell us how you did. Good luck. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 launch YouTube with specified keywords?
This works Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setPackage(com.google.android.youtube); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek. On Mar 11, 10:13 am, Kumar Bibek coomar@gmail.com wrote: Try this. Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Here, you will get a Chooser activity. Now when you select Youtube, you will get video results for Android. Thanks and Regards, Kumar Bibek On Mar 11, 6:28 am, David android.and...@gmail.com wrote: Dear All, I want launch the YouTube with specified video searching list at startup(e.g I want YouTube shows the video list all related with the key word Susan and U.S in the first page.) But The YouTube application is not open source in Éclair, would you please tell me which YuTube API can implement this feature? Thanks, Best Regards, David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: 答复: 答复: [android-developers] Where is th e source project location of YouTube in Eclair?
This works Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setPackage(com.google.android.youtube); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek. On Mar 11, 1:21 pm, David android.and...@gmail.com wrote: Actually, I tried like this: Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setClassName(com.google.android.youtube, com.google.android.youtube.QueryActivity); intent.putExtra(query, Susan, American); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); but occurred android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.youtube/com.google.android.youtube.QueryActivity}; have you declared this activity in your AndroidManifest.xml? So I think I got the wrong YouTube package name and QueryActivity name. Who know what's the exactly package name and QueryActivity name for YouTube in Éclair? Thanks in advance. Best Regards, David -邮件原件- 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 a a 发送时间: 2010年3月11日 16:00 收件人: android-developers@googlegroups.com 主题: Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair? Dear kumar, David what's to invoke the yutube only, and invoke it directly, not like you gave he method that list all of the activity and let user to choose.. Dear David, i'm harvey, you konw me..hahaDo you know how to translate the 放長線調大魚 with english? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: setting an icon in the application.
Please download android source and study packages/apps/Launcher -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 launch YouTube with specified keywords?
Check this link http://tech-droid.blogspot.com/2010/03/youtube-intent-for-search-in-android.html Thanks and Regards, Kumar Bibek On Mar 11, 5:01 pm, Kumar Bibek coomar@gmail.com wrote: This works Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setPackage(com.google.android.youtube); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek. On Mar 11, 10:13 am, Kumar Bibek coomar@gmail.com wrote: Try this. Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Here, you will get a Chooser activity. Now when you select Youtube, you will get video results for Android. Thanks and Regards, Kumar Bibek On Mar 11, 6:28 am, David android.and...@gmail.com wrote: Dear All, I want launch the YouTube with specified video searching list at startup(e.g I want YouTube shows the video list all related with the key word Susan and U.S in the first page.) But The YouTube application is not open source in Éclair, would you please tell me which YuTube API can implement this feature? Thanks, Best Regards, David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: 答复: 答复: [android-developers] Where is th e source project location of YouTube in Eclair?
Check this link http://tech-droid.blogspot.com/2010/03/youtube-intent-for-search-in-android.html Thanks and Regards, Kumar Bibek On Mar 11, 5:01 pm, Kumar Bibek coomar@gmail.com wrote: This works Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setPackage(com.google.android.youtube); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek. On Mar 11, 1:21 pm, David android.and...@gmail.com wrote: Actually, I tried like this: Intent intent = new Intent(Intent.ACTION_SEARCH); intent.setClassName(com.google.android.youtube, com.google.android.youtube.QueryActivity); intent.putExtra(query, Susan, American); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); but occurred android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.youtube/com.google.android.youtube.QueryActivity}; have you declared this activity in your AndroidManifest.xml? So I think I got the wrong YouTube package name and QueryActivity name. Who know what's the exactly package name and QueryActivity name for YouTube in Éclair? Thanks in advance. Best Regards, David -邮件原件- 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 a a 发送时间: 2010年3月11日 16:00 收件人: android-developers@googlegroups.com 主题: Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair? Dear kumar, David what's to invoke the yutube only, and invoke it directly, not like you gave he method that list all of the activity and let user to choose.. Dear David, i'm harvey, you konw me..hahaDo you know how to translate the 放長線調大魚 with english? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: updating app on android market using different name
I think you can just make the change. It should work. Thanks and Regards, Kumar Bibek On Mar 11, 4:51 pm, Yahel kaye...@gmail.com wrote: Hi, I believe only the package name have a significance. You can just change the name of your app (eg. /res/strings.xml/ appname), and resubmit it. Beside in the market you have a field for the AppName, which I believe is the name used when browsing the market. Anyway, the submit process won't let you mess with it, you can try and upload your new app with a new name and the same package name on top of your old one. If it is not allowed the market will tell you and refuse your new version. You can also try with a dummy app you make just for testing purpose. You simply won't publish it and remove it afterwards. I say that from the top of my head, so please come back afterward and tell us how you did. Good luck. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Remove attention box while activating softkeyboard
I this it is there on purpose. Because you have made one IME and it can record user inputs. However, I did not take look at the android source. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Call processing
I do not believe Android call BroadcastReceiver.onReceive synchronously. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Does eclair run on ADP2
Am 10.03.10 18:39, schrieb Mike dg: There is not an official developer rom available. And I don't think you can build it yourself without massive modifications yet. (Could be wrong on that account) You should be able to find a handful of unofficial roms based on 2.0/2.1 that will run on an ADP2. http://forum.xda-developers.com/forumdisplay.php?f=493 Thgey are in various states of usability though. Mike dg On Mar 10, 4:03 am, Natanael Arndtnatana...@gmx.de wrote: Hello, I want to buy the ADP2 (HTC Magic) but I wonder if also Android 2.1 is available for it. Because I've heard that eclair doesn't run on HTC Magic as you can get it in the stores. Natanael Thank you, what do you think, how big is the chance, that there will come an official update for the ADP2? Natanael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Creating Simple Serial Output:
Thanks for the response. I've got an arduino board that has serial output via 4 pins. Pin 1: ground Pin 2: transmit Pin 3: Receive Pin 4: reset I plug a usb adapter into it and that allows me to upload code to the microprocessor and monitor the output locally. To answer your question: -I'm looking to replace the arduino completely with a program running on the phone that somehow, someway generates a simple serial message 'as if' it were being transmitted via that simple pin configuration. (We're using a video overlay board that accepts serial data and creates a real time GPS text overlay for the students to watch locally and analyze later.) -Thanks for the advice. We've been using this Arduino for years now and I think it's time to replace it completely with Android. --It's a fun challenge. Josh On Mar 11, 1:17 am, Bob Kerns r...@acm.org wrote: I'm not clear on what you're trying to do. Are you trying to get a phone to talk to an Arduino, or are you trying to replace the Arduino with a phone? Phone USB ports aren't generally set up to act as hosts, but as devices. Supposedly some phone USB ports are hardware capable of doing so, but I don't know the magic, nor do I recall which phones. That may not be a barrier; you may be able to set the Arduino up as host. At a minimum, you'll need to get root access on your phone, and probably need to use the NDK to write some C++ code to bridge between Java and actually talking to the hardware. I've got a couple different types of Arduinos around here with USB -- one with it on the board, another, smaller one with it as an adapter you can connect to the output pins. I don't know if that solves any problems for you -- but at least the adapter would save you from dealing with the electrical interface aspects, and the USB bus protocol aspects. The latter would probably render your plan unfeasible, I think. I note that the USB adapter board has a tiny surface-mount chip on it that has about as many pins as the Arduino chip! The USB adapter wasn't very expensive. I could dig up the specific parts and sources, but you're probably better off googling and choosing what best fits your needs. On Mar 10, 7:11 pm, joshbeck josh.beck2...@gmail.com wrote: I've got a fairly unique situation: -I'm a teacher with a magnet school that focuses on rocketry and technology. -I've got a rocket payload that has a video overlay board which does the following: -Takes input from a camera. -Takes input from a serial data line. -Overlays the text input to the video screen in real time and saves to avi. -Right now we're using this antiquated device called an Arduino board which is cave man stuff compared to the developer phones we have on campus. (It's very educational making one work, but still old hardware.) -The Arduino processor essentially outputs data to a 'transmit' pin that can be easily hooked up to a pc serial port. (Serial Data.) -My present course of inquiry: (I'm a fairly proficient Android developer) -- -Can I write a program that outputs a simple string like this directly to the usb data cable: String aString = abc; --- -From there, would it be possible to purchase a usb to serial converter and grab the associated data off the correct serial pin? -I'm not an electrical engineer by any means, but I think that a serial converter would have to boost the voltage from the USB line in order to work because usb voltages are lower than what comes straight out the serial port. -Does this sound like a correct assumption? -Any advice is appreciated. We'd love to launch a smart phone at our next competition. Thanks in advance Josh Beck Northeast ISD KSAT/iMAK at Krueger Middle School (Launching Android in rockets is fun!) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 use built in email application to send email from my application
Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. 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: Custom content provider(java.lang.VerifyError)
hi grace i solved the issue and my custom content provider is working fine..but by importing content provider class to our application its more or similar to write content provider in same application..what my intentation is to create a content provider like contact content provider so it can be accessed by every application..have any idea? regards On Mar 10, 10:13 am, grace grace.a...@wipro.com wrote: hi, i have also got the same problem. i have made a jar file of the content provider and imported in the second application that is using this content provider. don't know whether this is the correct approach,but things worked out fine for me. so u can also try it out .. On Mar 9, 5:28 pm,Musafirmusafir4frie...@gmail.com wrote: hi friends, i created a custom content provider in one android application following all guidelines from developers.android.com and an activity in same application with an edittext and a button.when ever i enter any integer value and click on the button ,using custom content provider am inserting value to a sqlite database...this worked fine. but when i created another application and tried to access the custom content provider by importing custom provider class am getting the following exception: W/dalvikvm( 418): VFY: unable to resolve static field 29 (CONTENT_URI) in Lcom/ mypack/android/mycontentprovider/MyProvider; W/dalvikvm( 418): VFY: rejecting opcode 0x62 at 0x0047 W/dalvikvm( 418): VFY: rejected Lcom/mypack/android/ appwidgetsettingstest/Test Activity;.onCreate (Landroid/os/Bundle;)V W/dalvikvm( 418): Verifier rejected class Lcom/mypack/android/ appwidgetsettings test/TestActivity; W/dalvikvm( 418): Class init failed in newInstance call (Lcom/mypack/ android/ap pwidgetsettingstest/TestActivity;) D/AndroidRuntime( 418): Shutting down VM W/dalvikvm( 418): threadid=3: thread exiting with uncaught exception (group=0x4 001aa28) E/AndroidRuntime( 418): Uncaught handler: thread main exiting due to uncaught e xception E/AndroidRuntime( 418): java.lang.VerifyError: com.mypack.android.appwidgetsett ingstest.TestActivity E/AndroidRuntime( 418): at java.lang.Class.newInstanceImpl(Native Method ) E/AndroidRuntime( 418): at java.lang.Class.newInstance(Class.java:1472) E/AndroidRuntime( 418): at android.app.Instrumentation.newActivity(Instr umentation.java:1097) E/AndroidRuntime( 418): at android.app.ActivityThread.performLaunchActiv ity(ActivityThread.java:2316) E/AndroidRuntime( 418): at android.app.ActivityThread.handleLaunchActivi ty(ActivityThread.java:2417) E/AndroidRuntime( 418): at android.app.ActivityThread.access $2100(Activi tyThread.java:116) E/AndroidRuntime( 418): at android.app.ActivityThread $H.handleMessage(Ac tivityThread.java:1794) E/AndroidRuntime( 418): at android.os.Handler.dispatchMessage(Handler.ja va:99) E/AndroidRuntime( 418): at android.os.Looper.loop(Looper.java: 123) E/AndroidRuntime( 418): at android.app.ActivityThread.main(ActivityThrea d.java:4203) E/AndroidRuntime( 418): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 418): at java.lang.reflect.Method.invoke(Method.java:5 21) E/AndroidRuntime( 418): at com.android.internal.os.ZygoteInit $MethodAndA rgsCaller.run(ZygoteInit.java:791) E/AndroidRuntime( 418): at com.android.internal.os.ZygoteInit.main(Zygot eInit.java:549) E/AndroidRuntime( 418): at dalvik.system.NativeStart.main(Native Method) Help me plz ..Thanks in advance- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom content provider(like contact content provider)
hi friends, can anyone say how can i create a custom content provider like contact content provider? i know how to create custom content providers but i want to integarte to device such a way that it canbe accessed by all application installed in that device... Thanks and regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Error adding a contact
UP On 3 mar, 11:44, LeGeNDuS legen...@gmail.com wrote: Hello, I'm trying toadda contact on the phone memory. The code I'm using is: ContentValues values = new ContentValues(); values.put(Contacts.People.NAME, Dummy Contact); Uri myUri = getContentResolver().insert(People.CONTENT_URI, values); values.clear(); values.put(People.Phones.TYPE, People.Phones.TYPE_MOBILE); values.put(People.Phones.NUMBER, 9978979); getContentResolver().insert(myUri, values); And I'm getting an error at executing the LAST line. The exception is called: UnsopportedOperationException. I have added the permission about writting contacts - WRITE_CONTACTS and it go on getting this error. The error is showed at 1593 line of ViewRoot.handelMessage. What can I do?. 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
Re: [android-developers] Unit Testing : Who uses it ?
Hi Yahel, Well, I'm programming since 25 Years in various languages. I have written demos for the demoscene on 8 and 16 bit Computers. Have written two small succesfull computer games. I have programmed as a freelances in different (big) companies. In my current job I'm still a developer by heart but doing additionally architecture and technical project management for the Enterprise. In my spare time I'm currently programming a game for the Android platform. After all the years I realized to be sucesfull and to finish a project as a lonely wolf programmer things are different than in the enterprise. It was necessary for me to Go back to the roots. In my home grown game framework I have thrown out all Unit Tests! I consider it just distracting noise. I switched to an old programming style. Everything as staright to the point as possible. For personal projects I have only a limited attention span. Usually after 6-9 Month I loose intrested in the project. So important goals for me are: - To keep the project small enough to get finished in this time span. - Do everything which keeps the project interesting and try to expand the 6-9 month time span. - Avoid everything which does not directly contribute to the project. = This means: Doing no Unit Testing! When you develop a game, you usually test the game every 30 Minutes. You test your new function. You check how the new fancy effekt looks like on screen. You test your new weapon which you have just finished implementing. You test the sound effects. You tweak the graphics. You play, play, play and play the game over and over again. ...Serious bugs usually show up very quickly and usually I fix them immediately if I discover one. So, my recommedation for a beginner is: Keep it fun! It feels good if a new feature looks good on screen! The constant visuall feedback you get in game development can drive you trough the project. If you don't like Unit testing. Don't do it! Concentrate on the game and game play. If you finish your project you will be judged by your game and not by your source code and how much test coverage you have. This is just my very personal opinion. BTW: For projects consiting of more than three people things start to look different. Kind Regards, Ralf 2010/3/11 Yahel kaye...@gmail.com Hi everyone, Not really Android specific but : I've just read Bob Kern's answer to a vaillant 14 years old programmer who wants to write a game for Android. Bob's advice is good as always and he states : Learn how to test effectively. Use unit tests for as much of your system as you can. Go to junit.org for more information. If you write your tests first, you'll clarify what you want to do, and it all gets much easier. But testing is also a skill that needs to be developed. Now I've been a developper for 10 years, mostly solo works, and I have never ever used UnitTesting, ever. Be it in VB, C++, PHP, ASP, Ruby and now Android. Do you guys really use it in your ANDROID apps at all ? Do you really feel it makes a (significant) difference in your code(app) in the end ? From a conversation from the beginning of the week I'm now having to learn the full xml RFC, so please don't try to hard to convince me, I'm beginning to feel dizzy already :D Sorry for the OOST. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: How to use built in email application to send email from my application
Use this code. Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setData(Uri.parse(mailto:t...@gmail.com;)); intent.putExtra(Intent.EXTRA_SUBJECT, Subject); intent.putExtra(Intent.EXTRA_TEXT, this is the body of the mail); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek On Mar 11, 5:47 pm, Satish satishkolaw...@gmail.com wrote: Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. 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: AlarmManager on droids
I am the developer of Gentle Alarm and I can confirm that several phones have issues with the sleep mode and non-firing alarms. Unfortunately, there is no sure-fire way to reproduce this so I can't tell you do A, then B, and the alarm won't ring. It typically happens though if the device has been idle for a longer period of time after the screen goes off. If you have lots of background activity happening (checking email every 30min or so), you may never see this problem. You can also prevent this problem if you keep the phone docked or on a charger. The alarm will then ring reliably. I examined a bunch of log files and they all show the same thing: the device goes into some deep-sleep mode where logcat show absolutely no activity for hours until the display is manually turned on. At that point, all the notification events come streaming in. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Number of ratings decreased??
Yeah, I noticed that, but it was just very strange that I lost 6 in one day when I hadn't lost any in 5 months. On Thu, Mar 11, 2010 at 12:08 AM, Farproc farp...@gmail.com wrote: Do you notice the Clear my review option menu of Market app? On Mar 11, 11:10 am, Justin jtgi...@gmail.com wrote: Since 9:00am on March, 10, the ratings for one of my apps has DECREASED by 6, from 45 ratings down to 39. What would the cause of this be? Is this a sign of another breakage of the market stats/ ratings? I have a question regarding this posted at the blackhole that is the Market Forum, but have of course not heard a thing. Anyone else experiencing this recently? 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.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] What is the contract for constructing SlidingDrawer widget ?
I tried to construct SlidingDrawer widget programmatically, but had no luck. The JavaDoc says the constructor needs AttributeSet attrs parameter, which is a specified set of attributes defined in XML. I provided my own implementation of AttributeSet interface, with all the attributes mentioned in JavaDoc, but got a weird ClassCastException - it seems that it assumes the attrs parameter is of type TypedArray, which seems to be impossible to use as base class (constructor hidden). Is there a way to construct SlidingDrawer programmatically and what is the correct contract to use it ? It is no way clear from the documentation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Which API Level to target
On Thu, Mar 11, 2010 at 2:12 AM, Dianne Hackborn hack...@android.comwrote: The most recent official version distribution (worldwide) is here: http://developer.android.com/resources/dashboard/platform-versions.html This is now over 2 months old and does not include 2.1. Are there any plans to update this? This has been asked repeatedly on these groups and the Android Market Help forum with no official response. - 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] Invalid Task Affinity name ... must have at least one '.' separator
One of my users failed to install my application, when checking the log this error is shown: Invalid taskAffinity name XXX in package XXX: must have at least one '.' separator Anyone seen this before? I've searched the SDK documentation and it doesn't mention anything like that.. Anyone can point me to some kind of official documentation stating that there must be at least one .? 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: Custom content provider(java.lang.VerifyError)
I think that if you do not enforce any permissions in your ContentProvider, it is, by default, open to all applications that know about it and wish to interact with it. On Mar 11, 5:50 am, Musafir musafir4frie...@gmail.com wrote: hi grace i solved the issue and my custom content provider is working fine..but by importing content provider class to our application its more or similar to write content provider in same application..what my intentation is to create a content provider like contact content provider so it can be accessed by every application..have any idea? regards On Mar 10, 10:13 am, grace grace.a...@wipro.com wrote: hi, i have also got the same problem. i have made a jar file of the content provider and imported in the second application that is using this content provider. don't know whether this is the correct approach,but things worked out fine for me. so u can also try it out .. On Mar 9, 5:28 pm,Musafirmusafir4frie...@gmail.com wrote: hi friends, i created a custom content provider in one android application following all guidelines from developers.android.com and an activity in same application with an edittext and a button.when ever i enter any integer value and click on the button ,using custom content provider am inserting value to a sqlite database...this worked fine. but when i created another application and tried to access the custom content provider by importing custom provider class am getting the following exception: W/dalvikvm( 418): VFY: unable to resolve static field 29 (CONTENT_URI) in Lcom/ mypack/android/mycontentprovider/MyProvider; W/dalvikvm( 418): VFY: rejecting opcode 0x62 at 0x0047 W/dalvikvm( 418): VFY: rejected Lcom/mypack/android/ appwidgetsettingstest/Test Activity;.onCreate (Landroid/os/Bundle;)V W/dalvikvm( 418): Verifier rejected class Lcom/mypack/android/ appwidgetsettings test/TestActivity; W/dalvikvm( 418): Class init failed in newInstance call (Lcom/mypack/ android/ap pwidgetsettingstest/TestActivity;) D/AndroidRuntime( 418): Shutting down VM W/dalvikvm( 418): threadid=3: thread exiting with uncaught exception (group=0x4 001aa28) E/AndroidRuntime( 418): Uncaught handler: thread main exiting due to uncaught e xception E/AndroidRuntime( 418): java.lang.VerifyError: com.mypack.android.appwidgetsett ingstest.TestActivity E/AndroidRuntime( 418): at java.lang.Class.newInstanceImpl(Native Method ) E/AndroidRuntime( 418): at java.lang.Class.newInstance(Class.java:1472) E/AndroidRuntime( 418): at android.app.Instrumentation.newActivity(Instr umentation.java:1097) E/AndroidRuntime( 418): at android.app.ActivityThread.performLaunchActiv ity(ActivityThread.java:2316) E/AndroidRuntime( 418): at android.app.ActivityThread.handleLaunchActivi ty(ActivityThread.java:2417) E/AndroidRuntime( 418): at android.app.ActivityThread.access $2100(Activi tyThread.java:116) E/AndroidRuntime( 418): at android.app.ActivityThread $H.handleMessage(Ac tivityThread.java:1794) E/AndroidRuntime( 418): at android.os.Handler.dispatchMessage(Handler.ja va:99) E/AndroidRuntime( 418): at android.os.Looper.loop(Looper.java: 123) E/AndroidRuntime( 418): at android.app.ActivityThread.main(ActivityThrea d.java:4203) E/AndroidRuntime( 418): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 418): at java.lang.reflect.Method.invoke(Method.java:5 21) E/AndroidRuntime( 418): at com.android.internal.os.ZygoteInit $MethodAndA rgsCaller.run(ZygoteInit.java:791) E/AndroidRuntime( 418): at com.android.internal.os.ZygoteInit.main(Zygot eInit.java:549) E/AndroidRuntime( 418): at dalvik.system.NativeStart.main(Native Method) Help me plz ..Thanks in advance- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom content provider(like contact content provider)
I think that if your content provider does not enforce any permissions, it is by default open to all applications. On Mar 11, 5:53 am, Musafir musafir4frie...@gmail.com wrote: hi friends, can anyone say how can i create a custom content provider like contact content provider? i know how to create custom content providers but i want to integarte to device such a way that it canbe accessed by all application installed in that device... Thanks and regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Should I cry? Just have a look on what I get yesterday morning... So, no N1 for me :-( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] using KeyguardManager for presenting unlock screen
Hi, In my application I want to use KeyguardManager to present the unlock screen at required places. I wrote the following code and tested it on Google IO phone (Android 1.6) and a Nexus One phone. Although this works decently on Nexus one, its behavior is odd at times. Sometimes the unlock screen doesn't appear for consecutive runs. It also has serious issues with configuration changes. And surprisingly, if I turn off the screen and turn it back on, the unlock screen disappears! Of course, this happens only in my program, and not in general in the phone. Can someone explain what's wrong with my code? Just FYI, I have tried various combinations of disableKeyguard() and reenableKeyguard() without much gain. public class UnlockActivity extends Activity { KeyguardManager mKgm; KeyguardLock mKgl; @Override public void onCreate(Bundle savedInstanceState) { ... mKgm = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); mKgl = mKgm.newKeyguardLock(me); } class HandlerCallback implements Handler.Callback { public boolean handleMessage(Message msg) { mKgl.disableKeyguard(); mKgm.exitKeyguardSecurely(new OnKeyguardExitResult() { public void onKeyguardExitResult(boolean success) { Log.d(UnlockActivity, status: + success); mKgl.reenableKeyguard(); } }); return true; } } ... } 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] What phone to buy for development?
Hello, I want to start developing an application for android and want to buy a phone for this task. But I don't really know, which one would be the best. I've heard of the ADP2 from Google, which is nearly the same as the HTC Magic. But what exactly are the differences? Is it possible to install the images from http://developer.htc.com/google-io-device.html also on the HTC Magic? If I would decide to buy the ADP2 from Google it costs 399$ + 150$ shipment to Germany, is there a dealer in Germany selling the original ADP2 device? Or is there an other Android phone for about 399$ available (in Germany), which is good for development? Thank you Natanael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What phone to buy for development?
Natanael Arndt wrote: Hello, I want to start developing an application for android and want to buy a phone for this task. But I don't really know, which one would be the best. I've heard of the ADP2 from Google, which is nearly the same as the HTC Magic. But what exactly are the differences? Is it possible to install the images from http://developer.htc.com/google-io-device.html also on the HTC Magic? If I would decide to buy the ADP2 from Google it costs 399$ + 150$ shipment to Germany, is there a dealer in Germany selling the original ADP2 device? Or is there an other Android phone for about 399$ available (in Germany), which is good for development? Just about any phone is fine for Android application development. You only need ADP1 or ADP2 if you want to replace the firmware (i.e., load your own modified copy of the Android OS). So, I would find one that is available for sale in Germany, either through a carrier (e.g., T-Mobile) or through other channels. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use built in email application to send email from my application
Thanks for your reply Kumar, This code used but that action is not On Thu, Mar 11, 2010 at 6:28 PM, Kumar Bibek coomar@gmail.com wrote: Use this code. Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setData(Uri.parse(mailto:t...@gmail.com;)); intent.putExtra(Intent.EXTRA_SUBJECT, Subject); intent.putExtra(Intent.EXTRA_TEXT, this is the body of the mail); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek On Mar 11, 5:47 pm, Satish satishkolaw...@gmail.com wrote: Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards $atish Kolawale. +919860767082 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use built in email application to send email from my application
Thanks for your reply Kumar, This code used but error is that action is not currently supported Thanks Satish On Thu, Mar 11, 2010 at 6:28 PM, Kumar Bibek coomar@gmail.com wrote: Use this code. Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setData(Uri.parse(mailto:t...@gmail.com;)); intent.putExtra(Intent.EXTRA_SUBJECT, Subject); intent.putExtra(Intent.EXTRA_TEXT, this is the body of the mail); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek On Mar 11, 5:47 pm, Satish satishkolaw...@gmail.com wrote: Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards $atish Kolawale. +919860767082 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What phone to buy for development?
Just wanted to chime in and say that before you go off and buy an actual device, I'd recommend using the emulator that comes with the SDK to get you started and make sure you enjoy developing for the platform. The emulator goes a long way and is nearly identical to testing on an actual device. Might save you a few $$$ in case you realize Android isn't your cup of tea. Otherwise, what Mark said...any device will do. Justin On Thu, Mar 11, 2010 at 8:24 AM, Mark Murphy mmur...@commonsware.comwrote: Natanael Arndt wrote: Hello, I want to start developing an application for android and want to buy a phone for this task. But I don't really know, which one would be the best. I've heard of the ADP2 from Google, which is nearly the same as the HTC Magic. But what exactly are the differences? Is it possible to install the images from http://developer.htc.com/google-io-device.html also on the HTC Magic? If I would decide to buy the ADP2 from Google it costs 399$ + 150$ shipment to Germany, is there a dealer in Germany selling the original ADP2 device? Or is there an other Android phone for about 399$ available (in Germany), which is good for development? Just about any phone is fine for Android application development. You only need ADP1 or ADP2 if you want to replace the firmware (i.e., load your own modified copy of the Android OS). So, I would find one that is available for sale in Germany, either through a carrier (e.g., T-Mobile) or through other channels. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use built in email application to send email from my application
$atish kolawale wrote: Thanks for your reply Kumar, This code used but that action is not Try this: http://www.androidguys.com/2009/11/02/a-call-to-action-action_send-that-is/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What phone to buy for development?
Am 11.03.10 15:24, schrieb Mark Murphy: Natanael Arndt wrote: Hello, I want to start developing an application for android and want to buy a phone for this task. But I don't really know, which one would be the best. I've heard of the ADP2 from Google, which is nearly the same as the HTC Magic. But what exactly are the differences? Is it possible to install the images from http://developer.htc.com/google-io-device.html also on the HTC Magic? If I would decide to buy the ADP2 from Google it costs 399$ + 150$ shipment to Germany, is there a dealer in Germany selling the original ADP2 device? Or is there an other Android phone for about 399$ available (in Germany), which is good for development? Just about any phone is fine for Android application development. You only need ADP1 or ADP2 if you want to replace the firmware (i.e., load your own modified copy of the Android OS). So, I would find one that is available for sale in Germany, either through a carrier (e.g., T-Mobile) or through other channels. Thank you, is it also possible to install an other Android version on a consumer phone, e.g the version from here[1] if I don't want the vodafone branding on the HTC Magic? Natanael [1] http://developer.htc.com/google-io-device.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] Re: What phone to buy for development?
Natanael Arndt wrote: is it also possible to install an other Android version on a consumer phone, e.g the version from here[1] if I don't want the vodafone branding on the HTC Magic? Not usually. You can root some phones and install alternative firmware (e.g., OpenEclair.com). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Device Seeding Program for Top Android Market Developers
what should that be? On márc. 11, 14:56, C.Versieux christophe.versi...@gmail.com wrote: Should I cry? Just have a look on what I get yesterday morning... So, no N1 for me :-( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Service restarting for no reason?
While debugging one of my apps (one that sits in the background and logs accelerometer data), I noticed that it would randomly and without any prompt reset itself. It would be running it's normal timer task and suddenly it would stop, the create function would be called and any running task would halt. Here's the trace: 03-11 07:50:34.574: VERBOSE/AccelerLogService(29277): 0.088633,1.253072,1.103248,9.629586 03-11 07:50:34.584: VERBOSE/AccelerLogService(29277): History Size: 0.08336 03-11 07:50:35.064: VERBOSE/AccelerLogService(29277): 0.096283,1.253072,1.035146,9.629586 03-11 07:50:35.084: VERBOSE/AccelerLogService(29277): History Size: 0.1 03-11 07:50:35.544: VERBOSE/AccelerLogService(29277): 0.104550,1.253072,1.007906,9.575105 03-11 07:50:36.044: VERBOSE/AccelerLogService(29277): History Size: 0.1167 03-11 07:50:36.484: VERBOSE/AccelerLogService(29277): 0.120600,1.239452,1.035146,9.615966 03-11 07:50:37.024: VERBOSE/AccelerLogService(29277): History Size: 0.1334 03-11 07:50:38.994: VERBOSE/AccelerLogService(29277): 0.136867,1.293933,1.035146,9.615966 03-11 07:50:39.014: VERBOSE/AccelerLogService(29277): History Size: 0.15 03-11 07:51:03.984: VERBOSE/AccelerLogService(29395): CREATED 03-11 07:52:41.624: VERBOSE/AccelerLogService(29502): CREATED And here's the service code: public class AccelerLogService extends Service implements SensorEventListener { private static final String LOG_TAG = AccelerLogService.class .getSimpleName(); private static final String base_dir = /sdcard/; private static WakeLock wl; private long startTime; private volatile float[] lastData; private static Queuefloat[] lastFiveMinutes; private static BufferedWriter br; private static Timer timer; private static TimerTask tt; float threshold = 0.0f; int interval; private boolean getAccelerometer() { SensorManager sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE); ListSensor sensorList = sensorMgr .getSensorList(Sensor.TYPE_ACCELEROMETER); boolean addedListener = sensorMgr.registerListener( (SensorEventListener) this, sensorList.get(0), SensorManager.SENSOR_DELAY_UI); if (addedListener) Log.v(LOG_TAG, Listener Added); else Log.v(LOG_TAG, Listener Not Added); return addedListener; } @Override public void onCreate() { super.onCreate(); if (timer == null) timer = new Timer(); if (lastFiveMinutes == null) lastFiveMinutes = new LinkedListfloat[](); Log.v(LOG_TAG, CREATED); } @Override public void onStart(Intent intent, int startid) { super.onStart(intent, startid); Log.v(LOG_TAG, STARTED); if (intent.getExtras().containsKey(ms)) { interval = intent.getExtras().getInt(ms); } else { interval = 5000; } startNewLog(); } private String getFileName() { return base_dir + getHardwareID() + _ + String.valueOf(System.currentTimeMillis()) + .csv; } public String getHardwareID() { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); return tm.getDeviceId(); } private void startNewLog() { try { if (getAccelerometer()) { // acquire a partial wake lock wl = ((PowerManager) getSystemService(Context.POWER_SERVICE)) .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, AccelerLogService.class.getPackage().getName()); wl.acquire(); br = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(getFileName(; br .write(time(mins),X,Y,Z,varX(last 5 minutes),varY(last 5 minutes),varZ(last 5 minutes),magVar(last 5 minutes)\n); startTime = System.currentTimeMillis(); tt = new TimerTask() { @Override public void run() { float x = lastData[SensorManager.DATA_X]; float y =
[android-developers] Re: What phone to buy for development?
Am 11.03.10 15:42, schrieb Mark Murphy: Natanael Arndt wrote: is it also possible to install an other Android version on a consumer phone, e.g the version from here[1] if I don't want the vodafone branding on the HTC Magic? Not usually. You can root some phones and install alternative firmware (e.g., OpenEclair.com). And when I have rooted the HTC Magic is it equivalent to the ADP2? Or are there more differences? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 manage orientation dependent activities?
Hello, everybody! I have two activities, one per orientation - PortraitActivity and LandscapeActivity. They are pretty much different, I can't use one Activity with different layouts. If user changed orientation I have to shutdown one of them and start another. What is the best way to manage them? Does it make sense to create GroupActivity? Or each Activity should check if the current orientation is what it needs? If so, is it save to start new Activity in onCreate method of previous one (which is not actually created yet)? Thank you, Andrey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best practice for downloading a file - URLConnection, HttpClient, Intent, ...
If an app needs to download some critical data (without the data it cannot function) of several MB, what is the best practice? The app would start, a prompt would be shown to confirm download, download would commence, and the user would be prevented from going further until the download successfully completes. I don't expect the download would take more than, say, 10 secs over wifi but, of course, would take much longer over 2G. Is a service absolutely essential for this? Maybe there is already some code out there that takes a URL, downloads it in a service, and broadcasts a configurable Intent when the download has completed? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android.speech.action.RECOGNIZE_SPEECH activity not found
You might have to download the speech recognition? I know google maps requires downloading voice app or something... On Feb 24, 4:34 am, Mukesh kumar mukesh.j...@gmail.com wrote: how the emulator get activity: android.speech.action.RECOGNIZE_SPEECH when we use code : Intent intent = new Intent(android.speech.action.RECOGNIZE_SPEECH); startActivityForResult(intent, 0); it throw exception: Exception: android.content.ActivitNotFoundException:No Activity Found to handle Intent{action=android.speech.action.RECOGNIZE_SPEECH} AndroidMainfest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.tutorial android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.SpeechActivtiy android:label=@string/ hello intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: No View key event called back when BACK key is pressed while IME is shown?
I believe the back button event is intercepted by the keyboard app, so it knows to hide. Once focus is returned to your app, the event has already been processed. I'm not aware of any way to intercept the events of another app (like the soft keyboard). You could write your own keyboard app that passes the back button event as an intent, but I imagine that's not the solution you are looking for. If the endBatchEdit() method is working for you, I would stick with it. Alternatively, you might want to re-think your approach to this problem, as there are lots of soft keyboard apps out there and there is a chance they won't all play nice with your custom integration... On Thu, Mar 11, 2010 at 11:01 AM, mariush mariusz...@gmail.com wrote: Did you solve this? Anyone knows solution to this problem? On 8 Lut, 19:35, jamesc jame...@gmail.com wrote: If theBACKbutton is pressed when the soft keyboard is being displayed, noBACKkeycode event is generated (when it's not shown, andBACKis pressed, then my View's onKeyDown()/onKeyUp() methods get calledback). Is this expected behaviour? I'm trying to catch when the IME is hidden uponBACKbeing pressed. I'm currently working around this in the endBatchEdit() method (I'm implementing BaseInputConnection). Any help gratefully received, as ever. Cheers James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: How to reset the price of application
Grokking, parsing, compiling... Ahhh... the real question is which movie are we all going to see? How about a charming low-budget sci fi winner such as http://www.imdb.com/title/tt0083557/ ? That seems appropriate. On Mar 11, 12:57 am, Dianne Hackborn hack...@android.com wrote: On Wed, Mar 10, 2010 at 8:48 PM, Kumar Bibek coomar@gmail.com wrote: promote your app free for 24H or more That's a nice idea. Ummm, Google doesn't seem to be working on the Android Market. :( Yep, no more development on android market. It is perfect how it is. Now we can go see a movie. -- 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] Supplying a different background drawable for a dialog?
Hi, I'm trying to supply my own background drawable for a dialog. It works fine on 1.6+, on 1.5 though instead of a transparent dimmed background around the dialog, I just get opaque black. I defined the style like this in my styles.xml file: style name=CustomDlg parent=@android:style/Theme.Dialog item name=android:windowBackground@drawable/my_background/ item /style Is there something else we need to do so that we can still get the transparency around the dialog? The drawable is nothing special, I just took the stock one from the aop and changed the color on the inside of the frame. 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: No View key event called back when BACK key is pressed while IME is shown?
It appears (the endBatchEdit() didn't work out) that the correct way has been stated before by Dianne: http://groups.google.com/group/android-developers/browse_thread/thread/9d1681a01f05e782 On Mar 11, 3:14 pm, Sean Hodges seanhodge...@googlemail.com wrote: I believe the back button event is intercepted by the keyboard app, so it knows to hide. Once focus is returned to your app, the event has already been processed. I'm not aware of any way to intercept the events of another app (like the soft keyboard). You could write your own keyboard app that passes the back button event as an intent, but I imagine that's not the solution you are looking for. If the endBatchEdit() method is working for you, I would stick with it. Alternatively, you might want to re-think your approach to this problem, as there are lots of soft keyboard apps out there and there is a chance they won't all play nice with your custom integration... On Thu, Mar 11, 2010 at 11:01 AM, mariush mariusz...@gmail.com wrote: Did you solve this? Anyone knows solution to this problem? On 8 Lut, 19:35, jamesc jame...@gmail.com wrote: If theBACKbutton is pressed when the soft keyboard is being displayed, noBACKkeycode event is generated (when it's not shown, andBACKis pressed, then my View's onKeyDown()/onKeyUp() methods get calledback). Is this expected behaviour? I'm trying to catch when the IME is hidden uponBACKbeing pressed. I'm currently working around this in the endBatchEdit() method (I'm implementing BaseInputConnection). Any help gratefully received, as ever. Cheers James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Which API Level to target
Thanks for the stats. Very helpful. jb On Mar 10, 9:00 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Check out one of my app's companion site: http://www.radarnow.net Click on the stats link. You'll see the percentage for each version, also the devices that are being used. That may help make up your mind. -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Photoshop.com Mobile editor now available as an Intent
The document provided by Adobe does not mention how you should read the returned Uri. For compatibility with future versions and other image editors, you should not assume that it is a 'file:' scheme Uri, it could also be a 'content:' scheme Uri. The ContentResolver will handle it. here is the code: @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == LAUNCH_EDITOR) { if (resultCode == Activity.RESULT_OK) { Uri savedImage = data.getData(); // savedImage is the Uri for the newly created // edited version of the original image. ContentResolver cr = getContentResolver(); InputStream in = null; try { in = cr.openInputStream(savedImage); // you now have an InputStream to the saved image // you can copy it by saving to an OutputStream // or you can load it as a Bitmap Bitmap bitmap = BitmapFactory.decodeStream(in); } catch (IOException e) { } } else { // Edit Operation canceled by user } } } On Mar 5, 9:10 pm, Adobe DI Mobile mobilead...@gmail.com wrote: ThePhotoshop.com Mobile editor is now available to the Android developer community as an activity that handles actions of type Intent.ACTION_EDIT, for image content that has data of mime-type image/ *. For more information on incorporating the editor into your Android application, please visit:http://mobile.photoshop.com/android/developers.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] Service restarting for no reason?
DCheeseman wrote: While debugging one of my apps (one that sits in the background and logs accelerometer data), I noticed that it would randomly and without any prompt reset itself. It would be running it's normal timer task and suddenly it would stop, the create function would be called and any running task would halt. Do not use TimerTask with an unbound Service. Use AlarmManager, so the Service does not have to remain in memory all the time. http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm/ I have a wake lock and I thought that was enough to keep it from getting kicked out of memory. WakeLocks have nothing to do with keeping services in memory. In general, you don't *want* to keep services in memory any more than is necessary. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Post the mail you got here On Mar 11, 3:56 pm, C.Versieux christophe.versi...@gmail.com wrote: Should I cry? Just have a look on what I get yesterday morning... So, no N1 for me :-( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?
This comment is perhaps a bit off your main topic, and I don't mean it to derail your efforts or to criticize. But I have a bit of a problem with your statement Java is just too slow..., taken as a general statement. Perhaps you have benchmark data showing specific performance problems, and found it so; I'm not disputing that. However, the performance landscape is a lot more complex than this would suggest, if taken beyond your context. In particular, there are at least 4 performance areas to consider here: 1) Java performance -- which is actually generally quite good in the desktop/server world; I've not done any Android benchmarking. 2) JNI performance -- there's added cost per switch to native code; sometimes it's better to do more work in Java to avoid this overhead, or to batch up work and do more per JNI call. 3) OpenGL library/driver performance. This is both the stuff that's done in software in preparing for the GPU pipeline, and how effectively it makes use of the hardware, and failures to use capabilities that exist in the hardware. 4) The GPU hardware itself Judging from the reports I see here (and not personal experience on this platform as yet), a lot of the performance problems we see are further down this chain. Better graphics hardware and better drivers push the bottlenecks up the chain; faster main processors and Java VM improvements push them down. But where you encounter the bottleneck will always depend on just what the application is doing. Textures are a big part of that, as is managing levels of detail so you don't waste time rendering detail that isn't really noticeable. There are a lot of ways to use OpenGL poorly. And there are a lot of ways to use it well, but push the limits in the search for image quality. Pushing things down in to C++ is just going to harm developers, if it's not actually where the bottleneck is. As Mario says, you have to choose carefully. Do you move your physics engine into C++ -- or just the matrix multiplications? Or perhaps just significant components, like collision detection and the timestep integrations? If you push stuff down to C++, how do you allow for customization, without incurring the JNI callback overhead? Part of what I'm getting at is that because apps are different, the optimal tradeoff will differ. I'm not sure that Google providing a framework would be the way to go. Obviously, each developer implementing their own isn't a good thing either. I think shared community efforts, or commercial libraries make a lot more sense (though there could be an official library as one of these options). This is especially true of physics engines. But there is such wide variation in what demands an application makes of 3D rendering that blanket statements like Java is too slow conceal the issues. So I would council against blindly pushing stuff down to native code based on such broad statements, but rather doing so conservatively, based on realistic benchmarks. On Mar 10, 2:35 am, Piotr piotr.zag...@gmail.com wrote: Both these frameworks are interesting, but as I mentioned before; it could be better, to create low-level, native NDK game framework library. Java is just too slow to handle thousands opengl calls per second for any game more complex than falling bricks or sth. Such framework could load game elements (maps, tiles, sprites, bkgs, sounds), giving developer control interface set to call high level methods like setSpriteSpeed, setBackgroundScroll, manageSpritePhysics, etc.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] G1 Upgrade to 1.6???
Somewhat off topic since it isn't development per se, but this group is most knowledgeable on Android. Yesterday my G1 upgraded to version 1.6. Now I am pretty sure that it did this last fall when the official release occurred. Did anyone else see this upgrade? I may be having problems with my regular email now. I use IMAP and it is having a very hard time retrieving messages. I keep getting Connection errror messages. Anyone else seeing this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Possible to Detect if OnResume is because Back button was hit?
A) I do some logging of information if a user goes back to a page from a back button versus some other way of accessing the page. B) I had tried the startActivityForResults but was curious what other way people have done it. On Mar 11, 12:02 am, TreKing treking...@gmail.com wrote: On Wed, Mar 10, 2010 at 6:47 PM, Sam samm...@gmail.com wrote: I wanted to know if it is possible to Detect in an Activitiy's OnResume if the Activity is resuming because the devices Back button was hit or not? A) Why do you want to do this? Sounds hacky. B) If you start the Activity with startActivityForResult() the first activity will get it's onActivityResult() function called, indicating that the activity it started has finished. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Anyway to detect if Broadcast Receiver is registered?
Hi, I'm using more than 1 instance of MapActivity in an application that look different from each other. I'm running into an issue sometimes when leaving a MapActivity doesn't unregister it's BroadcastReceiver and going Back to resume the MapActivity page it tries to re-register the receiver again, thus receiving an Exception that Receiver already registered. Anyone know of a way to tell if a Broadcastreceiver is registered and is listening? Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Market updating in error
Has anyone had users complain that their app is being updated too much? I issued an update to one of my apps January 17th, and saw a comment from a user a couple days ago complaining that he gets update notifications every week. I had this complaint a couple months back but just ignored it. Just wondering if it's the Market (which never gets the number of updates correct by the way), or the phone. Ken -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: to get/generate nonce. error in random, getBytes Options
The author meant to say 'nextBytes(byte[])' instead of 'getBytes(byte[])' It's called nextBytes instead of getBytes because you can call it repeatedly, getting additional random bytes each time. On Mar 8, 6:19 pm, sebby zml sebby@gmail.com wrote: thanks a lot for letting me know that the code written there is incorrect. i'll work on it. On Mar 9, 9:59 am, Mark Murphy mmur...@commonsware.com wrote: sebby zml wrote: Hello every1, I am now working on a program which is someting related to IMS. I want the Server to send back a nonce to the Client. In order to get nonce, I tried using the code from this site. == http://forums.sun.com/thread.jspa?threadID=595626 -Use java.security.SecureRandom: --byte[] nonce = new byte[16]; --Random rand; --rand = SecureRandom.getInstance (SHA1PRNG); --rand.getBytes (nonce); But the problem is I could not use rand.getBytes as the class Random doesn't provide methot getbytes(). Is there any other way to get or generate nonce? please help. Thanks a lot. There has not been a getBytes() method on Random or SecureRandom going back at least to Java 1.4.2, and perhaps earlier. I suggest you find a better sample of using SecureRandom -- that forum post is incorrect. I would recommend you consider posting on StackOverflow, with the #java tag. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in NYC: 1-2 May 2010:http://guruloft.com-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: No View key event called back when BACK key is pressed while IME is shown?
And is that the approach you are planning to go for? On Thu, Mar 11, 2010 at 3:38 PM, jamesc jame...@gmail.com wrote: It appears (the endBatchEdit() didn't work out) that the correct way has been stated before by Dianne: http://groups.google.com/group/android-developers/browse_thread/thread/9d1681a01f05e782 On Mar 11, 3:14 pm, Sean Hodges seanhodge...@googlemail.com wrote: I believe the back button event is intercepted by the keyboard app, so it knows to hide. Once focus is returned to your app, the event has already been processed. I'm not aware of any way to intercept the events of another app (like the soft keyboard). You could write your own keyboard app that passes the back button event as an intent, but I imagine that's not the solution you are looking for. If the endBatchEdit() method is working for you, I would stick with it. Alternatively, you might want to re-think your approach to this problem, as there are lots of soft keyboard apps out there and there is a chance they won't all play nice with your custom integration... On Thu, Mar 11, 2010 at 11:01 AM, mariush mariusz...@gmail.com wrote: Did you solve this? Anyone knows solution to this problem? On 8 Lut, 19:35, jamesc jame...@gmail.com wrote: If theBACKbutton is pressed when the soft keyboard is being displayed, noBACKkeycode event is generated (when it's not shown, andBACKis pressed, then my View's onKeyDown()/onKeyUp() methods get calledback). Is this expected behaviour? I'm trying to catch when the IME is hidden uponBACKbeing pressed. I'm currently working around this in the endBatchEdit() method (I'm implementing BaseInputConnection). Any help gratefully received, as ever. Cheers James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Android Market updating in error
I got a user leave a comment saying that he has uninstalled my app and is still getting update notifications for it. I think I also got my own app to repeadly prompt to be updated on my own phone when it was intstalled through the market, but this may have been it getting confused with version numbers from development versions. I am not sure what the problem is, but I think there is one. Mike On Mar 11, 4:25 pm, Ken H hunt1...@gmail.com wrote: Has anyone had users complain that their app is being updated too much? I issued an update to one of my apps January 17th, and saw a comment from a user a couple days ago complaining that he gets update notifications every week. I had this complaint a couple months back but just ignored it. Just wondering if it's the Market (which never gets the number of updates correct by the way), or the phone. Ken -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Market apps Ranking rules
I hope it doesn't have anything to do with active installs. One of my paid apps active user stats dropped by over a 1000 users in one day on December 18th because of Google losing the market stats. It's been 3 months now and they still have not restored them. On Wed, Mar 10, 2010 at 6:12 AM, croco zeug...@gmail.com wrote: Hi all, I'm wondering what are the rule for apps ranking in market I'm asking this because my app 1-5 (218 rattings )in action games category is stuck in the bottom of the category above me alot of 1000-5000 aps with 10 ratings . Why i'm so in deep :( Thanks for your help. My app is World of Bombs for those who would like to understand the ranking problem Regards Croco -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Joshua Frank -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android.speech.action.RECOGNIZE_SPEECH activity not found
You should probably be adding some code to verify if the speech recognition library is available on the device. Generally this is a good practice for any external intent. Here is a code segment that can help you out. // Check to see if a recognition activity is present PackageManager pm = context.getPackageManager(); ListResolveInfo activities = pm.queryIntentActivities( new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0); if (activities.size() == 0) { // At this point there is no recognition library and you should handle it here } I'm not sure how you can load the library into the API and I'm not sure if the library is even publicly available. On Mar 11, 8:07 am, Moto medicalsou...@gmail.com wrote: You might have to download the speech recognition? I know google maps requires downloading voice app or something... On Feb 24, 4:34 am, Mukesh kumar mukesh.j...@gmail.com wrote: how the emulator get activity: android.speech.action.RECOGNIZE_SPEECH when we use code : Intent intent = new Intent(android.speech.action.RECOGNIZE_SPEECH); startActivityForResult(intent, 0); it throw exception: Exception: android.content.ActivitNotFoundException:No Activity Found to handle Intent{action=android.speech.action.RECOGNIZE_SPEECH} AndroidMainfest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.tutorial android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.SpeechActivtiy android:label=@string/ hello intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: What phone to buy for development?
Just to add a nuance here, any phone will do but some are noticibly more prone to weird behaviors like the Motorola Droid for example which for a lot of us is a nightmare but is one of the most used in the US according to the statistics of Radar Now. So I'm not sure how to handle that, you should either just avoid it. Will making your app works on the Droid automagically makes it work on more standard devices(hero, magic) or will it break on those. Just like when developing for the web, if you write your code against IE then it will usually works on other browsers, but not the other way around :D I would think that the fact that the Droid has more constraints it makes you write better, no not better, more compatible code across all devices. But just wanted to let you know. Have fun coding. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to manage orientation dependent activities?
On Thu, Mar 11, 2010 at 9:02 AM, ailinykh ailin...@gmail.com wrote: I have two activities, one per orientation Why? Haven't played with it myself yet, but I'm pretty sure you can create two different layouts for each orientation that will automatically be set for you based on the orientation. - 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: Device Seeding Program for Top Android Market Developers
I don't get it ... ?! On 11 Mrz., 14:56, C.Versieux christophe.versi...@gmail.com wrote: Should I cry? Just have a look on what I get yesterday morning... So, no N1 for me :-( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the deal with the android: namespace?
Well, he and I could have a fine discussion sometime. But the key thing is that he managed to navigate the whole standards morass and come out the other side with a standard which is both extremely widely adopted and extensible enough to survive into the future. Given the difficulties of doing that, especially when Microsoft starts throwing their weight around, I think he did pretty darned well. While I could have designed something similar to do the same jobs -- no doubt, so could he, but neither of us could have gotten it adopted as a standard! But I'm sympathetic when people grumble about having to learn to deal with the complexities. I don't know that I could have done namespaces any more simply, however. Their DOM implementation could have been done better... On Mar 8, 4:50 pm, Mark Murphy mmur...@commonsware.com wrote: Bob Kerns wrote: Agreed, and for many applications, I prefer JSON. If I'd designed XML, it would have been a lot simpler. U...Tim Bray is a member of this group, or at least he used to be. (Mr. Bray: don't worry -- I've got your back!) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en