Re: [mono-android] VS 2010 Android Device Logging does not filter

2012-08-20 Thread klimaye
Bump! Guys anyone facing the same issues? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/VS-2010-Android-Device-Logging-does-not-filter-tp5711416p5711420.html Sent from the Mono for Android mailing list archive at Nabble.com.

[mono-android] VS 2010 Android Device Logging does not filter

2012-08-20 Thread klimaye
I used to run this on a console and deploy the app via VS 2010. adb logcat appname:E appname:I mono:E mono:I mono-stdout:D monodroid-gc:I dalvikvm:D *:F But since last couple of versions if I do the above after an app is deployed then in order to redeploy the app I have stop this command in the

Re: [mono-android] The operation has timed out. at System.Net.WebConnectionStream.Read

2012-06-26 Thread klimaye
Jon, I tried both of your suggestions but they did not help (I am on Ice Cream Sandwich with latest mono 4.2.3). We were disposing the response object at the end already. >From the logging I can see that the code specifically gets stuck on the read operation on the stream and throws a 'The opera

[mono-android] The operation has timed out. at System.Net.WebConnectionStream.Read

2012-06-20 Thread klimaye
Background : This is related to my earlier post about copying data using streams (from a network stream to a file stream) http://mono-for-android.1047100.n5.nabble.com/Copy-from-a-file-stream-to-another-file-stream-interruped-by-INTERRUPTION-REQUESTED-HANDLE-td5710364.html We started using .net

Re: [mono-android] Copy from a file stream to another file stream interruped by 'INTERRUPTION_REQUESTED_HANDLE'

2012-06-15 Thread klimaye
input.CopyTo(output) made the exception go away. repeated copying now produces a timeout exception, which I imagine should be easier to solve than the one above. Thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Copy-from-a-file-stream-to-another-file-stream-

Re: [mono-android] Copy from a file stream to another file stream interruped by 'INTERRUPTION_REQUESTED_HANDLE'

2012-06-15 Thread klimaye
Jon, We will try and put something reproducable with the ticket. Looking at the method can you suggest any alternatives for achieving the stream to stream copy? How could we go about this differently? Thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Copy-f

[mono-android] Copy from a file stream to another file stream interruped by 'INTERRUPTION_REQUESTED_HANDLE'

2012-06-15 Thread klimaye
We are seeing the log below when a stream to stream copy is occurring over the wireless. The stream copy works fine for file size less than 10 mb. The file copy in question is a 12 mb file. It looks like the issue is happening in the framework level code. Any pointers/help/workarounds would be g

Re: [mono-android] Unhandled exception in Install

2012-05-17 Thread klimaye
jon/tom, how was this resolved? I am on m4a 4.2.1 and evrythign was dandy and then i added the keystore to the .csproj and since then i am getting the same exception as Tom. Any thoughts/advice? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Unhandled-exception-

[mono-android] M4A 4.2.1 Crashes VS2010 when device is connected before VS 2010 start

2012-05-17 Thread klimaye
I am seeing that VS2010 is crashing quite a bit since I upgraded to 4.2.1 One issue that I can specifically reproduce is that if my LG GO phone is connected to the PC before I start my m4a VS2010 solution then it simply crashes. Also, it does not recognize the attached device for a while in Vs201

Re: [mono-android] Application Size upon deployment

2011-12-19 Thread klimaye
Alright, So this weekend, I took Jon's advice and removed the dependency on Json.net, System.Data and System.Data.Sqlite. The app size is now 4.3 MB. Biggest dlls now are mscorlib => 1258 KB System.dll => 475 KB Mono.Android => 695 KB All the assemblies now are only .Net assemblies, so it look

Re: [mono-android] Application Size upon deployment

2011-12-15 Thread klimaye
Thanks Sri and Jon, I will look into using sqlite-net and System.json. Might lose a few features but hopefully that will drive the size down to near 3 mb. Thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Application-Size-upon-deployment-tp5074555p5078091.htm

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Jon, Thanks for the response. I need to interact with the sqlite db, so I don't see how I can do without the System.Data and System.Data.Sqlite. The only part I can see where I could possibly make a change is the json parsing. The Newtonsoft dll requires System.xml as a dependency it seems. Wo

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Jon, I am on 4.0.1. Here is the split I unziped the .apk and looked at the individual folders. Here is what I noticed. In my references I have the following dlls Mono.Android Mono.Data.Sqlite mscorlib Newtonsoft.Json.Monodroid System System.Core System.Data System.Json System.Xml System.Xml.lin

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Jon, I checked my options and On the app I have Linking set to SDK and User assemblies. On the mono class library : I also have it set to the above. Here is the split from bin/release: a. APK size : 5.4 MB b. class lib (dll) size : 51 kb c. app (dll) size

[mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Our current apk size is around 5 MB, thought most of that must be mono as during debug the app size is less than 1 MB. Wanted to know if there were plans to reduce the apk size even further. Also, is there a certain legitimate boundary beyond which the apk size cannot be reduced further since we

[mono-android] How to reference and use a android library project apk

2011-12-09 Thread klimaye
I am looking at http://code.google.com/p/android-section-list/ as a sectioned listview implementation. How would one reference the generated apk (output of library project) with monodroid? Would I use JNI ? Please advice. Any reference material would be helpful. Thanks -- View this message i

Re: [mono-android] App Crashes on Samssung Galaxy SGH-1897 - Uncatchable Exception thrown by mono

2011-12-09 Thread klimaye
Mike, Thanks for the response. That helps. Now if mono team can corroborate that. Appreciate it. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-Crashes-on-Samssung-Galaxy-SGH-1897-Uncatchable-Exception-thrown-by-mono-tp5062375p5062456.html Sent from the Mono

[mono-android] App Crashes on Samssung Galaxy SGH-1897 - Uncatchable Exception thrown by mono

2011-12-09 Thread klimaye
The app is on the store and crashes as soon as it is started. This does not happen on a host of other devices. We tested on Samsung Galaxy S2 and this did not happen. This happens on the Samsung Galaxy S1 phone. Device Spec : Phone : Samsung Galaxy SGH - 1897 Kernel : 2.6.9 Firmware : 2.1 Pleas

Re: [mono-android] UrlEncoding in Monodroid

2011-12-08 Thread klimaye
I ended up finding Java.Net.UrlEncoder to do the job. Interestingly, when I go to add references, I do not see System.Web as one of the .Net options. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/UrlEncoding-in-Monodroid-tp5058866p5058982.html Sent from the Mono

[mono-android] UrlEncoding in Monodroid

2011-12-08 Thread klimaye
Since System.Web is unavailable, how does one encode urls? Do folks pull in the HttpUtility class from mono library or roll their own implementation or grab from some other place? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/UrlEncoding-in-Monodroid-tp5058866p5

Re: [mono-android] Constructor became protected in 4.0 : Android.App.AlertDialog.AlertDialog(System.IntPtr, Android.Runtime.JniHandleOwnership)

2011-12-06 Thread klimaye
Thanks jon, that fixed it. Thanks for the other info as well. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Constructor-became-protected-in-4-0-Android-App-AlertDialog-AlertDialog-System-IntPtr-Android-Runtim-tp5052707p5053058.html Sent from the Mono for Android m

[mono-android] Constructor became protected in 4.0 : Android.App.AlertDialog.AlertDialog(System.IntPtr, Android.Runtime.JniHandleOwnership)

2011-12-06 Thread klimaye
I was using the constructor below to integrate with zxing bar code scanner. IntPtr rAlertDialog = JNIEnv.CallStaticObjectMethod( IntentResult, IntentResult_initiateScan, new JValue(activity)); // ...and construct a nice managed wrapper over the Java inst

Re: [mono-android] Newtonsoft.Json.Monodroid Issue

2011-12-05 Thread klimaye
Disabling "fast deployment" did the trick. Is this a 4.0 feature? How can we get it to take notice of the dll? Thanks for the help. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Newtonsoft-Json-Monodroid-Issue-tp5050306p5050381.html Sent from the Mono for Andro

Re: [mono-android] Newtonsoft.Json.Monodroid Issue

2011-12-05 Thread klimaye
I tried to use the much recent implementation of Json.Net 4.0 below https://github.com/ayoung/Newtonsoft.Json but still gives me this at runtime : json.FromJson Exception : Could not load file or assembly 'Newtonsoft.Json.MonoDroid, Version=4.0.3.0, Culture=neutral, PublicKeyToken=null' or on

[mono-android] Newtonsoft.Json.Monodroid Issue

2011-12-05 Thread klimaye
This assembly from https://github.com/chrisntr/Newtonsoft.Json was working with 1.9.2 At runtime, I now get json.FromJson Exception : Could not load file or assembly 'Newtonsoft.Json.MonoDroid, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. I am not missi

Re: [mono-android] MonoDroid4 : Previously working ArrayAdapter not working any more

2011-12-05 Thread klimaye
Yes, I did the same but wanted to report this, so it can be fixed. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/MonoDroid4-Previously-working-ArrayAdapter-int-not-working-any-more-tp5049949p5050058.html Sent from the Mono for Android mailing list archive at Nabbl

[mono-android] MonoDroid4 : Previously working ArrayAdapter not working any more

2011-12-05 Thread klimaye
http://mono-for-android.1047100.n5.nabble.com/file/n5049949/MonoAndroid4Test.zip MonoAndroid4Test.zip I have an ArrayAdapter as a datasource to a spinner. The code blows up when the adapter tries to get an item. It seems like it works if T is a string but not if T is an int. This was working prev

Re: [mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
Jonathon, You were dead on. That was exactly it. Though, I do not remember manually adding the internet permission to the assembly info. Thanks a bunch guys for your help. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Deployment-to-app-store-giving-ERROR-gett

Re: [mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
Jon, We are in a bit of crunch here. Could you look into why the automatic androidmanifest.xml genrator is spitting an empty uses-permission block after the application? If we can get a build that fixes the above issue that would be great.!! Please help. Thanks, -- View this message in conte

Re: [mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
Jon, I moved the permissions before the application and activities. The application started to uploaded and gave up at 3/4 of the way which was more than what we had gotten before. I looked at the generated AndroidManifest.xml file and saw that there was still an empty tag after the applicati

Re: [mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
Jonathon, The gist is giving a 404. Cannot see it. Thanks, -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Deployment-to-app-store-giving-ERROR-getting-android-name-attribute-tp5042841p5043023.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
Jon, Thanks a bunch for the help. Exact error we are getting is : This file is invalid. ERROR getting 'android:name' attribute. Here is the AndroidManifest.xml http://schemas.android.com/apk/res/android"; android:installLocation="internalOnly" android:versionCode="1" android:versionName="1.0.

Re: [mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
Jon, Thanks for the response. I glanced over the final androidmanifest.xml and all my activities have android:name set on them. The namespace seems to be lower cased while the actual activityname is still camel cased. Is this an issue? I also have a package attribute. Do you think having the p

[mono-android] Deployment to app store giving : ERROR getting 'android:name' attribute

2011-12-02 Thread klimaye
We are trying to deploy our first monodroid app to the store. I have made sure that the 'application' tag in the manifest has the label and icon set on it. All, my activities have 'label' attribute set on them. We have added the 'keystore' specific property tags to the .csproj file. Here is th

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread klimaye
Yes. I am using ThreadPool.QueueUserWorkItem to do the work in the background while I show a progress bar. Wow, glad to hear. What is the issue? When is the next release. Thanks Jonathon!!! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Exceptions-not-gettin

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread klimaye
Jonathon thanks for the response. Here is what the app is doing in Pseudo code a. Get list of tables to create from web service (json) b. For every table in the list ( i. Create the table ii. Pull the records (also json string) iii. save records to db What I am noticing is that

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread klimaye
Guys, Is any work being done in the 2.0 release to make sure framework level exceptions get caught in the catch blocks? Currently I have the StringBuffer and ASCII.Encoding.GetString method intermittently throwing unnamed exceptions and freezing the app. Please help and advice. http://stackover

Re: [mono-android] addins to VS

2011-11-30 Thread klimaye
using Resharper with Monodroid. Have noted that VS crashes intermittently and restarts. I do all my debugging via logcat and not the VS debugger so not sure what causes it crash and restart. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/addins-to-VS-tp5033329p5

[mono-android] Exceptions not getting caught on thread

2011-11-21 Thread klimaye
I am trying to download json data in a background task. I am noticing that when I get the following exception, the control never comes in the ContinueWith block and the progress dialog is stuck making the app unusable. I have tried using the ThreadPool but it has the same effect. If I throw an exce