[android-developers] Problem with unlocking the screen programmatically
My application listens for incomming calls and puts additional information about the caller to the Incoming Call screen via transparent activity. I've got the problems with displaying this information while receiving the call when phone is in screen lock state. 1. On HTC Dream when the call came in, first I saw the standard incoming call screen and no lock, then the lock screen appeared probably because application tries to perform some actions (actually, instantiate the transparent Activity). 2. On HTC Hero when the call came in the lock screen appears saying Drag down to unlock and then my transparent activity is displayed. After that there is no possibility to unlock the screen as all user interaction is intercepted by my activity, the only way is to close it via pressing Back button. What I need is to unlock the screen when notification about incomming call is received and only after display the transparent activity with some info. I tried to use KeyguardManager for this purposes, here is the code snippet: ... KeyguardManager manager = (KeyguardManager) context.getSystemService (Context.KEYGUARD_SERVICE); KeyguardManager.KeyguardLock lock = manager.newKeyguardLock (CallStateReceiver.class.getSimpleName()); lock.disableKeyguard(); ... context.startActivity(transparentActivityIntent); This didn't help actually, in the DDMS I see the log that disableKeyguard() was called but the keyguard remains. What I'm doing wrong ? The description of disableKeyguard() function says that A good place to call this is from onResume() but I'm calling this from my BroadcastReceiver's onReceive() method - maybe that's the problem ? Please advice or provide a codesnippet which worked for you. 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] Pass key events through transparent activity
My application has transparent activity which is shown over the Incoming Call activity when the call is received. In HTC Hero the Incoming Call screen has two buttons Accept and Decline but when my transparent activity is displayed user can see those buttons bu can't press them as all key events are sent ti transparent activity for processing. Probably there is some possibility to pass key events to the underlying activity ? Or probably it is possible to add some view to the screen without creating new activity ? Any help on this issue will be very much appreciated ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Extend Edit Contact view with new field
Is there a standard way of extending Edit Contacts view and insert additional field to it ? I don't want to recreate the layout of Edit Contact view from scratch, what I want to do is to use something like public class CustomEditContactView extends EditContactView { ... } Is there a simple solution for this problem ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Publishing both free and paid versions of app on Android Market
Thanks a lot for your clarification on this. On Oct 9, 6:19 pm, String sterling.ud...@googlemail.com wrote: On Oct 9, 11:16 am, abarinoff abarin...@gmail.com wrote: Thanks for pointing to those topic - it's quite interesting. But unfortunately solution of Justin Anderson doesn't help me much as I don't need any additional key application. What I need is topublishbothfree andpaidversions of application on Android Market and ideally user would be able to first download free version and then update topaidversion later. I think the point is that there's no good way to do this in the current Market. If you insist on having free andpaidversions, they're separate apps, and there's no way to upgrade from one to the other. Correspondingly, there's nothing to stop a user havingboth installed on their phone at once. The approach of using a separate key/license app is an alternate solution to the problem. It's still not perfect, but it avoids the double-installation problem, as well as any trickery to keep a single code base. It's not the solution you ideally want, but it does accomplish an equivalent result, and it works. IMO, it's cleaner - it's the approach I use for one of my own apps. String --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Publishing both free and paid versions of app on Android Market
Thanks for pointing to those topic - it's quite interesting. But unfortunately solution of Justin Anderson doesn't help me much as I don't need any additional key application. What I need is to publish both free and paid versions of application on Android Market and ideally user would be able to first download free version and then update to paid version later. From what I've seen in different forums the only solution would be creating free and paid applications with different package name specified in AndroidManifest.xml file, for example: org.test.appname.bfree/b - for free version and org.test.appname.bpaid/b - for paid version but is it allowed to specify package name which actually doesn't exist really in my java sources ? What I mean is that my classes are actually laid under iorg.test.appname/i package and the iorg.test.appname.bfree/b/i doesn't really exist. If it's allowed - I would be able to use same codebase for both versions of application but simply provide different package names in AndroidManifest.xml file. This still will lead to the problem that if user downloads free version first and later downloads paid version - then there would be actually two applications on user's phone instead of one. Please advice. On Oct 8, 8:59 pm, RichardC richard.crit...@googlemail.com wrote: Have a read of: http://groups.google.com/group/android-beginners/browse_thread/thread... specifically pos4 by Justin Anderson) It looks like a very nice solution and stops you haveing to maintain your code base in 2 projects. -- RichardC On Oct 8, 12:51 am, abarinoff abarin...@gmail.com wrote: Hi all, Could someone give me a hint how should I publish bothfreeandpaid versions of application on Android Market so the user would be able to installFreeversion first and then upgrade toPaidversion if he likes to. I saw few articles which are saying that there should be difference in package names forfreeandpaidversions on order to be able to perform upgrade later, but what if I publish thefreeversion with android:versionCode set to 1 and thepaidversion with android:versionCode set to 2 - wouldn't that allow to perform update fromfreetopaidapplication without changing the package name ? Unfortunately I didn't find any article neither on android developers site nor on android market site describing the best practices of solving this problem, so any help from the android community members would be very much appreciated ! 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] Publishing both free and paid versions of app on Android Market
Hi all, Could someone give me a hint how should I publish both free and paid versions of application on Android Market so the user would be able to install Free version first and then upgrade to Paid version if he likes to. I saw few articles which are saying that there should be difference in package names for free and paid versions on order to be able to perform upgrade later, but what if I publish the free version with android:versionCode set to 1 and the paid version with android:versionCode set to 2 - wouldn't that allow to perform update from free to paid application without changing the package name ? Unfortunately I didn't find any article neither on android developers site nor on android market site describing the best practices of solving this problem, so any help from the android community members would be very much appreciated ! 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 -~--~~~~--~~--~--~---