[android-developers] Re: Install % drop again?
Yeah, 64 to 52 a couple of weeks ago, slowly slipped down to 47 now. I wouldn't mind if it wasn't a disaster for ranking. Pent On Mar 4, 6:50 am, Zsolt Vasvari zvasv...@gmail.com wrote: My app went from 62% to 56% in one day Say it all... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Check permissions
Hi, thank you for this suggestion A put the following line in the manifest of my content provider addon (MYPERMISSION is replaced by the correct value): permission android:name=MYPERMISSION android:protectionLevel=signature/ And I didn't put uses-permission tag for this permission in the main app of mine but it could use the provider. Is it ok or not? Need I to declare this permission as required? On Feb 27, 6:19 pm, Dianne Hackborn hack...@android.com wrote: There is *no* need to use a shared used ID. Signature-based permissions do this, in a much more clean way. Also as pointed out, you can't change your app to a shared used ID if it doesn't already use one. And I really discourage people from using shared user IDs; there are lots of subtle implications of doing that, which I would prefer just be avoided. On Sat, Feb 26, 2011 at 11:51 PM, b_t bartata...@gmail.com wrote: Can Shared ID be used for this purpose with setting content provider as not exported? Then only my app could use this addon, am I right? If my app (which contains appwidgets) didn't have a shared id before and I set this in the next update will it work without any problem? Appwidgets uses this id or not? They are running in the name of this user? On febr. 26, 22:12, Dianne Hackborn hack...@android.com wrote: Yes a help application works well. Just be sure that if you do such a thing it is in a secure way -- for example if this is structured as a Service that your main application binds to in order to have it do stuff with SMS messages, declare a signature permission in the help that restricts access to it, and use it in your main app. This way other applications can't get the permission and can't find to your service and abuse you as a security hole (in which case your helper app will get the blame, since it is the one accessing the SMS data). On Sat, Feb 26, 2011 at 12:32 PM, Kostya Vasilyev kmans...@gmail.com wrote: I do have a suggestion for you - you could implement additional functionality as an add-on, a companion application. Android has features that make it pretty easy to implement (shared user ids, intents, services, being able to query installed packages and intent resolution). Some applications that are available in Market already do this (e.g. Smart Keyboard, ES File Explorer, those are just the ones I use, there are certainly many more). 26.02.2011 22:18, b_t пишет: There are users who don't read the app description nor the comments. They don't write an email to ask just write a bad comment. Yes, users are a pain - they are ignorant, paranoid, moronic, inarticulate. The world would a better place without them :) /irony So explaining it doesn't help because they don't read. I always try to answer comments but the next comments keep asking the same questions. True. But I also find that sometimes there are things you can do to address certain often asked questions or misunderstood functionality - like adding a help button, or tweaking how the information is presented, so it's more obvious. So I'm not satisfied with this permission model, what about you? Well, my two current application are so simple, it's not even funny. The permissions they request are obvious, so my experience doesn't really apply here. -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 -- 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
[android-developers] Re: How to change AutoCompleteTextView dropdown background color ?
Thanks , got what I was looking for , not exactly the same but I can change background image of dropdown using setDropDownBackgroundResource(); On Mar 4, 10:45 am, sat sathvikm...@gmail.com wrote: Hi, As the subject suggests , how to change background of AutoCompleteTextView dropdown. I can apply any style to the view(TextView) that dropdown box shows but to make the drop down itself transparent I am not able to do ! Any hints ? 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] Market 2.3.2 : why is in-app billing API still returning RESULT_BILLING_UNAVAILABLE?
This is the original story: http://techcrunch.com/2011/03/01/googles-new-in-app-payments-product-set-for-launch-in-may-2011/ which admits to being wrong about Android In-App Billing - rather, it's about *web-based*, in-app payments. And it's just pure speculation, too, trying to read between the lines of an announcement made by a small company acquired by Google. -- Kostya 04.03.2011 4:22, Nikolay Elenkov пишет: On Thu, Mar 3, 2011 at 6:49 AM, Miguel Moralestherevolti...@gmail.com wrote: I can confirm that behavior as well. Just waiting on google now Rumour has it that it will be available in May: http://phandroid.com/2011/03/01/googles-anticipated-in-app-payments-system-debuting-may-2011/ -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application
On Mar 4, 2011, at 3:48 AM, Xavier Ducrohet wrote: Hmm this is strange. The Eclipse plug-in basically does that. There should be no other setup to do. Do you have the standalone DDMS running? Xav You mean the application DDMS? No, I don't. Now you said that, *after* failing to attach the debugger, I tried to start ddms application, and then attach the debugger and it WORKS! Of course, when I left ddms application running and started the procedure from the beginning, I couldn't connect to find the application port and I got this error message: 10:41:31 E/ddms: Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences. 10:41:31 E/ddms: Can't bind to local 8600 for debugger 10:41:31 E/ddms: Can't bind to local 8601 for debugger 10:41:31 E/ddms: Can't bind to local 8602 for debugger 10:41:31 E/ddms: Can't bind to local 8603 for debugger 10:41:31 E/ddms: Can't bind to local 8604 for debugger 10:41:31 E/ddms: Can't bind to local 8605 for debugger 10:41:31 E/ddms: Can't bind to local 8606 for debugger 10:41:31 E/ddms: Can't bind to local 8607 for debugger 10:41:31 E/ddms: Can't bind to local 8608 for debugger 10:41:31 E/ddms: Can't bind to local 8609 for debugger 10:41:31 E/ddms: Can't bind to local 8610 for debugger 10:41:31 E/ddms: Can't bind to local 8611 for debugger Is there a way to have the functionality of ddms on demand and enable/disable it so that port search will be functional (with ddms disabled) and later on enable it so that I could properly attach the debugger? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Lock status bar
On 4 March 2011 01:18, lbendlin l...@bendlin.us wrote: The stock phone app does not lock on my N1. It does, when you are on a call. If you are browsing i.e. call log, or dialing then it works normally. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Verify Service is real and not a spoof one.
You can have some kind of challenge / response function in the service's interface. Now, if the service is local (android:exported=false) then it won't be available to other applications, so this whole issue doesn't apply - unless someone decompiles and rebuilds your application. But in that case, they could disable any validation code in your service and activity. So keep this scenario in mind - either keep it really simple and just rely on local service, or implement measures against code changes, like obfuscation and signature checking. -- Kostya 04.03.2011 4:17, dnkoutso пишет: As an added note, I know I can verify from the Service if the application that is trying to bind is a valid one, I am actually asking the opposite, how can the application ensure it is bound to the real service? Perhaps, something with permissions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market 2.3.2 : why is in-app billing API still returning RESULT_BILLING_UNAVAILABLE?
On Fri, Mar 4, 2011 at 5:40 PM, Kostya Vasilyev kmans...@gmail.com wrote: This is the original story: http://techcrunch.com/2011/03/01/googles-new-in-app-payments-product-set-for-launch-in-may-2011/ which admits to being wrong about Android In-App Billing - rather, it's about *web-based*, in-app payments. I missed that one, thanks. And it's just pure speculation, too, trying to read between the lines of an announcement made by a small company acquired by Google. I agree it's pure speculation, but that's all we have. It does seem logical that it will be unveiled at Google I/O though. At any rate, it's a shame that there is no way to test it, so you can have it ready in your app and just deploy when Google finally flips the switch. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Install % drop again?
On 4 March 2011 09:03, Pent supp...@apps.dinglisch.net wrote: Yeah, 64 to 52 a couple of weeks ago, slowly slipped down to 47 now. I wouldn't mind if it wasn't a disaster for ranking. On Mar 4, 6:50 am, Zsolt Vasvari zvasv...@gmail.com wrote: My app went from 62% to 56% in one day Say it all... IMHO it's quite normal, so do not cry :) Don't think there's much you can do. I'd rather say it's quite common (and 56% is quite high anyway). The longer app is on market the value be lower as much more users will download it and test and uninstall. And howveer some will keep it (so your userbase will grow anyway), the download to installed ratio will go down. My observation is that is usually oscilate at 35%-40% for most apps with 50k and more downloads -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 2.3 Causes memory intensive app to crash
I've also noticed this, it might be an app causing it. But it makes the system go into an unstable state. I've had google maps and the launcher effectivly stop working. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Install % drop again?
On 4 March 2011 09:53, Marcin Orlowski webnet.andr...@gmail.com wrote: On 4 March 2011 09:03, Pent supp...@apps.dinglisch.net wrote: Yeah, 64 to 52 a couple of weeks ago, slowly slipped down to 47 now. I wouldn't mind if it wasn't a disaster for ranking. On Mar 4, 6:50 am, Zsolt Vasvari zvasv...@gmail.com wrote: My app went from 62% to 56% in one day Say it all... IMHO it's quite normal, so do not cry :) Don't think there's much you can do. I'd rather say it's quite common (and 56% is quite high anyway). The longer app is on market the value be lower as much more users will download it and test and uninstall. And howveer some will keep it (so your userbase will grow anyway), the download to installed ratio will go down. My observation is that is usually oscilate at 35%-40% for most apps with 50k and more downloads So instead of observe totally useles percentage, focus on active install values and enjoy. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Verify Service is real and not a spoof one.
On Fri, Mar 4, 2011 at 5:49 PM, Kostya Vasilyev kmans...@gmail.com wrote: So keep this scenario in mind - either keep it really simple and just rely on local service, or implement measures against code changes, like obfuscation and signature checking. Assuming you signed both with the same key, there is a simple way to do it: PackageManager pm = getPackageManager(); boolean isMyService = pm.checkSignatures(my.service, my.app) == PackageManager.SIGNATURE_MATCH; You can do the same thing using UIDs: PackageManager .checkSignatures (int uid1, int uid2) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can i manipulate JavaScript events or functions in WebView ?.
thanks regards, G.Santhosh Kumar +91 9966973790 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dynamic code for views in layout
Hi, I want to set 10 to 15 dynamic labels programmatically in layout without using xml files -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Fwd: [android-developers] redirct the an alert or replay to the device that send sms
*can u give me any site or coderelated to this *? -- Forwarded message -- From: Marcin Orlowski webnet.andr...@gmail.com Date: Fri, Mar 4, 2011 at 2:16 PM Subject: Re: [android-developers] redirct the an alert or replay to the device that send sms To: vineeshkc kcvine...@gmail.com On 4 March 2011 05:56, vineeshkc kcvine...@gmail.com wrote: Hearty Thanks Marcin is it possible to send an alert or some SMS to the same device that send the SMS Sure, you can send your SMS back on such event. You got all you need from incoming SMS (incl. senders' number). About an alert - there's no such thing like crossplatform alert (whatever it should be) feature you could use to notify sender's device. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Clear recent apps stack
Ok On 4 mar, 08:15, Doug beafd...@gmail.com wrote: On Mar 3, 2:03 am, Tom thomas.coz...@gmail.com wrote: I don't want to override it, just to clear apps list. The only way to clear it is to turn off the mobile? What you're seeing there is not really a stack. It is just a list of applications that the user has recently used, whether or not they are actually running at that moment. You can't change it with an application. They will go away at reboot or when other applications become more recent and cause old ones to fall off. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Refreshing ListView data within an Activity every 5-10 seconds, which approach to take?
It just depends on what kind of server you're dealing with. If it's your own, you could implement a simple push scheme by keeping the TCP/IP connection open after the initial data download, and having the server send new data over this connection. The client would just check every few seconds if the socket has readable data, and if so, read it and update the UI. A variation of this would use two connections, one for notifications, and one for data. As far as the UI goes - first, you could display the standard progress wheel in the activity's title bar, second, you could add a special footer to your list view that says Loading... and is then pushed out of sight by the new data item. -- Kostya 04.03.2011 7:14, Chris Stewart пишет: I have a service I'm pulling data from and they suggest doing so every 5-10 seconds it's designed to be a near-real-time experience. I'm currently pulling this information down and displaying it in a ListView. During the initial load, I toss up a basic ProgressDialog so the user knows information is being loaded. However, introducing that automatically in such a short increment of time would be an annoying user experience. Is there a nice way to approach this problem in Android? I'd like to be able to run an update on the data I'm pulling from the web without disrupting the end user's experience. Ideally, not even disrupting them if they happen to be scrolling the view. The data itself will always be additions to data that's already been pulled down, so essentially I'm adding records to my Adapter every 5-10 seconds. -- Chris Stewart http://chriswstewart.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 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market 2.3.2 : why is in-app billing API still returning RESULT_BILLING_UNAVAILABLE?
04.03.2011 11:50, Nikolay Elenkov пишет: I agree it's pure speculation, but that's all we have. It does seem logical that it will be unveiled at Google I/O though. At any rate, it's a shame that there is no way to test it, so you can have it ready in your app and just deploy when Google finally flips the switch. Yes, agreed. And as far as speculation goes - if they checked developer.android.com, and its section on in-app billing, they could easily come to the conclusion that this feature, although not yet launched for end users, is already available for developers to start working with and test. Same conclusion myself and others on this list came to. Unfortunately, that conclusion, being quite logical, is wrong. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Install % drop again?
keep it (so your userbase will grow anyway), the download to installed ratio will go down. My observation is that is usually oscilate at 35%-40% for most apps with 50k and more downloads It was 62% yesterday -- it's 56% today... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] redirct the an alert or replay to the device that send sms
On 4 March 2011 10:13, vineeshkc kcvine...@gmail.com wrote: can u give me any site or code related to this ? No, because you can easily google it for yourself. Do not be that lazy - it's your homework. android how to send sms and android how to receive sms shall do the trick -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Send sms to multiple numbers in single call to sendTextMessage
Hi, Is there any way to send an SMS to multiple phone numbers? sendTextMesage in SmsManager takes single string. sendTextMessagehttp://developer.android.com/reference/android/telephony/gsm/SmsManager.html#sendTextMessage%28java.lang.String,%20java.lang.String,%20java.lang.String,%20android.app.PendingIntent,%20android.app.PendingIntent%29 (String http://developer.android.com/reference/java/lang/String.htmldestinationAddress, String http://developer.android.com/reference/java/lang/String.htmlscAddress, String http://developer.android.com/reference/java/lang/String.html text, PendingIntenthttp://developer.android.com/reference/android/app/PendingIntent.htmlsentIntent, PendingIntenthttp://developer.android.com/reference/android/app/PendingIntent.htmldeliveryIntent) Again, herehttp://stackoverflow.com/questions/4640026/intent-to-send-an-sms-to-multiple-contactcssomeone reported that some sets support comma separated list, some semicolon separated list. So, comma or semicolon separated list is actually not usable for this reason. The worst case that came in my mind is to call sendTextMessage multiple times using a loop. It would be very helpful if anyone who did similar task can suggest a good generic way. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] redirct the an alert or replay to the device that send sms
ok sure i will do it take it has a challenge On Fri, Mar 4, 2011 at 2:59 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 4 March 2011 10:13, vineeshkc kcvine...@gmail.com wrote: can u give me any site or coderelated to this ? No, because you can easily google it for yourself. Do not be that lazy - it's your homework. android how to send sms and android how to receive sms shall do the trick -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can Android widgets be homescreen aware?
So when homescreen renders itself, it leaves no signals that apps/ widgets could catch and act on? On Mar 3, 8:02 pm, Justin Anderson magouyaw...@gmail.com wrote: AFAIK this is not possible On Thu, Mar 3, 2011 at 11:59 AM, babeinwoods vivek.pun...@gmail.com wrote: Do Android homescreen widgets know when user returns to that homescreen? Specifically, can a widget know (and use this knowledge) when a user comes back to that homescreen after: - unlocking the device - swiping back from another homescreen - completing a phone call - closing an app - closing a popup - pressing dedicated home soft/hard button - closing all-app list etc I want to update the content upon every return to homescreen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can Android widgets be homescreen aware?
The interaction is the opposite - a widget provides a RemoteViews object which is used to render the widget without any further involvement by the widget provider. For some of the things you asked about, though, there are broadcast actions you can catch and update your widget as necessary 04.03.2011 12:49 пользователь babeinwoods vivek.pun...@gmail.com написал: So when homescreen renders itself, it leaves no signals that apps/ widgets could catch and act on? On Mar 3, 8:02 pm, Justin Anderson magouyaw...@gmail.com wrote: AFAIK this is not possible On Thu, Mar 3, 2011 at 11:59 AM, babeinwoods vivek.pun...@gmail.com wrote: Do Android homescreen widgets know when user returns to that homescreen? Specifically, can a widget know (and use this knowledge) when a user comes back to that homescreen after: - unlocking the device - swiping back from another homescreen - completing a phone call - closing an app - closing a popup - pressing dedicated home soft/hard button - closing all-app list etc I want to update the content upon every return to homescreen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Send sms to multiple numbers in single call to sendTextMessage
On 4 March 2011 10:35, Sarwar Erfan erfanonl...@gmail.com wrote: Is there any way to send an SMS to multiple phone numbers? No. Loop and send as many messages as many numbers you have. And if you planned to do some savings by hitting 10 receipients while paying for 1 message - it's not gonna happen :) -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Install % drop again?
On 4 March 2011 10:26, Zsolt Vasvari zvasv...@gmail.com wrote: keep it (so your userbase will grow anyway), the download to installed ratio will go down. My observation is that is usually oscilate at 35%-40% for most apps with 50k and more downloads It was 62% yesterday -- it's 56% And how about other figures? Installs and active installs? %value is just ratio between these two. I'd not care it much, unless you really enjoy having 2 installs and 1 active installs (which gives 50%) over 100k installs and 10k active installs (which gives 10%). today... So? One of my app's figures doubled over night as it seem some crowded social place mentioned it. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Try to implement coverflow animation using Gallery
how do you get the image at the center when selected or scrolling and have its text displayed? On Mar 3, 7:56 pm, Justin Anderson magouyaw...@gmail.com wrote: It returns the text that should be displayed displayed for the item at the given position On Mar 3, 2011 4:27 AM, monty neilm30s...@gmail.com wrote: What does the getItemText(int pos) method in your code do? On Mar 1, 7:26 pm, Justin Anderson magouyaw...@gmail.com wrote: The way I implemented mine in AppSwipe! is a little complex... Here is a quick overview of what I did: - I subclassed RelativeLayout and created a new class called TitledGallery that holds the Gallery and two TextViews (for reusability reasons because I have up to 5 of these in the main display) - My image adapter has the following method: public String getItemText(int pos) - My getView method only deals with the ImageView in the Gallery... It does not change the text in the view - I implemented onItemSelectedListener and put this listener on my Gallery - I update the text in OnItemsSelectedListener.onItemSelected() and OnItemSelectedListener.onNothingSelected() Hope that helps! On Tue, Mar 1, 2011 at 4:29 AM, monty neilm30s...@gmail.com wrote: Sorry the apps name is AppSwipe On Mar 1, 3:53 pm, monty neilm30s...@gmail.com wrote: Actually my requirement is that when when the gallery is scrolled there will be a TextView at bottom of Gallery that will display the name of the image or some information related to that image.Now i want that when i scroll and stop the Gallery the image in the middle of Gallery should have its data displayed in the TextView.You can check the above code i have posted. There is an AppAwipe app that does this.Check it out and you will understand my requirement. Please let me know if any solution. On Mar 1, 3:29 pm, Gergely Juhász jg.sv...@gmail.com wrote: sorry for the syntax: What if you use TextViews instead of using ImageViews? On 1 March 2011 11:28, Gergely Juhász jg.sv...@gmail.com wrote: What is you use TextView instead of using image views. TexView has an attribute android:drawableTop. With that you can simple draw an image above the text. Or you can use a vertical linear layout as the view element (wtih an image and a text). On 1 March 2011 11:13, monty neilm30s...@gmail.com wrote: yes.. i have checked that code.But here he is not displaying any text when the Gallery is scrolled.So any solution?Am i missing some API or something in the code i sent you.? On Mar 1, 2:59 pm, Gergely Juhász jg.sv...@gmail.com wrote: what do you think about this: http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html it's a nice cover flow using the gallery On 1 March 2011 10:41, monty neilm30s...@gmail.com wrote: Yes the data displaying is correct.The parsing is fine.The only issue is its not working like your app where you are highlighting the centre item of the Gallery and displaying it.Could u then please give a brief view of yourcode.Are you also using getView() and implementing the code? On Mar 1, 2:35 pm, Justin Anderson magouyaw...@gmail.com wrote: Well... I didn't notice anything that wrong with your code (but I may have missed something). Have you checked your parsing code to make sure that the data is accurate once you've parsed the xml? On Tue, Mar 1, 2011 at 2:23 AM, monty neilm30s...@gmail.com wrote: Hi Here clip_model is an arraylist that will hold the data of xml we parse.And here i am getting the data for from that arraylist using the position variable. Also i went thru your app ,thats exactly what i want for my app. On Mar 1, 1:33 pm, Justin Anderson magouyaw...@gmail.com wrote: What is clip_model? On Tue, Mar 1, 2011 at 12:32 AM, monty neilm30s...@gmail.com wrote: Hi, Following is part of code from the Activity.Hope the code will be clear enough for you to understand.Please let me know how to resolve this issue.It would be really helpful. setContentView(R.layout.chapter_clips); //will have Gallery,WebView and TextView.The WebView and TextView data has to be changed when i scroll the Gallery,so i call the Webview and TextView in the getView() of the adapter. Gallery g = (Gallery) findViewById(R.id.gallery); g.setAdapter(new ImageAdapter(this));//calling the Adapter class g.setAnimationDuration(3000); g.setOnItemSelectedListener(this); public class ImageAdapter extends BaseAdapter { int
[android-developers] Re: Lock status bar
@Kevin : I try to lock the status bar with your code. But it dosen't work. To edit the STATUS_BAR permission, the application must be signed with the key which used to sign the platform. - It's not possible to do it in an normal app... On 4 mar, 09:48, Marcin Orlowski webnet.andr...@gmail.com wrote: On 4 March 2011 01:18, lbendlin l...@bendlin.us wrote: The stock phone app does not lock on my N1. It does, when you are on a call. If you are browsing i.e. call log, or dialing then it works normally. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Issue with Test class SingleLaunchActivityTestCase
Hi, We're developping a test activity using SingleLaunchActivityTestCase and JUnit on Android 2.3.3 We face the following issue : In JUnit view in eclipse we have the following function call order : testActivityTestCaseSetUpProperly() - this one is built in android. testA() testB() testC() Each test use sendKeys() or TouchUtils.clickView(). On testC() sometimes we get this error : W/InputDispatcher( 112): Permission denied: injecting event from pid 3753 uid 10001 to window with input channel 406a0b70 com.android.launcher/com.android.launcher2.Launcher (server) owned by uid 10022 ??? Launcher (desktop) get Events ??? We do nothing for that So I put a Thread.sleep(5000) in testC() at the beginning. I launch the test again : testActivityTestCaseSetUpProperly() : Ok testA() : Ok testB() : Ok Here application is put in background (for no reason we do not call activity.finish() and co.) testC() is launched but desktop is display. The test failed as we cannot inject events to desktop. The workaround for this is to create a dummy test() function in that way, testC() is executed before activity get closed. testActivityTestCaseSetUpProperly() : Ok testA() : Ok testB() : Ok testC() : Ok test() : don't care of result. NOTE : sometimes the function order change : testA() testB() testC() testActivityTestCaseSetUpProperly() In that way, the issue is not visible. Hope it helps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Issue with Test class SingleLaunchActivityTestCase
I notice this in SingleLaunchActivityTestCase.java: @Override protected void tearDown() throws Exception { // If it is the last test case, call finish on the activity. sTestCaseCounter --; if (sTestCaseCounter == 1) { sActivity.finish(); } super.tearDown(); } This : if (sTestCaseCounter == 1) should be replaced by if (sTestCaseCounter == 0) ? Regards. On 4 mar, 11:41, cg-dev charles.gorand@gmail.com wrote: Hi, We're developping a test activity using SingleLaunchActivityTestCase and JUnit on Android 2.3.3 We face the following issue : In JUnit view in eclipse we have the following function call order : testActivityTestCaseSetUpProperly() - this one is built in android. testA() testB() testC() Each test use sendKeys() or TouchUtils.clickView(). On testC() sometimes we get this error : W/InputDispatcher( 112): Permission denied: injecting event from pid 3753 uid 10001 to window with input channel 406a0b70 com.android.launcher/com.android.launcher2.Launcher (server) owned by uid 10022 ??? Launcher (desktop) get Events ??? We do nothing for that So I put a Thread.sleep(5000) in testC() at the beginning. I launch the test again : testActivityTestCaseSetUpProperly() : Ok testA() : Ok testB() : Ok Here application is put in background (for no reason we do not call activity.finish() and co.) testC() is launched but desktop is display. The test failed as we cannot inject events to desktop. The workaround for this is to create a dummy test() function in that way, testC() is executed before activity get closed. testActivityTestCaseSetUpProperly() : Ok testA() : Ok testB() : Ok testC() : Ok test() : don't care of result. NOTE : sometimes the function order change : testA() testB() testC() testActivityTestCaseSetUpProperly() In that way, the issue is not visible. Hope it helps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Can Android widgets be homescreen aware?
Kostya, Please can you guide me as to the specific things on my list and the broadcast actions? Many thanks! On Mar 4, 9:52 am, Kostya Vasilyev kmans...@gmail.com wrote: The interaction is the opposite - a widget provides a RemoteViews object which is used to render the widget without any further involvement by the widget provider. For some of the things you asked about, though, there are broadcast actions you can catch and update your widget as necessary 04.03.2011 12:49 пользователь babeinwoods vivek.pun...@gmail.com написал: So when homescreen renders itself, it leaves no signals that apps/ widgets could catch and act on? On Mar 3, 8:02 pm, Justin Anderson magouyaw...@gmail.com wrote: AFAIK this is not possible On Thu, Mar 3, 2011 at 11:59 AM, babeinwoods vivek.pun...@gmail.com wrote: Do Android homescreen widgets know when user returns to that homescreen? Specifically, can a widget know (and use this knowledge) when a user comes back to that homescreen after: - unlocking the device - swiping back from another homescreen - completing a phone call - closing an app - closing a popup - pressing dedicated home soft/hard button - closing all-app list etc I want to update the content upon every return to homescreen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Demo Applications
Hi, I am an idea for an App in which there is a view like facebook's wall. i.e. Profile picture, then username and then the wallPost contents. Profile picture, then username and then the wallPost contents. -- This is repeated many times. I know how to create listViews with space for the picture, username and wallPost contents. But I dont know how to load the picture from facebook even though I have the profile ID. Is there any example whose code I can look and learn? Are there any open source Android Apps which integrate with Facebook? Which is the best place to look for these examples? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Demo Applications
Hi, I am an idea for an App in which there is a view like facebook's wall. i.e. Profile picture, then username and then the wallPost contents. Profile picture, then username and then the wallPost contents. -- This is repeated many times. I know how to create listViews with space for the picture, username and wallPost contents. But I dont know how to load the picture from facebook even though I have the profile ID. Is there any example whose code I can look and learn? Are there any open source Android Apps which integrate with Facebook? Which is the best place to look for these examples? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can Android widgets be homescreen aware?
Unlocking the device: http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_PRESENT Completing a phone call: http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED http://developer.android.com/reference/android/telephony/PhoneStateListener.html There is no specific state for when a call is completed, so you have to watch for transition to CALL_STATE_IDLE. -- Kostya 04.03.2011 14:42, babeinwoods пишет: Kostya, Please can you guide me as to the specific things on my list and the broadcast actions? Many thanks! On Mar 4, 9:52 am, Kostya Vasilyevkmans...@gmail.com wrote: The interaction is the opposite - a widget provides a RemoteViews object which is used to render the widget without any further involvement by the widget provider. For some of the things you asked about, though, there are broadcast actions you can catch and update your widget as necessary 04.03.2011 12:49 пользователь babeinwoodsvivek.pun...@gmail.com написал: So when homescreen renders itself, it leaves no signals that apps/ widgets could catch and act on? On Mar 3, 8:02 pm, Justin Andersonmagouyaw...@gmail.com wrote: AFAIK this is not possible On Thu, Mar 3, 2011 at 11:59 AM, babeinwoodsvivek.pun...@gmail.com wrote: Do Android homescreen widgets know when user returns to that homescreen? Specifically, can a widget know (and use this knowledge) when a user comes back to that homescreen after: - unlocking the device - swiping back from another homescreen - completing a phone call - closing an app - closing a popup - pressing dedicated home soft/hard button - closing all-app list etc I want to update the content upon every return to homescreen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Demo Applications
Official Facebook SDK for Android: https://github.com/facebook/facebook-android-sdk/ Facebook mobile devices forum: http://forum.developers.facebook.net/viewforum.php?id=9 -- Kostya 04.03.2011 14:47, noob_boy пишет: Hi, I am an idea for an App in which there is a view like facebook's wall. i.e. Profile picture, then username and then the wallPost contents. Profile picture, then username and then the wallPost contents. -- This is repeated many times. I know how to create listViews with space for the picture, username and wallPost contents. But I dont know how to load the picture from facebook even though I have the profile ID. Is there any example whose code I can look and learn? Are there any open source Android Apps which integrate with Facebook? Which is the best place to look for these examples? Thanks a lot. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fragments for Google Maps add on?
On Fri, Mar 4, 2011 at 12:37 AM, Dianne Hackborn hack...@android.com wrote: Sorry, nothing scheduled. There is nothing preventing you from writing a little code to put MapView in your own fragment, is there? The bigger issue is that MapView has to be in a MapActivity, and there may be some problems there: http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb I have not yet tried this personally, as I was waiting for the backwards-compatibility library before diving headlong into fragments (and many thanks for that library!). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sony xperia x10, power button not working for my apps
hi any update On Thu, Mar 3, 2011 at 1:07 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi all, I develop a application, from application, if you press the power button to lock, and then unlock it, it will ask for password, it is working in HTC desire, motorola, but not working in Sony Ericsson Xperia 10. Have any one any openion on this, whether any setting is required or the power button pressed in Xperia is different behaviour than other device. --RKJ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SurfaceView is taking upto 10 seconds to be displayed!!!!
Hi, I am using ginger bread. I have two views in my xml file based on state i am setting one view as visible and another as gone. One of the two views has SurfaceView. Some times while moving between these two views the surfaceview is taking 10 seconds to be created and displayed to user. Mean while if touches the screen i am not getting any ANR. Why surface view is taking 10 seconds to be created? How to use surface view to prevent this? Is there any bug in the ginger bread code? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to use the static fragment library in legacy apps?
Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SurfaceView is taking upto 10 seconds to be displayed!!!!
When i moving from other view to surface view, other view is being shown on top the surface view. On Mar 4, 5:22 pm, Pink sivareddy.j...@gmail.com wrote: Hi, I am using ginger bread. I have two views in my xml file based on state i am setting one view as visible and another as gone. One of the two views has SurfaceView. Some times while moving between these two views the surfaceview is taking 10 seconds to be created and displayed to user. Mean while if touches the screen i am not getting any ANR. Why surface view is taking 10 seconds to be created? How to use surface view to prevent this? Is there any bug in the ginger bread code? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: is javamail-android API work with other smtp server...
David, your message is an offtopic in this thread, but look at this slide: http://www.slideshare.net/rocboronat/hello-googlemaps Look for the 15th slide. And use your own .keystore instead of the debug debug.keystore. Bests, Roc Boronat http://rocboronat.net 2011/3/4 David Toledo dtole...@gmail.com Hi All How could the get the production key for The Google Maps API Thanks 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] XMLSerializer problem appending
I'm trying to save data to the sdcard. Currently I have a working if ( xmlFile.createNewFile() ) { //Creating a new XML File Thus count = 1 we are the first entry Appending = false; Write = new FileWriter(xmlFile, false); count = 1; serializer.setOutput(Write); serializer.startDocument(UTF-8, false); serializer.startTag(null, ROOT); } else { // Appending to XML File Appending = true; Write = new FileWriter(xmlFile, true); try { // Determine the current Number of records DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); Document Doc = factory.newDocumentBuilder().parse(xmlFile); NodeList nodes = Doc.getElementsByTagName(Client); count = nodes.getLength() + 1; } catch(Exception e) { throw new RuntimeException(e); } serializer.setOutput(Write); } serializer.setFeature(http://xmlpull.org/v1/doc/features.html#indent-output;, true); ... ...Write the XML File This produces after two runs ?xml version='1.0' encoding='UTF-8' standalone='no' ? ROOT Client Nameqwerty/Name Codeqwe-0001/Code /Client /ROOTClientNamegghhjj/NameCodeggh-0002/Code/Client I expected ?xml version='1.0' encoding='UTF-8' standalone='no' ? ROOT Client Nameqwerty/Name Codeqwe-0001/Code /Client Client Namegghhjj/Name Codeggh-0002/Code /Client /ROOT How do I correct this ? 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] sms compose activity
Hi, I can start SMS compose activity by Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(sms:#)); startActivity(intent); Is it possible to set the phone number or contact id? (the To field of the activity) Thanks, Tamás -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot always launch DevicePolicyManager activity from another activity
Hi, I have some strange problem. When I try to launch DevicePolicyManager activity from my main activity, it loads properly. However, when I make a notification, call QuestionActivity (if user clicks the notification), and then try to call DevicePolicyManager activity from QuestionActivity, I get (logcat): INFO/ActivityManager(104): Starting activity: Intent { act=android.app.action.ADD_DEVICE_ADMIN cmp=com.android.settings/.DeviceAdminAdd (has extras) } WARN/InputManagerService(104): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub $Proxy@4514a2d0 And nothing appears. This is strange for me, cause I'm able to launch different Android OS activity from QuestionActivity: //This works Intent intent = new Intent(Settings.ACTION_BLUETOOTH_SETTINGS); startActivity(intent); But I cannot launch the DevicePolicyManager with: //This works from main activity, but not from QuestionActivity MyDeviceAdmin admin = new MyDeviceAdmin(this); Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, admin.getDeviceAdminComponent()); intent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION, Additional text explaining why this needs to be added.); startActivityForResult(intent, 234234234); I would be very grateful for any help, cause I'm completely stuck. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Can Android widgets be homescreen aware?
Thanks Kostya! On Mar 4, 11:55 am, Kostya Vasilyev kmans...@gmail.com wrote: Unlocking the device: http://developer.android.com/reference/android/content/Intent.html#AC... Completing a phone call: http://developer.android.com/reference/android/telephony/TelephonyMan... http://developer.android.com/reference/android/telephony/PhoneStateLi... There is no specific state for when a call is completed, so you have to watch for transition to CALL_STATE_IDLE. -- Kostya 04.03.2011 14:42, babeinwoods О©╫О©╫О©╫О©╫О©╫: Kostya, Please can you guide me as to the specific things on my list and the broadcast actions? Many thanks! On Mar 4, 9:52 am, Kostya Vasilyevkmans...@gmail.com wrote: The interaction is the opposite - a widget provides a RemoteViews object which is used to render the widget without any further involvement by the widget provider. For some of the things you asked about, though, there are broadcast actions you can catch and update your widget as necessary 04.03.2011 12:49 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ babeinwoodsvivek.pun...@gmail.com О©╫О©╫О©╫О©╫О©╫О©╫О©╫: So when homescreen renders itself, it leaves no signals that apps/ widgets could catch and act on? On Mar 3, 8:02 pm, Justin Andersonmagouyaw...@gmail.com wrote: AFAIK this is not possible On Thu, Mar 3, 2011 at 11:59 AM, babeinwoodsvivek.pun...@gmail.com wrote: Do Android homescreen widgets know when user returns to that homescreen? Specifically, can a widget know (and use this knowledge) when a user comes back to that homescreen after: - unlocking the device - swiping back from another homescreen - completing a phone call - closing an app - closing a popup - pressing dedicated home soft/hard button - closing all-app list etc I want to update the content upon every return to homescreen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use the static fragment library in legacy apps?
Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Install % drop again?
My app Radar Now! has held steady at 55% over the last six months. That's with nearly 1.5 million downloads. I think everything, market statistics wise, is stable at the moment. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Try to implement coverflow animation using Gallery
* how do you get the image at the center when selected or scrolling and have its text displayed?* I'm not sure I know what you mean... By definition a Gallery widget is A view that shows items in a center-locked, horizontally scrolling list. That is taken directly from the docs for the Gallery: http://developer.android.com/reference/android/widget/Gallery.html On Fri, Mar 4, 2011 at 3:22 AM, monty neilm30s...@gmail.com wrote: how do you get the image at the center when selected or scrolling and have its text displayed? On Mar 3, 7:56 pm, Justin Anderson magouyaw...@gmail.com wrote: It returns the text that should be displayed displayed for the item at the given position On Mar 3, 2011 4:27 AM, monty neilm30s...@gmail.com wrote: What does the getItemText(int pos) method in your code do? On Mar 1, 7:26 pm, Justin Anderson magouyaw...@gmail.com wrote: The way I implemented mine in AppSwipe! is a little complex... Here is a quick overview of what I did: - I subclassed RelativeLayout and created a new class called TitledGallery that holds the Gallery and two TextViews (for reusability reasons because I have up to 5 of these in the main display) - My image adapter has the following method: public String getItemText(int pos) - My getView method only deals with the ImageView in the Gallery... It does not change the text in the view - I implemented onItemSelectedListener and put this listener on my Gallery - I update the text in OnItemsSelectedListener.onItemSelected() and OnItemSelectedListener.onNothingSelected() Hope that helps! On Tue, Mar 1, 2011 at 4:29 AM, monty neilm30s...@gmail.com wrote: Sorry the apps name is AppSwipe On Mar 1, 3:53 pm, monty neilm30s...@gmail.com wrote: Actually my requirement is that when when the gallery is scrolled there will be a TextView at bottom of Gallery that will display the name of the image or some information related to that image.Now i want that when i scroll and stop the Gallery the image in the middle of Gallery should have its data displayed in the TextView.You can check the above code i have posted. There is an AppAwipe app that does this.Check it out and you will understand my requirement. Please let me know if any solution. On Mar 1, 3:29 pm, Gergely Juhász jg.sv...@gmail.com wrote: sorry for the syntax: What if you use TextViews instead of using ImageViews? On 1 March 2011 11:28, Gergely Juhász jg.sv...@gmail.com wrote: What is you use TextView instead of using image views. TexView has an attribute android:drawableTop. With that you can simple draw an image above the text. Or you can use a vertical linear layout as the view element (wtih an image and a text). On 1 March 2011 11:13, monty neilm30s...@gmail.com wrote: yes.. i have checked that code.But here he is not displaying any text when the Gallery is scrolled.So any solution?Am i missing some API or something in the code i sent you.? On Mar 1, 2:59 pm, Gergely Juhász jg.sv...@gmail.com wrote: what do you think about this: http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html it's a nice cover flow using the gallery On 1 March 2011 10:41, monty neilm30s...@gmail.com wrote: Yes the data displaying is correct.The parsing is fine.The only issue is its not working like your app where you are highlighting the centre item of the Gallery and displaying it.Could u then please give a brief view of yourcode.Are you also using getView() and implementing the code? On Mar 1, 2:35 pm, Justin Anderson magouyaw...@gmail.com wrote: Well... I didn't notice anything that wrong with your code (but I may have missed something). Have you checked your parsing code to make sure that the data is accurate once you've parsed the xml? On Tue, Mar 1, 2011 at 2:23 AM, monty neilm30s...@gmail.com wrote: Hi Here clip_model is an arraylist that will hold the data of xml we parse.And here i am getting the data for from that arraylist using the position variable. Also i went thru your app ,thats exactly what i want for my app. On Mar 1, 1:33 pm, Justin Anderson magouyaw...@gmail.com wrote: What is clip_model? On Tue, Mar 1, 2011 at 12:32 AM, monty neilm30s...@gmail.com wrote: Hi, Following is part of code from the Activity.Hope the code will be clear enough for you to understand.Please let me know how to resolve this issue.It would be really helpful. setContentView(R.layout.chapter_clips); //will have
Re: [android-developers] Dynamic code for views in layout
Cool. Have fun. On Fri, Mar 4, 2011 at 2:02 AM, Jayanthi jaia...@gmail.com wrote: Hi, I want to set 10 to 15 dynamic labels programmatically in layout without using xml files -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] help for Custom Expanded View
http://developer.android.com/resources/browser.html?tag=widgets On Thu, Mar 3, 2011 at 10:15 PM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi justin, thankx for your reply. Now i have change my mind and want to add widget to my app. i have seen code of android native player. i have one mediaplayback class. and one mediaplaybackactivity class. My questions are:- 1.i have to extend service in my mediaplayback class? 2.how to use broadcast receiver to notify events from widget? 3.how to define actions in appwidget class to notify mediaplayback class aboout next,prevoius...events? if u have any reference for widget example for music player than pls provide 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help Getting the Context
I'm sure that this is a basic question that must have been answered a 100 times but I googled to no avail. Maybe I am going about this the wrong way. I am creating a class that is not an Activity or a Service. I need that class to be able to get a hold of, for example, the Location Manager. If I had a context I would call (LocationManger)context.getSystemService(...) How do I obtain a context in this situation? I would prefer not passing in the context to the class constructor. Am I fundamentally misunderstanding this environment? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Help Getting the Context
One alternative is to look for, or create, a public singleton. A public singleton is a class that (1) ever only has one instance, and (2) that instance can be located from anywhere by means of a static method. One candidate for singleton status is Application -- it is a Context, and you expect there'll only be one of them. In your extension of Application, have the constructor save 'this' to a static field, and have a public static method to get the saved reference. Voi la, you can now get a useful Context from anywhere. Most apps don't use an Application extension, but you can use this pattern on pretty much any class. On Mar 4, 9:38 am, Jake Colman col...@ppllc.com wrote: I'm sure that this is a basic question that must have been answered a 100 times but I googled to no avail. Maybe I am going about this the wrong way. I am creating a class that is not an Activity or a Service. I need that class to be able to get a hold of, for example, the Location Manager. If I had a context I would call (LocationManger)context.getSystemService(...) How do I obtain a context in this situation? I would prefer not passing in the context to the class constructor. Am I fundamentally misunderstanding this environment? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help Getting the Context
I would prefer not passing in the context to the class constructor. Am I fundamentally misunderstanding this environment? You have to extend any Context existing context subclass to get valid Context and for obvious reason there's no static getContext() method Pick up a victim, dependig on what your class is doing: http://developer.android.com/reference/android/content/Context.html or extend Application -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Help Getting the Context
Hari, Yes, I am familiar with singletons. As a mtter ofr fact, the class that I am creating is going to be a singleton - which is why I don't want to construct it with a context. So your suggestion is that I extend the Application class using the singleton pattern? And my extension saves 'this' (the context) as a static member of my singleton? So now I have to see how to extend the application class. Thanks. ...Jake HE == Hari Edo hari@gmail.com writes: HE One alternative is to look for, or create, a public singleton. A HE public singleton is a class that (1) ever only has one instance, HE and (2) that instance can be located from anywhere by means of a HE static method. HE One candidate for singleton status is Application -- it is a HE Context, and you expect there'll only be one of them. In your HE extension of Application, have the constructor save 'this' to a HE static field, and have a public static method to get the saved HE reference. Voi la, you can now get a useful Context from HE anywhere. Most apps don't use an Application extension, but you HE can use this pattern on pretty much any class. HE On Mar 4, 9:38 am, Jake Colman col...@ppllc.com wrote: I'm sure that this is a basic question that must have been answered a 100 times but I googled to no avail. Maybe I am going about this the wrong way. I am creating a class that is not an Activity or a Service. I need that class to be able to get a hold of, for example, the Location Manager. If I had a context I would call (LocationManger)context.getSystemService(...) How do I obtain a context in this situation? I would prefer not passing in the context to the class constructor. Am I fundamentally misunderstanding this environment? -- Jake Colman -- Android Tinkerer HE -- HE You received this message because you are subscribed to the Google HE Groups Android Developers group. HE To post to this group, send email to android-developers@googlegroups.com HE To unsubscribe from this group, send email to HE android-developers+unsubscr...@googlegroups.com HE For more options, visit this group at HE http://groups.google.com/group/android-developers?hl=en -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do you exclude sales to a specific country?
Thank you for the link but, the layout has changed since that document lists a section for Publishing Options, Locations but it looks like that was removed and replaced with Content Rating and Pricing. If I remove the country from the pricing by unchecking is that suppose to do the same thing? On Mar 3, 8:56 am, TreKing treking...@gmail.com wrote: On Thu, Mar 3, 2011 at 7:22 AM, gcstang gcst...@gmail.com wrote: If you have an application that you want to be sold in all countries except for say one how can you do this? Is this done in the Developer Console, AndroidManifest, or something else? http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswe... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Total install numbers
On Wed, Mar 2, 2011 at 5:54 PM, Hendrik Greving fourhend...@gmail.comwrote: Hi! Why is there a big difference of Total installs from the publishers website and the number of people who actually bought my app? Because the Developer Console does not work. Use it as a *very* rough estimate, but don't believe a word it says. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] errors while compiling WebKit with SVG ENABLE option.
On Tue, Mar 1, 2011 at 4:18 AM, Illyoung Choi bugs...@gmail.com wrote: I downloaded entire platform codes and successfully compiled with default option without any modification. Try the platform or porting group for questions regarding building the source. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Creating separate versions of apps for tablets
Use screen size and the supports-screens tag in your AndroidManifest.xml file. For tablets, you'd support xlarge. The Market will filter based on the device and your values. - dave On Mar 4, 1:21 am, Zsolt Vasvari zvasv...@gmail.com wrote: For now, you could set the targetSDK to 11 for the phone version and the minSDK and targetSDK = 11 for the tablet version. In the future this won't work as presumably the SDKs will merge at some point and both the phones and tablets will run a version 11. On Mar 4, 1:16 pm, Stephen Lebed srle...@gmail.com wrote: I wanted to know if there is a way to differentiate apps on the market between tablets and phone-like devices. On the Apple platform, developers can create an ipad version and charge more for it verses their iphone version. I'd like to be able to do the same. Is there a way to do this? I tried setting the max sdk version, but then read that its no longer read after os2.01. Thanks, Stephen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cursor management issue with Honeycomb
I can confirm this as well. Removing the FilterQueryProvider doesn't help. So there might be other reasons for it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Refreshing ListView data within an Activity every 5-10 seconds, which approach to take?
Thanks for the replies. I should clarify some of the points you both mentioned. This server is not in my control at all, so any kind of push would be out of the question I suppose. I only want to pull in short increments if the user is actively using the Activity in question, not if the phone is locked, or they're in another app, or even in my app but in another Activity. I know I could refresh the init method I have which kicks off the thread to pull new data but given the ProgressDialog it shows, I think it would be annoying to see that so frequently when the user isn't actively requesting it. If I use the small loading icon, I suspect since the UI and data pull are running on different threads it wouldn't lock up the UI on the end user but I'll need to test that for performance/responsiveness. Maybe I'll give that a shot and see how it goes. Long term, I would like to do this in longer intervals (30+ minutes) when the user is not actively in the app or on this Activity and toss up a notification if something interesting happens with the new data. While also retaining the 5-10 second interval when they are actively looking at this Activity. Long term... :) -- Chris Stewart http://chriswstewart.com On Fri, Mar 4, 2011 at 4:22 AM, Kostya Vasilyev kmans...@gmail.com wrote: It just depends on what kind of server you're dealing with. If it's your own, you could implement a simple push scheme by keeping the TCP/IP connection open after the initial data download, and having the server send new data over this connection. The client would just check every few seconds if the socket has readable data, and if so, read it and update the UI. A variation of this would use two connections, one for notifications, and one for data. As far as the UI goes - first, you could display the standard progress wheel in the activity's title bar, second, you could add a special footer to your list view that says Loading... and is then pushed out of sight by the new data item. -- Kostya 04.03.2011 7:14, Chris Stewart пишет: I have a service I'm pulling data from and they suggest doing so every 5-10 seconds it's designed to be a near-real-time experience. I'm currently pulling this information down and displaying it in a ListView. During the initial load, I toss up a basic ProgressDialog so the user knows information is being loaded. However, introducing that automatically in such a short increment of time would be an annoying user experience. Is there a nice way to approach this problem in Android? I'd like to be able to run an update on the data I'm pulling from the web without disrupting the end user's experience. Ideally, not even disrupting them if they happen to be scrolling the view. The data itself will always be additions to data that's already been pulled down, so essentially I'm adding records to my Adapter every 5-10 seconds. -- Chris Stewart http://chriswstewart.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 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unable to use Fragmentation API with android compatibility package
In http://android-developers.blogspot.com/2011/03/fragments-for-all.html Xavier Ducrohet, Android SDK Tech Lead says Google releases an Android Compatibility Package by SDK Manager. I've installed it, but, how i can use it now? how can i integrate Android Compatibility Package in my project? 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] Moving an image in android
Hi everyone, I am very new to android and am trying to make a game that requires users to change the layout of a set of images to a new layout. If the new layout is correct they get promoted to the next level. I want to make the images dragable. Can anyone please tell me the code for dragging an image? I know how to draw it and how to check its new position but I don't know how to make it drag and drop. Thanks -- Raghav Sood http://www.raghavsood.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use the static fragment library in legacy apps?
Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help Getting the Context
On Mar 4, 9:54 am, Jake Colman col...@ppllc.com wrote: So your suggestion is that I extend the Application class using the singleton pattern? And my extension saves 'this' (the context) as a static member of my singleton? So now I have to see how to extend the application class. Yes, indeed. Extend android.app.Application. In your manifest, your application tag refers to the class that should be constructed for the Application. It's usually left to be the default, Application, but you simply name your Application extension class there, and Android constructs your class instead of the default. It gets its own onCreate()/onDestroy() lifecycle that spans all activities. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 the static fragment library in legacy apps?
under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do you exclude sales to a specific country?
On Fri, Mar 4, 2011 at 9:00 AM, gcstang gcst...@gmail.com wrote: If I remove the country from the pricing by unchecking is that suppose to do the same thing? Yes. It's a terrible UI. That grouping is to select the countries it's available in, and *in addition*, allows you to set the price per country you support. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use the static fragment library in legacy apps?
Ok, but it must be executed on HoneyComb (look at default.properties target=android-11). I'm unable to lunch it on android 1.6. Is the library for android 1.6? 2011/3/4 marlan marlan12...@googlemail.com under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SurfaceView is taking upto 10 seconds to be displayed!!!!
Any help please. On Mar 4, 5:34 pm, Pink sivareddy.j...@gmail.com wrote: When i moving from other view to surface view, other view is being shown on top the surface view. On Mar 4, 5:22 pm, Pink sivareddy.j...@gmail.com wrote: Hi, I am using ginger bread. I have two views in my xml file based on state i am setting one view as visible and another as gone. One of the two views has SurfaceView. Some times while moving between these two views the surfaceview is taking 10 seconds to be created and displayed to user. Mean while if touches the screen i am not getting any ANR. Why surface view is taking 10 seconds to be created? How to use surface view to prevent this? Is there any bug in the ginger bread code? 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] is LVL server down?
Hi, Is it just me or anyone else is also having problems with LVL? No matter what I do, what account I use (dev or test) i always get RETRY response. App is unpublished at the moment, but I even tried to publish/unpublish in case this could matter. -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 the static fragment library in legacy apps?
I always have below error 03-04 17:29:01.800: ERROR/AndroidRuntime(448): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader@44e83790 On 4 Mar, 16:52, Alessio Grumiro a.grum...@gmail.com wrote: Ok, but it must be executed on HoneyComb (look at default.properties target=android-11). I'm unable to lunch it on android 1.6. Is the library for android 1.6? 2011/3/4 marlan marlan12...@googlemail.com under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ListView update problem.
Just before you call this.notifyDataSetChanged(), do you modify the arrays scripVector, closeVector and changeVector? BTW: I see a LOG message that examines the count of list-view childer (aView.getChildCount()). The number of children in the list-view (aView) is not the same as the number of items in your adapter (i.e. the range of values that the 'position' can take in getView). The getChildCount is never larger than the items in the list-view that are currently (partially) visible in the listview, while the number of items in your adapter can be much much larger. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: XMLSerializer problem appending
You append to the file, not the the ROOT element. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 the static fragment library in legacy apps?
To get the example working, I just had to manually copy the 'android- support-v4.jar' from '/extras/android/compatibility/v4' into the libs folder of the project as well as add it to the build path. Lessons I've learned in the past few hours while playing with this: - Ensure all of your activities that you want to take advantage of this API extend FragmentActivity - Ensure you are using the 'android.support.v4.app.' versions of the Fragment API and not 'android.app'. -Dan On Mar 4, 10:30 am, Premier a.grum...@gmail.com wrote: I always have below error 03-04 17:29:01.800: ERROR/AndroidRuntime(448): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader@44e83790 On 4 Mar, 16:52, Alessio Grumiro a.grum...@gmail.com wrote: Ok, but it must be executed on HoneyComb (look at default.properties target=android-11). I'm unable to lunch it on android 1.6. Is the library for android 1.6? 2011/3/4 marlan marlan12...@googlemail.com under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Unable to use Fragmentation API with android compatibility package
Have you tried copying the JAR that was download with that package into your Android project (and adding it to your Java library path)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] is LVL server down?
On Fri, Mar 4, 2011 at 10:24 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: Is it just me or anyone else is also having problems with LVL? http://groups.google.com/group/android-developers/browse_thread/thread/dad807c3d5bc83da/62b5b96c525f91e2http://groups.google.com/group/android-developers/browse_thread/thread/dad807c3d5bc83da/62b5b96c525f91e2?lnk=raot - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use the static fragment library in legacy apps?
If it helps, ApiDemos has all of the same fragment samples as the ones originally released for HC, but using this library. You can run them from App/Fragment Support in the UI, and the code is the Fragment*Support.java files that are right next to the existing ones for the HC framework. Also be sure to look at the source for FragmentActivity.java, which has some documentation in the class java doc giving an overview. On Fri, Mar 4, 2011 at 8:53 AM, Dan Watling daniel.watl...@gmail.comwrote: To get the example working, I just had to manually copy the 'android- support-v4.jar' from '/extras/android/compatibility/v4' into the libs folder of the project as well as add it to the build path. Lessons I've learned in the past few hours while playing with this: - Ensure all of your activities that you want to take advantage of this API extend FragmentActivity - Ensure you are using the 'android.support.v4.app.' versions of the Fragment API and not 'android.app'. -Dan On Mar 4, 10:30 am, Premier a.grum...@gmail.com wrote: I always have below error 03-04 17:29:01.800: ERROR/AndroidRuntime(448): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader@44e83790 On 4 Mar, 16:52, Alessio Grumiro a.grum...@gmail.com wrote: Ok, but it must be executed on HoneyComb (look at default.properties target=android-11). I'm unable to lunch it on android 1.6. Is the library for android 1.6? 2011/3/4 marlan marlan12...@googlemail.com under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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: Lock status bar
Yes applications can't do this. There is really no use in continuing a discussion about this. You can't do it. On Fri, Mar 4, 2011 at 2:30 AM, Tom thomas.coz...@gmail.com wrote: @Kevin : I try to lock the status bar with your code. But it dosen't work. To edit the STATUS_BAR permission, the application must be signed with the key which used to sign the platform. - It's not possible to do it in an normal app... On 4 mar, 09:48, Marcin Orlowski webnet.andr...@gmail.com wrote: On 4 March 2011 01:18, lbendlin l...@bendlin.us wrote: The stock phone app does not lock on my N1. It does, when you are on a call. If you are browsing i.e. call log, or dialing then it works normally. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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: Help Getting the Context
On Mar 4, 10:40 am, Hari Edo hari@gmail.com wrote: Yes, indeed. Extend android.app.Application. ... Android constructs your class instead of the default. It gets its own onCreate()/onDestroy() lifecycle that spans all activities. Clarification: Application has no onDestroy() and you can't rely on the onTerminate() either. Android can kill a process without notifying the Application class instance, so if anyone adds other features besides the singleton pattern, take care in holding onto any kind of resource that needs to be committed/saved/closed/freed for a clean termination. In fact, better if you don't hold any such resource open/uncommitted at all, if you can help it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help Getting the Context
On Fri, Mar 4, 2011 at 8:38 AM, Jake Colman col...@ppllc.com wrote: I am creating a class that is not an Activity or a Service. I need that class to be able to get a hold of, for example, the Location Manager. If I had a context I would call (LocationManger)context.getSystemService(...) How do I obtain a context in this situation? Is there a reason you can't pass the Context as a parameter to the function that actually needs it? Or get access to the LocationManager at a higher level, where you have a Context, and then pass that a parameter? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Lock status bar
On Fri, Mar 4, 2011 at 11:33 AM, Dianne Hackborn hack...@android.comwrote: Yes applications can't do this. There is really no use in continuing a discussion about this. You can't do it. Dianne, do you know if there's a reason the stock Phone Dialer does do this? I'm very curious what the logic is behind disabling the user's status bar when the phone is in use. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Lock status bar
On Fri, Mar 4, 2011 at 9:57 AM, TreKing treking...@gmail.com wrote: On Fri, Mar 4, 2011 at 11:33 AM, Dianne Hackborn hack...@android.comwrote: Yes applications can't do this. There is really no use in continuing a discussion about this. You can't do it. Dianne, do you know if there's a reason the stock Phone Dialer does do this? I'm very curious what the logic is behind disabling the user's status bar when the phone is in use. Well it was requested from the UI designers at some point. This may come from before there was a proximity sensor, to avoid accidentally pulling down the notifications with your cheek. -- 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: Lock status bar
My 2c, if possible this should be removed when there is a proximity sensor. Really irritating not to be able to see that email or go back to nav using the notification when in speaker-phone/bluetooth mode. I know, not the forum, but... Thanks!! On Fri, Mar 4, 2011 at 1:06 PM, Dianne Hackborn hack...@android.com wrote: On Fri, Mar 4, 2011 at 9:57 AM, TreKing treking...@gmail.com wrote: On Fri, Mar 4, 2011 at 11:33 AM, Dianne Hackborn hack...@android.comwrote: Yes applications can't do this. There is really no use in continuing a discussion about this. You can't do it. Dianne, do you know if there's a reason the stock Phone Dialer does do this? I'm very curious what the logic is behind disabling the user's status bar when the phone is in use. Well it was requested from the UI designers at some point. This may come from before there was a proximity sensor, to avoid accidentally pulling down the notifications with your cheek. -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Phantom appwidgets
Hi, There are two ways to create phantom widgets: - try to add a new widget, configuration screen appears, canceling widget creation - try to add a new widget, configuration screen appears, save the widget, there is no place in home screen, canceling After these steps a new appwidget was created and exists in the background, but it isn't visible anywhere. In the first case appwidget isn't configured, but in the second it is. When I get widgets for my provider this appwidget is returned. Nor the app and the user can remove this appwidget. What cause this bug? The OS itself? What can I do to get rid of these widgets without uninstalling my app? Thanks, Tamás -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Phantom appwidgets
This is a bug in Launcher2. Actually, a few of them, appearing in various cases. Some of them got fixed (I forget which and when - you can check http://b.android.com), some others still aren't, it seems. In any case, them being fixed now doesn't help when running on an older version of Android. The only solution I found is to track validity state for each widget id. It's easy to do if you already have a config activity. http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/ -- Kostya 04.03.2011 21:14, b_t пишет: Hi, There are two ways to create phantom widgets: - try to add a new widget, configuration screen appears, canceling widget creation - try to add a new widget, configuration screen appears, save the widget, there is no place in home screen, canceling After these steps a new appwidget was created and exists in the background, but it isn't visible anywhere. In the first case appwidget isn't configured, but in the second it is. When I get widgets for my provider this appwidget is returned. Nor the app and the user can remove this appwidget. What cause this bug? The OS itself? What can I do to get rid of these widgets without uninstalling my app? Thanks, Tamás -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do you exclude sales to a specific country?
This is basic, but what happens when I turn off a country? Suppose there are some people (though not many) who have already bought it? Suppose there are some people who have already downloaded the demo version? What will the experience be like for these people? I opened it up to all countries in the beginning, which I now think was rather stupid. Why would I pass up potential customers? Well, my app has known limitations in some countries. Localization is one, but some things go deeper. There are some who will read the description, accept these limitations, and still want to buy it. But they seem to be outnumbered by those who will not read the description, buy it, and then post a nasty comment about how much money they just wasted. Some will try the demo version, as they should, and then trash that. So I would like to turn some countries off. But what will happen to existing users? Does anyone know? Nathan On Mar 4, 7:45 am, TreKing treking...@gmail.com wrote: On Fri, Mar 4, 2011 at 9:00 AM, gcstang gcst...@gmail.com wrote: If I remove the country from the pricing by unchecking is that suppose to do the same thing? Yes. It's a terrible UI. That grouping is to select the countries it's available in, and *in addition*, allows you to set the price per country you support. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't communicate with NfcB tag
Ok, so I've learned additional, somewhat less than encouraging things. 1. I have a Discover Zip card, no idea what the ISO technology is, all I do know is the Nexus S does not respond at all to this card. 2. I have a Visa NfcB card that will connect as IsoDep, but not as NfcB. 3. I have an Amex NfcB card that will connect as IsoDep, but not as NfcB. 4. I have a MasterCard NfcA card that will connect as IsoDep, but not as NfcA. Any thoughts would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to take advantage of dual-core processing
Can you determine the number of cores at all? On Mar 3, 10:29 pm, webmonkey webmonke...@gmail.com wrote: Let's say you have a task that is suitable for parallel processing. Can you detect the number of cores in Android and then make sure that the threads you create run on each separate core. How would you do this without using RenderScript? (Also, how does RenderScript do it) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Lock status bar
On Fri, Mar 4, 2011 at 12:06 PM, Dianne Hackborn hack...@android.comwrote: Well it was requested from the UI designers at some point. This may come from before there was a proximity sensor, to avoid accidentally pulling down the notifications with your cheek. Thanks for the info. I would second the suggestion to remove this if there's a proximity sensor. It's pretty annoying, IMO =) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do you exclude sales to a specific country?
On Fri, Mar 4, 2011 at 12:29 PM, Nathan critter...@crittermap.com wrote: So I would like to turn some countries off. But what will happen to existing users? Does anyone know? I would guess they keep the app but will no longer find the app in the Market or be able to update. Just a guess, though. As usual, this is one of those things you need someone from the Market to answer - thus you will never get a real answer. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] is LVL server down?
On 4 March 2011 18:12, TreKing treking...@gmail.com wrote: On Fri, Mar 4, 2011 at 10:24 AM, Marcin Orlowski webnet.andr...@gmail.com wrote: Is it just me or anyone else is also having problems with LVL? http://groups.google.com/group/android-developers/browse_thread/thread/dad807c3d5bc83da/62b5b96c525f91e2 Thanks, but (unfortunately) not my case. Since I customised lvl library I suspect I did something stupid there I am unable to track down now. Gonna take a break from this till monday. Head reset is mandatory sometimes :) Have (a nice) weekend. -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Help Getting the Context
Umm...why not create the singleton with the ApplicationContext obtained from getApplicationContext()? It will always be valid, no matter what Activity or other class you are interacting with the singelton instance from. Alternatively, pass it to whatever static function you are calling to get the instance of the singleton. That static function will return a new or cached object as well as setting a private field in the singleton with the correct context. If you are worried about keeping around references to your Activities, which is a valid worry, then never pass an Activity context, always pass the Application context. Jonathan On Mar 4, 9:54 am, TreKing treking...@gmail.com wrote: On Fri, Mar 4, 2011 at 8:38 AM, Jake Colman col...@ppllc.com wrote: I am creating a class that is not an Activity or a Service. I need that class to be able to get a hold of, for example, the Location Manager. If I had a context I would call (LocationManger)context.getSystemService(...) How do I obtain a context in this situation? Is there a reason you can't pass the Context as a parameter to the function that actually needs it? Or get access to the LocationManager at a higher level, where you have a Context, and then pass that a parameter? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Inserted Email addresses now are associated with Facebook
I still don't understand why did it get associated with Facebook. Even if for some reason I had a wrong ID, it would more than likely get associated with the wrong person in my contact list, but that was not the case. Also, when I go through the whole RawContact table, I don't see any entry that is associated with a Facebook account. It seems that Facebook is keeping their data separate from the rest of the contact information. Therefore, again how could the email addresses get associated with Facebook if Facebook doesn't use the ContactsContact tables for its data? I do notice there are holes in the ID sequences in each contactscontract table. It would be a huge coincidence that I used a wrong ID that was associated with one of these holes, somehow associated with Facebook (that I cannot see) and was the right person as well. Right now, I am very reluctant to continue with my testing on a real device, without knowing what happened and how I can avoid it happening again. The emulator does not have these multiple account types and does not have the same querks the real device has. (e.g. Event dates are stored as readable strings on the emulator 01/20/2011, whereas on the real device event dates are stored as a string containing milliseconds since 1/1/1970). On Feb 25, 7:58 pm, Dmitri Plotnikov dplotni...@google.com wrote: I bet the id is wrong. Doublecheck that the id is in fact a raw contact id, not something else, like contact id. On Feb 24, 2011 9:05 PM, FOV fov5...@gmail.com wrote: I have been writing a program that would update my contact information from information I already have in Outlook. I have been writing this for andriod 2.1 since I have a Motorola Backflip updated to 2.1. I performed an insert using the following code; ContentValues values = new ContentValues(); values.put(ContactsContract.Data.RAW_CONTACT_ID, id); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Email.DATA, EmailAddresses[i]); values.put(ContactsContract.CommonDataKinds.Email.TYPE, ContactsContract.CommonDataKinds.Email.TYPE_CUSTOM); values.put(ContactsContract.CommonDataKinds.Email.LABEL, Outlook + Integer.toString(i+1)); if (doWrite) { Uri phoneUri = getContentResolver().insert(ContactsContract.Data.CONTENT_URI, values); } After running my code the proper contact's info was updated with the correct email address, and the type was that of Outlook x due to the having a type of CUSTOM. This is all seen well when looking at contacts on the cell phone. But, when I look through ContactsContract.Data it doesn't exit. When I try to edit this info via the cell phone's edit, it says it's locked and is associated with Facebook. What gives? Why should this insert get associated with Facebook. I don't see any facebook data nor any facebook contacts when I look at RawContact entries. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- 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: Verify Service is real and not a spoof one.
Thank you all for the responses. This helps me enough :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Handling longpress/longclick in MapActivity.
Make an itemized overlay and apply it to the map. Inside that overlay class you can put in the standard context menu code to handle it. On Mar 4, 2:58 am, Neo Apostol neo.apos...@gmail.com wrote: Hi there, How can it be done? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to take advantage of dual-core processing
On Mar 3, 1:29 pm, webmonkey webmonke...@gmail.com wrote: Let's say you have a task that is suitable for parallel processing. Can you detect the number of cores in Android and then make sure that the threads you create run on each separate core. If you have parallelizable tasks, just put them in separate threads. The Linux thread scheduler will take care of the rest. Bear in mind that there may be other actions going on in the system, so it's possible that not all cores will be available for your app's use. Runtime.getRuntime().availableProcessors() will tell you the maximum number of available cores. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Announcing: The Android Developers Union
On Mar 3, 6:52 am, TreKing treking...@gmail.com wrote: My point is simply this: getting actual support or answers for legitimate issues relating to the Android Market is nigh impossible - regardless of the channel one goes through. Meanwhile a thread with the threat of being spammed gets the attention of 4 Googlers. Pathetically, this thread has received more Google attention than anything in the Market Support forum, whether the responders have anything to do with the Market or not. Running naked through the Google campus with your hair on fire and I /3 ANDEROID MARKT tattooed across your back would have gotten a *lot* of attention from a *lot* of googlers. I'm not sure that's the best metric for success. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Managing WebView gestures
On Tue, Mar 1, 2011 at 11:31 AM, Robin Eisenberg eisenbergro...@gmail.comwrote: Now I need it to scroll vertically, and fling to get_page(1) when flung right to left, etc... Any Ideas? Example code greatly appreciated. Thanx! Have you tried anything yet? I have not done flinging / gestures, but I would assume there is a way to distinguish between Horizontal vs Vertical allowing you do to what you need for horizontal but ignoring vertical and letting the view to the default. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do you exclude sales to a specific country?
Well, Taiwan has four cancelled orders and one valid order. I'll turn that one off first as an experiment. If that one person contacts me, I'll offer a refund. From Market comments, you'd think everyone hates my app in certain countries, but then I find that 50+ people from that country have already bought the paid version. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Phantom appwidgets
Hi, yes I've already use this trick and it is good for the first case, when the widget hasn't been configured yet because of canceling it. But it doesn't work for the second case. In this case the widget is configured but can't be placed in the screen because of there were no place for it. There is no difference between this phantom appwidget and a normal appwidget. Tamás On márc. 4, 19:20, Kostya Vasilyev kmans...@gmail.com wrote: This is a bug in Launcher2. Actually, a few of them, appearing in various cases. Some of them got fixed (I forget which and when - you can checkhttp://b.android.com), some others still aren't, it seems. In any case, them being fixed now doesn't help when running on an older version of Android. The only solution I found is to track validity state for each widget id. It's easy to do if you already have a config activity. http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid... -- Kostya 04.03.2011 21:14, b_t пишет: Hi, There are two ways to create phantom widgets: - try to add a new widget, configuration screen appears, canceling widget creation - try to add a new widget, configuration screen appears, save the widget, there is no place in home screen, canceling After these steps a new appwidget was created and exists in the background, but it isn't visible anywhere. In the first case appwidget isn't configured, but in the second it is. When I get widgets for my provider this appwidget is returned. Nor the app and the user can remove this appwidget. What cause this bug? The OS itself? What can I do to get rid of these widgets without uninstalling my app? Thanks, Tamás -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Map tiles unnecessarily reloading when panning
I have noticed the same effect after install 2.3.3 on a couple of apps using mapview... very disorienting to watch it while panning the map. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en