[android-developers] Re: Animations in the list view
Hi Nobu, Thanks for your reply.But Can you please elaborate on the solutions you have suggested.I have tried lot to achieve the task.Is this task possible to achieve? On Sunday, 13 January 2013 00:57:55 UTC+5:30, Nobu Games wrote: The quick and incorrect approach would be starting these growing animations from your ListAdapter's getView method. Right before you return the convertView you'd start the animation object on that view. However, there is a problem with that animation approach because ListViews lays out its child views (items) and determines their positions. So using an Animation object for transforming the height of an item (grow animation) would not affect the other list items. They would statically remain in their locations and your new item that slides in will just grow into a gap that is exactly that item's full size. Following solution ideas: - You override ListView and add some layout animation behavior that does what you need - Animate the height of your added item using a Timer object. Trigger re-layouts of the ListView in order to align the other child views accordingly. (However, I don't know whether you'll need to constantly invalidate your listadapter in order to make that work. This might turn out to be a pretty wasteful approach!) On Saturday, January 12, 2013 12:40:47 PM UTC-6, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] BouncyCastle signature value does not match with dotNET signature value.
Hi... I have a problem in SHA1withRSA signature using BouncyCastle on Android: BouncyCastle signature value does not match with dotNET signature value. I tryed to use many algorithms like SHA1withRSA, SHA1withRSAAndMGF1 or SHA1withRSA/ISO9796-2 with no satisfactory results. If I use the same message, same algorithm and the same private key, the result must be identical in dotNet and BoucyCastle... is it? Whats wrong in my code??? *Getting the privateKey:* ... ks = KeyStore.getInstance(PKCS12); ... key = ks.getKey(alias, senha.toCharArray()); if (key instanceof PrivateKey) { privateKey = (PrivateKey) key; } *Signature method: * public String signer(String txt, String alg) throws Exception { Signature signer = Signature.getInstance(alg, new BouncyCastleProvider()); signer.initSign(privateKey); signer.update(txt.getBytes(UTF-8)); return Base64.encodeToString(signer.sign(), Base64.NO_WRAP); } ps. My app must use XMLDSIG protocol to send XML to a government's webservice. 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] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
On Sunday, 13 January 2013 07:52:57 UTC+1, William Ferguson wrote: Thanks Joman, exactly what I was after. @Kristopher the use case is simple: I want to offer clients the ability to share using the standard Android mechanism and I want to provide a sharing end point myself. But for commercial reasons my end point is only appropriate if the Intent comes from within my app. Ie it shouldn't be available from within other apps. You could as well not declare the IntentFilter in your Manfifest and register it with code in your BroadcastReceiver to process it. Then fire an explicit Intent to yourself specifying your app with Intent.setComponent(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] data in horizontal scrollview
I am working on activity in which data is shown in horizontal scroll view. I want to display data in center of screen and on scroll , screen should stop scroll on item centered like paging. 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] inapp billing testing - static product android.test.purchased no longer returns a signed response for a test account
Thanks for the confirmation. That sucks though. Takes out the mechanism to test inapp purchases. Hope this is one bug Google gets to soon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 specify an IntentFilter that only activates when the Intent comes from within my own app?
Another way would be to use a custom Mime type for your data, instead of text/plain, and only your IntentFilter services that type. I like the exported=false solution better though. On Saturday, January 12, 2013 9:38:25 PM UTC-8, William Ferguson wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.SendIntentResponderActivity intent-filter action android:name=android.intent.action.SEND/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=text/plain/ /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] data in horizontal scrollview
Hello, do you know how to unsubscribe this group? android-developers@googlegroups.com If you know, pls help me. Thank you very much! yours kevin wen5448748 From: nemi chhimpa Date: 2013-01-13 21:40 To: android-developers Subject: [android-developers] data in horizontal scrollview I am working on activity in which data is shown in horizontal scroll view. I want to display data in center of screen and on scroll , screen should stop scroll on item centered like paging. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Set alarm in the device
Hi, Ankit and Dylan-cool. Finally i found this: https://www.youtube.com/watch?v=44fZqJOQ_go This works fine and the alarm to fires at the set time. Though 1problem exists in this code is that the alarm also gets fired as soon as you click on a button set it i.e. the receiver activity opens at the alarm time but also opens immediately after you click on the button to set it. Couldnt figure out why this happens, and still looking for a solution. On Friday, January 11, 2013 12:41:16 PM UTC+5:30, Avinhood wrote: Hi, I am trying to set an alarm for a specified time on click of a button and at that time, the alarm should ring. I tried several codes on the net and stackoverflow, but strangely none of them are practically working . I set the pending intent, and the receiver and required changes in manifest. it would be nice if someone can provide a working code. -- Avinash Shyam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
Who made the ill advised dumb decision to lock the bootloader on the TL and not include a fastbbot option On Thursday, April 14, 2011 3:11:13 AM UTC-4, Carl wrote: Hi, It is now possible to unlock the boot loader for certain series of Sony Ericsson 2011 Android™ Gingerbread phones. Go to http://unlockbootloader.sonyericsson.com to get instructions and a key to unlock the boot loader. Please note that you may void the warranty of your phone if you unlock the boot loader. See your phone’s warranty statement for details. More information is available on the unlock boot loader web site. For any questions, Sony Ericsson will monitor this thread on Google groups. However, we cannot guarantee an answer for every question asked in this forum. Please remember that you are unlocking the boot loader at your own risk. Br, Carl Johansson Sony Ericsson Developer World -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Total User Installs decreasing
We are also seing totals going down for the last couple of months, which is ridiculous. Once again, Google is not responding to complains. It is also funny that some of the apps are not being updated on their totals for months either. Some of the apps that were on the limit (lets say 50k) are listed as 50K+ on the Play Store where the download has decreased in the backend below 50 due to the recent bugs/changes. So it could be only a backend issue, but we doubt it. I think this is a new tactic from Google where they will continue their effort in pushing out bigger non indie companies like Rovio and Disney to the top of the lists against the smaller ones... On Sunday, January 13, 2013 1:38:40 AM UTC+1, John Coryat wrote: Total is basically a download count and should never go down. Ha! Good one. -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
[android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.
Hi, Can you go back a step and explain what the issue is :) In other words, you've stated you are required to send a message to a web service. But I can't tell from you post what (if any) the exception is? Is the web service rejecting the message you sent? Are you receiving an unexpected response? Are you getting a response from the web service but you can't decode it? Is the web service saying it received your message but they can't decode it? Where in the message exchange is there an exception? Which side of the message exchange ( (you or the web service) is having an issues. What is the specific issue (E.G. I can decode) To summarize, it would really help if you can elaborate. Start with a summary of the issue :) Good Luck Jason -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: data in horizontal scrollview
Hi, Thank you for sharing :) You forgot to ask a question. All you posted was I am working on something. Is that it?, you just wanted to let everyone know that you are working on something ? Good Luck :) And again thank you for sharing :) Jason -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: data in horizontal scrollview
Sorry. My question is how to stop horizontal scroll view in middle position of layout on scroll On Jan 13, 2013 10:12 PM, jason_gates jason.gates...@gmail.com wrote: Hi, Thank you for sharing :) You forgot to ask a question. All you posted was I am working on something. Is that it?, you just wanted to let everyone know that you are working on something ? Good Luck :) And again thank you for sharing :) Jason -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: data in horizontal scrollview
Hi, No problem :) Thank you for the reply. Sorry, but I don't understand what you mean by stop? Does that mean stop the view from scrolling? Change the position of the view? Change the alignment of the view's content? My recommendation is, post the relevant portion of your code. Then in your post, reference where and how you are attempting to perform the task at issue. To summarize, posting your code should help resolve the ambiguities in your question :) Hope that helps :) Good luck :) Jason -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Total User Installs decreasing
I think this is a new tactic from Google where (insert paranoid rant here)... You might as well shake your fist at the sky and blame God for the bad weather and crop failures. -John Coryat On Sunday, January 13, 2013 10:17:11 AM UTC-6, Incorporate Apps wrote: We are also seing totals going down for the last couple of months, which is ridiculous. Once again, Google is not responding to complains. It is also funny that some of the apps are not being updated on their totals for months either. Some of the apps that were on the limit (lets say 50k) are listed as 50K+ on the Play Store where the download has decreased in the backend below 50 due to the recent bugs/changes. So it could be only a backend issue, but we doubt it. I think this is a new tactic from Google where they will continue their effort in pushing out bigger non indie companies like Rovio and Disney to the top of the lists against the smaller ones... On Sunday, January 13, 2013 1:38:40 AM UTC+1, John Coryat wrote: Total is basically a download count and should never go down. Ha! Good one. -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
[android-developers] Re: How to specify an IntentFilter that only activates when the Intent comes from within my own app?
Have you also considered using LocalBroadcastManagerhttp://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html ? On Saturday, January 12, 2013 11:38:25 PM UTC-6, William Ferguson wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.SendIntentResponderActivity intent-filter action android:name=android.intent.action.SEND/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=text/plain/ /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
Please do not do this. It will not have the desired effect: it will show up in the chooser for all apps. And, if the user tries tapping on it from another app, that app crashes. The only solution for the OP's original requirement is to roll a custom chooser from scratch. On Sun, Jan 13, 2013 at 1:12 AM, Joman Chu joman...@gmail.com wrote: Does android:exported=false do what you want? See http://developer.android.com/guide/topics/manifest/activity-element.html#exported On Sun, Jan 13, 2013 at 12:38 AM, William Ferguson william.fergu...@xandar.com.au wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.SendIntentResponderActivity intent-filter action android:name=android.intent.action.SEND/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=text/plain/ /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
This still doesn't work, as mark points out. You have to instead create your own chooser. Kris On Jan 13, 2013 12:54 AM, William Ferguson william.fergu...@xandar.com.au wrote: Thanks Joman, exactly what I was after. @Kristopher the use case is simple: I want to offer clients the ability to share using the standard Android mechanism and I want to provide a sharing end point myself. But for commercial reasons my end point is only appropriate if the Intent comes from within my app. Ie it shouldn't be available from within other apps. William On Sunday, January 13, 2013 4:12:39 PM UTC+10, Joman Chu wrote: Does android:exported=false do what you want? See http://developer.android.**com/guide/topics/manifest/** activity-element.html#exportedhttp://developer.android.com/guide/topics/manifest/activity-element.html#exported On Sun, Jan 13, 2013 at 12:38 AM, William Ferguson william@xandar.com.**au wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the **SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.**SendIntentResponderActivity intent-filter action android:name=android.intent.**action.SEND/ category android:name=android.intent.**category.DEFAULT/ data android:mimeType=text/plain/** /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.**EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.**EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(**shareIntent, Share via)); context.startActivity(**chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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] Help for stop service with Alarm Manager
I have created the start alarm as shown below public class MyScheduleReceiver extends BroadcastReceiver { // Restart service every 30 secondsprivate static final long REPEAT_TIME = 1000 * 5; @Overridepublic void onReceive(Context context, Intent intent) { AlarmManager service = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); Intent i = new Intent(context, MyStartServiceReceiver.class); PendingIntent pending = PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_CANCEL_CURRENT);Calendar cal = Calendar.getInstance(); cal.add(Calendar.SECOND, 5); service.setInexactRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), REPEAT_TIME, pending); I crate this for stop alarm and i call it from main activity.Manifest i think is ok...Work repeat but no stop!!! public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setup); sendBroadcast(new Intent(this,MyScheduleReceiver.class)); } public void StopRepeat(View view) { sendBroadcast(new Intent(this,MyStopReceiver.class)); } public class MyStartServiceReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { Toast.makeText(context, Repeat service!., Toast.LENGTH_LONG).show(); } public class MyStopReceiver extends BroadcastReceiver { // Restart service every 30 seconds private static final long REPEAT_TIME = 1000 * 5; @Override public void onReceive(Context context, Intent intent) { AlarmManager service = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); Intent istop = new Intent(context, MyStartServiceReceiver.class); PendingIntent pending = PendingIntent.getBroadcast(context, 0, istop, PendingIntent.FLAG_CANCEL_CURRENT); Calendar cal = Calendar.getInstance(); cal.add(Calendar.SECOND, 5); service.cancel(pending); But the service is not stopping. What might be the issue?Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.
Em domingo, 13 de janeiro de 2013 10h22min21s UTC-2, mbarbiero escreveu: Hi... I have a problem in SHA1withRSA signature using BouncyCastle on Android: BouncyCastle signature value does not match with dotNET signature value. I tryed to use many algorithms like SHA1withRSA, SHA1withRSAAndMGF1 or SHA1withRSA/ISO9796-2 with no satisfactory results. If I use the same message, same algorithm and the same private key, the result must be identical in dotNet and BoucyCastle... is it? Whats wrong in my code??? *Getting the privateKey:* ... ks = KeyStore.getInstance(PKCS12); ... key = ks.getKey(alias, senha.toCharArray()); if (key instanceof PrivateKey) { privateKey = (PrivateKey) key; } *Signature method: * public String signer(String txt, String alg) throws Exception { Signature signer = Signature.getInstance(alg, new BouncyCastleProvider()); signer.initSign(privateKey); signer.update(txt.getBytes(UTF-8)); return Base64.encodeToString(signer.sign(), Base64.NO_WRAP); } ps. My app must use XMLDSIG protocol to send XML to a government's webservice. 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] Re: BouncyCastle signature value does not match with dotNET signature value.
Hi Jason... Thanks for your contact. Firstly, please excuse my poor english... my first language is portuguese. I sent a XML Dsig packet with message + DigestValue + SignatureValue + PublicKey to a government's webservice. The SignatureValue is generated using BouncyCastle and SHA1withRSA. The return message say that signature value is incorrect. When I signed a XML document with a dotNet app the SignatureValue is diferent and the XML is recieved without error. I think that the error is in return format from .sign method, but I am not sure! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Negative Clicks in Admob !!! -$435k a day??
The fact that you're seeing an error of a quarter-million bucks gives me hope that there is money to be made on the android market! That's just one day?? You must be the owner of Angry Birds! On Sat, Jan 12, 2013 at 12:40 PM, TreKing treking...@gmail.com wrote: On Sat, Jan 12, 2013 at 2:00 PM, Amel Jose vallikattukuzhi...@gmail.comwrote: there is no mail id This is Google. There is no email to send a message to for support. You fill out a form and if you win the lottery, you might get a response. Good luck. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.
Hi, Thank you for the response :) So, the private key is not part of the issue, right? Wouldn't your private key only be used to decode a message sent from the web service to you? Per your message, that's not your issue. Your saying the remote web service is rejecting the message you are sending, I assume you are using the public key of the web service to encode the message (you are sending)? Is that correct? Have you compared the xml sent from both clients (android and doNet). Is the result of that verification, the only difference is the SignatureValue? In other words, the xml structure from both clients are identical. Do you have a stack trace from the server that we can translate? I'm just trying to see if there are any more clues. What I've found is, different versions of the BouncyCastle library are incompatible. If you encode a value with an earlier version of BouncyCastle and then try to decode the value with a later version of BouncyCastle, an exception is raised. Do you have access to the source code of your doNet client. Can you see which library (and version) the other client is using and which algorithm (the algorithm should be published). Good Luck Jason -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.
Em domingo, 13 de janeiro de 2013 18h17min29s UTC-2, jason_gates escreveu: Hi, Thank you for the response :) So, the private key is not part of the issue, right? Wouldn't your private key only be used to decode a message sent from the web service to you? Per your message, that's not your issue. Your saying the remote web service is rejecting the message you are sending, I assume you are using the public key of the web service to encode the message (you are sending)? Is that correct? - I sign the XML with my PrivateKey and send a copy of my PublicKey. The access to webservice is in HTTPS. Have you compared the xml sent from both clients (android and doNet). Is the result of that verification, the only difference is the SignatureValue? In other words, the xml structure from both clients are identical. - Yes, SignatureValue is the unique difference. Do you have a stack trace from the server that we can translate? I'm just trying to see if there are any more clues. - Unfortunately not! What I've found is, different versions of the BouncyCastle library are incompatible. If you encode a value with an earlier version of BouncyCastle and then try to decode the value with a later version of BouncyCastle, an exception is raised. Do you have access to the source code of your doNet client. Can you see which library (and version) the other client is using and which algorithm (the algorithm should be published). - Tomorow I'll seek the source code and post here Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Developer fee payment canceled after 2.5 years
Same problem here. Sent a ticket, still waiting for an answer. The apps seem to still be reachable on the play store, so it's a little better than I thought. It's easy for them to see there's something wrong here, and that we're not just trying to steal the registration fee... On Friday, January 11, 2013 3:20:51 PM UTC+1, David Erosa García wrote: Hi! I'm struggling with this problem since yesterday, when I tried to log into my Google Play Console just to find a message like this: --- THE PAYMENT FOR THE REGISTRATION FEE HAS FAILED In order to access your account, you need a successful registration fee payment --- So my apps are still published, but I can't manage any of them. No price changes, no descripcion updates and, of course, no new .apk... Since I've been a registered Android developer circa July 2010, I wonder what the heck happened. After checking my Checkout order I found that it was canceled because it has been inactive for a long period of time 10 Ene - Google ha cancelado su pedido porque ha estado inactivo durante un largo período de tiempo. This seems like a known issues(Developer Console or Publishing Issues/Unable to complete Google Play Android Developer Account Registration ), but as the description of the issue appears to refer to new accounts, I think it doesn't apply to me: https://support.google.com/googleplay/android-developer/bin/static.py?hl=enpage=known_issues.cs I've already sent a support ticket, but you all know how long will this take... Searching on Google, forums or mail lists I couldn't find anyone with the same problem, so I decided to try and post it here in case anyone is having the same issue. I'll keep you informed in case this is useful for anyone. Regards. David Erosa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Account Query
hi all, actually i want lunch my app in android market but i have no any account ,so plz any body create my account i will give $27 krishna krishnakumar...@gmail.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] Account Query
Why can't you create it yourself? On Mon, Jan 14, 2013 at 2:58 AM, krishna kumar send2mess...@gmail.comwrote: hi all, actually i want lunch my app in android market but i have no any account ,so plz any body create my account i will give $27 krishna krishnakumar...@gmail.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 -- Raghav Sood http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
@Mark @Kristopher really? the doco for android:exported seems to indicate that setting it to false will produce the precise behaviour I am looking for. http://developer.android.com/guide/topics/manifest/activity-element.html#exported And testing on a JellyBean device indicates that it is indeed so. The Activity becomes available for selection via the IntentChooser when invoked from within my app but is not visible when invoked from another app. What makes you think this is not the correct solution? @Brion custom mime type won't cut it because I want the standard responders to text/plain to also make themselves available. @EveryoneElse if you are thinking BroadcastReceivers, LocalBroadcastManager etc then you're on the wrong tangent, this is about starting an Activity. William On Monday, January 14, 2013 4:16:56 AM UTC+10, Mark Murphy (a Commons Guy) wrote: Please do not do this. It will not have the desired effect: it will show up in the chooser for all apps. And, if the user tries tapping on it from another app, that app crashes. The only solution for the OP's original requirement is to roll a custom chooser from scratch. On Sun, Jan 13, 2013 at 1:12 AM, Joman Chu joma...@gmail.comjavascript: wrote: Does android:exported=false do what you want? See http://developer.android.com/guide/topics/manifest/activity-element.html#exported On Sun, Jan 13, 2013 at 12:38 AM, William Ferguson william@xandar.com.au javascript: wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.SendIntentResponderActivity intent-filter action android:name=android.intent.action.SEND/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=text/plain/ /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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] data in horizontal scrollview
On Sun, Jan 13, 2013 at 11:43:23PM +0800, wen5448748 wrote: Hello, do you know how to unsubscribe this group? android-developers@googlegroups.com If you know, pls help me. Thank you very much! Yes, and so do you. Later, --jim PS: Hint: read the list's .signature in every message. -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W My policy on spammers: Castrate first, ask questions later. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
Hm, I believe I'd had problems with that in a previous Android build, so I'm not certain, and I'd have to look at the chooser implementation across versions again to see. I still sort of contend that this doesn't make sense: if your use case is for a SEND intent that doesn't fit with anyone else's mechanism, then why even use a SEND category? Why not just have your own custom intent, rather than have a confusing use of it? Am I misunderstanding: do you want to allow the user to share your information and also have other apps handle your information too? It seems that is not the case, meaning that a SEND intent is sort of inappropriate design here. Kris On Sun, Jan 13, 2013 at 3:39 PM, William Ferguson william.fergu...@xandar.com.au wrote: @Mark @Kristopher really? the doco for android:exported seems to indicate that setting it to false will produce the precise behaviour I am looking for. http://developer.android.com/guide/topics/manifest/activity-element.html#exported And testing on a JellyBean device indicates that it is indeed so. The Activity becomes available for selection via the IntentChooser when invoked from within my app but is not visible when invoked from another app. What makes you think this is not the correct solution? @Brion custom mime type won't cut it because I want the standard responders to text/plain to also make themselves available. @EveryoneElse if you are thinking BroadcastReceivers, LocalBroadcastManager etc then you're on the wrong tangent, this is about starting an Activity. William On Monday, January 14, 2013 4:16:56 AM UTC+10, Mark Murphy (a Commons Guy) wrote: Please do not do this. It will not have the desired effect: it will show up in the chooser for all apps. And, if the user tries tapping on it from another app, that app crashes. The only solution for the OP's original requirement is to roll a custom chooser from scratch. On Sun, Jan 13, 2013 at 1:12 AM, Joman Chu joma...@gmail.com wrote: Does android:exported=false do what you want? See http://developer.android.com/guide/topics/manifest/activity-element.html#exported On Sun, Jan 13, 2013 at 12:38 AM, William Ferguson william@xandar.com.au wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.SendIntentResponderActivity intent-filter action android:name=android.intent.action.SEND/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=text/plain/ /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, 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-d...@googlegroups.com To unsubscribe from this group, 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/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
On Sun, Jan 13, 2013 at 4:39 PM, William Ferguson william.fergu...@xandar.com.au wrote: @Mark @Kristopher really? the doco for android:exported seems to indicate that setting it to false will produce the precise behaviour I am looking for. http://developer.android.com/guide/topics/manifest/activity-element.html#exported IMHO, it is because the chooser is written poorly. According to Google, it is because having a non-exported activity with an intent-filter is poor coding. http://code.google.com/p/android/issues/detail?id=29535 http://commonsware.com/blog/2012/04/25/how-isolated-adobe-reader-activity-issue.html And testing on a JellyBean device indicates that it is indeed so. The Activity becomes available for selection via the IntentChooser when invoked from within my app but is not visible when invoked from another app. What makes you think this is not the correct solution? Because they apparently just fixed it, if your statement is correct. I have no idea when. As I noted in the issue, it does not work at least Android 2.2 through Android 4.0.3. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
If it's an Android version specific limitation of chooser behaviour then I'm all ears, and I'll definitely go back and test on some old versions now. but there is nothing in the doco to suggest that. As stated before, my use case is that I want to share text/plain and have all relevant Activities available to respond, including my own Activity. But I don't want my own Activity to be able to respond to text/plain shared from another app. Hence why android:exported=false sounds like the perfect solution. William On Monday, January 14, 2013 7:46:34 AM UTC+10, Kristopher Micinski wrote: Hm, I believe I'd had problems with that in a previous Android build, so I'm not certain, and I'd have to look at the chooser implementation across versions again to see. I still sort of contend that this doesn't make sense: if your use case is for a SEND intent that doesn't fit with anyone else's mechanism, then why even use a SEND category? Why not just have your own custom intent, rather than have a confusing use of it? Am I misunderstanding: do you want to allow the user to share your information and also have other apps handle your information too? It seems that is not the case, meaning that a SEND intent is sort of inappropriate design here. Kris On Sun, Jan 13, 2013 at 3:39 PM, William Ferguson william@xandar.com.au javascript: wrote: @Mark @Kristopher really? the doco for android:exported seems to indicate that setting it to false will produce the precise behaviour I am looking for. http://developer.android.com/guide/topics/manifest/activity-element.html#exported And testing on a JellyBean device indicates that it is indeed so. The Activity becomes available for selection via the IntentChooser when invoked from within my app but is not visible when invoked from another app. What makes you think this is not the correct solution? @Brion custom mime type won't cut it because I want the standard responders to text/plain to also make themselves available. @EveryoneElse if you are thinking BroadcastReceivers, LocalBroadcastManager etc then you're on the wrong tangent, this is about starting an Activity. William On Monday, January 14, 2013 4:16:56 AM UTC+10, Mark Murphy (a Commons Guy) wrote: Please do not do this. It will not have the desired effect: it will show up in the chooser for all apps. And, if the user tries tapping on it from another app, that app crashes. The only solution for the OP's original requirement is to roll a custom chooser from scratch. On Sun, Jan 13, 2013 at 1:12 AM, Joman Chu joma...@gmail.com wrote: Does android:exported=false do what you want? See http://developer.android.com/guide/topics/manifest/activity-element.html#exported On Sun, Jan 13, 2013 at 12:38 AM, William Ferguson william@xandar.com.au wrote: I have an Activity that responds to the ACTION_SEND Intent. Is there any way for me to be able to specify the IntentFilter such that the Activity is only displayed by the IntentChooser when it has been called from within my app? Ie I want the SendIntentResponderActivity displayed as a viable recipient of ACTION_SEND, but only if I am the one that issued the Intent. NB displaying my Activity shouldn't stop other standard responders (such as Gmail etc) from also being displayed. activity android:name=.SendIntentResponderActivity intent-filter action android:name=android.intent.action.SEND/ category android:name=android.intent.category.DEFAULT/ data android:mimeType=text/plain/ /intent-filter /activity final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); shareIntent.putExtra(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
2013/1/14 William Ferguson william.fergu...@xandar.com.au: If it's an Android version specific limitation of chooser behaviour then I'm all ears, and I'll definitely go back and test on some old versions now. but there is nothing in the doco to suggest that. I recently had a Play crash report from my app doing a startActivity, caused by the resolved activity in another app not being exported. The crash was attributed to my app (of course). The device was running 4.1.1 java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/Download/filename.jpg typ=image/jpg flg=0x8 cmp=app name removed } from ProcessRecord{4192e9c8 20556:org.kman.AquaMail/u0a99} (pid=20556, uid=10099) not exported from uid 10108 at android.os.Parcel.readException(Parcel.java:1425) at android.os.Parcel.readException(Parcel.java:1379) at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1761) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1411) at android.app.Activity.startActivityForResult(Activity.java:3351) at android.app.Activity.startActivityForResult(Activity.java:3312) at android.app.Activity.startActivity(Activity.java:3522) at android.app.Activity.startActivity(Activity.java:3490) at my code here Note that this is not an ActivityNotFoundException (which everyone knows to catch) but an unchecked SecurityException. -- K As stated before, my use case is that I want to share text/plain and have all relevant Activities available to respond, including my own Activity. But I don't want my own Activity to be able to respond to text/plain shared from another app. Hence why android:exported=false sounds like the perfect solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Negative Clicks in Admob !!! -$435k a day??
andjarnic wrote: The fact that you're seeing an error of a quarter-million bucks gives me hope that there is money to be made on the android market! That's just one day?? You must be the owner of Angry Birds! Just because the OP used the $ symbol doesn't mean they were referring to USD. They might have been referring to Colombian pesos. When I checked the exchange rate just now I found COP/USD = 1,763.48647. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Backup Manager not working on HTC Desire running Android 2.2
Hi Jason, I'm definitely calling dataChanged(), but have just also tried an extra call to adb shell bmgr backup *uk.co.islovely.cooking.schedulerhttp://your.package.name * but no luck after that. I have previously been reinstalling my app by running it in the eclipse debugger, which does the reinstall for me. I'm not sure what the exact command it runs is. I don't have the wipe user data checkbox ticked. I tried reinstalling from the command line using adb install -r path to my apk as you suggested, but again all my user data was not available. How are you saving your private data files? I'm doing FileOutputStream out_file = openFileOutput(SAVED_MENU_ITEMS_FILENAME, MODE_PRIVATE); out_file.write(json_to_write.toString().getBytes()); out_file.close(); If I compare the output from logcat from my phone http://pastebin.com/wZX7iys8 With that from the AVD device running 2.2 http://pastebin.com/q0Y7v3re You can see that on the AVD device it does a backup, and restores it, whereas on the phone there is no backup and no restore in the logging. I suspect that backup is just broken on my phone. I guess I need to know an app that implements backup well, so that I can try with that one, which will tell me if it's my code or my phone that's busted. Thank you for reading this far! :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
Thanks Mark. I have commented on that issue. FWIW I think Dianne is wrong on that one. A non-exported Activity with an intent filter is not poor coding, it's use case that wasn't considered by the original Intent#createChooser implementation. Looks like I have little choice but to implement a custom chooser and inject my Activity into it. William On Monday, January 14, 2013 7:47:54 AM UTC+10, Mark Murphy (a Commons Guy) wrote: On Sun, Jan 13, 2013 at 4:39 PM, William Ferguson william@xandar.com.au javascript: wrote: @Mark @Kristopher really? the doco for android:exported seems to indicate that setting it to false will produce the precise behaviour I am looking for. http://developer.android.com/guide/topics/manifest/activity-element.html#exported IMHO, it is because the chooser is written poorly. According to Google, it is because having a non-exported activity with an intent-filter is poor coding. http://code.google.com/p/android/issues/detail?id=29535 http://commonsware.com/blog/2012/04/25/how-isolated-adobe-reader-activity-issue.html And testing on a JellyBean device indicates that it is indeed so. The Activity becomes available for selection via the IntentChooser when invoked from within my app but is not visible when invoked from another app. What makes you think this is not the correct solution? Because they apparently just fixed it, if your statement is correct. I have no idea when. As I noted in the issue, it does not work at least Android 2.2 through Android 4.0.3. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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: Backup Manager not working on HTC Desire running Android 2.2
http://developer.android.com/guide/topics/data/backup.html#Testing On Sunday, January 13, 2013 5:06:57 PM UTC-5, Amy Phillips wrote: Hi Jason, I'm definitely calling dataChanged(), but have just also tried an extra call to adb shell bmgr backup *uk.co.islovely.cooking.schedulerhttp://your.package.name * but no luck after that. I have previously been reinstalling my app by running it in the eclipse debugger, which does the reinstall for me. I'm not sure what the exact command it runs is. I don't have the wipe user data checkbox ticked. I tried reinstalling from the command line using adb install -r path to my apk as you suggested, but again all my user data was not available. How are you saving your private data files? I'm doing FileOutputStream out_file = openFileOutput(SAVED_MENU_ITEMS_FILENAME, MODE_PRIVATE); out_file.write(json_to_write.toString().getBytes()); out_file.close(); If I compare the output from logcat from my phone http://pastebin.com/wZX7iys8 With that from the AVD device running 2.2 http://pastebin.com/q0Y7v3re You can see that on the AVD device it does a backup, and restores it, whereas on the phone there is no backup and no restore in the logging. I suspect that backup is just broken on my phone. I guess I need to know an app that implements backup well, so that I can try with that one, which will tell me if it's my code or my phone that's busted. Thank you for reading this far! :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
On Sun, Jan 13, 2013 at 5:26 PM, William Ferguson william.fergu...@xandar.com.au wrote: Thanks Mark. I have commented on that issue. FWIW I think Dianne is wrong on that one. A non-exported Activity with an intent filter is not poor coding, it's use case that wasn't considered by the original Intent#createChooser implementation. I would have considered it just defensive programming (don't offer an invalid choice), and it is interesting if this is fixed in 4.2. Looks like I have little choice but to implement a custom chooser and inject my Activity into it. At least for the next couple of years. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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: Backup Manager not working on HTC Desire running Android 2.2
Hi, Thank you for the response. I perused your logs, but honestly didn't have time to study them carefully right now :) When I read and write files, I set the path with: getBaseContext().getCacheDir().getAbsolutePath();. I then add a file name. I hope this isn't a dumb question, but here is something I found myself getting confused about. When I connect my phone (not an emulator instance) to my local computer via usb, Androud un-mounts (disconnects) the sd-card storage (which is where the app data files are located). Thus, I have to disconnect the usb cable from the phone before running my app. Once the usb cable is disconnected Android then re-mounts (reconnects) the sd-card storage. To summarize, I can't use the java debugger on the phone itself (because Android insists on un-mounting the sd-card when the usb cable is connected). That also means, you app could be complaining it can't find files, simply because you are connected to your pc via a usb (Android has un-mounted your storage). A side note, I run Linux on all my computers. Thus, I can hook up my phone with the same usb cord and mount the phone's sd-card from my laptop. Once the sd-card is mounted by my laptap, I can peruse the storage contents (within certain permission limits). Hope that helps a little :) Good Luck Jason -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?
On Sun, Jan 13, 2013 at 4:26 PM, William Ferguson william.fergu...@xandar.com.au wrote: Thanks Mark. I have commented on that issue. FWIW I think Dianne is wrong on that one. A non-exported Activity with an intent filter is not poor coding, it's use case that wasn't considered by the original Intent#createChooser implementation. Maybe not, but then again, you don't write the Android framework :-)... I agree that a non exported Activity with an intent filter isn't necessarily poor coding. Instead, I'd always replace it with an explicit intent to my own Activity, making it something I'd just never use (and using an explicit intent just makes more sense to me still)... But you're free to disagree, and I agree the small 'bug' makes things somewhat annoying. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.
Hi, I am not an expert on cryptography, thus take this with a grain of salt :) I thought the purpose of a private key is for you to de-crypt messages encrypted with your public key. If my logic is correct, then wouldn't the remote service give you their public key to encrypt the message (sent from you to the web service). Isn't your task to send a message, Are you sure you are using the correct key? Next, the output of a cipher differs from instance to instance. Thus, the encrypted output being different is expected? Did the server send you any details. That's what I meant by stack trace (poor wording on my part). Did the server indicate specifically that it didn't recognize the encryption format (e.g a padding exception)? Good Luck Jason On Sunday, January 13, 2013 2:50:48 PM UTC-6, mbarbiero wrote: Em domingo, 13 de janeiro de 2013 18h17min29s UTC-2, jason_gates escreveu: Hi, Thank you for the response :) So, the private key is not part of the issue, right? Wouldn't your private key only be used to decode a message sent from the web service to you? Per your message, that's not your issue. Your saying the remote web service is rejecting the message you are sending, I assume you are using the public key of the web service to encode the message (you are sending)? Is that correct? - I sign the XML with my PrivateKey and send a copy of my PublicKey. The access to webservice is in HTTPS. Have you compared the xml sent from both clients (android and doNet). Is the result of that verification, the only difference is the SignatureValue? In other words, the xml structure from both clients are identical. - Yes, SignatureValue is the unique difference. Do you have a stack trace from the server that we can translate? I'm just trying to see if there are any more clues. - Unfortunately not! What I've found is, different versions of the BouncyCastle library are incompatible. If you encode a value with an earlier version of BouncyCastle and then try to decode the value with a later version of BouncyCastle, an exception is raised. Do you have access to the source code of your doNet client. Can you see which library (and version) the other client is using and which algorithm (the algorithm should be published). - Tomorow I'll seek the source code and post here Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What does Advanceable Added in API level 16 mean?
What does Advanceable Added in API level 16 mean? And how to use those two methods in Advanceable Api?I saw this interface in Launcher source code. I am not clear about the specification in android docs.Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help for stop service with Alarm Manager
I've seen this before and I cannot say that I know the answer for certain: it's never happened to me. I will say this: 1) I'm deeply suspicious of the 0 you are passing as the flag used to identify the pending intent. That is the main way of identifying the intent you want to stop. Create a constant and use it. 2) The way you cancel a pending intent is by creating an *exact* copy of it. I suggest, then, that you use exactly the same code to create the intent that you use, for either starting or stopping the service. That's way less error prone. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid On Sunday, January 13, 2013 11:11:31 AM UTC-8, Antonis Kanaris wrote: I have created the start alarm as shown below public class MyScheduleReceiver extends BroadcastReceiver { // Restart service every 30 secondsprivate static final long REPEAT_TIME = 1000 * 5; @Overridepublic void onReceive(Context context, Intent intent) { AlarmManager service = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); Intent i = new Intent(context, MyStartServiceReceiver.class); PendingIntent pending = PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_CANCEL_CURRENT);Calendar cal = Calendar.getInstance(); cal.add(Calendar.SECOND, 5); service.setInexactRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), REPEAT_TIME, pending); I crate this for stop alarm and i call it from main activity.Manifest i think is ok...Work repeat but no stop!!! public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setup); sendBroadcast(new Intent(this,MyScheduleReceiver.class)); } public void StopRepeat(View view) { sendBroadcast(new Intent(this,MyStopReceiver.class)); } public class MyStartServiceReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { Toast.makeText(context, Repeat service!., Toast.LENGTH_LONG).show(); } public class MyStopReceiver extends BroadcastReceiver { // Restart service every 30 seconds private static final long REPEAT_TIME = 1000 * 5; @Override public void onReceive(Context context, Intent intent) { AlarmManager service = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); Intent istop = new Intent(context, MyStartServiceReceiver.class); PendingIntent pending = PendingIntent.getBroadcast(context, 0, istop, PendingIntent.FLAG_CANCEL_CURRENT); Calendar cal = Calendar.getInstance(); cal.add(Calendar.SECOND, 5); service.cancel(pending); But the service is not stopping. What might be the issue?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] Re: BouncyCastle signature value does not match with dotNET signature value.
On Mon, Jan 14, 2013 at 9:12 AM, jason_gates jason.gates...@gmail.com wrote: Hi, I am not an expert on cryptography, thus take this with a grain of salt :) I thought the purpose of a private key is for you to de-crypt messages encrypted with your public key. If my logic is correct, then wouldn't the remote service give you their public key to encrypt the message (sent from you to the web service). Isn't your task to send a message, Are you sure you are using the correct key? He's trying to *sign* data, so that is not the case. In the case the purpose is verify that the *sender* is who they say they are, by making sure they have access to the *private* key. Next, the output of a cipher differs from instance to instance. Thus, the encrypted output being different is expected? This is a signature and not a cipher. For Sha1withRSA at least the output should be the same if signing the same data with the same key. This is most probably some sort of encoding problem. To the OP: * did you normalize properly? * does the raw (byte array) signature match? * are you using the same options for Base64? There are subtle variations here (padding character, line breaks, etc.). Maybe get a well known opensource Java library and compare result. IIRC, Java SE 7 (and maybe 6) has a built-int XML signature provider, you can try using that for testing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Backup Manager not working on HTC Desire running Android 2.2
On Sat, Jan 5, 2013 at 7:11 AM, Amy Phillips thew...@gmail.com wrote: When I test on my phone (an Orange HTC desire running 2.2) I run adb shell bmgr run to make sure that the backup manager has actually backed up my data. At this point in the logs I see 01-04 21:43:40.724: W/BackupManagerService(96): Requested unavailable transport: com.android.updater/.BackupTransportService 01-04 21:43:40.734: V/BackupManagerService(96): Backup requested but no transport available The transport is not guaranteed to be available. If it is not there you cannot use 'cloud backup'. Update the phone to a newer Android version, if available. If not, get/borrow another device for testing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Correct way to implement Activity onDestroy()?
I read http://android-developers.blogspot.tw/2009/01/avoiding-memory-leaks.html about avoiding memory leaks. I would like to know whether I should null out all member variables, such as TextView and Button in onDestroy()? Or, unregistering listener, unbinding service and etc.in onDestroy() are enough to prevent memory leak? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en