[android-developers] SubScription Based In App Purchase in Android
Hi, I want to implement an In app Purchase (*Subscription *based)in my app so i integrated version 2.0 in App API. I implemented the Coding part and its working fine. I have a doubt that where will we get the call back in the second time automatic recurring payment , means in the first time after my successful payment transaction i got the the call back in the *onReceive() *method of BillingReceiver. Do we get the call back again in the *onReceive()*method in all successful Auto recurring payment transaction. I want to send some information to Client's server after each successful Auto recurring payment, so could any one tell me which event will get the call back in each successful transaction Please see the below code public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Consts.ACTION_PURCHASE_STATE_CHANGED.equals(action)) { String signedData = intent.getStringExtra(Consts.INAPP_SIGNED_DATA); String signature = intent.getStringExtra(Consts.INAPP_SIGNATURE); purchaseStateChanged(context, signedData, signature); } else if (Consts.ACTION_NOTIFY.equals(action)) { String notifyId = intent.getStringExtra(Consts.NOTIFICATION_ID); if (Consts.DEBUG) { Log.i(TAG, "notifyId: " + notifyId); } notify(context, notifyId); } else if (Consts.ACTION_RESPONSE_CODE.equals(action)) { long requestId = intent.getLongExtra(Consts.INAPP_REQUEST_ID, -1); int responseCodeIndex = intent.getIntExtra(Consts.INAPP_RESPONSE_CODE, ResponseCode.RESULT_ERROR.ordinal()); checkResponseCode(context, requestId, responseCodeIndex); } else { Log.w(TAG, "unexpected action: " + action); } } Thanks, JOBZ -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Custom Font For application
Hi All, How to set custom font for whole application. otherwise is there any way to set external fonts like "FEASFBRG.TTF" in Style.xml for the attribute android:typeface. We can set it by Typeface.createFromAsset(getAssets(), "fonts/ FEASFBRG .ttf"); But I want to know how to set in Style.xml for the attribute android:typeface. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application is not installed on your phone
On Jul 19, 6:25 pm, Mark Murphy wrote: > You cannot hold the WRITE_SECURE_SETTINGS permission unless you are > part of the firmware. > > > > On Mon, Jul 19, 2010 at 9:23 AM, JOBZ wrote: > > > In the log cat below errors are showing > > > 17:11:10 - GolfLogix]adb is running normally. > > [2010-07-17 17:11:10 - GolfLogix]Performing > > com.golflogix.ui.startup.SplashScreen activity launch > > [2010-07-17 17:11:11 - GolfLogix]Applicationalready deployed. No need > > to reinstall. > > [2010-07-17 17:11:11 - GolfLogix]Starting activity > > com.golflogix.ui.startup.SplashScreen on device > > [2010-07-17 17:11:12 - GolfLogix]ActivityManager: Starting: Intent > > { cmp=com.golflogix.ui/.startup.SplashScreen } > > [2010-07-17 17:11:13 - GolfLogix]ActivityManager: > > java.lang.SecurityException: Permission Denial: starting Intent > > { flg=0x1000 cmp=com.golflogix.ui/.startup.SplashScreen } from > > null (pid=-1, uid=-1) requires > > android.permission.WRITE_SECURE_SETTINGS > > > Already i set the WRITE_SECURE_SETTINGS permission in my manifest > > file. I don't know why this errors are showing .anybody have any > > solution for this problem. > > > Thanks > > Jobz > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.1 Available! Thank you for your replay Murphy , Actually my problem is, I created an application and its working properly in emulator and phone ,but sometimes when i taping on the application short cut to open the application again an error message showing "Application is not installed on your phone". In the log cat error message is showing like this " requires android.permission.WRITE_SECURE_SETTINGS " that is why i add the WRITE_SECURE_SETTINGS in manifest file but still it showing same,is there any other way to solve this problem. expecting your reply. Regards, JOBZ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application is not installed on your phone
In the log cat below errors are showing 17:11:10 - GolfLogix]adb is running normally. [2010-07-17 17:11:10 - GolfLogix]Performing com.golflogix.ui.startup.SplashScreen activity launch [2010-07-17 17:11:11 - GolfLogix]Application already deployed. No need to reinstall. [2010-07-17 17:11:11 - GolfLogix]Starting activity com.golflogix.ui.startup.SplashScreen on device [2010-07-17 17:11:12 - GolfLogix]ActivityManager: Starting: Intent { cmp=com.golflogix.ui/.startup.SplashScreen } [2010-07-17 17:11:13 - GolfLogix]ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1000 cmp=com.golflogix.ui/.startup.SplashScreen } from null (pid=-1, uid=-1) requires android.permission.WRITE_SECURE_SETTINGS Already i set the WRITE_SECURE_SETTINGS permission in my manifest file. I don't know why this errors are showing .anybody have any solution for this problem. Thanks Jobz -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en