[android-developers] Re: Prob in sending Image

2013-01-20 Thread jason_gates
Hi, When I've used HTTP to communicate with a servlet container (E.G. tomcat or jetty), The HTTP client uses Base64 to encode the image. Thus, I would try encoding the image when you send (from the client). On the server, I would decode the image. Base64 is used often to encode images for transp

Re: [android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-15 Thread jason_gates
Hi, No problem. Sorry I couldn't provide more help :) You've got a challenge that requires a lot of patience :) Hang in there. It's not you, it's just a big challenge. It happens to all of us. I found an additional link, might help:http://msdn.microsoft.com/en-us/library/ms996502.aspx You'll

Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-14 Thread jason_gates
Hi, A few suggestions: - I would verify that your code is actually executed (I,E, the code statements in your original post). - Verify no exceptions are thrown. Make sure your code segment is housed in try/catch block. - Add statements to the Toast object and ask it to report th

[android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-13 Thread jason_gates
aneiro 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, t

[android-developers] Re: Backup Manager not working on HTC Desire running Android 2.2

2013-01-13 Thread jason_gates
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 som

[android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-13 Thread jason_gates
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 sendin

Re: [android-developers] Re: data in horizontal scrollview

2013-01-13 Thread jason_gates
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

[android-developers] Re: data in horizontal scrollview

2013-01-13 Thread jason_gates
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 yo

[android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-13 Thread jason_gates
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 res

[android-developers] Re: Backup Manager not working on HTC Desire running Android 2.2

2013-01-10 Thread jason_gates
Hi, Sorry, I haven't used the BackUp Manager, but I perused the documentation page you referenced. To invoke the Backup Manager from your phone, I would try using the 2 command approach - "adb shell bmgr backup *your.package.name*" - adb shell bmgr run If you application

[android-developers] Re: How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread jason_gates
Hi, I would recommend reviewing the following pages in the Android Developer's guide: - Intents and Intent Filtershttp://developer.android.com/guide/components/intents-filters.html - Intent (details) http://develope

Re: [android-developers] Re: How can an app cause a hard freeze?

2013-01-07 Thread jason_gates
our application. For example, does it connect anything that might block? Again, thanks for the reply. I not going to speculate further on code that I haven't reviewed :) Good Luck :) Waving good bye :) Jason On Monday, January 7, 2013 5:21:55 PM UTC-6, Nathan wrote: >

Re: [android-developers] Re: How can an app cause a hard freeze?

2013-01-07 Thread jason_gates
rom specific buttons (in the > metaphorical sense), making it hard to diagnose. > > Kris > > On Mon, Jan 7, 2013 at 4:14 PM, jason_gates > > > wrote: > > Hi, > > I have 2 suggestions :) > > > > First, I would review my code and make sure I'

Re: [android-developers] Re: How can an app cause a hard freeze?

2013-01-07 Thread jason_gates
Hi, I have 2 suggestions :) First, I would review my code and make sure I've implemented try/catch/finally. You get inconsistent results if your application is not handling exceptions :) E.G. an attempt to use a value. Explicitly validate the value is not null. Place the block within a try/cat

[android-developers] Re: javax.crypto.BadPaddingException: pad block corrupted (only failing on Android 4.x)

2013-01-07 Thread jason_gates
Hi, The exception message is misleading. If you've encoded the passwords with an earlier version of the Cipher library, then try to decode the password with a later version of the Cipher library, an exception is raised (like the "padding" exception you've posted). I've run into this when swi

[android-developers] Re: Use unrooted Android device to test web site running on desktop, through usb cable?

2013-01-07 Thread jason_gates
Hi, I have a similar environment. I have a small internal network in which I do development ( 2 desk tops and a laptop). In addition, I also have an "unrooted" Android device which I use for testing. Instead of trying to connect to my internal development network via a usb cable, I connect my

Re: [android-developers] How to make Text unselectable in EditText

2013-01-07 Thread jason_gates
Hi, Sorry I don't have a specific solution. The term that you are looking for is "paste" buffer. A quick search on the API documents results in this page: https://developer.android.com/guide/topics/text/copy-paste.html One strategy to prohibit "copy" is to distribute the characters in your stri

[android-developers] Re: Use unrooted Android device to test web site running on desktop, through usb cable?

2013-01-07 Thread jason_gates
Hi, Here is how I test in your scenario. Instead of trying to connect my android device to my laptop via a usb cable, I do it through a wireless connection I set the android device to connect via WIFI to a wireless access point running on my laptop. So, that means on my laptop I have a wireles

[android-developers] Re: Beginning ADK

2013-01-07 Thread jason_gates
Hi, A connection is made by both hardware and software. Your post refers to ""Arduino Uno", which I believe is hardware. Is that correct? "ADK" is software. Thus, if want folks to help you install ADK software, please post what operating system software you a running? Do you have java installed

[android-developers] Re: error in custom list adapter

2013-01-07 Thread jason_gates
Hi, I would recommend verifying ArrayList instances have been instantiated (not NULL) and have values. Your performing a get() (E.G. objects.get(position);) again without checking for NULL values. In general I always string test my code by running it through a source code debugger. If you ar